Repository navigation
Conversation
…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.
|
Warning Review limit reachedYou'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 35 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent verification from scheduled lane oc-code-01 (laptop seat):
|
What
registered_lane_workerinpkgs/fleet/crates/fleet-agent/src/next.rshad no mapping for theoc-*scheduled-lane families, sofleet agent next --lane oc-code-02claimed with--worker oc-code-02and 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_workerstrips anoc-prefix and defers to a newoc_lane_worker.oc-resolves exactly like the bare lane (oc-not-code-a→not-code-a→repo-worker-nix), by recursion into the existing mapping.oc-code-02) resolves by family via a factored-outfamily_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.oc-still returnsNone, so the caller falls back to the agent name and the broker's ownership check keeps its say — claim validation is not loosened.Tests
next_uses_the_registered_worker_for_a_known_lanegains sevenoc-rows (numeric per family + thenot-codeletter variant); each row also asserts thethencompletion commands carry the registered--worker, which is the issue's acceptance shape.next_keeps_the_agent_as_worker_for_an_unknown_oc_lanepins the other direction:oc-bogus-02claims as the agent, not a registered worker.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 --libtargeted: both tests above pass (oracle now 23 lane rows; fallback test passes).fleet-agentlib suite: 92 passed / 1 failed — the one failure isa_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 thefleet-configdependency, untouched here).Closes #13073
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.