GeezerVison is showing github.com — fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) · Issue #7068 · developing-today/code
fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068Labels app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)status:donetask/triageQueue packet kind: verify, reproduce, and route this item DescriptionFound 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.
Activitydeveloping-today commented on Nov 8, 2026 dezren39 commented on 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 commented on Nov 8, 2026 🤖 Agent note · evidence
- Agent: queue worker (repo-worker-code), lane code-a
- Session / ID: cron repo-queue-worker-shift, lane code-a, 2026-11-08 ~10:33–10:55Z
- Task: Fresh instances of this defect (claim call returning a row the caller does not hold), for issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068's record (see also issue queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985):
- 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.
- Expectation: 5 of 13 claim calls in one shift returned a row the caller did not hold. Correction notes were posted on the affected issues (issue mcpx:
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.
- Links: issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068, issue queue: task 11164 claimed by two lanes concurrently (code-a and code-x) — claim atomicity violated #6985
dezren39 commented on 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 commented on Nov 8, 2026 🤖 Agent note · blocked
- Agent: queue worker (repo-worker-code), lane code-q
- Session / ID: lane code-q shift 2026-11-08 (bundle of 20)
- Found via: queue claim
- Task: fresh evidence for this defect from one shift: 3 of 20 claims returned by
fleet queue claim --lane code-q did 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.
- 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.
- Links: issue id: server-to-server file transfer protocol and CLI/REPL #5345, issue id(repl): PR #3096 source pipe scan mistakes a |> inside $(...)/backticks for an outer pipe — valid lines rejected as trailing-placeholder errors #4427, issue mcpx: embedding mcpx -- a public Go API, the C ABI, WASM, and mcpx as its own upstream #1877
developing-today commented on Nov 8, 2026 🤖 Agent note · race evidence (lane code-t shift 2026-11-08)
- Agent: repo queue worker, lane code-t (repo-worker-code)
- Three more instances of this race in one shift (all times UTC, GitHub comment timestamps + claim-response fields):
- task 13226 (issue Absorb fleet placement into repo-queue: dispatch + session commands (spec = docs/placement.md in developing-today/fleet) #5413): my claim response carried
lane_id: code-n, claimed_at 2026-11-08T17:01:12Z. My claimed checkpoint succeeded (shared worker_id), then lane code-n's park landed and my handed_off checkpoint + park returned task 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.
- task 11918 (issue Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204): my claim response carried
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).
- 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.
- Pattern: claim is not atomic across lanes sharing worker_id
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: verify lane_id in the claim response before touching the task (caught none of these in time — Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 6b71c24 #3 was stamped with my own lane).
dezren39 commented on Nov 8, 2026 developing-today commented on Nov 8, 2026 🤖 Agent note · claim-return race evidence (lane code-m shift 2026-11-08 12:42 CST)
- Agent: queue worker (repo-worker-code), lane code-m
- Session / ID: lane code-m shift starting 2026-11-08T19:07:00Z
- Found via: queue claim guard (lane stamp + first-checkpoint verification)
- Task: Recording 3 new claim-return race occurrences for issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068:
- task 13298 (pr_shepherd, issue Unowned PR batch from branch disposition (2026-11-07) #7297, PR docs(id): design upload license detection pipeline (#6008) #6331) — claim returned lane_id code-h, claimed_at 2026-11-08T19:14:16Z; aborted before any writes.
- task 9172 (small_fix, issue id(comms): budgets — app-wide, per-IP, per-ID, and per-counterparty overrides (P1 of #2032) #2247) — claim returned lane_id code-m, claimed_at 2026-11-08T19:14:35Z, but the first checkpoint failed with "task 9172 is not claimed by repo-worker-code"; aborted before any GitHub writes.
- task 12940 (small_fix, issue id(phase-14): Scale & performance hardening — v4 — outline: public-server targets #6307) — claim returned lane_id code-l, claimed_at 2026-11-08T19:15:23Z; aborted 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.
- Links: issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
Lane code-t resumed task 14493 (issue #7068) at awaiting_ci — parked awaiting CI on PR #8107.
dezren39 commented on Nov 10, 2026
Agent note — lane code-e, task 14493 — parked (awaiting CI)
- Stage: awaiting_ci, resumed from prior lanes' checkpoint (resume, don't restart — §10).
- Verified fresh: issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), no status/needs-triage. Execution lane: direct (assignment row 5676).
- PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107 OPEN, branch queue/14493-7068-claim-race, head 4d2526c — unchanged from prior verified state. Diff scope and findings already verified by prior lanes: losing-claim mechanism already fixed by repo-queue: claim lease dies ~15 min after a 45 min claim; claimed task leaves claim state without a heartbeat/park #7617 (PR fix(fleet-queue): claim by explicit id; pin claim lease + lane storage (#7617) #7882); PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107 adds the concurrent-claim regression tests (statement shape, two-lane code-m/code-f race fixture with exactly one winner, source oracle). Targeted tests recorded by lane code-k: cargo test -p fleet-queue --features queue-broker — 125 passed, 0 failed.
- 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).
- Terminal for this shift: parked 1200s at stage awaiting_ci. Resume condition: PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107 basic checks settle green, then merge under the standing criteria and complete task 14493 as fixed_merged.
dezren39 commented on Nov 10, 2026
🤖 Agent note · parked — CI still pending (fresh re-check)
dezren39 commented on Nov 10, 2026 🤖 Agent note · parked (awaiting CI)
- Agent: queue worker (repo-worker-code), lane code-p
- Session / ID: task 14493, repo-queue-worker-shift-p 2026-11-10 run
- Task: task 14493 (small_fix) for issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068: fleet queue claim — a losing claim call returned a live claim held by another lane. Attempts 1/6. Direct lane row 5676.
- Fresh check (2026-11-10T06:50Z): issue fleet queue claim: a losing claim call returned a live claim held by another lane (task 11895, lanes code-m/code-f race) #7068 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107 OPEN, MERGEABLE, head 4d2526c (unchanged from the last checkpoint); its 4 basic checks are still QUEUED (runner backlog), CodeRabbit COMPLETED/NEUTRAL. Prior checkpoint records the Codex review as quota-failed with no findings to disposition.
- Action: checkpointed awaiting_ci, parked 1200s. Resume: when PR test(fleet-queue): concurrent-claim regression fixture for the losing-claim race (#7068) #8107's basic checks settle green, merge under the standing criteria and complete task 14493 as fixed_merged.
dezren39 commented on Nov 10, 2026
Lane code-y — task 14493 parked (awaiting CI)
dezren39 commented on Nov 10, 2026
Agent note — lane code-x, task 14493
dezren39 commented on Nov 10, 2026
MetadataMetadataapp/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)status:donetask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|