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: reconcile attempt-cap defaults and dead-in-queue recovery #12901
Moved from dezren39/hatch#4 on 2026-11-22 at Drewry's direction (review of hatch/hatch-personal for material that belongs in the code repo). GitHub's native transfer is unavailable (different owner; hatch-personal is also private→public), so this issue carries the original text verbatim; the original is closed with a pointer here.
Follow-up from developing-today/code#2937. Queue tooling is tracked in dezren39/hatch, not in the code worktree.
Verified gaps (2026-11-03)
Some queued-at-cap rows were repaired: the local sweep ledger records 69 code tasks with cap doublings and examples such as 8→16, 6→12, and 12→24. The packet's broader total (358 tasks; dead-in-queue 104→0) was not substantiated by the ledger.
tools/repo-queue.py warns about expected per-kind caps (6 for triage/CI investigation, 4 otherwise), but its hard validation only requires a positive integer. Its fallback is 4, and the example packet still uses 2. tools/repo-task-v1.schema.json allows up to 10.
Tracked migrations keep the database column default/fallback at 3; no local migration raising it to 6 was found. The live database default was not queried, so that remains unverified.
The active fleet-monitor instructions tell the operator/agent to double eligible queued-at-cap tasks up to 24. The digest script identifies these rows but does not perform the repair autonomously.
Requested follow-up
Confirm the live database default and decide the authoritative per-kind defaults. Make enqueue validation/defaulting and the migration consistent; update the stale example.
Ensure claim/health reports queued-at-cap rows diagnostically and that recovery has a single documented, auditable path (automated or explicitly operator-run) with a 24-attempt ceiling.
Claim — Lane IC (archer), 2026-11-23 ~00:40 CST. Taking the reconciliation slice of #12901: verify the attempt-cap state of the CURRENT queue implementation (the fleet binary / queue broker in this repo — the Python repo-queue.py tooling the 2026-11-03 gaps were measured against has since been superseded), check defaults/schema/ceiling consistency and queued-at-cap diagnostics against the acceptance criteria, land any small consistency fix that remains, and post the evidence record here + the #2937 update. Premise check: issue open, no other live claim found. Working in a laptop worktree off main.
Reconciliation record — Lane IC (archer), 2026-11-23. The 2026-11-03 gaps were measured against the retired Python tooling (tools/repo-queue.py, warn-only caps, schema max 10, DB default 3). The queue now lives in pkgs/fleet/crates/fleet-queue (fleet binary + broker). Verified against current main and the live store:
1. Defaults / validation / schema — reconciled, one fix landed, one remainder filed.
Fresh-store DDL agrees: max_attempts INTEGER NOT NULL DEFAULT 1000 (turso_queue/core.rs).
Fixed here: the published payload schema pkgs/fleet/repo-task-v1.schema.json still capped max_attempts at 10 — PR #12996 merged (c1dc9720081) raises it to 1000 and replaces the stale repo-queue.py validator reference. The only other small explicit value in the repo is a dated 2026-11-13 design seed packet (historical, left as-is).
3. Historical repair counts — as verifiable as they get; practice superseded.
The sweep-ledger figure stands as recorded in this issue's evidence: 69 code tasks with cap doublings (8→16, 6→12, 12→24). The packet's broader totals (358 tasks; dead-in-queue 104→0) remain unsubstantiated — no source for them was found in the current repo or the live store, so they are marked unknown, not repeated as fact.
Activity
developing-today commentedon Nov 23, 2026
CODE-4731
dezren39 commentedon Nov 23, 2026
Claim — Lane IC (archer), 2026-11-23 ~00:40 CST. Taking the reconciliation slice of #12901: verify the attempt-cap state of the CURRENT queue implementation (the fleet binary / queue broker in this repo — the Python
repo-queue.pytooling the 2026-11-03 gaps were measured against has since been superseded), check defaults/schema/ceiling consistency and queued-at-cap diagnostics against the acceptance criteria, land any small consistency fix that remains, and post the evidence record here + the #2937 update. Premise check: issue open, no other live claim found. Working in a laptop worktree off main.Merge pull request #12996 from developing-today/lane-ic/12901-schema-cap
dezren39 commentedon Nov 23, 2026
Reconciliation record — Lane IC (archer), 2026-11-23. The 2026-11-03 gaps were measured against the retired Python tooling (
tools/repo-queue.py, warn-only caps, schema max 10, DB default 3). The queue now lives inpkgs/fleet/crates/fleet-queue(fleet binary + broker). Verified against current main and the live store:1. Defaults / validation / schema — reconciled, one fix landed, one remainder filed.
max_attemptsmust be an integer in 1..=1000 at packet validation, client, and broker (MAX_ATTEMPTS_CEILING, validate.rs, fleet(queue): 279 tasks quarantined at claim — #8973's max_attempts=1000 default conflicts with the #6448 validator cap of 100 #9609). Creation default is 1000 for every kind (TASK_DEFAULT_MAX_ATTEMPTS, queue: raise default max_attempts for new tasks to 1000 (Drew order 2026-11-12) #8973) — Drew's 2026-11-12 order deliberately superseded the old per-kind defaults (6 triage/CI, 4 otherwise) and the fleet-monitor "double at-cap rows up to 24" repair practice; the 24 ceiling no longer exists anywhere in the implementation.max_attempts INTEGER NOT NULL DEFAULT 1000(turso_queue/core.rs).pkgs/fleet/repo-task-v1.schema.jsonstill cappedmax_attemptsat 10 — PR #12996 merged (c1dc9720081) raises it to 1000 and replaces the stale repo-queue.py validator reference. The only other small explicit value in the repo is a dated 2026-11-13 design seed packet (historical, left as-is).taskstable still hasDEFAULT 4(read live via sqlite_master) because the broker only runs CREATE TABLE IF NOT EXISTS and SQLite cannot alter a column default in place. All broker creation paths write 1000 explicitly, so it has not bitten (live distribution: 17,921 rows @ 1000; tail of 182 rows at 2–10 are explicit historical per-task values). Tracked as fleet queue: live tasks table still defaults max_attempts to 4 — align with the code DDL (1000) or record acceptance #12997 (operator table rebuild or recorded acceptance). Fleet queue: reconcile attempt-cap defaults and dead-in-queue recovery #12901 stays open on fleet queue: live tasks table still defaults max_attempts to 4 — align with the code DDL (1000) or record acceptance #12997 only.2. At-cap diagnostics + recovery — verified in place.
attempts < max_attempts(claim.rs / lifecycle.rs).fleet queue healthcarries anat_cap_queuedcolumn per queue (repo queue: openchamber pilot tasks burn max_attempts on unlaunched handoffs and become silently unclaimable #6528) — live read 2026-11-23: 0 at-cap queued in every queue.lease_expired_at_capevent (Queue semantics: lease expiry strands tasks at attempt cap in 'queued' forever (142 silent zombies in code queue) #6463); recovery is the single documented path —revive, which accepts failed tasks and queued dead-at-cap tasks (claim.rs).3. Historical repair counts — as verifiable as they get; practice superseded.