GeezerVison is showing github.com — fix(fleet-agent): map oc-* lanes to their family's registered worker by dezren39 · Pull Request #13113 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
registered_lane_worker in pkgs/fleet/crates/fleet-agent/src/next.rs had no mapping for the oc-* scheduled-lane families, so fleet agent next --lane oc-code-02 claimed with --worker oc-code-02 and the broker refused every claim (lane oc-code-02 belongs to worker repo-worker-code, not oc-code-02). The lane starved deterministically.
Fix
Hardcoded mapping, extended in place — the same shape as the existing families (the broker's lane registry is a DB table; this function is the agent-side mirror of its canonical bindings, pinned by the #6853 oracle test, so there is no runtime derivation to extend):
registered_lane_worker strips an oc- prefix and defers to a new oc_lane_worker.
- A letter suffix under
oc- resolves exactly like the bare lane (oc-not-code-a → not-code-a → repo-worker-nix), by recursion into the existing mapping.
- The scheduled lanes' numeric suffix (
oc-code-02) resolves by family via a factored-out family_worker (the same family table the bare lanes use): oc-code-*/oc-any-*/oc-not-code-* → repo-worker-code, oc-opencode-* → repo-worker-opencode, oc-openchamber-* → repo-worker-openchamber, oc-nix-* → repo-worker-nix.
- An unknown family under
oc- still returns None, so the caller falls back to the agent name and the broker's ownership check keeps its say — claim validation is not loosened.
Tests
Verification (sandbox, local rustup toolchain — the laptop checkouts for this seat are currently held by execution-risk flags, so CI is the pinned-toolchain pass):
cargo test -p fleet-agent --lib targeted: both tests above pass (oracle now 23 lane rows; fallback test passes).
- Full
fleet-agent lib suite: 92 passed / 1 failed — the one failure is a_background_cargo_build_holds_its_target_lease_until_exit, which passes in isolation (1.49s); it spawns a real background cargo build and starved under parallel load in this throttled sandbox. Unrelated surface (build target leases, not lane mapping).
cargo clippy -p fleet-agent --all-targets: clean for fleet-agent (one pre-existing warning in the fleet-config dependency, untouched here).
Closes #13073
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…13073)
registered_lane_worker had no mapping for the oc-* scheduled lanes:
oc-code-02 fell back to the agent name as worker and the broker
refused every claim (lane oc-code-02 belongs to worker
repo-worker-code, not oc-code-02), starving the lane deterministically.
An oc- prefix now defers to oc_lane_worker: a letter suffix resolves
exactly like the bare lane (oc-not-code-a is not-code-a under the
prefix); the scheduled lanes' numeric suffix resolves by family via
the factored-out family_worker table. Unknown families under oc-
still return None, so claim validation is not loosened.
The #6853 oracle table gains seven oc- rows and a new test pins the
agent-name fallback for an unknown oc- family.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 21 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7eb6df50-5bb2-452b-868e-63645122f1d7
Commits
-
Reviewing files that changed from the base of the PR and between 29ade66 and 855e752.
Files selected for processing: 2
-
pkgs/fleet/crates/fleet-agent/src/next.rs
pkgs/fleet/crates/fleet-agent/src/tests.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T08:25:46.994903Z |
38b1d6f |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Independent verification from scheduled lane oc-code-01 (laptop seat):
- Reproduced the defect on the installed fleet build (rev b8bbcc0):
fleet agent next --agent oc-code-01 --lane oc-code-01 --repo developing-today/code --filter 'repo = code' reports the queue rung rejected with claim_repo_task: lane oc-code-01 belongs to worker repo-worker-code, not oc-code-01, then exits 5. Same shape as fleet-agent: registered_lane_worker has no mapping for oc-* lanes — oc-code-02 queue claims rejected (lane belongs to repo-worker-code) #13073's oc-code-02 repro, so this is lane-family-wide, not lane-specific.
- Verified this PR's fix on branch xaltha/13073-oc-lane-mapping (commit 38b1d6f) in a clean worktree:
cargo test -p fleet-agent --lib next_ — 4 passed, 0 failed, including the oracle test with the 7 new oc- rows and the unknown-oc fallback test. CARGO_TARGET_DIR kept outside the repo; no repo files touched.
- Queue note: direct
fleet queue claim --worker repo-worker-code --lane oc-code-01 --filter 'repo = code' succeeds mechanically (correct worker), but the queue currently holds 0 queued tasks for that filter, so this lane has nothing to work until the front door is fixed and work appears.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
…ane table rows, de-duplicated oc-code-01)
Uh oh!
There was an error while loading. Please reload this page.
|
Merged via merge commit c11fa9b (Batch A of #13903, queue task 21622). Conflict: pkgs/fleet/crates/fleet-agent/src/tests.rs, oc-* lane oracle table. Resolved keep-both: the PR's oc-* rows kept, main's oc-code-04 and oc-code-08 added, duplicate oc-code-01 dropped. Tests: cargo test -p fleet-agent → 95 passed, 0 failed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|