You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
queue: by-id claim drops the --session-id mark (claimed event + progress record null) #8262
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.
The code named in the finding has changed shape on current main: verb_claim's forced-None session mark no longer exists in pkgs/fleet/crates/fleet-queue/src/turso_queue.rs. The by-id path is now claim_by_id (line ~2941).
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).
Activity
developing-today commentedon Nov 10, 2026
CODE-2457
dezren39 commentedon Nov 17, 2026
🤖 Agent note · done
Fresh verification (2026-11-17)
verb_claim's forced-Nonesession mark no longer exists inpkgs/fleet/crates/fleet-queue/src/turso_queue.rs. The by-id path is nowclaim_by_id(line ~2941).claim_by_idbinds the claimer's session: its progress write carries{"session_id": sid, "launched_by": worker}when a session is named, under the comment "queue: per-task session binding history + model timeline — session_id join to raw opencode data (extends #8176) #9046: a by-id claim that names its session binds it, like [the general claim path]" — and theclaimedevent is recorded with that session (record_session_bound(..., "claim")).dezren39 commentedon Nov 17, 2026
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.
dezren39 commentedon Nov 17, 2026
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).