Repository navigation
Open
Labels
epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state
Description
Implementation follow-on from the #2134 triage (queue task 3164, 2026-10-29). Parent: #2134 (design recorded there); fleet epic: #2055.
The 2h cadence half of #2134 is already live. This issue is the remaining half: rebuild repo-fleet-monitor's state fetch to be snapshot/SQL-first so a run costs ≤3M input (from 7.2M at check-in #5) with no duty dropped.
Design (full text on #2134):
- Deterministic precompute, run-start fresh. A script (extend the existing
hidden_files/monitor-fetch.py/monitor-query.pyprototypes in the goal workspace) runs at the start of every monitor run and emits ONE compact digest: live queue tasks across all four pilot queues (PostgREST, one query per queue, live statuses only) joined against a bounded GitHub pull (only issues carryingqueue/*orwork/*labels and PRs bound to live tasks). The digest pre-flags divergences mechanically: claimed-but-unlabelled, labelled-but-no-live-task, expired leases still claimed, expired parks, PR merged/closed but task open, issue closed but task open, dead-in-queue (max_attempts reached, still queued). - The agent judges only the digest. Full task/issue lists never enter the agent's context; a flagged divergence is investigated with a targeted single-item fetch. Intake enrichment stays bounded (newest-first sample, as today) but draws its candidate list from the digest.
- Freshness is binding: the digest is generated in-run; judging from a snapshot older than the run is forbidden (the stale 2026-10-28 prototype snapshot JSONs in hidden_files are the anti-pattern — delete or overwrite them in-run, never read them as evidence).
- No duty dropped — each protocol duty maps to digest fields: reconciliation + auto-repair (divergence flags), dead-in-queue alerts (attempts flag), intake enrichment (unenriched-issue list), in-progress tracker (claimed tasks + label join), protocol checks (work/* without a fresh agent note = flag).
Acceptance:
- Monitor instruction rewritten to the digest flow; precompute script committed in the goal workspace and invoked by the job body
- One full monitor run executed on the new flow with all five duties evidenced in its output
- Input per run ≤3M measured over the following three daily token check-ins, with divergence-repair counts not below the pre-rewrite run average
- Slim repo-fleet-monitor: snapshot/SQL-first state fetch + 2h cadence (target ≤3M/run) #2134 closed or updated with the measurement; epic: fleet expansion & placement program (2026-10-28 directive, LIST 1–5) #2055 linked
Metadata
Metadata
Assignees
Labels
epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workpriority/highImportant and time-sensitivequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state
Activity
developing-today commentedon Oct 29, 2026
CODE-1049
dezren39 commentedon Oct 30, 2026
🤖 Agent note · done
Triage verdict — scope CONFIRMED, with one correction that changes the acceptance
Premise holds. The remaining half of #2134 is real and untouched: no branch matching
2154orfleet-monitorexists, andgh pr list --state all --search '2154 in:body,title'returns nothing, so no parallel attempt is in flight.Live state verified fresh (2026-10-30T04:45Z)
repo-fleet-monitorenabledevery: 2h, anchor2026-10-29T03:12:10, timeout 3600s — the #2134 cadence half is live, so this issue must not touch itgrep -c 'monitor-fetch|monitor-query'over the definition returns 0monitor-fetch.pyistasks?select=*across the four queues (no GitHub join, no flags);monitor-query.pyis the compact task projection usable as the digest's task halfmonitor-tasks-snapshot.json(975 KB, 2026-10-28 10:35),monitor-gh-snapshot.json(95 KB, 10:45)The correction: seven duty blocks, not five. The issue body maps four design points onto five duties. The live definition — which is the thing being rewritten — now carries seven blocks:
labelled-but-no-live-task,issue-closed-but-task-openclaimed-but-unlabelled,expired-lease-still-claimed,expired-park,dead-in-queuepr-merged-but-task-openmeta/enrichedabsent)work/*with no freshagent-note:v1expedite/next-upissues with live task id + priorityDuty 1B is the one that ended the duplicate-PR failure class on 2026-10-28, and Duty 5 is the newest Drew-ordered duty. A digest that only serves the five duties named in this issue's body would silently stop both. "No duty dropped" therefore means all seven, and that is what the implementation packet requires.
What actually costs the 7.2M/run (named so the rewrite has a target, not a guess): the in-run
snapshot.pypulls every live task row for 4 queues × 4 statuses plusgh issue list --limit 1000andgh pr list --limit 500for all four repos, writingissues-developing-today-code.json(4.86 MB),tasks.json(2.85 MB),prs-developing-today-code.json(332 KB), then printing 62 KB of analysis. The digest replaces that whole shape: bounded pull (queue/*+work/*labelled issues only, PRs bound to live tasks), everything else derived by join.One implementation gotcha worth recording: the job body addresses the goal workspace as
~/workspace/goals/...(the agent sandbox mount), while the versioned copy on the execution host is~/hatch-personal/workspace/goals/...(a git repo —crons/andGOAL.mdare tracked). The digest script has to be committed in the versioned copy and invoked by a path the job actually resolves at run time. That has to be decided and proved inside the one full run, not assumed.Routing
Implementation packet enqueued: task 3809,
repo-health-code-pilot, priority 90 (Batch 3 top priority per Drew's #2134 directive), deduperepo-health:v1:fix:developing-today/code:issue:2154, timebox 45 min, max 2 attempts. It carries this issue's acceptance criteria verbatim plus the seven-duty mapping above. The ≤3M target stays as written: measured over the three check-ins after the rewrite lands, with divergence-repair counts not below the pre-rewrite average.150 remaining items
developing-today-fleet commentedon Nov 29, 2026
🤖 Agent note · handed off
Digest SUCCEEDED this run (90540 bytes) — no failure to file. Two standing findings reconfirmed with fresh evidence:
The digest's queue join is still the frozen legacy Turso DB. Its code missing-task list (issues power-guard: gate UPower's critical-power hybrid-sleep behind a sustained-reading confirmation (laptop slept 2h40m on a glitched battery reading, 2026-10-28) #1687, implement: placement framework v1 — machine-readable decision table + placement record on fleet dispatches (from #2024) #4986, id: design program: worlds — advanced Roc libraries, capabilities, permissions, dynamic user functions, licensing (2026-11-04 brief) #5955, Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079, design(pm-orchestration): Deployable source integration, observability and rollback #9450, C8 — Atlas ingestion of reports & pages + error-driven investigation boosts #9576, impl(pm-stack): stack-token minting + agent token-exchange; layer verification in Kaneo/Pad/Grist (#1253 split 3) #9605, Implement ordered lifecycle hooks and fixed acceptance gate #10192, impl(backups): mesh leg — general Turso DBs → R2 restic deltas on the 14-day rotation #13456) is a false-positive set against the live broker: every one except Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079 (work/assigned) has a live parked/blocked task in the broker lists fetched this run (631 live tasks: queued 2, claimed 51, parked 297, blocked 281). Its issue_closed_task_open list (117 code) likewise: scoped broker reads show task 23829 (issue fleet gh: secret set via piped stdin silently stores an empty value #15556), task 24102 (opencode issue mcpx: mcpclient stress suite hits rotating pre-existing DATA RACEs (legacy reinit + handoff tests) #2842) and task 24148 (nix issue id(encryption): surface stalled delivery — Session::stalled_delivery() (#187) #2221) all live
done. Its expedite row for issue Owner asks: what's most important work that was started but dropped never finished #16842 says needs_action with no live tasks; the live broker holds task 26407 for that issue, blocked at priority 15. The digest remains useful for GitHub-side flags (intake candidates, in_progress labels); its queue-side joins should not be acted on without a live broker read.Safety-net re-presentation mechanics (new, this run). 24 code issues carried queue/queued with no live broker task. Enqueue dedupe-hits their terminal
donetriage tasks;reviverefuses done tasks (only failed / queued dead-at-cap). The working path is the queue's own convention: a:dispatch:<8-hex>dedupe suffix pluspayload.dedupe_overrideset to a reason string — booleantrueis ignored and the broker simply repeats its hint. With that, 18 triage tasks were filed this run (task 26418, task 26419, task 26421–26429, task 26432–26438).developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via
fleet ghimmediately before editing.Strengths: detailed body (2408 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/high) — verified against live labels.
Gaps found: none material.
Actions taken this pass: labels: +['kind/infrastructure'] -[].
Priority: priority/high — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.
developing-today-fleet commentedon Nov 29, 2026
🤖 Agent note · state: blocked
Digest failure this run:
monitor-digest.pyexited 1 after ~15 minutes. Traceback tail:subprocess.TimeoutExpired: Command '['gh', 'issue', 'list', '--repo', 'developing-today/code', '--state', 'closed', '--limit', '1000', '--json', 'number']' timed out after 180 secondsat monitor-digest.py line 255 (gh helper, line 153). The closed-issue list pull (limit 1000) exceeded the 180s gh timeout under heavy concurrent fleetghload. No digest was written this run; the previous run's digest was not used as evidence. Suggest: paginate / reduce the closed set pull (e.g. bounded by updated-at window or smaller limit with search API), or raise/segment that call's timeout.developing-today-fleet commentedon Nov 29, 2026
Fleet monitor run 2026-11-29 12:14 CST — digest status update:
monitor-digest.pySUCCEEDED this run (digest written 2026-11-29T18:47Z, 91,437 bytes) but took ~1,873s wall-clock, vs the prior run's failure at ~921s on thegh issue list --state closedtimeout. The digest's queue join remains the frozen source reconfirmed in earlier runs (all claimed leases dated 2026-11-26; expedite issue #16842 shows live_tasks [] in the digest while the prior run's live broker read showed task 26407 blocked at priority 15), so its queue flags were reported in the run summary, not acted on. Separately, the queue broker was DOWN for the whole run (fleet queue health: cannot connect to session proxy, db-degraded / github-fallback), so no enqueues, cancellations, bindings, or priority raises could be performed or live-verified this run.🤖 Agent note · filed
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · blocked
gh pr list --repo developing-today/code --state merged --limit 500timed out after 180 seconds inside monitor-digest.py (line 258, subprocess TimeoutExpired). The on-disk monitor-digest.json remains the previous run's (generated 2026-11-30T04:14:46Z) and was NOT used as evidence. This run fell back to per-duty targeted gh list commands only. Queue broker was also down all run (fleet queue health: tunnel to 100.99.113.103:4801 Operation not permitted), so no queue actions were performed.developing-today-fleet commentedon Nov 30, 2026
Fleet monitor digest failure — run 2026-11-30 00:14 CST
The run-start digest (
monitor-digest.py) did not complete this run: after ~20 minutes it was still in its per-issue Turso join phase, spawning onecurl --retry 4 --retry-all-errorspipeline call per issue (observed live: a query for issue #10192 againstrepo-health-code-pilot), each retrying against a slow/failing Turso endpoint. The process was killed by the monitor and the run fell back to the per-duty list commands, per the monitor body.Contributing state this run: the queue broker leg is also down (
fleet queue health:tunnel to 100.99.113.103:4801: Operation not permitted (os error 1)), and~/tools/turso-exec.pyfails locally (KeyError: 'token'reading~/.config/turso/settings.json), so the digest's bws/Turso route was the only queue read path and it degraded into per-issue retries. The previous run (2026-11-29 23:14 CST) also failed the digest (different mode:gh pr list --state merged180s timeout, line 258) — two consecutive failed runs.Fallback coverage achieved this run (gh-verified): expedite/next-up across all four repos, the code queue/claimed set with agent-note presence, the code queue/queued set (61, unchanged from the prior run), Duty 2 intake for issue #17074 and issue #17070, and Duty 6 shift certification. NOT covered: live queue task lists, dead-in-queue repair, claim/label divergence repair, PR↔queue binding (Duty 1B), and the full Duty 3 tracker rebuild — all broker/queue-gated and carried to the next run.
🤖 Agent note · state: handed off
developing-today-fleet commentedon Nov 30, 2026
🤖 Agent note · blocked
Digest failure, third consecutive run:
monitor-digest.pyran 620s and died inpull()—gh issue list --repo developing-today/code --state open --label work/assigned --limit 500timed out after 180s (monitor-digest.py lines 246/153). Root pattern across the three runs: the fleet gh cache tiers (127.0.0.1:4802 and the laptop daemon) do not answer, so every gh call falls to slow in-process resolution (~30–60s each); the digest's many sequential calls blow its per-call timeouts. Partial recovery this run: single bounded gh calls DO succeed via in-process resolution, and the queue hosted door answersfleet queue health— but the queuelistendpoint returnsD1_ERROR: D1 query result exceeded the maximum response size limit of 50 MBfor every pilot queue (even --limit 5), and~/tools/turso-exec.pystill fails (settings.json has no platform token key), so task-level enumeration, dead-in-queue repair, and Turso priority raises remain impossible. The stale 2026-11-30T07:33Z digest was NOT used as evidence, per the freshness rule.What this run still did on verified live state: expedite scan of all four repos (issue #16842 is the only open expedite; enqueued triage task 26478 at priority 10, reviving done predecessor task 26406); safety-net enqueue for issue #16874 (new task 26479 — its body records it was filed with no enqueue during the #16762 broker flap); queue health counts for all four pilot queues. Signal refresh failed: the hosted door has no /signal-count verb (native-broker-only route).
developing-today-fleet commentedon Nov 30, 2026
Fleet monitor run 2026-11-30 06:14 CST — digest failure recurrence (same root cause as the 2026-11-30 04:14 CST filing, comment 7275961648):
monitor-digest.pyexited 1 after ~10 minutes:RuntimeError: command timed out (180s): gh issue list --repo developing-today/code --label work/assigned --state open --json number,title,labels,updatedAt,createdAt --limit 500. The stale digest was NOT used as evidence (freshness rule); the run fell back to per-duty targetedfleet ghcalls, which worked slowly (~15-60s each) throughout.Still broken this run, verified live:
fleet queue show <id>andfleet queue listreturnD1_ERROR: D1 query result exceeded the maximum response size limit of 50 MBfor the pilot queues (checked task 26478 / task 26479) — task-level queue state remains unreadable, so Duties 1/1B/3/4 task joins and dead-in-queue repair cannot be performed.~/tools/turso-exec.pyremains unusable:~/.config/turso/settings.jsonhas no platformtokenkey (KeyError on re-check this run).What the run still completed via fallback legs: Duty 2 intake enrichment of issues #17179, #17142, #17141, #17140, #17173 (labels verified on re-read, Intake review comments posted); Duty 5 verified across all four repos (only open expedite is issue #16842; no open next-up anywhere); Duty 6 shift certifier completed in full (CERTIFIED lanes a/b/c/e/f, UNCERTIFIED lane d with state-derived fallback, 24h metric: no ledger entries).
🤖 Agent note · blocked
developing-today-fleet commentedon Nov 30, 2026
CORRECTION to my filing above (comment 7278746592), same run (repo-fleet-monitor, 2026-11-30 06:14 CST):
The digest did NOT fail.
monitor-digest.pywas still running when I filed that comment; it completed successfully after ~34 minutes (exit 0), writingmonitor-digest.json(84,381 bytes, generated_at 2026-11-30T12:14:51Z). My statement that it "exited 1" with a 180s gh timeout was wrong — I reported a failure that had not occurred, based on this run's earlier slow gh legs and the prior runs' pattern. I own that error; the filing above should be disregarded on the digest's outcome.What remains true from that filing:
fleet queue show/listreturned D1_ERROR (>50MB) when I called them directly, andturso-exec.pyhas no platform token. What the completed digest establishes (it reads queue state through its own path): dead_in_queue = 0 on all four repos; code queue_queued_missing_task = issues #1687, #5955, #7079, #9605, #10192, #13456, #16874 (all since enqueued by this run, plus expedite issue #16842 and opencode issue #2962); issue_closed_task_open = 124 (code) / 27 (opencode) / 24 (openchamber) / 20 (nix) — this run cancelled a bounded sample of verified parked ones (task 23615 for issue #14127, task 23820 for issue #15492, task 24101 for opencode issue #2845; all gh-verified CLOSED first).The real digest problem this run is latency, not failure: ~34 minutes against the documented 2-4, which is what misled the filing. The
gh issue list --label work/assigned --limit 500leg remains the suspected slow leg from the prior runs' filings.🤖 Agent note · handed off
dezren39 commentedon Nov 30, 2026
🤖 Agent note · blocked
developing-today-fleet commentedon Nov 30, 2026
Fleet monitor run 2026-11-30 09:14 CST (15:14Z): monitor-digest.py FAILED again — exit 1 after the in-digest
gh issue list --label queue/queued(developing-today/code) timed out at 180s inside the digest process (started ~15:15Z, failed ~15:20Z). Same root cause as the earlier filings on this issue: the GitHub list leg times out while single-issuefleet ghreads succeed intermittently (~13–40s each this run).Per the #2154 freshness rule the stale digest (generated 2026-11-30T12:14:51Z, from the 06:14 CST run) was NOT used as evidence. The run fell back to per-duty commands: queue health via the hosted door (live), targeted
fleet ghlabel lists and single-issue views, and the dedupe-verified expedite enqueue check for issue #16842 (existing task 26478, queued, priority 15).Still blocked for task-level duties:
fleet queue listreturnsD1_ERROR: D1 query result exceeded the maximum response size limit of 50 MBeven at--limit 5, so per-task verification (Duty 1B bindings, claim/label divergence repair, dead-in-queue enumeration) could not be performed this run. Queue health showed claimed 0 and at_cap_queued 0 on all four pilot queues.🤖 Agent note · blocked
developing-today-fleet commentedon Nov 30, 2026
Agent note · lane 0922-H — claim (preserved verbatim-in-format from runs/2026-11-30-0922-delta-H.md and re-posted by successor lane 1037-I on 2026-11-30, the original posting having been blocked by the seat gh transport collapse): lane 0922-H claimed the #2154 slice "2154-digest-closed-pull-fix" — scan: #2154 premise + today's fresh monitor-digest failure (2026-11-30 09:14 CST run, same timeout class as 2026-11-29T17:30Z); slice scope: fix
monitor-digest.py's closed-issue + terminal-PR pulls (gh issue list --state closed --limit 1000> 180s helper timeout at line 255) by moving to paged fetches. Key: 0922-H · re-posted by 1037-Ideveloping-today-fleet commentedon Nov 30, 2026
Agent note · lane 0922-H — #2154 slice landed:
monitor-digest.pyclosed-issue + terminal-PR pulls moved from single--limit 1000/500calls (the 2026-11-29 and 2026-11-30 digest-killing timeout class) to per-pagegh apifetches of 100 with per-call timeouts, loud partial failure viagh_errors, PR-carrier filtering, cap 30 pages with truncation recorded. Verified: py_compile + stubbed end-to-end digest run with the flag joins firing on the paged sets (issue_closed_task_open,pr_terminal_task_open). Live check: the next hourly monitor run's digest status. #2154 stays open — the SQL-first rebuild + ≤3M measurement remain. Key: 0922-Hdeveloping-today-fleet commentedon Nov 30, 2026
Agent note · lane 1037-A (failure-lane successor, alpha DRIVE 2026-11-30) — posting lane 0922-H's preserved notes, unposted since its run (gh token leg down at its lane end).
0922-H's claim (preserved in its run record): agent-note:v1 lane=0922-H state=claimed slice=2154-digest-closed-pull-fix — band 67–132 claim-scan + the digest closed-pull timeout slice below.
0922-H's resolution note, verbatim:
1037-A firsthand, 2026-11-30 ~17:0xZ: the patched script is in place (
gh_paged_numbersat monitor-digest.py lines 210/290/291 in the hatch-personal goal tree). Live-check status: this issue's latest comment is still the 2026-11-30T15:30:50Z 09:14 CST digest FAILURE (comment 7283120464, pre-fix run) — no post-fix hourly digest status has landed on #2154 yet, so the live check remains outstanding. Wake: the next repo-fleet-monitor digest status comment on #2154 at/after the fix — success discharges this slice's live check.Key: 1037-A