GeezerVison is showing github.com — Fleet park + cap audit (2026-11-12): parks that can never lapse, bound-work parks on verified-stale bindings, escalation-as-park, and BATCH_CLAIM_MAX for Drew's call · Issue #9179 · developing-today/code
Fleet park + cap audit (2026-11-12): parks that can never lapse, bound-work parks on verified-stale bindings, escalation-as-park, and BATCH_CLAIM_MAX for Drew's call #9179DescriptionFleet park + artificial-cap audit (2026-11-12): harmful park patterns and caps needing Drew's call
Filed from the fleet-wide park + cap audit Drew ordered 2026-11-12 20:33 CST ("Are there any other places that are parking tasks for no reason or are limited to an artificial cap, which isn't required by performance needs or some other reason?"). Park-logic changes are intentionally NOT specified as fixes here beyond the asks below — the queue-hygiene work owns sequencing. Evidence: live fleet-queue Turso read 2026-11-13T02:36Z (29 parked tasks), fleet-queue source on the laptop (pkgs/fleet/crates/fleet-queue), live cron bodies, and the shared lane runbook.
Class (c) — harmful patterns (live evidence)
- Malformed parks that can never lapse. Tasks 9316, 9341, 14378 (queue repo-health-code-pilot) are
status='parked' with not_before literally "3600" / "7200" — a caller passed delay-seconds semantics into the absolute not_before field, and the stored ready_condition is {"kind":"time","until":"3600"}. The claim predicate's parked branch compares not_before <= now as text; "3600" sorts after any 2026-… timestamp, so these rows can never become claimable on lapse — only a manual wake frees them. Asks: (a) broker-side validation that a parked row's not_before parses as RFC 3339 (the fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426 validator gates the client/broker request path, but these rows exist, so some path bypassed it — find it); (b) a hygiene check that flags parked rows whose not_before does not parse; (c) wake/repair the three named tasks. Adjacent but distinct from list --not-before: garbage filter value silently narrows the listing on the Turso backend (Phase 4 disposition (a) of #6449) #9027 (garbage list filter).
- Drew-escalation recorded as a park with no timer and no condition. Task 6699 is parked with
not_before = NULL, wait_kind='external', ready_condition = NULL, reason: awaiting Drew's A/B/C policy ruling on id: F12.13 journal replication (read replicas over a signed stream) #806. A parked row with NULL not_before is excluded from the claim predicate's parked branch forever; nothing wakes it when the decision lands, and it carries no ready condition naming the decision. The runbook's own doctrine says escalations to Drew are classic blocks, never parks. Ask: route Drew-decision waits to block/escalation records with the decision as the named release condition, and convert 6699.
- Bound-row park fires even when the binding is verified stale. Task 15341 (Atlas design-mill starter, queue
code) was parked ~1h by a lane whose own park reason records the bound session as interrupted, idle, and absent from the OpenCode active set — a stale binding. The runbook §1b rule (park 30 min naming the bound session) has no stale-binding exception: the parker verified the owner was dead and parked anyway, and on lapse the same stale ledger entry produces the same park. Same species as the task 15345 / epic Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155 incident (bound work parked instead of remediated). Ask: a verified-stale binding should be unbound and the task claimed/released in the same pass (the §1d self-heal already does this for the no-session-id case); park only when the binding's liveness is genuinely undecidable. Note: the conductor rulebook gained a binding guard + remediation ladder on 2026-11-12 (hatch-personal c93b1d4cfc) — the lane runbook §1b rule needs the matching exception.
- Timer parks whose lapse date precedes their own stated condition. Task 13224 is parked until 2026-11-19 while its reason states the renewal alert window it must verify opens ~2026-12-26 — it will resume into the unchanged condition and burn a lane pass re-parking. Ask: when a park reason names a future date/condition, the park term must cover it (or the ready_condition must name it so a checker can wake/re-park cheaply).
Broker park mechanics — facts established (for whoever picks this up)
verb_park (turso_queue.rs): holder-only via claimed_by; parking CLEARS the session binding and lease. Default delay when the caller passes none: 1200s, inherited from the PG park_task coalesce(p_delay_seconds, 1200). Delay range 1..=604800 (7d, client.rs fleet(queue): repo-queue duration flags (--lease-seconds, --extend-seconds, --delay-seconds) accept 0, negative, and unbounded values — a 0/negative lease is born expired, a negative park delay defeats the park #6420). not_before horizon: 366 days (fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426).
- Wait floors (fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184): triage waits floored to 6h, ci/capacity to 1h, overriding shorter caller delays — stated rationale: park churn cost ~3% of lane cycles. Timer/review/external waits keep the caller's delay.
- No ready_condition → broker synthesizes
{"kind":"time","until":<not_before>}: a pure timer that resumes regardless of the underlying condition.
wake exists for any parked row (not owner-restricted) and is the owner-release path; triage-step already wakes items it finishes.
- The 4-hour park on task 15345 (Fleet CA incident) came from no rule: the conductor rulebook contains no 4h/14400 figure (checked pre- and post-fix versions), and the verb default is 1200s. The term was the stopping agent's runtime choice.
Code-constant caps needing Drew's call (re-listed, unchanged)
Prompt caps found by the audit (context; fixes tracked in the audit report)
- orchestration-pass: 3 question answers / 2 dispatches per run — REMOVED 2026-11-12 under Drew's standing cap-removal ruling (hatch-personal 7671dabcab + live cron.update, read back). Its 25-classification and 250-Project-update caps are owned by the in-flight reconcile-caps lane (code#1408 follow-on).
- queue-hygiene-sweep: 60 blocked/held tasks per 4h run (mechanical checks uncapped) — binds recovery; report-only this pass (queue hygiene is actively being worked).
- triage-step: 25 tickets/run; dropped-thread-catcher: 5 catches fully processed/run; builder's advocate: 3 issues / 5 comments / 5 re-tiers per run; stale-pr-warden: 10 actions/run — all classified arbitrary-but-deliberate pacing in the audit report; none changed this pass.
Activitydeveloping-today commented on Nov 13, 2026 dezren39 commented on Nov 14, 2026
Evidence for the bound-work / verified-stale-binding case (task 15341, Atlas design mill, issue #9091) — lane code-a, 2026-11-14:
- Lane ledger row 7061 for task 15341 still binds session ses_e5e2dc87169ffeXD5Q6yj2SIeR (assigned/executed 2026-11-13). That session is terminal: it was stopped for working outside ~/git/fleet, and its worktree directory (/home/user/.local/share/opencode/tmp/opencode/queue-15341-9091-muse-send) no longer exists. Task progress itself records the session as "idle/terminal, verified not active".
- 2026-11-14T23:16:21Z: send_to_opencode.py (stream defect fix(claimant): send_to_opencode cannot send tasks in the one-queue 'code' stream (whitelist + REPOS lack it) #9103 now fixed) created a fresh session in the correct fleet worktree ~/git/fleet/queue-15341-9091-atlas-mill, then the broker refused the transfer: "task is already bound to session ses_e5e2dc87169ffeXD5Q6yj2SIeR: a bound launch is not a transfer". Send rolled back.
- 2026-11-14T23:19:02Z: after recording the §1b yield (checkpoint stage handed_off, Rule 4(1) opencode reason), launch_one.py --launch code:15341 created a session and failed at bind: "bind_repo_task_lane_session: task 15341 already bound to session ses_e5e2dc87169ffeXD5Q6yj2SIeR". Trial session deleted by the launcher.
- The recorded yield (progress.stage = handed_off, progress.session_id empty) was left in place for ~4 minutes across the standing claimant's fire window; the ledger binding did not change.
Net: there is currently no working path to re-dispatch a task whose lane-ledger binding names a verified-terminal session — not transfer (#8210 send), not claimant launch (launch_one bind), and the standing claimant did not clear it in the observed window. Task 15341 (attempts 12/1000) parks again naming the bound session. A binding-clearing path for verified-terminal sessions (with the verification recorded, as here) is the missing piece; this looks like the bound-work item in this audit's scope. Full re-dispatch packet is ready in the fleet worktree (SEND_NOTES_CODE_A.md) and on issue #9091 comment 6885779343, so once the binding can be cleared, any lane can re-dispatch in one pass. dezren39 commented on Nov 16, 2026 Separate park audit example, not a stale-binding diagnosis: workbook retirement #10044 / pilot task 16926 was claimed ~00:41 UTC Nov 16, with six-day ready-condition receipt and a seven-day park receipt, then claimed again ~03:41 UTC. At ~04:00 UTC exact pilot lookup showed parked; GitHub #9999 and #10042 both remain open with no live acceptance in the gate receipts. Please reconcile the successful stored park deadline/ready_condition, release/wake events or alternate claim route, and identities/timestamps before attributing cause. Do not wake it to reproduce or retire the workbook: the clean week starts only after both prerequisites are verified live. dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged (inline triage — audit asks split: fleet-actionable routed to task 20357; the two cap constants remain Drew's calls)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18909
- Found via: queue claim (bulk-intake triage packet, 2026-11-16)
Triage verdict (fresh, 2026-11-17, via gh):
- Issue Fleet park + cap audit (2026-11-12): parks that can never lapse, bound-work parks on verified-stale bindings, escalation-as-park, and BATCH_CLAIM_MAX for Drew's call #9179 is OPEN with no labels at all — the audit was never triaged into work. No hard-stop labels (
held, user/owned, do-not-merge, do-not-auto-edit). Labels applied this pass: task/small-fix, priority/high, effort/l, kind/infrastructure.
- Work kind: small-fix (queue mechanics + runbook rules). Priority: high — this issue is the named dependency of task 15341, whose dep-block freezes issue design(atlas): Atlas v1 build-out — design-mill starter (proto design → full design set) #9091's Atlas design-mill summit (verified on design(atlas): Atlas v1 build-out — design-mill starter (proto design → full design set) #9091 earlier this shift; Fleet park + cap audit (2026-11-12): parks that can never lapse, bound-work parks on verified-stale bindings, escalation-as-park, and BATCH_CLAIM_MAX for Drew's call #9179 still open). Effort: l across the five items.
- The split this triage records: five asks are fleet-actionable today — (c)1c wake/repair the never-lapse malformed parks (9316/9341/14378), (c)1a/1b close the fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426 validator bypass + add the hygiene check, (c)2 convert task 6699's Drew-wait park into a block/escalation record naming the id: F12.13 journal replication (read replicas over a signed stream) #806 ruling, (c)3 the runbook §1b verified-stale-binding exception, (c)4 the park-term-covers-its-condition rule (+ task 13224's disposition). Two items are Drew's calls by the audit's own framing and are NOT routed:
BATCH_CLAIM_MAX = 5 (stated supervision rationale) and the dep-block TTL/recheck constants — they stay on this issue as the named remainder; that is a genuine authority boundary recorded by the audit itself, not a can't-you dodge.
- First concrete step for the fix: a fresh Turso read of the named rows (the audit's row states are from 2026-11-13; repair only what is still malformed).
- Acceptance check: each of the five items evidenced on this issue; the closing note names only the two Drew-call caps as remaining.
Routing: repairs packet queued as task 20357 (small_fix, priority 10). Task 18909 completes as triaged naming it. Issue #9179 stays open until the actionable items land. dezren39 commented on Nov 17, 2026
state: actionable items done — only the two Drew-call caps remain
lane: any-b, worker: repo-worker-code, task 20357 (routed by task 18909 / lane any-c triage)
Disposition of the five fleet-actionable items from this audit, each evidenced fresh this shift (2026-11-17):
- (c)1c — wake/repair the malformed parks (9316/9341/14378): MOOT by fresh state. All three rows were re-read live before any repair: task 9316 done, task 9341 done, task 14378 blocked (legitimately, no longer malformed-parked). Intervening fleet work already freed them; there was nothing malformed left to wake.
- (c)1a — close the validator bypass: DONE. PR fleet-queue: storage-layer not_before validation + malformed-parked hygiene count (#9179) #10992 (merged, e1b05e5):
verb_park stored a caller-supplied not_before verbatim — the dispatch gate (fleet(queue): packet not_before is never validated — garbage and far-future values are forwarded verbatim, and a far-future task is born unclaimable #6426) only covers requests passing through it. Both verb_park and verb_revive now validate an explicit not_before at the storage layer with the shared rule and fail exit 2 before mutating.
- (c)1b — hygiene check: DONE. Same PR:
verb_health reports malformed_parked per queue (parked rows whose stored not_before fails the rule), folded in alongside the at-cap (repo queue: openchamber pilot tasks burn max_attempts on unlaunched handoffs and become silently unclaimable #6528) and dep-blocked (fix(queue): broker-owned dependency blocking — typed deps, automated recheck, max TTL #8276) counts. Suite: 394 lib tests pass, incl. stored_not_before_rule_9179 built on the audit's exact stored values.
- (c)2 — convert task 6699's Drew-wait park: MOOT by fresh state. Task 6699 is done; the id: F12.13 journal replication (read replicas over a signed stream) #806 Phase 5 work completed and the park no longer exists to convert. The doctrine half (escalations are classic blocks, never parks) already stands in the runbook's blocked/escalation discipline.
- (c)3 — §1b verified-stale-binding exception: DONE (runbook). The lane runbook §1b now carries the exception: a binding VERIFIED terminal (interrupted/failed, idle, absent from the OpenCode active set, verification recorded) is unbound and the task claimed/released in the same pass; the 30-minute bound-session park applies only when liveness is genuinely undecidable. Cites audit cases 15341 and 15345/Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155.
- (c)4 — park-term-covers-its-condition rule: DONE (runbook); 13224 disposition MOOT. Runbook §5 now requires a park whose reason names a future date/condition to extend past it (or name it in the ready_condition). Task 13224 itself is queued again (fresh read), so no mis-parked row remains to re-term.
Remaining on this issue — the two Drew-call caps, by the audit's own framing: BATCH_CLAIM_MAX = 5 (stated supervision rationale) and the dep-block TTL/recheck constants. Nothing else from the audit is outstanding; this issue stays open as their named home. dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#10992) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
By: Claude, 2026-11-22 flow review.
Generated by Claude Code dezren39 commented on Nov 25, 2026
Decided: Keep BATCH_CLAIM_MAX = 5 and the current dependency-block TTL and recheck bounds.
Why: The audit records a supervision rationale for the batch size and a liveness bound for dependency TTL; the current thread and source contain no measurement showing those bounds obstruct throughput or liveness. FDR-0013 makes this a lane decision, not an owner wait.
Undo: Change the bounds in a tested PR with a measured throughput or liveness failure that the new values address.
By: agent-next-24-local dezren39 commented on Nov 25, 2026
Progress: The cap decision is recorded at #9179 (comment). PR #14769 remains open. The first focused-test workflow used the full default dev shell and was cancelled before running the test; I dispatched the same focused test in the repo\u0027s lean .#fleet shell. Fleet accepted handle fp_0cae56edce839eed7dd568a0dc81fd01, but it has not correlated a run ID. A nearby runner run reached a successful target-command step and is still in post-execution; I am not treating the test as verified until the run is matched and terminal.
Next slice: after cargo test --manifest-path pkgs/fleet/Cargo.toml -p fleet-queue --lib park_time_condition_floor_9179 is verified green on PR #14769, land the PR and recheck #9179 against main. dezren39 commented on Nov 25, 2026
Correction to the earlier test-tracking note: Fleet run 45539525878 was unrelated (it ran a fleet-agent lease test on main) and does not verify PR #14769. The exact focused command ran on xaltha/9179-park-time-condition-floor at head cb6f363f5 in terminal-success Fleet run 45562568051: cargo test -p fleet-queue --features client,queue-broker --lib park_time_condition_floor_9179 passed 1/1.
PR #14769 is still open and behind current main. Its diff touches turso_queue/lifecycle.rs, which Q6 task 21704 still owns, and current main's full Fleet crate build fails at core.rs:1326 because HISTORY_KINDS declares 13 entries but contains 14. I am leaving #14769 open until the Q6 file gate and current-main build are clear; the caps decision is recorded at issue comment #7151898515. developing-today-fleet commented on Nov 25, 2026
Shepherd pass on PR #14769 (queue task 23712), 2026-11-25 ~09:05Z — one gate left.
Verified this pass:
Remaining gate: Q6 queue task 21704 still owns turso_queue/lifecycle.rs (claimed by repo-worker-code, no source changes). Its own blocker premise is stale — it waits on PR #14441, which closed unmerged; the Q1 successor PR #14700 merged 2026-11-25T01:24:50Z. That finding is posted on #14170 for Q6's owner.
Task 23712 is parked with ready condition task_terminal on task 21704. On wake: update #14769 to current main, rerun cargo test -p fleet-queue --features client,queue-broker --lib park_time_condition_floor_9179 remotely, merge #14769 with a merge commit if clean, then close #9179 — every other class and both cap items are already resolved. dezren39 commented on Nov 27, 2026 Progress (lane 2237-A-C, alpha DRIVE 2026-11-26 22:37 CST): PR #14769 verify-then-merge re-attempted. PR re-verified OPEN, non-draft, CLEAN/MERGEABLE at exact head cb6f363f57476b4605e513f13cf2acd54c55ca49; body, all comments, and full diff read. A FRESH remote verification was dispatched via the fleet-command.yml fallback: run 45941370112 on branch xaltha/9179-park-time-condition-floor, cargo test -p fleet-queue --features client,queue-broker --lib park_time_condition_floor_9179. At lane end the run was still queued (runner congestion; not started, no conclusion) — tracked by metadata only, no CI logs read. PR NOT merged this lane. Next lane: read run 45941370112's conclusion; on success at this head + still-clean PR, merge #14769 with a merge commit. Detail: #14769 (comment). #9179 stays open (Refs only; cap items already decided per the decision:v1 note above). developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|