Repository navigation
Description
Fleet-stall: claim path quarantines tasks the fleet itself enqueued
Scale (fresh DB read, 2026-11-13 ~23:10Z): 279 tasks at status=blocked with last_error starting quarantined by claim path: packet failed validation (#5444).
By queue: repo-health-code-pilot 208, repo-health-opencode-pilot 34, repo-health-openchamber-pilot 12, repo-health-dezren39-pilot 6, repo-health-zettel-pilot 6, repo-health-code-pilot 6, code 4, finance 1, ops 1, repo-health-code-shadow 1. Created 2026-10-22 → 2026-11-13; new rows still landing (latest 2026-11-13T22:06:36Z).
Shape split
- 270 rows:
packet.max_attempts: must be an integer between 1 and 100— every one of these rows carriesmax_attempts=1000. - 9 rows:
payload.schema: must be 'repo-task/v1'/ missingpayload.problemetc. — producer packets omitting requiredrepo-task/v1fields.
Root conflict
Two standing fleet decisions now contradict each other:
- queue: raise default max_attempts for new tasks to 1000 (Drew order 2026-11-12) #8973 (Drew order 2026-11-12): "attempts were reset to 0 and max_attempts raised to 1000 on all 693 non-terminal tasks"; new tasks to default to 1000.
- The Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 validation contract (live in the claim path):
packet.max_attemptsandpayload.max_attemptsmust be integers 1–100 —pkgs/fleet/crates/fleet-queue/src/validate.rs:744(packet.max_attempts: must be an integer between 1 and 100),validate.rs:181(payload.max_attempts: ... between 1 and 100).- Enforced at claim by
claim_guard_reason(pkgs/fleet/crates/fleet-queue/src/turso_queue.rs:2245,2252), which stampsquarantined by claim path: packet failed validation (#5444)and blocks the row.
So the bulk #8973 update armed ~693 rows that detonate into blocked the first time any lane tries to claim them. 279 have detonated; the rest (including currently-queued rows) detonate on next claim. Related but distinct: #2937 (attempts=max_attempts unclaimable), #6423 (max_attempts<=0, closed), #9028 (one PostgREST producer bypass), #9029 (bounds-table reconcile).
Named casualties
- Task 16147 (
repo-health-opencode-pilot, lane any-b) — the fix follow-on for the fleet-stalling id(search): author index, author/kind terms, multi-term AND — fix #800 #1806 route-failover trap — is quarantined (max_attempts=1000). The trap's fix cannot be claimed. - Task 15155 (
repo-health-code-pilot, lane any-d) — the fix for queue: raise default max_attempts for new tasks to 1000 (Drew order 2026-11-12) #8973 itself — is quarantined (payload missing schema/problem). Self-referential: the order's own fix task is blocked by the conflict. - Task 16120 (
repo-health-opencode-pilot, lane any-d, the live main-broken: developing-today/code id @5a34fa7 — basic: nix flake check (cargo-fmt-check) #2405 main-CI fix task) — quarantined while a session is adopting its PR. - Task 12126 (
repo-health-code-pilot, currentlyqueued, lane code-k, bound to id(world): many_worlds p99 latency 5,650.792 ms vs 50 ms target — profile and reduce (#557 remainder) #7064 id/many-worlds) carriesmax_attempts=1000— a live landmine: the next claim attempt quarantines it.
Recommended direction (triage decides; do not contradict the standing order)
Either (a) raise the validator bound to admit the ordered 1000 default (reconcile with #9029's bounds table, keep enqueue/claim oracle agreement), or (b) get Drew's revised word and clamp producers back under 100. Whichever wins, also: repair the 279 quarantined rows (re-validate and release, not mass-delete), fix producer packets that omit repo-task/v1 schema/kind/problem (the 9-row shape), and add a creation-time or enqueue-time rejection so a bad packet can never be born queued again.
Acceptance
validate_packetand every producer default agree onmax_attemptsrange; the agreed bound is written in one place with a test.- All 279 currently-quarantined rows re-validated: conforming rows released back to
queued(attempts preserved), and any row that cannot conform is re-scoped or failed with reason, never silently leftblocked. - A conforming enqueue through each producer path claims clean on first attempt (prove with a live claim, not a unit test alone).
- Task 12126 (or its successor) claims without quarantine.
Activity
developing-today commentedon Nov 13, 2026
CODE-3182
dezren39 commentedon Nov 13, 2026
🤖 Conductor dispatch binding — task 16153 claimed by
fleet-conductorand launched as triage sessionses_e5e28c0720bffe93nQMHwkTeFoonopencode-route/workhorse(served by cline-pass/deepseek-v4.1-flash#high), worktree/home/user/git/fleet/16153-9609-quarantine-triageat origin/main 70430e2. The session will re-verify the conflict live, decide the direction (validator-bound vs producer-clamp), file ONE follow-on fix task, and post the triage note here. Enqueued by the conductor cycle 2026-11-13T23:10Z (sessionses_e5e28dc59d7ffeqY50Qip12107).dezren39 commentedon Nov 14, 2026
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 whilerepo-worker-code-aposts progress markers; after 30 minutes of silence any other worker may pick this up.)213 remaining items
fleet(queue): default max_attempts to 1000 on every task-creation path (
dezren39 commentedon Nov 16, 2026
Fresh evidence for the same conflict, from a lane heartbeat rather than a static scan.
ses_e5e1bfc7096ffes5Llh5EK2WXF(queue lane code-j, 2026-11-16 05:00) repeats at its 11:04Z heartbeat:The asymmetry is the tell: the #8973 default writes
max_attempts=1000into the packet, the #6448 validator caps payload at 100, and nothing reconciles the two before the claim path validates. Either the enqueuer must emit the validator's cap (or omit the field and let the payload win), or the validator must accept the enqueuer's own default.dezren39 commentedon Nov 17, 2026
agent-note:v1 — lane code-b shift 2026-11-16 18:08 CT: new bulk-intake wave hits this defect class with a second missing-field shape; code stream had ZERO claimable tasks all shift.
Fresh evidence (queue DB read via turso-exec, 2026-11-17T00:55Z, plus claim-path events):
dedupeobject at all (verified on task 18754's full payload: schema/kind/repo/issue/problem/evidence/acceptance/context_refs/max_attempts/priority_reason/risk/scope/tests/timebox_minutes — no dedupe).quarantined by claim path: packet failed validation (#5444): payload.dedupe: must have checked_at and basis as non-empty stringsviaclaim_payload_quarantine(e.g. tasks 18874–18887 at 2026-11-17T00:25:06–19Z, ~1/sec while lanes claim). The claim guard skips 32 per claim call, then returns "no claimable task" — so lanes burn whole shifts quarantining 32 packets per claim and working nothing.code), requires poolsummit. Net: no lane could claim anything in the code stream this shift (code-b: 4 consecutive claim verdicts of no task, incl. claim-by-id on tasks 13224 and 18754).max_attempts: 1000(task 18754 payload), so even with dedupe restored they hit this issue's primary max_attempts-vs-validator-cap conflict next.Ask: the bulk-intake producer must emit the full repo-task/v1 packet (dedupe{checked_at,basis} included) — or enqueue-side validation must reject packets the claim guard will quarantine, so a defective wave fails at filing time instead of silently consuming every lane's claims. The ~459 still-queued defective packets need either payload repair or mass disposition; they currently sit ahead of nothing (nothing valid is behind them in this stream), but any future valid packet enqueued behind them still gets picked in priority order — the defective ones just keep quarantining 32-per-claim on the way.
Merge pull request #10886 from developing-today/fix/9609-dedupe-enque…
dezren39 commentedon Nov 17, 2026
FIXED — 2026-11-17 ~01:40Z. Drew's order (2026-11-16 18:41 CT): fix.
What was actually wrong (three separate things)
enqueuedevents ({"via": "bulk_intake_2026-11-16", ...}) match no event any broker code writes (verb_enqueue writes noenqueuedevent for a fresh insert), and both broker enqueue paths (/enqueuein queue_broker.rs,verb_enqueuein turso_queue.rs) have runvalidate_packetand rejected this shape with exit 2 since 2026-11-06. The packets carried nopayload.dedupeobject, whichvalidate_packet(validate.rs:195) has required since 2026-11-04 — so every claim pick quarantined them. Producer rule going forward: bulk intakes go through the broker/enqueue; direct DB writes bypass the only validation boundary.claim_pick_oncecounted guard quarantines against the same 32 budget as race losses; with ~460 defective packets at the queue head, every claim call burned its budget quarantining and returned "no claimable task" while valid rows sat behind the wave.run_quarantine_rechecks(the fleet(queue): max_attempts split-copy quarantine — one source of truth + blocked-row re-validation #10648 release machinery) scansORDER BY updated_at ASC LIMIT 200per sweep, but rows left blocked with an unchanged verdict wrote nothing, so theirupdated_atnever moved. Live sweep events showed the same 197 rows rechecked every minute (checked: 197, released: 0) while ~1,490 rows — including the 109 split-max_attempts fossils — never got a verdict.The original #9609 defect needed no fix: the #6448 validator cap of 100 was already raised to 1000 and the copy-agreement rule removed (#10648), live in the running broker (g808af41 = main at repair time). Verified per-row against the running broker's
/validateoracle.Data repair (live, 2026-11-17 00:55–01:10Z)
All 1,687 quarantined blocked rows classified through the running broker's
/validate:payload.dedupe{checked_at, basis}prepended by string surgery (basis = the check actually performed at repair: validator cross-check passes + no other live task in the queue carries the key; verified 0 live twins, 0 duplicate groups). Every other payload byte preserved — verified by re-reading all 1,556 payloads and comparing byte-for-byte against the originals (0 mismatches). Onehygiene_fixevent per row (workerfix-9609, detail cites this order)./quarantine-recheck: 1,556 unblocked events. Two released rows were promptly dep-blocked by lanes on real gates (id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801 / id: implement hosted Worker API + per-user DO provisioning and metering (from #2046/#2852 slice 3) #3811) — normal operation.blocked_deps; the dep rechecker owns their release. Not force-released.Source fix — PR #10886 (merged, commit 274d79f)
MAX_CLAIM_QUARANTINES_PER_CALL = 512; race-loss cap unchanged.updated_attouch (no event), so the sweep window rotates through the whole population.cargo test -p fleet-queue --features queue-broker: 347 passed, 0 failed. Main-branch fleet-rust-tests run 43993669627 was queued at merge time.Verification (live reads, 2026-11-17 ~01:35Z)
quarantine_recheck {checked: 17, released: 0, still_quarantined: 17}— exactly the genuinely-defective residue.Closing as fixed.
dezren39 commentedon Nov 17, 2026
Timestamp correction to the fix comment above (my elapsed-time estimates ran fast): the fix landed at 2026-11-17 ~01:13Z, not ~01:40Z; the verification reads were taken 01:05–01:12Z; releases ran 00:57–01:06Z (last unblocked event 2026-11-17T01:05:58Z). The zero-new-quarantines window at close was ~25 minutes (last quarantine 2026-11-17T00:48:12Z), re-verified at 01:13Z: still zero. All counts and other facts stand as written.
dezren39 commentedon Nov 17, 2026
Agent note — already done (lane any-m, task 19056)
State: done (already_done)
Fresh verification (2026-11-17): issue #9609 is CLOSED with status:done. The fix of record is on the issue (comments 6934640675 + timestamp correction 6934647769): the #8973/#6448 max_attempts conflict was repaired 2026-11-17 ~01:13Z, the 279 quarantined tasks were released, live verification showed claims/completions flowing on previously-defective packets with zero new claim-path quarantines, and the steady-state residue is 17 genuinely-defective packets still quarantined by the sweep. This bulk-intake triage task was itself created by that repair pass; it completes as already_done with no follow-on.
dezren39 commentedon Nov 18, 2026
agent-note:v1
transition: picked-up -> done
worker: repo-worker-code
lane: any-n
task: 20443
summary: Fresh revalidation found #9609 already CLOSED with status:done. The issue records the repair and verification; PR #10886 is merged at 274d79f, with related fixes #9621 and #9903 also merged. No new follow-on is needed for this triage task.
next: None; already resolved.