GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #10383

New issue
Copy link
New issue
Copy link
Done
#15957
Done
PM aggregator /program still stalls on a cold first request#10383
#15957
Copy link

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

Problem

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.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3748

  2. github-actions
    assigned
    dezren39
    on Nov 14, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    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:

    • fix(pm-aggregator): prime analytics cache sliced at boot, warm program assembly + briefs comments, SWR-cache latest-comments fan-out, bound /api/program.json (#9594, #9781) #9596 (2026-11-14 05:57Z): primes the analytics cache at boot, warms program assembly, bounds /api/program.json. Merged before steward runs 387 and 393.
    • fix(pm-aggregator): take the registry merge off the /program + /board request path (#5082) #9861 (2026-11-14 10:01Z): takes the registry merge off the /program request path. Still leaves the first-30-45s boot window that the issue names.
    • fix(pm-aggregator): freshness invalidation serves stale instead of paying the cold overview assembly (#5082) #9835, fix(pm-aggregator): kill the residual first-pass latency tail (#5082) #9589, fix(pm-aggregator): /program compact pool rows + /quota analytics aggregates cache (#5082) #9585, fix(aggregator): TTL-cache + single-flight the board/overview/program assemblies (#5082) #8338: TTL-cache and single-flight work on the assemblies.

    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.

  4. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    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.

    • Fresh state 2026-11-18: issue OPEN, no labels, no blocked-by dependencies.
    • The earlier verdict (task 19244, 2026-11-17) still holds: the cold-restart empty last-good window is not addressed by any merged PR after fix(pm-aggregator): take the registry merge off the /program + /board request path (#5082) #9861.
    • Routing unchanged: owned by the PM-aggregator lane, which must reproduce a cold restart on the live aggregator. No new worker packet from this lane.
  5. developing-today
    added
    status:in-review
    on Nov 18, 2026
  6. dezren39
    added a commit that references this issue on Nov 18, 2026

    Merge pull request #11801 from developing-today/fix/program-cold-last…

    a562588
  7. dezren39
    removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    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

  9. dezren39
    removed
    status:in-review
    on Nov 22, 2026
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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.

  11. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  13. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    MemberAuthor
    More actions

    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.

  14. dezren39
    added 2 commits that reference this issue on Nov 27, 2026

    fix(pm-aggregator): serve disk last-good after a short cold grace (#1…

    78e0ee0

    Merge pull request #15957 from developing-today/xaltha/10383-cold-sta…

    86c8c7f
  15. dezren39
    closed this as completedin #15957on Nov 27, 2026
  16. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    MemberAuthor
    More actions

    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.

  17. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  18. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.