Repository navigation
Description
fleet actions exec: live short-lived exec sessions inside Actions runners, coordinator-handed-off
Drew's order, 2026-11-23 15:17 CST: implement an alternate fleet actions exec mode that may become the primary — agents connect into GitHub Actions runners and exec commands themselves, temporary and short-lived like the commander/route subcommand family (#13717). The central coordinator (#13765) establishes the connection handoff; the fleet command background-watches the run after handoff.
Premise (verified first-hand, 2026-11-23)
- Coordinator (fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765) has a complete design of record: broker verbs
/placement-claim|confirm|release|claim-status|load, a coordinator sweep in the queue broker, client integration with a singular fallback that names itself viaplacement_path. Its build is routed separately; this mode composes with the design (claim a slot for the session's host surface when the verbs answer; proceed singular and recordplacement_pathwhen they don't) and never forks it. - Fleet action constellation: the generic fleet action lives in dezren39/fleet — composite action
.github/actions/fleet-command, dispatch workflowsfleet-command.yml(repo-queue dispatch runner) andfleet-run.yml(generic runner; developing-today/fleet fork adds runner choice + cache deltas that must survive syncs). Fixes land on dezren39/fleet main and sync to the forks. - Existing IO pattern (dispatch path): command output lives in the Actions run log; reusable output chains via the
fleet-outputartifact (previous_run_idinput downloads the prior run's artifact); caches via actions/cache and the R2 nix cache (cache.push_nix→ signednix copyto the R2 cache URL, skipping quietly when secrets are absent). - PM push surface exists:
crates/fleet-queue/src/needs_drew.rs(pm-stack notifications Phase 1: wire the missing producers — queue escalations + stack-health into the throat, fix subscription class backfill, answerable needs-drew pushes #8568) emits needs-drew alerts into the PM aggregator throat —POST http://127.0.0.1:4870/api/alerts, Bearer token resolved by name through fleet-secrets, body{source, key, severity, title, body, needsDrew:{ledgerId, question, context, options[], links[]}}, deduped by (source, key). The notification presents choices; this is the emergency-extension push path. - Rendezvous constraint (Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356): the sandbox has no inbound path; every route names its rendezvous. Runners are on the public internet and the queue broker lives on the laptop — so this mode needs a public door in the commander/mcpx pattern (Worker gate + tunnel → laptop), path-scoped to the session verbs.
- Route family shape (fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717): timeout required by construction; the serving form is named in output.
Method survey — direct runner access, filtered by the public-log leak
The hard filter: most off-the-shelf runner-access methods print SSH/connection info into the run log, and in a public repo the log is world-readable. Any method whose connection material can appear in logs is disqualified, however convenient.
| Method | Shape | Verdict |
|---|---|---|
| tmate (mxschmitt/action-tmate et al.) | Runner opens tmate session; SSH string + web URL printed to log | Rejected — connection string in public logs is the exact leak |
| upterm (action-upterm) | SSH via upterm server; connection info printed to log; actor-limiting exists | Rejected — same leak; allowlists don't unpublish the log |
| tailscale/github-action | Runner joins the tailnet; reach it by tailnet name, nothing secret prints | Viable but not picked: couples runner access to tailnet enrolment/ACLs for every caller, and #13752 thread 1 is actively designing away from Tailscale-only reach |
| cloudflared + Access on the runner | Runner dials out to Cloudflare; requester authenticates via Access | Viable; the estate already runs this door pattern (commander/mcpx). Kept as the door technology, not the session protocol |
| iroh endpoint on the runner | NodeId is a public key — printing it leaks nothing; auth is the keypair (#13752 thread 2) | Right long-term transport for the fleet binary; not the v1 session protocol (pilot is scoped to seat→amd, and this mode needs the coordinator handoff semantics first). The session protocol below is transport-shaped so iroh can carry it later |
| Runner-side agent dials OUT to the coordinator (chosen) | The workflow starts a small agent (a mode of the fleet binary). The agent proves it is inside the run with the job's GitHub OIDC token (fetched from the Actions runtime, never logged), registers with the broker, and holds an outbound long-poll. Commands flow requester → broker → agent; IO flows back the same way | Chosen — no inbound path, nothing connection-shaped ever exists outside the two endpoints, the session handle is a public identifier (safe in logs), and the handoff is the coordinator's job in #13765's design |
Runner-side auth detail: the broker verifies the OIDC JWT against GitHub's JWKS and checks repository, workflow, job_workflow_ref, run_id, run_attempt claims against the session row the coordinator created at dispatch. Requester-side auth is the existing broker seat auth. Workflow inputs carry only the handle + non-secret parameters — never a token (inputs are visible on the run page; secrets would be masked but dispatch cannot receive them).
Design
Three pieces, one flow.
- Action — dezren39/fleet
.github/actions/fleet-exec-session(composite, fleet-command conventions): sets up the pinned fleet binary, runsfleet actions agentfor the session, ships the egress helper on PATH. - Workflow — dezren39/fleet
.github/workflows/fleet-exec.yml(workflow_dispatch; inputs: handle, target repo/ref optional checkout, runner, lease/max seconds, hide-logs flag;permissions: id-token: write; job timeout = max lifespan + grace). - Subcommand — new
actionsdomain in pkgs/fleet (fleet-registry + verbs.md in the same change):fleet actions execgroup in the fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 family shape —--timeoutrequired by construction, serving form named in output.
Flow: requester runs fleet actions exec start → subcommand asks the coordinator to claim a slot for the host surface and create the session row (singular fallback per #13765 when the coordinator doesn't answer) → subcommand dispatches fleet-exec.yml with the handle → coordinator/subcommand binds run id + attempt (the handoff: handle, OWNER/REPO#RUN_ID, attempt) → runner agent registers via OIDC → requester execs via fleet actions exec run <handle> -- cmd, attaches/streams, renews, closes.
Broker verbs (new module crates/fleet-queue/src/turso_queue/actions_exec.rs, routed in turso_queue::dispatch beside the placement coordinator's; house conditional-UPDATE atomicity; DDL beside placement_sessions):
/actions-exec-open(seat) — create session {handle, host_repo, seat, lease_until, max_until, hide_logs, state}./actions-exec-bind(seat/coordinator) — record run_id + attempt./actions-exec-register(agent, OIDC-verified) — bind agent to session, statelive./actions-exec-poll(agent) — long-poll for commands + lease state./actions-exec-command(seat) — enqueue one command {cmd_id, text, timeout_s}./actions-exec-io(agent) — append IO chunk {cmd_id, seq, stream, data};/actions-exec-result(agent) — exit code, cmd terminal./actions-exec-stream(seat) — IO chunks after a seq (attach + background watch read this)./actions-exec-renew(seat) — extend lease within max; past max →extension-required./actions-exec-extend-request(seat) — past-max extension: creates the request and emits the needs-drew alert (sourcefleet-actions-exec, keyactions-exec-ext:<handle>, options approve/deny, links to the run + this issue). Session entersextension-pendingwith a short decision grace so a live agent isn't killed mid-question./actions-exec-extend-decide(seat acting on Drew's answer) — applies or denies. Known gap: the phone tap → broker write-back is the PM stack's next phase; v1's write-back is a seat running this verb on Drew's recorded answer. The alert is the push; the verb is the closest existing surface./actions-exec-close(either side) — terminal; agent exits, workflow step ends.
Disconnect tolerance: requester disconnect is a non-event (broker holds commands, IO, lease). Agent network blips retry with backoff against the long-poll. Reconnect = re-attach with the same handle; the session and any running command survive a short grace window, mirroring the laptop attach pattern.
Lease discipline: lease = --timeout at start (required, no default). Hard cap = --max-lifespan (default 30 min, ceiling 120 min — the fleet-run leg cap). The agent enforces the lease locally as well as via the broker (dies at expiry even if partitioned, after a final IO/egress flush). Renewals move lease_until up to max_until; past that, only an approved emergency extension (push above) moves it, each approval bounded (+30 min).
File egress: the Action puts fleet-exec-put <file> on the session PATH: it copies the file into the session outbox (uploaded as the fleet-exec-out workflow artifact when the session step ends) and PUTs it to R2 (S3-compatible; credentials arrive as workflow secrets, are masked by GitHub, and are never echoed; absent credentials skip the R2 leg quietly, the fleet-run cache pattern).
Log visibility + IO decision: by default the agent echoes session IO to its own stdout, so commands and output land in the Actions run log (the dispatch path's existing visibility). --hide-logs on the subcommand turns the echo off. Decision: the transport is brokered in both modes (it is the handoff mechanism, not a visibility feature); the broker's IO chunk store is the cache of record either way — with logs visible it is the low-latency attach/watch source, with logs hidden it is the only IO path back to the requester. No second IO system is built.
Background watch: after handoff the subcommand can follow the run without holding the requester's terminal: fleet actions exec watch <handle> streams broker IO + run status (polled via the placement GitHub client) until terminal; start --detach returns after handoff and records the handle in the local session store so watch/attach/run resolve it from any seat (the portable OWNER/REPO#RUN_ID form works too).
Slices
- This issue: premise + survey + design.
- Action + workflow in dezren39/fleet (agent bootstrap in proof mode: build the agent from a code ref in the runner; production pins the released fleet binary).
- Broker verbs + DDL + tests (rusqlite fake-pipeline pattern from fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765's proof bar).
- Runner agent (
fleet actions agent): OIDC register, poll/exec/stream loop, lease enforcement, egress helper. - Subcommand (
fleet actions execgroup): start/run/attach/watch/renew/extend/close + coordinator composition + singular fallback naming. - PM push wiring for emergency extension (needs-drew throat emission + decide verb).
- Live proof (below), runbook note in
doc/agents/remote-build-and-test.md, verbs.md, PRs, merge on green.
Proof bar
One live end-to-end run, recorded here: subcommand → coordinator handoff (handle + run id + attempt named) → exec a command on the runner → fleet-exec-put a file out to both the workflow artifact and R2 → requester disconnect/reconnect resumes the same session → renewal extends within the cap → a short-lease session dies at its cap unrenewed. Plus the leak acceptance test: read the produced public workflow logs end to end and show no connection material (no tokens, no OIDC material, no credential values — handles and run ids only).
Lane ACTIONS-EXEC. If the platform execution-risk check stops a build step, the stop is recorded here with the exact slice state for routing to a laptop session.
Activity
developing-today commentedon Nov 23, 2026
CODE-5063
dezren39 commentedon Nov 23, 2026
ACTIONS-EXEC-2 — build started. The design of record above is confirmed fully posted (issue body matches the lane draft byte-for-byte apart from a trailing newline). State at intake, verified first-hand:
.github/actions/fleet-exec-session(composite) +.github/workflows/fleet-exec.yml(id-token: write, inputs carry only the handle + non-secret parameters, job timeout backstop 150 min). The action expectsfleet actions agent --handle --broker-url --lease-seconds --max-seconds --workdir --outbox [--hide-logs], gates on anactionscapability infleet capabilities, and expects the agent to providefleet-exec-puton the session PATH withFLEET_EXEC_OUTBOX+FLEET_EXEC_R2_*in the environment.fleet actions execsubcommand family + registry/verbs wiring, the needs-drew emergency-extension wiring, and the live proof.Build notes recorded for the slices that follow:
/placement-claimetc.) are not yet in the broker dispatch (only the impl(fleet): placement sessions to the queue backend (placement_sessions) — centralize decision state, keep placement decentralized #13146/placement-put|get|list|syncmirror is), so the subcommand's coordinator composition follows the design exactly: attempt the claim, proceed singular when it doesn't answer, and name the serving path viaplacement_patheither way.exec.security.cabhostname (only/actions-exec-*reaches the broker), per the design's rendezvous note — no Worker needed because both caller classes authenticate to the broker itself (seats with the broker token, the agent with the job's GitHub OIDC token verified against GitHub's JWKS in the register verb)./tmp/fleet-yamlscratch was not touched): code~/wt-actions-exec-code@5d28f03df42, dezren39/fleet~/wt-actions-exec-fleet@a86a000, both on branchlane/actions-exec-13774.Next slice boundary: broker verbs + tests landed in the code worktree.
dezren39 commentedon Nov 23, 2026
Slice 1 landed in the worktree — broker verbs (ACTIONS-EXEC-2)
Slice 1 (broker verbs module) is built and unit-verified in worktree
~/wt-actions-exec-code(branchlane/actions-exec-13774), not yet PR'd:crates/fleet-queue/src/turso_queue/actions_exec.rs: all twelve verbs — seat:/actions-exec-open,/actions-exec-bind,/actions-exec-command,/actions-exec-stream,/actions-exec-renew,/actions-exec-extend-request,/actions-exec-extend-decide,/actions-exec-close; agent:/actions-exec-register,/actions-exec-poll,/actions-exec-io,/actions-exec-result(close is dual-sided). DDL foractions_exec_sessions/actions_exec_commands/actions_exec_iorides the broker SCHEMA array besideplacement_sessions; state transitions use the house conditional-UPDATE shape.ring, no new heavy deps; JWKS cached 10 min with one forced refetch on failure for key rotation), issuer + expiry checked, and therepository/job_workflow_ref/run_id/run_attemptclaims bound to the session row. Theaudclaim is deliberately not pinned in v1 (GitHub's default audience is the repo owner string; recorded here as a known choice).queue_broker.rs): the five agent paths accept a JWT-shapedX-Agent-Tokenin place of the broker token (body-size cap still applies); the broker strips any client-supplied_oidc_jwtfrom every body and injects the header token only on agent-path calls, so the field can never be spoofed. Seat calls keep the broker token./actions-exec-extend-requestsetsextension-pendingwith a 300 s decision grace past the lease; a post-dispatch hook in the broker raises the needs-drew alert vianeeds_drew::build_extension_alert_body— sourcefleet-actions-exec, keyactions-exec-ext:<handle>, approve/deny options, links to the run and this issue — posted fire-and-forget through the alerts intake with the token resolved by name, exactly the/blockpattern.query_objs' third argument is the JSON-parse column list, not a column list. Full fleet-queue suite green: 600 lib tests + all integration binaries.Remaining: slice 3 (fleet-queue client helpers + the
fleet actionsfamily: start/run/attach/watch/renew/extend/decide/close + agent + put, coordinator-claim-first with the #13765 singular fallback), slice 4 remainder (verbs.md), slice 5 (the public doorexec.security.cab), then the deploy + live proof.Merge pull request #13800 from developing-today/lane/actions-exec-13774
dezren39 commentedon Nov 23, 2026
Slices 3+4 landed and merged — PR #13800 (ACTIONS-EXEC-2)
PR #13800 merged (
5e4107076821) — slices 3+4 of the design:client/actions_exec.rs): typed seat helpers for all twelve verbs over the shared client transport, plus the fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765 placement-claim attempt (returns granted only when a coordinator actually answers; the singular fallback otherwise).fleet actionsfamily (crates/fleet/src/actions.rs, registryCapability::Actions, full build only):exec start—--timeoutrequired by construction (no default);--max-lifespandefault 1800 s; coordinator claim first with the singular fallback named in the output (placement_path); dispatch carries only the handle + non-secret inputs; the run bind is printed as the handoff (handle · OWNER/REPO#RUN_ID · attempt) and recorded in the seat's local session store so the portable form resolves.exec run / attach / watch / renew / extend / decide / close— run streams the command's IO and exits with its code; renew clamps at the max and namesextension_required; extend records the request the broker turns into the needs-drew alert; decide writes Drew's answer back.agent— the runner half: OIDC fetch from the Actions runtime (never logged), register, long-poll, per-command shells in the workdir with IO streamed to the broker (echoed to the run log by default, silent under--hide-logs), local lease enforcement even when partitioned,fleet-exec-putinstalled on the session PATH.put— outbox copy (thefleet-exec-outartifact leg) + SigV4 R2 PUT when the session carries credentials; values never printed.docs/verbs.mdsection, book chapterbook/reference/actions.md+ SUMMARY entry.Verification: fleet-queue 623 lib tests + integration suites, fleet bin 126, fleet-registry incl. the operator-docs inventory test — all green on the laptop; clippy clean on the new files; fmt applied to the change set only.
Remaining: slice 5 (public door
exec.security.cab, path-scoped to the agent verbs), the broker deploy from the merged build, R2 repo secrets, and the live end-to-end proof with the log audit.dezren39 commentedon Nov 23, 2026
Slice 5 progress — door live, R2 provisioned, deploy in flight (ACTIONS-EXEC-2)
722f72ba-…, remotely managed) is now at config version 6 with a new ingress rule —exec.security.cabwith path^/actions-exec-(register|poll|io|result|close)$→http://100.99.113.103:4801(the queue broker) — inserted before the catch-all, every existing rule preserved verbatim. DNS CNAMEexec.security.cab→722f72ba-….cfargotunnel.com(proxied) created in the security.cab zone. No Access app in front by design: the job's OIDC token is the authentication, verified at the broker.POST https://exec.security.cab/actions-exec-pollwith no token → the broker's own401 {"error":"unauthorized"}(the request reaches the broker through the door);POST /claimandGET /on the same host → 404 (path scoping enforced at the tunnel). After the broker flip, a JWT-shaped call will pass the gate and fail in OIDC verification — the distinguisher that the new verbs are live.fleet-execcreated under the estate's general R2 credentials (by namecloudflare.r2-access-key-id/cloudflare.r2-secret-access-key/cloudflare.r2-endpoint), and the four workflow secrets are set on dezren39/fleet —FLEET_EXEC_R2_ACCESS_KEY_ID,FLEET_EXEC_R2_SECRET_ACCESS_KEY,FLEET_EXEC_R2_ENDPOINT,FLEET_EXEC_R2_BUCKET— values piped from the vault straight intogh secret set, never printed. The Action's empty-secret skip logic is unaffected for repos without them.scripts/muse/publish-fleet.shis building the new fleet-static from origin/main on the laptop (the merge5e41070is in; the build is compiling the fleet-queue test + release artifacts under heavy multi-lane load). Next in this slice: the bootstrap pin update, the queue-broker profile flip to the new generation (gen 6 stays as rollback), then the live proof battery.Merge pull request #13817 from developing-today/lane/bootstrap-pin-ac…
dezren39 commentedon Nov 23, 2026
Deploy status — publish + pin landed; broker flip in flight (ACTIONS-EXEC-2)
fleet-static-5e41070(sha2563bf8f825…) — the static build of the fleet actions exec: live short-lived exec sessions inside Actions runners, coordinator-handed-off #13774 merge commit, viascripts/muse/publish-fleet.sh. Verified first-hand: the downloaded asset'scapabilitiesshows theactionsdomain available andfleet actions --helprenders.84aab4fcc77a) —scripts/muse/bootstrap.shnow pinsfleet-static-5e41070+ its sha256, so the Action's default install path (noagent_ref) delivers an agent whose capabilities carry"actions".deploy --scope user queue-brokerto generation 7 (package = the fleet build at current main, health check100.99.113.103:4801/healthz, automatic flip-back to generation 6 on failure). First attempt died with the laptop channel's command timeout during the package realise, before any state change (generations still 1,2,3,5,6; production broker untouched and healthy). Relaunched fully detached on the laptop (setsid nohup, log at/tmp/ae-deploy.log) — running now; the realise is a full workspace build under heavy multi-lane load. Operational note for the next flip: never run a deploy in the foreground of a channel command; detach it first.Once generation 7 is live, the proof battery runs from the published static binary as the seat: session A (start → handoff → exec →
fleet-exec-putto artifact + R2 → reconnect via the portable ref → close), B (renewal past the original lease), C (expiry at the cap unrenewed), D (extend → decide --approve → renew past the old max), then the workflow-log audit.dezren39 commentedon Nov 23, 2026
STOP RECORD — proof battery halted at the Action's agent-install step (ACTIONS-EXEC-2)
Per the lane's hard constraint, this is the exact slice state at the stop. The stop was triggered when reading the failed run's log tripped a platform execution-risk check; the lane does not process that content further without Drew's go-ahead naming it.
What is deployed and verified (all before the stop):
5e4107076821); full test suites green (fleet-queue 623, fleet bin 126, registry incl. docs inventory).42a102884c3c) — the session container runs as root; verified effective: the next run's checkout step completed (the first run, 45282914944, had died in checkout's post-step EACCES because the fleet-build image defaults toUSER vscode, uid 1000, which cannot write the runner_tempfile-command dir).fleet-static-5e41070(sha2563bf8f825…) published; bootstrap pin PR bootstrap: pin fleet-static-5e41070 (#13774 actions exec build) #13817 merged (84aab4fcc77a). The static binary'scapabilitiesshows the actions domain available.deploy --scope user --profile-base ~/.local/share/deploy/profiles queue-broker(health check passed; generation 6 intact as rollback). Verbs verified live seat-side (watchon an unknown handle returns the verb's own "unknown session handle") and through the door (JWT-shaped token passes the gate and reaches the verb; no token → the broker's 401). Two operational notes from the flip: a foreground deploy dies with the laptop channel's command timeout mid-realise (detach it:setsid nohup), and the deploy's default profile base is the system path —--profile-basemust name the live one.exec.security.cablive (tunnel config v6, agent-verb paths only, DNS CNAME created), verified from outside.fleet-execcreated; the fourFLEET_EXEC_R2_*secrets set on dezren39/fleet.Where the proof stands:
fx-788a7a160d3bb9e52664, run 45282914944): handoff worked end to end (open → claim attempt → dispatch → bind, portable ref printed); the run failed in checkout (the container-user defect above, since fixed); session closed from the seat.fx-92377966ddb3778af0a9, run 45283728217): handoff worked again; checkout passed; the job reached the composite action's agent-install step ("Install the pinned fleet binary (agent) from the bootstrap pin") and the run concluded failure; the outbox artifact step found no outbox, i.e. the agent never started. The precise install-step error is NOT established — reading it is what the platform check stopped. Next diagnostic step for whoever picks this up (with the go-ahead): read run 45283728217's "Run the exec session" step output around the install step; prime suspects are the bootstrap download/sha256 path inside the container (network egress from the container, the pinned URL, orcurl/sha256sumavailability in the fleet-build image)./tmp/ae-proof.shon the laptop) was still running at the stop: session A's firstexec runblocks until the stream reports the (already passed) lease expiry; sessions B–D will dispatch further runs that should be expected to fail at the same install step, then the script ends on its own. No session is left live beyond its lease; all leases are ≤ 20 min.Flag note: an observation row for this stop is appended to the flag-observations dataset the same day, per the standing empirics practice.
dezren39 commentedon Nov 23, 2026
Design amendment — tiered lease-extension policy (lane ACTIONS-EXEC-3)
Drew's policy, in his words (2026-11-23 ~17:06 CST), recorded before implementation; the implementation below follows this record exactly:
The tiers (defaults are named tunables in
turso_queue::actions_exec)EXT_AUTO_SIZE_CAP_SMAX_EXTENSION_S. A request whose raw ask exceeds it is tier 3 even when it is the session's first extension.EXT_TIER1_MAX_COUNTEXT_TIER2_MAX_COUNTEXT_AUTO_TOTAL_CAP_SEXT_DENY_WINDOW_SEXTENSION_GRACE_SEvaluation happens in
/actions-exec-extend-request, from the session's(ext_count, ext_total_s, raw ask):/actions-exec-extend-decideuses today);ext_state = 'auto-approved'. One notification-only push: a plain PM alert with no needsDrew choice block (the Fleet supervision: unidentified App-identity writer closed bound in-progress epic #9155 — completion guard + detective control needed #9177 plain-alert shape).ext_decide_after = now + EXT_DENY_WINDOW_S. While it pends, the session's hard deadline covers the window —max(lease, decide_after) + EXTENSION_GRACE_S— so the agent is not killed mid-window; the agent enforces the broker-reported deadline from its poll, as today. A deny via/actions-exec-extend-decideends the extension at once (the session ends at its current cap); an approve via the same verb applies it immediately; silence approves at window end, settled lazily by the next verb that touches the session (the agent polls continuously, so in practice the poll settles it) withext_state = 'silence-approved'. Exactly one push per request — the deny-window warning is the push; no second "it approved" push./actions-exec-extend-decideapplies or denies (ext_state = 'approved'/'denied').ext_count/ext_total_sincrement on every approval (auto, silence, manual) and never on a deny, so the tier ladder measures what was actually granted.Push payload (every tier, per Drew's detail requirement)
Session handle (
fx-…) and the session'scontextlink when one was recorded at open (new optional open field below); requesting seat; host repo; workflow + run id + run attempt with a click-through run URL (attempt deep link); the agent's stated reason (already accepted by the verb, now also stored on the row asext_reason); lease state — opened-at, granted lifespan,lease_until,max_until; the ask (+N min); cumulative extensions before → after (count + minutes); the tier; and the tier's consequence of deny / timeout. Tier 2's needsDrew options are [deny, approve now] (deny first — it is the choice that changes the default); tier 3's stay [approve, deny].Alert keys gain the extension ordinal —
actions-exec-ext:<handle>:<n>— so successive extensions on one session no longer dedupe-suppress each other's pushes at the throat; the one-live-request-per-session rule is still enforced by the pending guard, not by the key.Schema (additive, house migration pattern in
turso_queue::core)New
actions_exec_sessionscolumns, added to the DDL of record and landed on existing databases bypragma_table_info-checkedALTER TABLE:ext_count INTEGER NOT NULL DEFAULT 0,ext_total_s INTEGER NOT NULL DEFAULT 0,ext_tier INTEGER,ext_decide_after TEXT,ext_reason TEXT,context TEXT. The open verb accepts an optionalcontextstring (a seat-supplied task/issue link for the session, threaded from a newfleet actions exec start --contextflag); when absent, extension pushes link this issue as the session's home, as v1 did.Named gap (unchanged from v1, stated plainly)
The phone tap → broker write-back is still the PM stack's next phase: tier-2 denies and tier-3 answers land via a seat-run
/actions-exec-extend-decideon Drew's recorded answer, not via a direct phone→broker channel. For tier 2 that means a deny must be relayed before the window closes; the 10-minute window is sized with that relay in mind. The push deep link itself (run URL inneedsDrew.links/ the plain alert body) is wired by this lane — the aggregator already carries links; what does not exist yet is the tap-to-broker answer path.Proof
Unit tests (rusqlite fake-pipeline pattern, named oracles): tier 1 auto-approve moves max/lease and counts; tier 2 approves on silence after the window; tier 2 deny inside the window ends it at the cap; tier 3 stays manual (no settle past grace); oversized raw ask escalates a first extension to tier 3; cumulative cap escalates to tier 3; alert bodies carry the full payload per tier with ordinal keys. The v1 test
extension_request_and_decision_move_the_maxis reworked onto tier-3 requests (an oversized ask), since a plain first request is tier 1 now.dezren39 commentedon Nov 23, 2026
ACTIONS-EXEC-3 — build started. Implementing the tiered lease-extension policy recorded in the design amendment directly above (comment 7116645799). Worktree
~/wt-actions-exec-3on the laptop, branchlane/actions-exec-3-tiers, off origin/main094f977b923. Scope: broker verbs/coordinator decision path + needs-drew payload + fleet client/CLI outcome printing + tests. The halted in-vivo proof (agent-install step) is explicitly not this lane's scope. Primary checkout dirt named and left untouched:.opencode/opencode.jsonc,pm-stack/opencode-claimant/claimant.py,pm-stack/opencode-claimant/test_claimant.py.dezren39 commentedon Nov 24, 2026
AUDIT-7 Lane 5 (DESIGN-REVIEW, #13876) — verdict: sound; correctly subordinated to #13765.
placement_path) when they don't — it never forks fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765's design, so its head is not blocked by the coordinator build.dezren39 commentedon Nov 24, 2026
ACTIONS-EXEC-3 — COMPLETE: tiered lease extensions are merged, published, and deployed
Implements the design amendment recorded above (comment 7116645799) exactly as specified there.
Landed
f56dc7f713efacb3ff5159786fa50a32d0cb5cd8.fleet-static-f56dc7f(sha256145635246a876036f24451a3ddf35c25fda767deb75d8321751fa245c8fe12ef); bootstrap pin PR bootstrap: pin fleet-static-f56dc7f (tiered actions-exec extensions, code#13774) #13869 mergeddf6da50247d7d0722bd2170b283747b2a93d2d82./nix/store/a1krzkp6hnasnfk2ylbadzmqf0f8pk7g-fleet-0.1.0, activated 2026-11-24T00:14:56Z; generation 7 intact as rollback; health ok). Laptop install~/.local/bin/fleetupdated to the same published build (previous binary kept asfleet.bak-20261123-pre13774tiers). The sandbox install moves via the bootstrap pin, per the standing division.Tier defaults (as recorded in the amendment):
EXT_AUTO_SIZE_CAP_S1800 ·EXT_TIER1_MAX_COUNT1 ·EXT_TIER2_MAX_COUNT2 ·EXT_AUTO_TOTAL_CAP_S3600 ·EXT_DENY_WINDOW_S600.Tests: fleet-queue suite 616 passed / 0 failed (incl. the new tier oracles: tier-1 auto-approve, tier-2 silence-approves, tier-2 deny, tier-3 manual gate, size-cap escalation, cumulative-cap escalation, deny-window hard-deadline cover, and the three per-tier alert-body tests); fleet bin + fleet-registry + docs-inventory 141 passed / 0 failed. Local clippy could not run: the laptop's clippy/rustc pair is version-split (1.99.1/1.99.0) and the matched rustup toolchain binaries do not execute in this shell context — main-branch CI is the backstop.
Live verification (production broker, gen 8): session
fx-e64e5bdf0b5a97668450opened broker-side withcontext= this issue's URL (stored and echoed by stream). Extension 1 (600s): tier 1, outcomeauto-approved, counters 1 / 600s. Extension 2 (600s): tier 2, outcomepending-deny-windowwithdecide_after10 minutes out; a decide withapproveabsent (deny) landed inside the window —ext_statedenied, counters unchanged. Session closed. The tier-2 silence path and tier 3 are unit-proven (the silence path needs a real 10-minute window; not waited out live).Push payload — one live gap, precisely: both raises were attempted by the broker and the alert bodies are unit-tested per tier (full detail set + run deep link + ordinal keys), and the same raise path succeeded earlier today (17:08 CST, gen 7). Tonight the PM alerts throat (127.0.0.1:4870) returned HTTP 401 for both raises: the current BWS value of
pm-aggregator.alerts-intake-tokendisagrees with the token the long-running aggregator process (up since 2026-11-22 20:26 CST) expects — confirmed by a direct probe with the by-name-resolved token, also 401. This is a PM-stack/token-side mismatch, not a payload defect; it drops ALL broker-raised pushes (needs-drew included) until fixed. Filed as #13902 (PM alerts throat rejects the current intake token) with the evidence and fix shapes. The standing write-back gap from v1 is unchanged: until the PM stack's answer-write-back phase lands, tier-2 denies / tier-3 answers are executed by a seat running/actions-exec-extend-decide(request shape{handle, approve: bool}) on Drew's recorded answer.Lane ACTIONS-EXEC-3 ends here.
dezren39 commentedon Nov 24, 2026
ACTIONS-EXEC-2-PROOF — install-step diagnosis for run 45283728217 (laptop-local session)
Run: dezren39/fleet
45283728217—fleet-exec/ jobexec session, session handlefx-92377966ddb3778af0a9.Read locally via
gh run view 45283728217 --repo dezren39/fleet --logon this laptop (host amd). No other run's logs read. No code changed in this session.Step's exact error (failing lines only)
Step:
Run the exec session / Install the pinned fleet binary (agent) from the bootstrap pin(
.github/actions/fleet-exec-session,id __self.__run_3):Context: handoff/validate step succeeded (
*** session fx-92377966ddb3778af0a9: lease 600s, max 1200s), checkout step passed, then this step failed in 47 ms. All later steps skipped;Upload session outboxfoundNo files were found with the provided path: /__w/_temp/***-out, confirming the runner-side agent never started. No outbox = agent never ran, consistent with install-step failure.Root cause
The install step assumes the
ghCLI exists in the step's shell, but the job runs inside the containerghcr.io/developing-today/fleet-build:full(fleet-exec.ymlcontainer.image,options: --user root), and that image has nogh. So the very first command of the script fails with exit 127 before anything else runs.(a) What the log proves:
gh: command not found, exit 127, on the generated script's line 5 — i.e. thegh api repos/developing-today/code/contents/scripts/muse/bootstrap.sh ...line.set -euo pipefailstops the script there.install -m 0755, nofleet version. So download URL / asset name, sha256 pin,curl/sha256sumpresence, network egress, and file permissions are all unreached and unproven by this log — the log rules them neither in nor out.gh, but composite-actionrun:steps execute inside the job container, which does not inherit host tools.(b) Hypothesis (not proven by the log):
fleet-build:fullsimply never baked ingh(it is a toolchain/build image, not a runner image). Fix should assume only container-baked tools plus standard coreutils/curl.curlavailability in that image is not proven by this log either — it needs one verification run after the fix.Implementing file(s)
~/git/dezren39-fleet/ dezren39/fleet main:.github/actions/fleet-exec-session/action.ymllines 111–126 (theInstall the pinned fleet binary (agent) from the bootstrap pinstep,if: inputs.agent_ref == ''):.github/workflows/fleet-exec.ymllines 76–83 (container: image: ghcr.io/developing-today/fleet-build:full,options: --user root) — this is what puts the step inside thegh-less container.git log --oneline -5 -- .github/actions/fleet-exec-sessionlocally shows a single commit6839600 2026-11-23 21:23:30 +0000 fleet-exec: live exec session action + workflow (code#13774 slice 2), which predates the run (run started 2026-11-23T22:52:22Z ≈ 16:52 CST). No post-run change to this action; theghdependency was in the code the run executed.Recommended fix (file + change)
This is a code bug, not an environment/runner cause outside our code — the action must not call
ghinside the container. Minimal fix in.github/actions/fleet-exec-session/action.yml, install step: replace thegh api ... --jq ... | base64 -dfetch withcurlagainst the GitHub contents API (same auth, same pinned path), e.g.:Alternatives if
curlproves missing infleet-build:full: bakegh(orcurl) into the image, or fetch the bootstrap viaactions/checkoutofdeveloping-today/codeat the pinned ref instead of an API call. Thecurlform keeps the verified-distribution route (same pinnedscripts/muse/bootstrap.sh+ its internal SHA-256 pin) while removing the host-tool assumption. Verify with onefleet actions execlive run and confirm the step reachesfleet version.dezren39 commentedon Nov 24, 2026
ACTIONS-EXEC-2-PROOF — install-step fix landed
Diagnosis (comment 7120136102):
gh: command not found, exit 127 — the install step runs inside thefleet-build:fullcontainer, which bakes incurlbut not theghCLI, so the runner-side agent never started.Fix: dezren39/fleet PR #114 — dezren39/fleet#114 (fetch the bootstrap script with curl, not gh) — merged
2c84b5b2b32b3f90e13d81d9d50d9d1dda8bbf01. One file:.github/actions/fleet-exec-session/action.yml. Thebootstrap.shfetch now usescurl -fsSLwith the raw accept header and the sameGH_TOKEN; the pinned script and its internal SHA-256 verification are unchanged.curlpresence verified fromcontainers/fleet-build/Containerfile(the base layer's apt install includescurl; thefulltarget builds FROM base). No fleet binary change, so no fleet-static publish / pin / broker generation flip is involved — the composite action is consumed from main at dispatch.The live proof battery (exec, egress, renewal, expiry, extension tiers) follows on this thread.
dezren39 commentedon Nov 24, 2026
ACTIONS-EXEC-2-PROOF — flag note (monitoring read)
At ~20:35 CST a monitoring read in the proof lane's own Muse session tripped the platform execution-risk check: a
pgrep -afverification over the laptop-ssh wrapper echoed the battery's launch command — including the base64 bodies of the lane's own proof scripts — into the session, and the check attached to that result. Per the lane's constraints, that step stops here: no further reads that echo script bodies or full command lines; monitoring continues through the battery's result logs only (handles, verdicts, session IO), which is the evidence channel the battery was designed around.The battery itself is unaffected — it was launched through the approved laptop route before the trip and runs laptop-side: session A (
fx-8733da276baa5579c62d, run 45313317648) is dispatched with the curl fix in place, and broker-side session E has tier 1auto-approvedand tier 2 in its deny window (silence path under test). An observation row is appended to the flag-observations dataset.