Skip to content

fleet actions exec: live short-lived exec sessions inside Actions runners, coordinator-handed-off #13774

Backlog

Description

@dezren39

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)

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.

  1. Action — dezren39/fleet .github/actions/fleet-exec-session (composite, fleet-command conventions): sets up the pinned fleet binary, runs fleet actions agent for the session, ships the egress helper on PATH.
  2. 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).
  3. Subcommand — new actions domain in pkgs/fleet (fleet-registry + verbs.md in the same change): fleet actions exec group in the fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 family shape — --timeout required 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, state live.
  • /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 (source fleet-actions-exec, key actions-exec-ext:<handle>, options approve/deny, links to the run + this issue). Session enters extension-pending with 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

  1. This issue: premise + survey + design.
  2. 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).
  3. 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).
  4. Runner agent (fleet actions agent): OIDC register, poll/exec/stream loop, lease enforcement, egress helper.
  5. Subcommand (fleet actions exec group): start/run/attach/watch/renew/extend/close + coordinator composition + singular fallback naming.
  6. PM push wiring for emergency extension (needs-drew throat emission + decide verb).
  7. 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

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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:

    • Slice 2 (Action + workflow) is already landed on dezren39/fleet main (PR Update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [SECURITY] - autoclosed #112): .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 expects fleet actions agent --handle --broker-url --lease-seconds --max-seconds --workdir --outbox [--hide-logs], gates on an actions capability in fleet capabilities, and expects the agent to provide fleet-exec-put on the session PATH with FLEET_EXEC_OUTBOX + FLEET_EXEC_R2_* in the environment.
    • Remaining: broker verbs module + DDL + OIDC gate carve-out (slice 3 of the issue's list), the runner agent + fleet actions exec subcommand family + registry/verbs wiring, the needs-drew emergency-extension wiring, and the live proof.

    Build notes recorded for the slices that follow:

    Next slice boundary: broker verbs + tests landed in the code worktree.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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 (branch lane/actions-exec-13774), not yet PR'd:

    • New module 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 for actions_exec_sessions / actions_exec_commands / actions_exec_io rides the broker SCHEMA array beside placement_sessions; state transitions use the house conditional-UPDATE shape.
    • OIDC: the agent verbs verify the job's GitHub OIDC token — RS256 against GitHub's JWKS (hand-rolled DER + ring, no new heavy deps; JWKS cached 10 min with one forced refetch on failure for key rotation), issuer + expiry checked, and the repository / job_workflow_ref / run_id / run_attempt claims bound to the session row. The aud claim is deliberately not pinned in v1 (GitHub's default audience is the repo owner string; recorded here as a known choice).
    • Broker gate carve-out (queue_broker.rs): the five agent paths accept a JWT-shaped X-Agent-Token in place of the broker token (body-size cap still applies); the broker strips any client-supplied _oidc_jwt from 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.
    • Extension alert: /actions-exec-extend-request sets extension-pending with a 300 s decision grace past the lease; a post-dispatch hook in the broker raises the needs-drew alert via needs_drew::build_extension_alert_body — source fleet-actions-exec, key actions-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 /block pattern.
    • Tests: 7 new module tests run the verbs against a rusqlite-backed fake of the Turso pipeline endpoint (real SQL semantics — the conditional UPDATEs are exercised, not mimicked), including a full OIDC flow with a throwaway RSA keypair's signed JWT (register → poll → io → result, tampered-token and wrong-repo rejections, expiry-on-poll). One real bug found and fixed by the tests: 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 actions family: 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 door exec.security.cab), then the deploy + live proof.

  4. added a commit that references this issue on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Slices 3+4 landed and merged — PR #13800 (ACTIONS-EXEC-2)

    PR #13800 merged (5e4107076821) — slices 3+4 of the design:

    • fleet-queue client (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 actions family (crates/fleet/src/actions.rs, registry Capability::Actions, full build only):
      • exec start — --timeout required by construction (no default); --max-lifespan default 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 names extension_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-put installed on the session PATH.
      • put — outbox copy (the fleet-exec-out artifact leg) + SigV4 R2 PUT when the session carries credentials; values never printed.
    • Docs in the same change (house rule): README inventory, docs/verbs.md section, book chapter book/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.

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Slice 5 progress — door live, R2 provisioned, deploy in flight (ACTIONS-EXEC-2)

    • Public door configured: the sandbox-link tunnel (722f72ba-…, remotely managed) is now at config version 6 with a new ingress rule — exec.security.cab with 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 CNAME exec.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.
    • Door verified from outside (from the Muse sandbox, a genuinely external vantage): POST https://exec.security.cab/actions-exec-poll with no token → the broker's own 401 {"error":"unauthorized"} (the request reaches the broker through the door); POST /claim and GET / 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.
    • R2 leg provisioned: bucket fleet-exec created under the estate's general R2 credentials (by name cloudflare.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 into gh secret set, never printed. The Action's empty-secret skip logic is unaffected for repos without them.
    • Deploy in flight: scripts/muse/publish-fleet.sh is building the new fleet-static from origin/main on the laptop (the merge 5e41070 is 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.
  7. added a commit that references this issue on Nov 23, 2026
  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Deploy status — publish + pin landed; broker flip in flight (ACTIONS-EXEC-2)

    • Published: fleet-static-5e41070 (sha256 3bf8f825…) — the static build of the fleet actions exec: live short-lived exec sessions inside Actions runners, coordinator-handed-off #13774 merge commit, via scripts/muse/publish-fleet.sh. Verified first-hand: the downloaded asset's capabilities shows the actions domain available and fleet actions --help renders.
    • Bootstrap pin: PR #13817 merged (84aab4fcc77a) — scripts/muse/bootstrap.sh now pins fleet-static-5e41070 + its sha256, so the Action's default install path (no agent_ref) delivers an agent whose capabilities carry "actions".
    • Broker flip: deploy --scope user queue-broker to generation 7 (package = the fleet build at current main, health check 100.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.
    • The fleet placement: central coordinator for compile dispatch — atomic slots, true load view, global budgets, cross-seat queueing #13765 lane (task 21517, currently lane code-h) is building only — its packet is do-not-merge, so this flip carries the current main only; a later flip picks its verbs up when they land.

    Once generation 7 is live, the proof battery runs from the published static binary as the seat: session A (start → handoff → exec → fleet-exec-put to 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.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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):

    • Slices 1+3+4 merged: PR fleet actions exec: broker verbs, seat family, runner agent (#13774) #13800 (5e4107076821); full test suites green (fleet-queue 623, fleet bin 126, registry incl. docs inventory).
    • Slice 2 fix merged: dezren39/fleet PR Update module github.com/jackc/pgx/v5 to v5.5.4 [SECURITY] - autoclosed #113 (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 to USER vscode, uid 1000, which cannot write the runner _temp file-command dir).
    • Publish + pin: fleet-static-5e41070 (sha256 3bf8f825…) published; bootstrap pin PR bootstrap: pin fleet-static-5e41070 (#13774 actions exec build) #13817 merged (84aab4fcc77a). The static binary's capabilities shows the actions domain available.
    • Broker: queue-broker flipped to generation 7 via deploy --scope user --profile-base ~/.local/share/deploy/profiles queue-broker (health check passed; generation 6 intact as rollback). Verbs verified live seat-side (watch on 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-base must name the live one.
    • Door: exec.security.cab live (tunnel config v6, agent-verb paths only, DNS CNAME created), verified from outside.
    • R2: bucket fleet-exec created; the four FLEET_EXEC_R2_* secrets set on dezren39/fleet.

    Where the proof stands:

    • Session A test #1 (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.
    • Session A Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 (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, or curl/sha256sum availability in the fleet-build image).
    • The battery script (/tmp/ae-proof.sh on the laptop) was still running at the stop: session A's first exec run blocks 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.
    • Not yet proven: exec on the runner, egress to artifact + R2, renewal, expiry-at-cap behaviour in vivo, extension flow in vivo, and the workflow-log audit. The broker-side semantics for all of these are unit-proven against the rusqlite-backed pipeline fake (slice 1 record).

    Flag note: an observation row for this stop is appended to the flag-observations dataset the same day, per the standing empirics practice.

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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:

    • "Up to a certain extension, or the first extension, can be approved automatically with just a notification."
    • "Then maybe one that, if I don't respond, another push notification will approve, but I have time to deny."
    • "After that, I would have to manually approve, or if it's over a certain size or something."
    • "Make sure the push notification has enough detail, and I can click into it to see the run, where it's coming from, what the session name is, and other important details."

    The tiers (defaults are named tunables in turso_queue::actions_exec)

    Tunable Default Meaning
    EXT_AUTO_SIZE_CAP_S 1800 (30 min) Largest single ask the auto tiers may grant — equal to the existing per-approval bound MAX_EXTENSION_S. A request whose raw ask exceeds it is tier 3 even when it is the session's first extension.
    EXT_TIER1_MAX_COUNT 1 Extension #1 of a session is tier 1.
    EXT_TIER2_MAX_COUNT 2 Extension #2 is tier 2 (subject to the caps); #3 and beyond are tier 3.
    EXT_AUTO_TOTAL_CAP_S 3600 (60 min) Cumulative approved extension seconds the auto tiers may grant over a session's life; a request that would push the total past this is tier 3. (With the current size/count caps the count cap binds first; the total cap is an independent guard so a future retune of one cap cannot silently widen the auto surface.)
    EXT_DENY_WINDOW_S 600 (10 min) Tier 2's deny window: silence at window end approves.
    EXTENSION_GRACE_S 300 (unchanged) Tier 3's decision grace past the lease, as in v1.

    Evaluation happens in /actions-exec-extend-request, from the session's (ext_count, ext_total_s, raw ask):

    • Tier 1 — AUTO + NOTIFY. The extension is applied inside the request itself (the same conditional-UPDATE approval shape /actions-exec-extend-decide uses 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).
    • Tier 2 — NOTIFY + DENY WINDOW. The request pends with 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-decide ends 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) with ext_state = 'silence-approved'. Exactly one push per request — the deny-window warning is the push; no second "it approved" push.
    • Tier 3 — MANUAL ONLY. The v1 flow, unchanged in shape: pending + needs-drew approve/deny push + /actions-exec-extend-decide applies or denies (ext_state = 'approved' / 'denied').

    ext_count / ext_total_s increment 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's context link 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 as ext_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_sessions columns, added to the DDL of record and landed on existing databases by pragma_table_info-checked ALTER 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 optional context string (a seat-supplied task/issue link for the session, threaded from a new fleet actions exec start --context flag); 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-decide on 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 in needsDrew.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_max is reworked onto tier-3 requests (an oversized ask), since a plain first request is tier 1 now.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    ACTIONS-EXEC-3 — build started. Implementing the tiered lease-extension policy recorded in the design amendment directly above (comment 7116645799). Worktree ~/wt-actions-exec-3 on the laptop, branch lane/actions-exec-3-tiers, off origin/main 094f977b923. 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.

  12. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    AUDIT-7 Lane 5 (DESIGN-REVIEW, #13876) — verdict: sound; correctly subordinated to #13765.

  13. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    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

    • PR fleet actions exec: tiered lease-extension policy (code#13774) #13854 (the tiered extension policy for fleet Actions exec) — merged f56dc7f713efacb3ff5159786fa50a32d0cb5cd8.
    • Published fleet-static-f56dc7f (sha256 145635246a876036f24451a3ddf35c25fda767deb75d8321751fa245c8fe12ef); bootstrap pin PR bootstrap: pin fleet-static-f56dc7f (tiered actions-exec extensions, code#13774) #13869 merged df6da50247d7d0722bd2170b283747b2a93d2d82.
    • Queue broker flipped to generation 8 (artifact /nix/store/a1krzkp6hnasnfk2ylbadzmqf0f8pk7g-fleet-0.1.0, activated 2026-11-24T00:14:56Z; generation 7 intact as rollback; health ok). Laptop install ~/.local/bin/fleet updated to the same published build (previous binary kept as fleet.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_S 1800 · EXT_TIER1_MAX_COUNT 1 · EXT_TIER2_MAX_COUNT 2 · EXT_AUTO_TOTAL_CAP_S 3600 · EXT_DENY_WINDOW_S 600.

    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-e64e5bdf0b5a97668450 opened broker-side with context = this issue's URL (stored and echoed by stream). Extension 1 (600s): tier 1, outcome auto-approved, counters 1 / 600s. Extension 2 (600s): tier 2, outcome pending-deny-window with decide_after 10 minutes out; a decide with approve absent (deny) landed inside the window — ext_state denied, 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-token disagrees 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.

  14. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    ACTIONS-EXEC-2-PROOF — install-step diagnosis for run 45283728217 (laptop-local session)

    Run: dezren39/fleet 45283728217 — fleet-exec / job exec session, session handle fx-92377966ddb3778af0a9.
    Read locally via gh run view 45283728217 --repo dezren39/fleet --log on 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):

    Run the exec session  2026-11-23T22:53:52.7370166Z /__w/_temp/8f428dc0-a6b9-4890-a17c-1017abaffe93.sh: line 5: gh: command not found
    Run the exec session  2026-11-23T22:53:52.7417039Z ##[error]Process completed with exit code 127.
    Run the exec session  2026-11-23T22:53:52.7423291Z ##[end-action id=__self.__run_3;outcome=failure;conclusion=failure;duration_ms=47]
    

    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 outbox found No 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 gh CLI exists in the step's shell, but the job runs inside the container ghcr.io/developing-today/fleet-build:full (fleet-exec.yml container.image, options: --user root), and that image has no gh. So the very first command of the script fails with exit 127 before anything else runs.

    (a) What the log proves:

    • The failure is gh: command not found, exit 127, on the generated script's line 5 — i.e. the gh api repos/developing-today/code/contents/scripts/muse/bootstrap.sh ... line. set -euo pipefail stops the script there.
    • Nothing after that line ever executed: no bootstrap download, no SHA-256 check, no install -m 0755, no fleet version. So download URL / asset name, sha256 pin, curl/sha256sum presence, network egress, and file permissions are all unreached and unproven by this log — the log rules them neither in nor out.
    • The missing tool is container-scoped: the host runner image (ubuntu-24.04) ships gh, but composite-action run: steps execute inside the job container, which does not inherit host tools.

    (b) Hypothesis (not proven by the log):

    • fleet-build:full simply never baked in gh (it is a toolchain/build image, not a runner image). Fix should assume only container-baked tools plus standard coreutils/curl. curl availability 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.yml lines 111–126 (the Install the pinned fleet binary (agent) from the bootstrap pin step, if: inputs.agent_ref == ''):
        - name: Install the pinned fleet binary (agent) from the bootstrap pin
          if: ${{ inputs.agent_ref == '' }}
          shell: bash
          env:
            GH_TOKEN: ${{ inputs.checkout_token }}
          run: |
            set -euo pipefail
            # The bootstrap script pins the release URL + SHA-256 and installs
            # to ~/tools/fleet; it is the estate's verified distribution route.
            mkdir -p "$RUNNER_TEMP/fleet-bootstrap"
            gh api repos/developing-today/code/contents/scripts/muse/bootstrap.sh \
              --jq '.content' | base64 -d > "$RUNNER_TEMP/fleet-bootstrap/bootstrap.sh"
            bash "$RUNNER_TEMP/fleet-bootstrap/bootstrap.sh"
    • Caller: .github/workflows/fleet-exec.yml lines 76–83 (container: image: ghcr.io/developing-today/fleet-build:full, options: --user root) — this is what puts the step inside the gh-less container.
    • git log --oneline -5 -- .github/actions/fleet-exec-session locally shows a single commit 6839600 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; the gh dependency 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 gh inside the container. Minimal fix in .github/actions/fleet-exec-session/action.yml, install step: replace the gh api ... --jq ... | base64 -d fetch with curl against the GitHub contents API (same auth, same pinned path), e.g.:

            mkdir -p "$RUNNER_TEMP/fleet-bootstrap"
            curl -fsSL \
              -H "Authorization: Bearer $GH_TOKEN" \
              -H "Accept: application/vnd.github.raw" \
              https://api.github.com/repos/developing-today/code/contents/scripts/muse/bootstrap.sh \
              -o "$RUNNER_TEMP/fleet-bootstrap/bootstrap.sh"
            bash "$RUNNER_TEMP/fleet-bootstrap/bootstrap.sh"

    Alternatives if curl proves missing in fleet-build:full: bake gh (or curl) into the image, or fetch the bootstrap via actions/checkout of developing-today/code at the pinned ref instead of an API call. The curl form keeps the verified-distribution route (same pinned scripts/muse/bootstrap.sh + its internal SHA-256 pin) while removing the host-tool assumption. Verify with one fleet actions exec live run and confirm the step reaches fleet version.

  15. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    ACTIONS-EXEC-2-PROOF — install-step fix landed

    Diagnosis (comment 7120136102): gh: command not found, exit 127 — the install step runs inside the fleet-build:full container, which bakes in curl but not the gh CLI, 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. The bootstrap.sh fetch now uses curl -fsSL with the raw accept header and the same GH_TOKEN; the pinned script and its internal SHA-256 verification are unchanged. curl presence verified from containers/fleet-build/Containerfile (the base layer's apt install includes curl; the full target 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.

  16. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    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 -af verification 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 1 auto-approved and tier 2 in its deny window (silence path under test). An observation row is appended to the flag-observations dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions