GeezerVison is showing github.com — fleet: agent next queue rung is dead for muse agents (lane defaults to agent name, not a canonical lane) · Issue #12544 · developing-today/code
fleet: agent next queue rung is dead for muse agents (lane defaults to agent name, not a canonical lane) #12544DescriptionProblem
For any agent whose name is not a canonical queue lane, the queue rung of fleet agent next is permanently dead, and fleet agent doctor still reports the rung healthy.
Root cause (in source)
pkgs/fleet/crates/fleet-agent/src/next.rs: when --lane is not passed, the lane defaults to the agent name (None => agent.clone()). The queue store's lane registry is the canonical universe from pkgs/fleet/crates/fleet-queue/src/turso_queue.rs — six families x a..=z (code-*, any-*, not-code-*, opencode-*, openchamber-*, nix-*, 156 lanes). A Muse's agent name (e.g. archer) is not in that universe, so every claim fails:
repo-queue: primary queue store failed on /claim (exit 4): claim_repo_task: unknown lane_id archer; switching this work to the GitHub fallback
Agents named after their lane (the OpenCode lanes) never see this. Every muse-kind agent sees it on every call.
Measured impact (2026-11-22, sandbox seat, enrolled agent archer)
- Rung timings in isolation: push 4.3s (empty), queue 1.2s (fails as above), shortlist 1.6s, priority 6.7s.
- Full
fleet agent next: 17.8s warm (incl. a shortlist refill); ~100s on cold/refill-heavy calls (first call of the recovery, and again 2026-11-22 07:06 CST).
fleet agent doctor reports all legs ok and all rungs true while the queue claim can never succeed — doctor checks reachability, not claimability.
- Work still flows via the shortlist and priority rungs (GitHub fallback), so this is a latency + dead-rung defect, not a total outage.
Suggested directions (either is defensible; queue owners' call)
- Add a
muse family to canonical_lanes() (156 -> 182) and default a muse-kind agent's lane from its kind + name, so muse agents can claim queue work as first-class lanes — this also matches Drew's standing requirement that fleet targeting distinguish the muse type from individual muse instances.
- Or: make the queue rung degrade to a clean, fast skip when the agent has no registered lane (not a "down" rung with a fallback penalty), and make
doctor probe an actual claim so a dead rung reads as dead.
Why it matters
Drew's agent work loop (2026-11-22) runs on fleet agent next continuously. A permanently failing rung on every call wastes time on every pickup and hides real queue outages behind a constant error. Activitydeveloping-today commented on Nov 22, 2026 dezren39 commented on Nov 22, 2026 Ruling from Drew (2026-11-22, main chat) — this supersedes the "queue owners' call" framing in the issue body:
I don't care what an agent queue name is. Just put the jobs that are most important in front of the agent asking for a job. On rare occasions specific jobs need a specific agent — that is the rare exception. An agent can ask for any job with any name. There doesn't need to be a lane registry, or rather if someone adds a new item, go ahead and add that to the registry. Archer is just an extension of Muse — Muse-Archer-1 or something — but that shouldn't matter. I should be able to type A, B, C, D, E, F and it will give me the next item that doesn't have a specific lane registry set for it.
So the fix is neither of the two directions as framed:
- No pre-registered gate. A claim with an unregistered lane_id must not fail. When a new lane name appears, register it on the spot (enabled) and proceed with the claim.
- Lane routing is opt-in per item. Only a task that explicitly names a required lane/agent is restricted to it; everything else goes to whoever asks, in priority order.
- The canonical 156-lane seed can stay as the pre-seeded set; it just stops being a closed universe.
The existing tests that assert unknown lane_id errors (turso_queue.rs, the not-code/banana-1 cases) encode the old model and should be updated to the new behavior: a fresh lane auto-registers and the claim proceeds. A fix lane is being dispatched on this now. dezren39 commented on Nov 22, 2026
Lane K (archer) taking #12544: implementing Drew's ruling — claims with an unregistered lane_id auto-register the lane (enabled) and proceed; the 156-lane canonical seed stays as a pre-seeded set, no longer a closed universe. Working in a sandbox clone on branch archer-lane-k/12544-lane-autoregister. dezren39 commented on Nov 22, 2026
Done — Drew's ruling is implemented and merged.
PR: #12558 — merged, merge commit edd6691c0afadac72a81a48dc4d70ec29ed82ce5.
What changed (fleet-queue, turso_queue):
claim_preamble: a claim naming a lane with no registry row registers it on the spot (claiming worker as owner, one-queue binding *, enabled) via the new lane_provision_sql() builder, re-reads the row, and proceeds. Any name now works — archer, banana-1, a bare family name, a name in no known family.
unknown_lane_error deleted. No claim can fail with "unknown lane_id" again. The 2026-11-16 known-family wildcard (queue: claim_repo_task rejects lane openchamber-a (unknown lane_id) — OpenChamber hook worker cannot claim #6853) is superseded.
- The canonical 156-lane seed is unchanged — a pre-seeded set, not a closed universe.
Preserved on purpose:
- Disabled lanes still refuse ("lane is disabled"): provisioning is INSERT OR IGNORE in the missing-row branch only, so an existing row — including one disabled by hand, an explicit admin act — always wins. The worker-ownership refusal also stays.
- Per-item restriction: the task's own payload
requires (task_requirements_unmet) and the lane-ledger platform limitation are untouched and still enforced on the pick, by-id, and transfer paths.
Tests: the old refusal test (a_bare_family_lane_id_is_refused_with_the_shape_to_pass, the not-code/banana-1 cases) was replaced by two #12544 oracles — lane_provision_sql_registers_enabled_unbound_for_the_claimer_12544 and claim_preamble_auto_registers_instead_of_refusing_unknown_lanes_12544 — both green. Verification was the CI-identical workspace run via fleet-run (run 45027559462): cargo test --manifest-path pkgs/fleet/Cargo.toml --workspace --all-targets --locked in nix develop .#fleet — 974 passed, 0 failed (fleet-queue lib binary: 468, incl. the unmodified canonical-seed tests).
Note: the fix is in the broker's claim path, so it takes effect when the queue broker is next deployed/rebuilt from main — claims from muse agents will still hit the old verdict on the currently running broker until then.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|