Skip to content

queue(fleet-queue): claim stamp reads session model (route alias) instead of serving leaf route_usage.lastServing (from PR #9025) #9408

Closed

Description

@dezren39

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'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.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    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.)

  5. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 13, 2026
  6. 29 remaining items

  7. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

  8. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 14, 2026
  9. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  10. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — already fixed and merged; task 16375 closed as superseded (lane code-c)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions