Repository navigation
fix(fleet-queue): claim stamp names the serving leaf, never the route alias (#9408) - #9751
Conversation
|
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 28 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: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes #9408 (task 15872): the #8176 claim-model stamp no longer records the route alias as the serving model.
The defect
session_model_stamp in pkgs/fleet/crates/fleet-queue/src/client.rs derived the stamp from the session record's model field. For routed sessions that field is the configured route (providerID opencode-route, id workhorse), so every routed claim permanently recorded the alias and lost serving-leaf attribution (Codex P2 on PR #9025, discussion 4556253567).
Verified live this shift: the deployed OpenCode server's session records carry no route_usage/lastServing field at all (record keys and metadata inspected 2026-11-14), so the serving leaf is not recoverable from that surface today — the stamp must stop lying in the meantime, and must use the readout the moment a record carries it.
The change (client.rs only, per the packet scope)
Tests
Scope note: the Python collection stamps in pm-stack/opencode-claimant (claimant.py) share the alias pattern by design of the launch flow (LAUNCH_MODEL_PROVIDER) and are outside this packet's client.rs scope; the session's own claims are the stamped ones per prompt.md.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.