GeezerVison is showing github.com — PM aggregator /program still stalls on a cold first request · Issue #10383 · developing-today/code
PM aggregator /program still stalls on a cold first request #10383DescriptionProblem
The PM aggregator's /program surface still stalls on a cold first request — the residual boot-window shape left over after #9594 was fixed. Two recurrences since lane 3c closed (PR #9861):
- Steward run 387 — 2026-11-14 ~09:17 CST:
/program returned 503 on pass 1 at 14.88s, then recovered 200 in 0.10s on pass 2. (Noted on pm-stack(aggregator): /board, /api/board.json, /api/overview.json + /frag/overview die with empty replies at ~12s; /program HTML regrown to 1.16MB #5082: pm-stack(aggregator): /board, /api/board.json, /api/overview.json + /frag/overview die with empty replies at ~12s; /program HTML regrown to 1.16MB #5082 (comment))
- Steward run 393 — 2026-11-14 ~15:17 CST:
/program timed out on pass 1 (curl 000 at 25.001s, 0 bytes), then recovered on pass 2 with 200 but slow at 8.43s. (Noted on pm-stack(aggregator): /board, /api/board.json, /api/overview.json + /frag/overview die with empty replies at ~12s; /program HTML regrown to 1.16MB #5082: pm-stack(aggregator): /board, /api/board.json, /api/overview.json + /frag/overview die with empty replies at ~12s; /program HTML regrown to 1.16MB #5082 (comment))
Background
Lane 3c (PR #9861, merged 2026-11-14 ~04:16 CST) documented the residual when it closed: in the first ~30–45s after a restart, a cold request can still 503 on empty last-good (the #9594 boot-window shape). Related closed work: #9594 (program cold start boot stall), #9781 (uncached brief comments fan out), PRs #9596 and #9835.
Tracking issue #5082 stays closed — this issue is the dedicated lane for the residual.
Ask
Root-cause the remaining cold-path stall — the empty last-good window and/or the slow first build — so a cold /program request never 503s or times out: the first request after a restart should serve last-good or a fast build, not fail. Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 17, 2026
Triage verdict (repo-queue task 19244, openchamber scheduled lane, 2026-11-17 UTC)
Fresh state: issue OPEN, no labels. The issue is still a real residual, not a duplicate.
Related merged work, all before the two recurrences on 2026-11-14, so the stall is not fixed by any of them:
Why this is not already done: the issue body states the recurrences were seen after #9861 merged, and no merged PR since then addresses the empty last-good window on a cold restart.
Verdict: keep open as a live bug. Route to the PM-aggregator owner lane, not a new worker packet from here: the fix has to be verified against the restart path on the live aggregator, which is outside this lane. Next step for that lane: reproduce a cold restart and check whether /program returns last-good or a fast build on request 1. dezren39 commented on Nov 18, 2026
Agent note — triage re-verified (openchamber scheduled lane oc-code-03, queue task 20574, 2026-11-18)
State: triaged; still open, no fix in this pass.
dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#11801) 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 24, 2026 Second-pass verdict (queue task 22026, lane oc-code-04, 2026-11-24): stays OPEN; the residual is real. Fresh state: OPEN, updated 2026-11-22, no labels, 4 comments. The two recurrences (run 387 503 at 14.88s, run 393 timeout at 25s) are described in the body and are not shown to be fixed. Size: effort/m root-cause work on the cold path (empty last-good window and slow first build) in the PM aggregator, which needs a live /program probe to verify. Routed as a scoped root-cause packet: reproduce the cold-start 503/timeout after a restart, then fix so the first request serves last-good or a fast build. Tracking: #14158. developing-today-fleet commented on Nov 26, 2026 Triage verdict (fleet any-o, 2026-11-26): implementation merged; live cold-restart proof remains. Verified PR #11801 merged 2026-11-18 and is on main: bounded routes persist each last-good response to (default ); after restart, a cold fallback reads and serves the saved response stale for up to six hours while fresh assembly continues. The PR includes four restart-specific tests (23 total passed), including stale disk copy served for HTML/JSON and invalid/old copies rejected. PR body explicitly says the remaining proof is a live cold restart on the laptop. This lane's Fleet enrollment reports shell transport unreachable (broker refused; proxy env missing), so that live probe cannot be run here without making an unverified claim. Park until laptop shell access is restored and the cold-restart probe can be executed. developing-today-fleet commented on Nov 27, 2026
Triage revalidation + live finding (task 24679)
Prior verdict confirmed: PR #11801 merged 2026-11-18 and on main — disk-persisted last-good with 4 restart-specific tests (23 passed). Last-good dir is armed and fresh (_2Fboard.json 2.2M written 23:38 CST, _2Fapi_2Fprogram.json.json 26K).
New live finding — cold-start probe currently BLOCKED: pm-aggregator.service is crash-looping (restart counter 105+, since ~23:38 CST) with EADDRINUSE on port 4870 (server.ts:1887). Read-only diagnosis: pm-aggregator.socket activated at 23:38:21 CST and holds 127.0.0.1:4870, while the service itself tries to bind 4870 — socket unit and service disagree on port ownership (socket description says inactive unless aggregatorSocketActivation). This lane did not touch the service; incident response belongs to the aggregator owner lane (sentinel throat #8568).
Resume: once the socket/service port conflict is resolved and the service is healthy, run the cold-restart proof — restart, immediately request /program, record status/latency/x-aggregator-stale. Note the present crash loop is an involuntary cold-start experiment: the first successful start's request-1 behavior is exactly the evidence this issue needs. dezren39 commented on Nov 27, 2026
Pickup — lane 0007-C-H (charlie ADVANCE, 2026-11-27 00:07 CST).
Premise check (issue + all comments read): PR #11801 merged the disk-persisted last-good, but in assembly-deadline.ts the disk copy is only read in the timeout branch — after the full 10s assembly deadline expires. So a cold first request still stalls the whole deadline before it can serve last-good, which is the residual stall this issue's title names (and a client with a shorter timeout still sees a failure).
Slice I am landing: on a cold request (no in-memory last-good), load the disk copy up front; give the fresh assembly a short cold grace; if it does not finish in the grace, serve the disk copy immediately (marked stale, with its pre-restart age) while the single-flight assembly keeps running in the background and seeds the cache on settle. A fresh assembly that finishes within the grace still wins, unchanged. Tests added to test/assembly-deadline.test.ts; verified by remote dispatch only.
The live crash-loop finding from task 24679 (socket/service EADDRINUSE on 4870) is a separate host incident routed to the aggregator owner / sentinel throat — not touched by this slice. dezren39 commented on Nov 27, 2026 Landed — lane 0007-C-H. PR #15957 merged (merge commit 86c8c7f); this issue closed via Closes #10383.
Done check against the ask: a cold first request no longer waits out the 10 s assembly deadline to serve last-good. On a cold request the disk copy is loaded up front, the fresh assembly gets a 1 s grace to beat it, and past the grace the disk copy is served at once (stale-marked, pre-restart age, still-running notice) while the assembly finishes in the background and seeds the cache. Verified by remote dispatch only: fleet-command run 45950825649 completed success on the exact head (bun test pm-stack/aggregator/test/assembly-deadline.test.ts, including the three new cold-grace tests).
Left, by design: the live cold-restart proof on the laptop aggregator, and the separate live socket/service EADDRINUSE incident (task 24679) routed to the aggregator owner / sentinel throat — neither is a code gap in this slice. developing-today-fleet commented on Nov 27, 2026 Progress (queue task 24679, lane agent-next-22-local):
- Live check: warm
/program returned 200 in 0.215s. Immediately after restarting pm-aggregator.service, the first request through 127.0.0.1:4870 reset (HTTP 000, 0 bytes, 0.0018s). Systemd logs show the proxy tried its backend at 00:15:02 CST and the aggregator first listened on 14870 at 00:15:04. The next request returned 200 in 10.015s.
- PR fix(nixos): gate PM aggregator proxy on backend readiness #15972 adds a bounded backend-listener readiness gate before the socket proxy starts. The focused test verifies delayed accept, timeout, and invalid-argument rejection; Fleet run 45953308285 passed. The test-only run 45951976554 failed on the missing gate as expected.
- The broader registry audit in run 45952703254 found 38 uncovered paths under
pkgs/id and pkgs/mcpx; none were this new readiness test.
Next slice after PR #15972: activate the merged NixOS unit and repeat the immediate cold-restart /program probe, recording first-response status, latency, and stale headers. #10383 remains open until that deployed runtime proof passes. developing-today-fleet commented on Nov 27, 2026
Parked on the deployment readback for PR #15972. Resume when the PR is merged and the active pm-aggregator.service unit includes the backend readiness gate; then run an immediate cold-restart /program probe and record its status, latency, and stale headers. Keep #10383 open until that runtime check passes.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|