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
fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068
Found by lane code-m's queue-worker shift, 2026-11-08 ~02:32-02:41Z, while claiming from repo-health-code-pilot.
What happened
Lane code-m ran fleet queue claim --queue repo-health-code-pilot --worker repo-worker-code --lane code-m --lease-seconds 2700. The call succeeded and returned task 11895 (triage, issue epic(cluster): Cozystack platform #1087) with status claimed, attempts=1, claimed_at 2026-11-08T02:32:59Z — but the returned row already stamped lane_id: "code-f".
Lane code-m's §1b fleet queue lane 11895 call returned a ledger row (assigned_lane direct, assigned_at 02:33:01Z) and its first checkpoint appeared to apply, so the shift worked the triage.
At ~02:38Z a checkpoint failed with the verdict checkpoint_task: task 11895 is not claimed by repo-worker-code (broker exit 5 — the backend was healthy; health reads fine).
Issue epic(cluster): Cozystack platform #1087 then showed a second, independent pickup (02:40Z) and done (02:41Z) agent-note pair from the queue worker — lane code-f had held the real claim all along, worked the same triage in parallel, and completed task 11895.
Why it matters
The atomic claim is the fleet's only protection against double work (worker instruction §0/§1: lanes overlap by design; the shared worker id repo-worker-code does not distinguish lanes). A claim call that returns a task another lane already holds — with that lane's stamp already on the row — makes two shifts do the same work and post duplicate agent notes (here: issue #1087 comments 6716245056/6716245301 from lane code-m alongside lane code-f's pair). This instance was benign (read-only triage, same verdict, no labels or code touched by either side beyond notes), but the same race on a small_fix task means competing branches/PRs.
Evidence to check
Task 11895's claim/lease history around 2026-11-08T02:32:59Z: two claim calls (lane code-m, lane code-f) in the same second; the row's lane_id was code-f in the response lane code-m received.
Whether the claim verb, on losing a race, returns the winner's claimed row as if it were a successful claim instead of moving to the next queued task or returning a refusal.
Acceptance
A claim that loses the race for a task never returns that task as a successful claim: it claims the next eligible task or returns no-task.
A regression test/fixture exercises two concurrent claims (distinct lane ids, same queue) and shows exactly one winner per task.
agent-note:v1
event: recurrence_evidence
task: 12241
worker: repo-worker-code
lane: code-r
at: 2026-11-08T04:10Z
note: Recurrence of this claim-atomicity defect during the lane code-r shift of 2026-11-08. Task 12241 (triage, issue #5669): lane code-r claimed it at 2026-11-08T04:04:33Z (lease_until 04:49:33Z, lane_id code-r stamped), lane assignment returned direct (ledger row 4047), and a checkpoint at stage claimed succeeded. Lane code-b ALSO held the same task 12241 (direct lane) and completed it at ~04:06Z (its done note 6717041741 + correction 6717044668 on issue #5669; follow-up fix task 12742). Code-r subsequent checkpoint/heartbeat then returned the verdict checkpoint_task: task 12241 is not claimed by repo-worker-code. Same shift, task 12694 (investigation, issue #2534): code-r claimed it, and within ~2 minutes checkpoint returned the same not-claimed verdict while the lane ledger (row 4044) showed assigned_lane flipped to opencode. Code-r stopped work on both tasks on the verdict per runbook section 4 and posted no duplicate work. Two claim losses in one shift suggests the race window is not rare under the current 24-lane staggered cadence with a shared worker_id (repo-worker-code) across lanes.
task 12655: claim returned a row stamped lane code-b; this lane's checkpoint/park then applied under the shared worker id and parked the other lane's claim.
task 12169: claim returned a row stamped lane code-w; same shared-worker park side effect.
task 11433: claim returned a row stamped lane code-c; this lane's checkpoint/park correctly failed not-claimed.
task 12248: claim returned a row stamped lane code-a (this lane), yet the immediate checkpoint and park both failed not-claimed — the returned row was already stale.
task 13102: claim returned a row stamped with a UUID lane id (not this lane); stood down cleanly.
Evidence from lane code-c shift 2026-11-08 (~11:07–11:21Z): three more losing-claim races of the same shape. (1) task 12095 (issue #3068): claim returned the task to lane code-c; checkpoint then answered 'task 12095 is not claimed by repo-worker-code' (verdict) and no lane code-c note exists on issue #3068. (2) task 11145 (issue #6293): lane code-t's claim (claimed_at 2026-11-08T11:11:34Z) checkpointed and parked the task with note 6720755839 while lane code-c also held a claim return for the same task; lane code-c's checkpoint got the same not-claimed verdict. (3) task 12555 (issue #1059): lane code-m claimed and handed off (note 6720836775, 11:20:07Z) while lane code-c held a claim return; lane code-c's checkpoint and block both answered not-claimed (its erroneous blocked labels on issue #1059 were reverted, correction note 6720846982). 3 of 20 claims in one bundle raced. Pattern matches this issue and #6985: the losing claim call returns a live task another lane holds.
Expectation: claim should never return a task the caller does not own; a losing claim should answer no-task or a refusal verdict, not a live claim held by another lane.
task 12379 (issue id: design: scaling-technique comparisons (from #5685) #5895): my claim response was fresh and mine (lane_id: code-t, claimed_at 2026-11-08T17:22:32Z, lease to 18:07:32Z), yet lane code-g claimed the same task concurrently, posted its handoff note at 17:23:10 (comment 6724626348, ten seconds after mine, 6724624335), and won the park; my checkpoints exited 6 / park exited 5.
Agent: queue worker (repo-worker-code), lane code-m
Session / ID: lane code-m shift 2026-11-08T18:26Z-18:52Z (repo-queue-worker-shift-m)
Found via: queue claim
Task: Fresh occurrences of this defect in one shift (claim call returning a live claim held by another lane/system), all on queue repo-health-code-pilot:
task 12814 (issue id: design: knowledge graph view cluster (from #5678) #5837): claim returned a code-m-stamped claim at 18:47:17Z, lane assignment succeeded, but the first checkpoint ~20s later failed not-claimed (another holder had already parked it); handoff guard aborted before any GitHub write.
Expectation: claim should never return a row the caller did not just claim; until fixed, lane workers need the lane-stamp + claimed_at freshness guard (which caught 3 of 5 here before any writes).
Expectation: the lane-stamp + abort-on-checkpoint-failure guard continues to catch these until the broker claim return is fixed; no duplicate work resulted from any of the three.
Codex: only a usage-limit notice posted, no findings to disposition (verified by prior lanes; no new Codex findings this shift). CodeRabbit: NEUTRAL/COMPLETED.
CI this shift: the 4 basic checks remained QUEUED through this shift's 5-minute poll window (fleet Actions runner backlog, same stall prior lanes recorded).
Fresh check (2026-11-10T06:34Z): all 4 basic checks still QUEUED (fleet-search parity, proxy port fallbacks, scripts-test 3.12/3.14); CodeRabbit COMPLETED NEUTRAL; no Codex review comments on the PR. The resume condition from the 05:44Z checkpoint — basic checks settle green — is not met; this is the fleet runner backlog, not a PR defect.
Activity
developing-today commentedon Nov 8, 2026
CODE-2237
dezren39 commentedon Nov 8, 2026
agent-note:v1
event: recurrence_evidence
task: 12241
worker: repo-worker-code
lane: code-r
at: 2026-11-08T04:10Z
note: Recurrence of this claim-atomicity defect during the lane code-r shift of 2026-11-08. Task 12241 (triage, issue #5669): lane code-r claimed it at 2026-11-08T04:04:33Z (lease_until 04:49:33Z, lane_id code-r stamped), lane assignment returned direct (ledger row 4047), and a checkpoint at stage claimed succeeded. Lane code-b ALSO held the same task 12241 (direct lane) and completed it at ~04:06Z (its done note 6717041741 + correction 6717044668 on issue #5669; follow-up fix task 12742). Code-r subsequent checkpoint/heartbeat then returned the verdict checkpoint_task: task 12241 is not claimed by repo-worker-code. Same shift, task 12694 (investigation, issue #2534): code-r claimed it, and within ~2 minutes checkpoint returned the same not-claimed verdict while the lane ledger (row 4044) showed assigned_lane flipped to opencode. Code-r stopped work on both tasks on the verdict per runbook section 4 and posted no duplicate work. Two claim losses in one shift suggests the race window is not rare under the current 24-lane staggered cadence with a shared worker_id (repo-worker-code) across lanes.
developing-today commentedon Nov 8, 2026
🤖 Agent note · evidence
mcpx adapter import— a declaration generated from completions, man and --help, and a loud --bare for the rest #1962, issue Runtime-verification lane assessment: per-repo CI coverage vs static-review-missed regression classes (from #1361) #4605, issue DIY backup api transport: platform schemas (auth/storage/realtime/vault) deliberately excluded — recorded decision #6935, issue id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678). A claim response that distinguishes "you hold this" from "another lane holds this" (or a losing-claim error) would have prevented every instance.dezren39 commentedon Nov 8, 2026
Evidence from lane code-c shift 2026-11-08 (~11:07–11:21Z): three more losing-claim races of the same shape. (1) task 12095 (issue #3068): claim returned the task to lane code-c; checkpoint then answered 'task 12095 is not claimed by repo-worker-code' (verdict) and no lane code-c note exists on issue #3068. (2) task 11145 (issue #6293): lane code-t's claim (claimed_at 2026-11-08T11:11:34Z) checkpointed and parked the task with note 6720755839 while lane code-c also held a claim return for the same task; lane code-c's checkpoint got the same not-claimed verdict. (3) task 12555 (issue #1059): lane code-m claimed and handed off (note 6720836775, 11:20:07Z) while lane code-c held a claim return; lane code-c's checkpoint and block both answered not-claimed (its erroneous blocked labels on issue #1059 were reverted, correction note 6720846982). 3 of 20 claims in one bundle raced. Pattern matches this issue and #6985: the losing claim call returns a live task another lane holds.
developing-today commentedon Nov 8, 2026
🤖 Agent note · blocked
fleet queue claim --lane code-qdid not hold — the first checkpoint seconds later returned the verdict "task is not claimed by repo-worker-code". Cases: task 12216 (issue id: server-to-server file transfer protocol and CLI/REPL #5345), task 12688 (issue id(repl): PR #3096 source pipe scan mistakes a |> inside $(...)/backticks for an outer pipe — valid lines rejected as trailing-placeholder errors #4427), task 11981 (issue mcpx: embedding mcpx -- a public Go API, the C ABI, WASM, and mcpx as its own upstream #1877). Task 11981 is this issues exact shape: its claim response carried lane_id code-e while claiming with --lane code-q. Related: queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985 (claim atomicity), repo-queue: claim lease dies ~15 min after a 45 min claim; claimed task leaves claim state without a heartbeat/park #7617 (lease dies early). Each case was stopped per the verdict rule, with a correction/blocked agent note on its issue and labels restored.developing-today commentedon Nov 8, 2026
🤖 Agent note · race evidence (lane code-t shift 2026-11-08)
lane_id: code-n, claimed_at 2026-11-08T17:01:12Z. Myclaimedcheckpoint succeeded (shared worker_id), then lane code-n's park landed and myhanded_offcheckpoint + park returnedtask 13226 is not claimed by repo-worker-code. My duplicate handoff note: comment 6724386672 on issue Absorb fleet placement into repo-queue: dispatch + session commands (spec = docs/placement.md in developing-today/fleet) #5413.lane_id: code-g, claimed_at 2026-11-08T17:14:09Z. Lane code-g's handoff note posted 17:14:46 (comment 6724533692), five seconds after my duplicate note 6724532754 (17:14:41); my checkpoints exited 6 and park exited 5 (not claimed).lane_id: code-t, claimed_at 2026-11-08T17:22:32Z, lease to 18:07:32Z), yet lane code-g claimed the same task concurrently, posted its handoff note at 17:23:10 (comment 6724626348, ten seconds after mine, 6724624335), and won the park; my checkpoints exited 6 / park exited 5.repo-worker-code; a losing lane can receive a live claim (foreign or fresh), post duplicate agent notes, and only learns the truth at checkpoint/park. Same family as queue: claim returns tasks stamped with a foreign lane_id — and other lanes' live claims carry mine (attribution inverted both ways) #7598 and queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985. Worker-side mitigation used mid-shift: verifylane_idin the claim response before touching the task (caught none of these in time — Bump build/buck/preludes/buck2-prelude from3a02ea3to6b71c24#3 was stamped with my own lane).dezren39 commentedon Nov 8, 2026
🤖 Agent note · evidence
developing-today commentedon Nov 8, 2026
🤖 Agent note · claim-return race evidence (lane code-m shift 2026-11-08 12:42 CST)
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
89 remaining items
dezren39 commentedon Nov 10, 2026
Lane code-t resumed task 14493 (issue #7068) at awaiting_ci — parked awaiting CI on PR #8107.
dezren39 commentedon Nov 10, 2026
Agent note — lane code-e, task 14493 — parked (awaiting CI)
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — CI still pending (fresh re-check)
awaiting_ci· task 14493 · execution lanedirect(lane row 5676)4d2526ce43(unchanged), OPEN.QUEUED(fleet-search parity, proxy port fallbacks, scripts-test 3.12/3.14); CodeRabbit COMPLETED NEUTRAL; no Codex review comments on the PR. The resume condition from the 05:44Z checkpoint — basic checks settle green — is not met; this is the fleet runner backlog, not a PR defect.fixed_merged.dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked (awaiting CI)
dezren39 commentedon Nov 10, 2026
Lane code-y — task 14493 parked (awaiting CI)
dezren39 commentedon Nov 10, 2026
Agent note — lane code-x, task 14493
awaiting_ci(resumed from prior park).status/needs-triage; PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107 OPEN, headqueue/14493-7068-claim-race.fix(fleet-queue): drop duplicated #[test] on the #7068 claim regressi…
Merge pull request #8107 from developing-today/queue/14493-7068-claim…
dezren39 commentedon Nov 10, 2026
🤖 Agent note · done
claim_update_sqlpins the fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068 oracle — the pick-path claim UPDATE is keyed to the picked row's id and re-checks the full pick predicate, so a losing claim affects 0 rows and re-picks instead of receiving the winner's row. Found and fixed a duplicated#[test]on the new regression test in 382b33c (it registered the test twice). Targeted suite on the laptop:cargo test -p fleet-queue --features queue-broker— 124 passed, 0 failed.