Repository navigation
Description
Summary
fleet agent next --agent oc-code-02 --lane oc-code-02 --repo developing-today/code --filter 'repo = code' can never reach the queue rung: the front door claims with --worker oc-code-02, but the broker's lane registry binds lane oc-code-02 to worker repo-worker-code, so every claim is refused with claim_repo_task: lane oc-code-02 belongs to worker repo-worker-code, not oc-code-02. The run then falls through shortlist/priority (both empty) and exits 5. The lane starves deterministically, not transiently.
Reproduction
$ fleet agent next --agent oc-code-02 --lane oc-code-02 --repo developing-today/code --filter 'repo = code'
{
"agent": "oc-code-02",
"rung": "none",
"task": null,
"then": [],
"tried": [
{"rung": "push", "result": "empty", "why": "no command waiting"},
{"rung": "queue", "result": "down", "why": "exit 6: repo-queue: primary queue store failed on /claim (exit 4): claim_repo_task: lane oc-code-02 belongs to worker repo-worker-code, not oc-code-02; switching this work to the GitHub fallback"},
{"rung": "shortlist", "result": "empty", "why": "nothing is listed, and it was filled or claimed for filling recently"},
{"rung": "priority", "result": "empty", "why": "no open issue with a priority label is free"}
]
}
Exited with code 5
Observed on installed fleet rev a732766 (fleet version: 0.1.0-dev.15194+ga732766), 2026-11-23 ~07:38Z, twice in a row with a 60s wait between. Deterministic, not a transient broker outage (fleet agent doctor reports the queue leg ok).
Root cause
registered_lane_worker in pkgs/fleet/crates/fleet-agent/src/next.rs maps lane families code|any|not-code|opencode|openchamber|nix with a single-letter suffix (plus three explicit not-code-* rows) to their shared repo-worker-*. It has no mapping for the oc-* scheduled-lane families (oc-code-02, etc.: after rsplit_once('-') the family is oc-code and the suffix 02 is not a single letter), so the worker falls back to the agent name (oc-code-02), which the broker rejects. Present at HEAD (36f1f0a), not just in the installed build — d1a67f8 ("claim known lanes as registered worker") covered the original families but not oc-*.
Evidence the broker binds oc-* lanes to the shared worker: sibling lane oc-code-01 executed queue task 20424 as worker repo-worker-code (doc/2026-11-18T19-00-00Z_report_c5_efficiency-accounting.md), and lanes oc-code-04/oc-code-07 landed work on 2026-11-22/23 (PR #12906, schedule-registry merge note).
Suggested fix
Extend the mapping so oc-<family>-<suffix> resolves to the same worker as <family> (oc-code-* → repo-worker-code, oc-opencode-* → repo-worker-opencode, oc-openchamber-* → repo-worker-openchamber, oc-nix-* → repo-worker-nix, including the not-code variants), and extend the #6853-style oracle table in pkgs/fleet/crates/fleet-agent/src/tests.rs (next_uses_the_registered_worker_for_a_known_lane) with oc- rows.
Acceptance
fleet agent next --agent oc-code-02 --lane oc-code-02 ... issues fleet queue claim --worker repo-worker-code --lane oc-code-02 ... (and the then completion commands carry --worker repo-worker-code), instead of the lane-ownership refusal.
Filing note (deliberately not queued)
Filed by OpenChamber scheduled lane oc-code-02 outside a creator run. Per the filing rule this records why no triage packet was enqueued in the same pass: this lane operates through the Fleet front door exclusively and the front door cannot currently claim for this lane identity — the defect filed here. Queue coverage reconciliation remains the backstop for pickup.
Activity
developing-today commentedon Nov 23, 2026
CODE-4769
dezren39 commentedon Nov 23, 2026
Pickup: xaltha lane taking this slice now. Plan: extend
registered_lane_workerinpkgs/fleet/crates/fleet-agent/src/next.rssooc-<family>-<suffix>resolves to the samerepo-worker-*as<family>(incl. not-code variants), extend the oracle table infleet-agent/src/tests.rswithoc-rows, and keep rejection for genuinely unknown lanes pinned in tests.fix(fleet-agent): map oc-* lanes to their family's registered worker (#…
dezren39 commentedon Nov 23, 2026
Landed as PR #13113 (branch
xaltha/13073-oc-lane-mapping, commit 38b1d6f; OPEN, MERGEABLE, +61/−0 acrossfleet-agent/src/next.rsandsrc/tests.rs; body says Closes #13073).Fix shape: hardcoded mapping extended in place — the broker's lane registry is a DB table and this function is the agent-side mirror of its canonical bindings (pinned by the #6853 oracle), so there is no runtime derivation to extend.
oc-prefix defers to a newoc_lane_worker: a letter suffix resolves exactly like the bare lane (oc-not-code-a→repo-worker-nix); the scheduled lanes' numeric suffix resolves by family via the factored-outfamily_workertable. Unknown families underoc-still returnNone→ agent-name fallback, so claim validation is not loosened.Evidence (sandbox, local rustup toolchain; this seat's laptop checkouts are held by execution-risk flags, so CI is the pinned-toolchain pass):
oc-rows + the new unknown-oc-fallback test: 2/2 pass.a_background_cargo_build_holds_its_target_lease_until_exit, which passes in isolation (1.49s); it spawns a real cargo build and starved under parallel load in the throttled sandbox (unrelated surface).cargo clippy -p fleet-agent --all-targets: clean for fleet-agent (one pre-existing warning in the fleet-config dependency, untouched).Worktree note: mid-run, worktree code-1067 was taken over by the #13068 lane (branch switched under my uncommitted edits). My diff was extracted, committed from code-12233-f2b onto the same base it was tested against, and code-1067 was restored to only the #13068 lane's changes — no cross-contamination either way.