Description
Finding (from PR review, never addressed)
The #8176 claim-model stamp derives from the session's model field — for routed sessions that is the configured route alias (e.g. opencode-route/workhorse), not the provider/model/effort that actually served the claim — so routed claims permanently record the route alias and lose serving-leaf attribution.
Codex (P2) on PR #9025, pkgs/fleet/crates/fleet-queue/src/client.rs:1358 at review:
"Derive the stamp from the serving leaf rather than the route. For routed sessions such as
opencode-route/workhorse, the session'smodelidentifies the configured route, not the provider/model/effort that actually served the claim. Reading this field therefore permanently records the route alias and loses the serving-leaf attribution required bydoc/fleet/queue-turso-cutover.mdandpm-stack/opencode-claimant/prompt.md, which explicitly distinguishesroute_usage.lastServingfrom the declared route. The new Python collection stamps have the same problem because they record the future session's route before it has served anything. Use the actual serving-leaf readout when available and leave the claim unstamped otherwise."
Evidence
- Source PR: fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025 "fix(queue): make the queue: stamp the claiming session's own model on the task at claim time #8176 claim-model stamp land on the real claim paths" — fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025 (merged)
- Comment: fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025 (comment) — reviewer
chatgpt-codex-connector[bot], 2026-11-12T20:58:11Z, filepkgs/fleet/crates/fleet-queue/src/client.rs:1358
No-response evidence
- The review thread is unresolved (GraphQL
reviewThreadsre-read 2026-11-13) and the Codex comment is the thread's only comment — no reply from the author or any maintainer. - PR fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025 was merged with this derivation unchanged; no follow-up commit on main has switched the stamp to the serving-leaf readout (verified by a fresh read of
client.rson main, 2026-11-13). - No existing issue covers this finding (searched open and closed issues for PR fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025 and claim-stamp/serving-leaf keywords on 2026-11-13; only the parent issue queue: stamp the claiming session's own model on the task at claim time #8176 and unrelated items matched — queue: stamp the claiming session's own model on the task at claim time #8176 does not cover the route-alias defect).
Still live on current main (verified 2026-11-13 by the pr-comment-review job)
pkgs/fleet/crates/fleet-queue/src/client.rson main:session_model_stamp(around lines 1349-1377) reads only the session record'smodelfield (providerID+id, optionalvariant). There is no code read ofroute_usage/lastServinganywhere in the file — those names appear only in comments (around lines 1305-1306 and 2304-2305) asserting the stamp names the serving leaf.derive_claim_model_stamptherefore stamps the declared/route model for routed sessions, exactly as the comment describes.
Acceptance criteria
- The claim stamp is derived from the actual serving-leaf readout (
route_usage.lastServing) when available, and the claim is left unstamped otherwise — routed sessions no longer record the route alias as their serving model. - Or: resolve by a documented decision on this issue explaining why the session
modelfield is an acceptable serving-leaf source for routed sessions.
Filed by the pr-comment-review job from an unaddressed PR review comment (source: PR #9025). This issue deliberately does not reply to or resolve the source review thread.
Activity
developing-today commentedon Nov 13, 2026
CODE-3043
dezren39 commentedon Nov 13, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 13, 2026
Picked up by
repo-worker-code-a— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-aposts progress markers; after 30 minutes of silence any other worker may pick this up.)29 remaining items
dezren39 commentedon Nov 14, 2026
🤖 Agent note · triaged
fix(fleet-queue): claim stamp names the serving leaf, never the route…
dezren39 commentedon Nov 14, 2026
🤖 Agent note · done
dezren39 commentedon Nov 14, 2026
Agent note — already fixed and merged; task 16375 closed as superseded (lane code-c)
route_usage.lastServing, not the session route alias) is fixed on main by commit 4a07f2b — "fix(fleet-queue): claim stamp names the serving leaf, never the route alias (queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408)" via PR fix(fleet-queue): claim stamp names the serving leaf, never the route alias (#9408) #9751.pkgs/fleet/crates/fleet-queue/src/client.rson current main readsroute_usage.lastServing(providerID + modelID) for the stamp and leaves the claim unstamped when no readout exists — exactly the finding's prescription.