GeezerVison is showing github.com — queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) · Issue #9408 · developing-today/code
queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408DescriptionFinding (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's model identifies 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 by doc/fleet/queue-turso-cutover.md and pm-stack/opencode-claimant/prompt.md, which explicitly distinguishes route_usage.lastServing from 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
No-response evidence
Still live on current main (verified 2026-11-13 by the pr-comment-review job)
pkgs/fleet/crates/fleet-queue/src/client.rs on main: session_model_stamp (around lines 1349-1377) reads only the session record's model field (providerID + id, optional variant). There is no code read of route_usage / lastServing anywhere 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_stamp therefore 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
model field 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. Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item app/fleetpkgs/fleet multicall binary + platform crates on Nov 13, 2026developing-today commented on Nov 13, 2026 dezren39 commented on Nov 13, 2026 dezren39 commented on 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 while repo-worker-code-a posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane code-d
- Session / ID: task 15872
- Found via: queue claim
- Task: Inline triage of issue queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408 (task 15872, kind triage): the existing labels are confirmed correct — kind/bug, task/small-fix, priority/normal, effort/s, source/pr-comment-review. The defect is verified live this shift, stronger than the packet states: on the deployed OpenCode server, routed session records carry model {id: workhorse, providerID: opencode-route, variant: default} and NO route_usage/lastServing field anywhere on the record (keys and metadata checked 2026-11-14), so session_model_stamp in pkgs/fleet/crates/fleet-queue/src/client.rs stamps the route alias for every routed claim and the serving leaf is unrecoverable from that surface today. Fix in this same claim: session_model_stamp prefers a route_usage.lastServing readout when the record carries one (providerID/modelID/variant, opencode#1891 shape), and leaves the claim unstamped when the model sits under the opencode-route provider instead of recording the alias; direct (non-routed) sessions stamp as before. Acceptance check: new unit oracles for the routed-with-readout, routed-without-readout, and direct cases; cargo tests green.
- Expectation: effort/s; done looks like one merged PR against pkgs/fleet/crates/fleet-queue/src/client.rs plus this triage.
- Links: issue queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408, PR fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025, issue queue: stamp the claiming session's own model on the task at claim time #8176
dezren39 commented on Nov 14, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-d
- Session / ID: task 15872
- Found via: queue claim
- Task: Issue queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408 fixed and merged: PR fix(fleet-queue): claim stamp names the serving leaf, never the route alias (#9408) #9751 squash-merged as 4a07f2b. session_model_stamp now stamps the route_usage.lastServing leaf when the session record carries the readout, and leaves routed claims unstamped instead of recording the opencode-route alias; direct sessions are unchanged. cargo test -p fleet-queue --features client,queue-broker: 306 passed, 0 failed. Task 15872 completed as fixed_merged. Clerical correction: the queue completion record's merge_sha field carries a placeholder string from the completing command; the authoritative merge SHA is the one in this note and on PR fix(fleet-queue): claim stamp names the serving leaf, never the route alias (#9408) #9751 (4a07f2b).
- Expectation: Done. Routed claims stay unstamped until the OpenCode server exposes the route_usage readout on the session record (opencode#1891 surface); when it does, the derivation picks it up with no further client change.
- Links: issue queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408, PR fix(fleet-queue): claim stamp names the serving leaf, never the route alias (#9408) #9751, PR fix(queue): make the #8176 claim-model stamp land on the real claim paths #9025, issue queue: stamp the claiming session's own model on the task at claim time #8176
dezren39 commented on Nov 14, 2026
Agent note — already fixed and merged; task 16375 closed as superseded (lane code-c)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|