GeezerVison is showing github.com — fleet agent: put every lane on the intake ladder (follow-ups to #12227) · Issue #12236 · developing-today/code
fleet agent: put every lane on the intake ladder (follow-ups to #12227) #12236DescriptionWhat exists
fleet agent and fleet shell landed in #12227: any kind of agent enrols with one command, and fleet agent next returns one task from the highest intake rung that has one (a pushed command, the queue, the host's shortlist, GitHub priority).
What is left, in order
- Every scheduled lane uses it. The Muse, OpenCode and OpenChamber lane prompts call
fleet agent next in place of their hand-written mailbox and claim steps. Register any schedule change in doc/fleet-schedule-registry.md in the same PR.
- Wake hook to work. A wake on
agent:<name> starts a run that calls fleet agent next, so a pushed command starts work without waiting for the next scheduled run.
- One bootstrap per kind. A script per seat kind (Muse sandbox, codespace, laptop service, plain Linux box) that installs the binary, enrols, and runs the three-line loop.
scripts/muse/bootstrap.sh is the model.
Enrolment checks the token, not only the bridge. Done in fix(fleet): nine review findings in fleet agent and fleet shell #12243: doctor and a dry-run enrolment read the mailbox as the agent.
Trackers are not handed out. Done in feat(fleet): add the agent front door, the person-wait guard and user dispatch #12227: the priority rung skips kind/tracker issues and hands items.
fleet shell --target actions. Send a command to a GitHub Actions surface through placement and wait for the result, so the three targets share one verb.
Done when
- A week of lane runs shows every run's task coming from
fleet agent next, with the rung recorded.
- A command sent with
fleet bridge send --to agent:<name> --command ... is being worked on within two minutes on a seat that can be woken.
- A new agent of each kind goes from nothing to its first task with one script.
Filed from the 2026-11-21 priorities review (plan). Not queued at filing: the filing session has no route to the queue broker, so the coverage reconciliation imports it. It is ranked by its labels for fleet agent next.
Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
Generated by Claude Code Activityadded nextOrg Project gate: queued next — orchestrator adds to the board effort/mMedium: expected under 1 day of work app/fleetpkgs/fleet multicall binary + platform crates on Nov 21, 2026developing-today commented on Nov 21, 2026 dezren39 commented on Nov 22, 2026 Runtime evidence from the laptop lane on 2026-11-22: fleet agent next --agent shed could not read the bridge inbox within 45 seconds; the queue claim then failed with unknown lane_id shed and switched to the GitHub/shortlist fallback. The fallback completed successfully, but this lane did not use the bridge or shared queue. This is a concrete check for the intake-ladder follow-up: make sure the local lane identity is enrolled in the queue and bridge before relying on those rungs. dezren39 commented on Nov 22, 2026 Fixed the queue-lane failure in PR #12429. fleet agent next --agent shed now maps a standalone agent name to a queue-compatible, unfiltered any-* lane containing a stable 128-bit alphabetic digest of the full worker name; this avoids collisions such as muse-3 and muse-4. Existing agent names that already match a known lane ID keep that lane. The lane is carried into follow-up next commands. Focused verification: cargo test --manifest-path pkgs/fleet/Cargo.toml -p fleet-agent — 67 passed.
Drew clarified on 2026-11-22: queue-item/session bindings may exclude others only while that specific agent is actively working the item. Once inactive, any agent should be able to resume, unblock, or implement it, except for explicit special cases. I’ll apply this rule to the next queue lifecycle slice and record any semantic change in the decision docs.
The separate 45-second bridge inbox timeout remains a distinct transport issue; PR #12429 fixes the queue claim rejection only. dezren39 commented on Nov 23, 2026 Item 1 slice landed as PR #12745 (branch xaltha/12236-lane-prompts): the lane-run doc (doc/agents/fleet-command-channel.md) now starts every run with fleet agent next instead of hand-written fleet bridge hello / inbox --take steps; the manual steps stay as the fallback for seats whose binary predates fleet agent. In-repo lane-run docs prescribing the manual steps first: 1 -> 0 (onboarding, the next-work skill and the Muse handoff prompt already prescribed fleet agent next).
Test: new scripts/tests/test_lane_prompts_use_agent_next.py, 4/4 pass locally (python3 -m unittest scripts.tests.test_lane_prompts_use_agent_next); the same tests fail 2/4 against the pre-change doc. No local compile; CI is the first full check. No schedule created/changed/retired, so no registry row changes in this PR.
Remaining on this issue: item 2 (wake hook), item 3 (one bootstrap per kind), item 6 (fleet shell --target actions). dezren39 commented on Nov 23, 2026
Agent note · claimed (grok, 2026-11-22 22:57:31 CST)
- Agent:
grok (kind grok, groups grok)
- Timestamp: 2026-11-22 22:57:31 CST
- Found via:
fleet agent next (shortlist rung, after standing down on pre-triaged/claimed epics epic(quota-plane): Stage 2 — 15-minute quota gathering in the PM stack, token adapters, automated pool decisions #1149, epic(openchamber): session dispatch + babysitting — OpenChamber as the fleet's workhorse executor #1234, epic(fleet): pool & routing intelligence — lanes everywhere, live dispatch + babysitting, quota stewardship, reviewer oversight, AA + measured-speed model #1334)
- Slice claimed: Item 3 ("One bootstrap per kind") — add
scripts/fleet/bootstrap.sh plus per-seat-kind entrypoints (bootstrap-codespace.sh, bootstrap-laptop-service.sh, bootstrap-linux.sh) alongside scripts/muse/bootstrap.sh, installing the pinned fleet binary (sha256-verified), running fleet agent enroll + doctor, and running/printing the three-line fleet agent next loop, with strict #3352 argument parsing and automated tests.
- Collision check: Fresh-read fleet agent: put every lane on the intake ladder (follow-ups to #12227) #12236 + open PRs: PR docs(fleet): lane runs start with fleet agent next, manual mailbox steps fallback only (#12236) #12745 covers Item 1 only; Items 2, 3, 6 are unclaimed.
dezren39 commented on Nov 23, 2026 Shortlist refill #6 — Lane VO (archer), 2026-11-23 ~06:40 CST. 0 → 8/8.
Served as a refill-shortlist task from fleet agent next. The stock shortlist fill added 4 ranked candidates (code#3399, #3400, #3404, #3810); all four were handed out to other lanes before I could audit them, and on audit none was startable anyway: #3399 is gated on #3403's live evidence run, #3400 carries queue/blocked, #3404 depends on #3399/#3400, and #3810's line landed a slice today (Lane QN, PR #13212). I cleared and hand-added 8 verified entries instead:
- code#13257 — C4.1 complete-downtime window prediction (fresh, unclaimed, C4 foundation)
- code#13258 — C4.2 reset-duration predictions as ranges (fresh, unclaimed)
- code#13260 — C4.4 new model / plan arrival predictions (fresh, unclaimed)
- code#13259 — C4.3 day-type and spike-day adjustments (first step = the startable data re-measure)
- code#13261 — C4.5 forecast push alerts (S5 alerts-ledger precedent; plumbing startable)
- code#13262 — C4.6 downtime-window demonstration against the known Sunday-evening wall set (recorded-data verification)
- code#4767 — Phase 4 FileOps audit inventory (unblocked; no claim since the 2026-11-04 handoff)
- code#10662 — id v4 step 1: registry + listing record for hosted agent programs (triage-verified unblocked)
Exclusions honored: #1658 NOT re-added (Drew's standing stop), #12228 NOT re-added (soak-gated to 2026-11-29), all 51 flag holds skipped, plus freshly claimed items (#13250 → Lane VF, #13043 → xaltha, #13238's sibling #13254 → Lane VQ). code#12353 was refused by the shortlist tool as already handed out in the last two hours, so it is in flight elsewhere and was not forced.
Noted during the sweep: code#13254 went FLAG-HELD minutes after Lane VQ claimed it (execution-risk check; nothing modified) — it joins the hold list awaiting Drew's item-specific go-ahead. code#13238 is now CLOSED (PR #13253 merged). code#12134 and code#13199 were closed by Lanes VH/VM during this run. dezren39 commented on Nov 24, 2026
Second-pass triage (task 22147, lane code-i, 2026-11-24): items 1/3/6 verified landed (PRs #12745, #12916, #13020; --target actions flag present in this build); items 4/5 already struck through. Sole remainder is item 2 (wake on agent: starts a run calling fleet agent next) — no merged PR, no wake-hook code under pkgs/fleet/. Routed as triage task 22583 (dispatch 4c71d8766713f2c0) to verify fresh, size the build, and route the implementation packet. dezren39 commented on Nov 24, 2026
Correction to my previous note: the item-2 follow-on is queue task 22710 (not 22583 — that number was cited before the broker accepted the filing; the first attempt was refused while triage 22147 was still open, then filed as a deliberate parallel after 22147 completed). Task 22147 is done; 22710 is queued. dezren39 commented on Nov 24, 2026 agent-note:v1
task: 22704
issue: #12236
lane: oc-code-08
worker: repo-worker-code
origin: openchamber-scheduled-lane
state: done
stage: claimed -> verified -> complete
Triage pass 2 (fresh 2026-11-24): the issue is in progress, not unrouted. Merged so far: #12916 (per-seat-kind bootstrap), #12745 (lane runs start with fleet agent next), #13020 (fleet shell --target actions), #12429 (queue-compatible default lane). Remaining follow-on is queue task 22710, already queued. No new packet needed. Leaving the issue open. dezren39 commented on Nov 24, 2026 agent-note:v1
task: 22710
lane: oc-code-08
worker: repo-worker-code
state: done
stage: claimed -> verified -> complete
Triage of item 2 (wake hook: wake on agent: starts a run calling fleet agent next), fresh 2026-11-24: not implemented. No merged PR, and no wake-hook code under pkgs/fleet/. It is the sole remaining build item on #12236. Implementation packet still needed; not filed by this pass. Issue stays open. dezren39 commented on Nov 25, 2026
Decided: Route agent:<name> wake hooks to an authenticated pm-dispatch endpoint that starts one OpenCode session with a fixed prompt to run fleet agent next --agent <name>.
Why: pkgs/message-bridge/worker/src/wake.js already sends a webhook for each configured agent address, and pm-dispatch is the laptop's authenticated session launcher. Its /v1/sessions endpoint also creates a separate issue and queue task; a wake should start the agent session and let fleet agent next claim the actual work from the shared queue.
Undo: Remove the wake endpoint and its bridge setup guidance. Queue claim and hold rules stay as they are.
By: agent-next-20-local dezren39 commented on Nov 25, 2026 Progress: opened PR #15016 for the authenticated /v1/agent-wake vertical slice. It accepts a valid Message Bridge message.created event for agent:<name>, starts one OpenCode session with a fixed fleet agent next --agent <name> prompt, and rejects channel or malformed addresses without creating a session.
Fleet run developing-today-forks/fleet#45589377279 passed the focused wake tests. Run dezren39/fleet#45594528665 passed bun run typecheck and bun test test/server.test.ts; the attempted root bun run check:changed command is not defined in this checkout, so that gate did not run.
After this PR, a configured Message Bridge wake on agent:<name> will have an authenticated dispatch endpoint that starts an intake session; the next slice should verify the live bridge-to-session path reaches the addressed agent within two minutes. developing-today-fleet commented on Nov 25, 2026 agent-note:v1 — task 23787 claimed by lane IW-328 (worker oc-code-07); PR-not-merged disposition, parked on pr_merged.
Fresh verification at claim time (2026-11-25 ~11:38Z):
Disposition: task 23787 is parked with ready_condition pr_merged on #15016, plus a timed recheck (not_before 2026-11-25T23:40:00Z) in case the merge event is missed.
Wake condition (duplicated in the park reason and the task's progress.next): when PR #15016 merges, run the live acceptance — send a configured Message Bridge wake for agent:, confirm one session for that agent starts within two minutes, confirm the started session runs fleet agent next and records its intake rung, and post the elapsed time + rung here. Keep #12236 open until that acceptance passes or a concrete blocker is recorded. dezren39 commented on Nov 26, 2026 agent-note:v1 — shepherd task 24013 (lane WQ, worker archer)
PR #15016 ("dispatch: start Fleet agents from bridge wake hooks") is now MERGED — merge commit 5626f1f2756b2c2ef217ecf07a1b4614f993cab7, 2026-11-26T15:10:54Z, verified mergeable/clean on exact head e5322c29cff6 with prior typecheck + server-test verification recorded on the PR. Full evidence is on PR #15016.
This issue stays open as intended ("Part of", no closing keyword): the remaining step is the live bridge-wake acceptance already captured by task 23787, which was parked on pr_merged for #15016 and is now unblocked. developing-today-fleet commented on Nov 26, 2026 agent-note:v1
task: 23787
lane: oc-code-04
worker: repo-worker-code
state: blocked-live-acceptance
Post-merge verification: PR #15016 is MERGED (2026-11-26T15:10:54Z). The live bridge-to-session acceptance was not attempted from this lane because its required laptop runtime is unreachable: fleet agent doctor --agent oc-code-04 reports shell unavailable (laptop-agent broker connection refused; Cloudflare/tailnet transport also unavailable), and fleet shell targets reports laptop and Codespace unreachable. This prevents verifying the laptop-hosted pm-dispatch deployment and configured wake URL/token, then timing a real wake through fleet agent next.
Concrete blocker: restore a laptop route to this lane (or provide an available seat with laptop access) and confirm pm-dispatch plus the Message Bridge hook URL/bearer configuration are deployed. #12236 remains open; the live acceptance is still outstanding. Task 23787 is parked for a timed recheck. dezren39 commented on Nov 27, 2026 agent-note:v1 — task 23787, lane 1952-I (worker archer), state: blocked-live-acceptance (bridge-side wake hook not evidenced firing)
Live acceptance attempted fresh 2026-11-27 after PR #15016 merged (merge commit 5626f1f, 2026-11-26T15:10:54Z). This seat reaches the laptop (fleet agent doctor: all legs ok; fleet shell targets: laptop reachable), so the laptop-route blocker recorded by lane oc-code-04 at 22:23Z does not apply here.
Verified endpoint side (all fresh):
- pm-dispatch.service is active on the laptop, running the current nix build (gqrna06z, restarted 2026-11-27T00:58:10Z, after the PR merged); its deployed server.ts contains the /v1/agent-wake route.
- GET /health on pm-dispatch (100.99.113.103:4879) returns ok; unauthenticated POST /v1/agent-wake returns 401 — the authenticated endpoint is live.
- Message Bridge is healthy/configured (fleet bridge health ok).
Wake probe: bridge message id 263 to agent:agent-next-22-local delivered at 2026-11-27T02:08:57.911Z (batch 1zayhAmzq2dFdou6). Observed for over 2 minutes (to ~02:15Z): NO wake session started — no new OpenCode session/process for the addressed agent attributable to the wake, pm-dispatch worktree-registry.json unchanged, no pm-dispatch or pm-tunnel journal entries in the window. (The agent-next-22-local codex lane heartbeating queue task 25014 at 02:11:27Z is a pre-existing persistent lane, not a wake-spawned session.)
Concrete blocker: the bridge-side wake hook (message-bridge worker wake configuration for agent: addresses — hook URL + bearer toward pm-dispatch /v1/agent-wake) is not evidenced firing. Endpoint is deployed and authenticated; the missing slice is verifying/configuring the bridge worker's wake hook so a message.created for agent: actually POSTs to pm-dispatch. #12236 stays open; task 23787 is parked with that ready condition plus a timed recheck. developing-today-fleet commented on Nov 27, 2026 agent-note:v1 — task 23787, lane oc-code-07: LIVE ACCEPTANCE PASSES.
End-to-end wake→session→intake verified fresh 2026-11-27 ~14:27Z, after PR #15016 (merge 5626f1f, 2026-11-26T15:10:54Z):
- Endpoint: pm-dispatch live on laptop (nix build 2wny9rsrrsa3); POST /v1/agent-wake unauthenticated → 401 vs 404 on a nonsense path, so the route exists; reachable publicly via https://dispatch.security.cab (tunnel amd-6-pm-stack).
- Bridge state before test: GET /api//wake-hooks → {"hooks":[]} — zero hooks configured, confirming the earlier blocker (no hook) rather than a broken endpoint.
- Bounded live test: set a TEMPORARY hook agent:wake-verify-07 → https://dispatch.security.cab/v1/agent-wake (bearer = dispatch token), sent bridge message id 276 to that address at ~14:27:10Z, then REMOVED the hook ({"removed":true}, hooks list empty again).
- Result: OpenCode session ses_e5de298ca59ffeOzQAmZ3nx7Ow titled "Fleet wake: wake-verify-07" created 2026-11-27T14:27:12.953Z — wake-to-session in ~3 seconds, inside the 2-minute bar.
- The session ran
fleet agent next --agent wake-verify-07, got rung=shortlist / issue fleet-laptop-agent: route the Python client through the deployed binary #16088 (fleet-laptop-agent: route the Python client through the deployed binary), and began working that packet. Intake rung recorded.
- Prior blocker (bridge-side wake hook not evidenced firing) is resolved as a configuration state, not a code defect: with a hook set, the fire path works end to end. Standing caveat for rollout: production lanes still need their hooks set (owner/console surface per Console surface for bridge wake-hook management (follow-up to #14378) #14544); the fleet binary on the laptop predates
fleet bridge wake-hooks, so hook management currently needs the worker API or a newer fleet build.
Acceptance criteria: PR merged ✓, wake starts session <2min ✓, session runs fleet agent next ✓. #12236 may close on this criterion (this note is the record). developing-today-fleet commented on Nov 27, 2026 agent-note:v1 · oc-code-07 state=completed task=23787
Live wake acceptance verified
After PR #15016 (merge commit 5626f1f, 2026-11-26T15:10:54Z), exercised the bridge-to-session wake path:
- Endpoint: pm-dispatch POST /v1/agent-wake authenticated (401 unauthenticated); reachable publicly via dispatch.security.cab tunnel (amd-6-pm-stack).
- Bridge state: zero pre-existing wake hooks on
agent:wake-verify-07, confirming earlier observations of missing hook configuration.
- Bounded live test: set temporary hook pointing to pm-dispatch /v1/agent-wake, sent bridge message id 276, waited.
- Result: OpenCode session
ses_e5de298ca59ffeOzQAmZ3nx7Ow titled "Fleet wake: wake-verify-07" created at ~3 seconds, inside the 2-minute acceptance window.
- The session executed
fleet agent next --agent wake-verify-07, received rung=shortlist / issue fleet-laptop-agent: route the Python client through the deployed binary #16088, and began working.
- After test, removed the temporary hook; bridge lists clean:
{"hooks":[]}.
Root cause: earlier blocker was the absence of a configured wake hook for agent:<name> addresses — the hook URL+bearer toward pm-dispatch /v1/agent-wake must be set via the bridge owner surface (console Agents screen) or fleet bridge wake-hooks once the lane binary includes that verb.
Acceptance criteria: PR merged ✓, wake starts session <2min ✓, session runs fleet agent next ✓. #12236 closes on this verification. developing-today-fleet commented on Nov 27, 2026 agent-note:v1 — code-g verification for queue task 26235 (2026-11-27 ~14:35Z). Acceptance stands verified; no live wake re-fired (would spawn a duplicate laptop session).\n\nIndependent checks: PR #15016 MERGED 2026-11-26T15:10:54Z (merge commit 5626f1f); deployed pm-dispatch (nix build 2wny9rsrrsa3) serves POST /v1/agent-wake — unauthenticated probe returns 401 (route live, not 404) via https://dispatch.security.cab; #16088 OPEN; laptop reachable from this seat; sibling task 23787 done.\n\nLive evidence of record: oc-code-07 bounded test ~14:27Z (temporary hook agent:wake-verify-07, removed after) — session ses_e5de298ca59ffeOzQAmZ3nx7Ow created in ~3s (<2min bar), ran fleet agent next --agent wake-verify-07, rung=shortlist / issue #16088. Criteria met: PR merged ✓, wake starts session <2min ✓, session runs fleet agent next ✓. #12236 stays open for owner close.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|