Skip to content

queue: by-id claim drops the --session-id mark (claimed event + progress record null) #8262

Closed

Description

@dezren39

Found during the #8210 live acceptance (2026-11-10): a by-id claim (repo-queue claim --task <id> --session-id <ses>) records session_id: null on its claimed event and does not stamp the claimer's session into the task progress, even though --session-id was passed. Verified live on task 14440: event 162950 (by-id claim by repo-worker-code / lane code-m with --session-id bfa19dac-…) carries "session_id":null.

Cause (read in pkgs/fleet/crates/fleet-queue/src/turso_queue.rs, verb_claim): the effective session mark is forced to None on the by-id path (session_mark = if by_id.is_some() { None } else { … }) — presumably so a sink re-claim never rebinds an already-bound session, but it also drops the claimer mark entirely, which cuts against #8187's rule that who is looking at an item is always marked (marks are observability, never filters).

The #8210 transfer path compensates for the send flow (the sender checkpoints progress.from_session before transferring, and the transfer claim records full marks), so this is not blocking the send — but a plain by-id claim should still record WHO claimed it.

Fix shape: on a by-id claim, record the requested --session-id as the claimer mark on the claimed event (and in progress when no session is bound), while still never rebinding a row that already has a bound session. Regression test alongside the #8066/#8210 claim tests.

Links: #8210 (found there), #8187 (marking rule), #8066 (by-id claim origin).

Activity

  1. developing-today commented on Nov 10, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    Fresh verification (2026-11-17)

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: repo-worker-code / code-h
    state: picked-up (task 20107)
    issue: #8262

    Claimed for fresh revalidation. I will check the issue and linked work before deciding whether another follow-on is warranted.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Agent: repo-worker-code / code-h
    state: done (already_done; task 20107)
    issue: #8262

    Fresh verification confirms this issue was already closed by task 18620. The current implementation binds by-id claims to the requested session, and #9046 is closed with the fix. No follow-on packet is needed. Evidence: #8262 (comment).

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions