Skip to content

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

Description

@developing-today

Filed by the pool-quota-steward follow-through (Drew, 2026-11-03: "/program and board are both fucked up and something needs to watch them; it might as well be steward"). The steward now checks these surfaces every run and will refresh this issue with fresh observations; this filing carries the first evidence set.

Symptoms (laptop, aggregator on 127.0.0.1:4870, direct Bun server — no proxy in front)

  • GET /board and GET /api/board.json: intermittent empty replies — the connection closes with no bytes after ~12.0s. Observed failing repeatedly on 2026-11-03 (morning through 13:1x CST); at 12:53 CST both returned 200 (59,918B / 9,841B) but took 5.1s; at ~13:12 CST both died again at 12.001s / 12.002s (curl exit 52, 0 bytes).
  • GET /api/overview.json and GET /frag/overview: same failure family — empty reply at 12.000s (observed 13:09–13:12 CST). The Overview page shell (/) serves instantly, but its quota strip arrives via /frag/overview, so the front door shows the same breakage.
  • GET /program: serves 200 fast (0.82s) but the HTML payload is 1,165,151 bytes — the slimming landed earlier (44.3MB → 716KB) has regressed by ~63%. /api/program.json is 65,931B and fast.

Failure point (as far as identified)

  • The dying routes share one assembly: /api/overview.json is deriveOverview(await overviewContext()) (src/server.ts:1522) and /frag/overview uses the same overviewContext(); /board + /api/board.json render the board facet of the same context family. Quota-only routes (/api/quota.json, /quota) answer in ~0.03s, so the quota path is NOT the slow part.
  • The cutoff is suspiciously exact (~12.000s, connection closed, zero bytes): the handlers produce no bytes while assembling, and something in the serving path gives up at ~12s. Bun.serve is configured with no explicit idleTimeout (src/server.ts:1928). Whether the 12s is Bun's idle window or a client-visible sum of awaited sub-timeouts (the projector facet at 127.0.0.1:7801 has an 8s timeout; projects.ts uses 20s; supabase.ts 60s), the assembly intermittently exceeds it — at 5.1s on a good run, >12s on a bad one — and the failure mode is silent (empty reply, nothing in the response to diagnose with).
  • Latency variance suggests cache/load dependence in the facet assembly; the steward's hourly checks will show the failure cadence.

What is NOT being asked here

No rebuild in this issue: the steward WATCHES and reports (state + latency + bytes for /program, /api/program.json, /board, /api/board.json every run, recorded in its report; broken state named in its delivery). This issue is the evidence home. Related: #1503 (shell pages must surface stalled fragments — adjacent, about fragment UX rather than the assembly latency itself).

Acceptance shape (for whoever picks it up)

/board, /api/board.json, /api/overview.json and /frag/overview answer 200 with content across repeated probes, including cold ones; /program HTML payload back near its post-slimming size; a slow assembly degrades to a visible stale/error state instead of an empty reply.

Acceptance criteria

  • Repeated probes (including cold starts) of /board, /api/board.json, /api/overview.json and /frag/overview return 200 with content — no empty replies at the ~12s cutoff.
  • /program HTML payload is back near its post-slimming size (~716 KB), with the regression source identified.
  • A slow facet assembly degrades to a visible stale/error state instead of an empty reply.
  • The steward's surface checks record a sustained run of healthy observations for these routes.

Activity

  1. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Pool-quota steward, 139th run (2026-11-04) — the intermittent empty-reply failure REPRODUCED this run, twice, on independent probes (all laptop aggregator, localhost:4870):

    1. Full-surface batch probe (~03:28Z): /program 000 after 12.002s (0 B), /board 000 after 12.008s (0 B), /api/board.json 000 after 12.005s (0 B), /frag/overview 000 after 12.009s (0 B), /api/overview.json 000 after 12.008s (0 B) — all five board/overview-assembly surfaces dead simultaneously at the ~12s mark, while /api/quota.json (200, 0.20s), / (200), /quota (200), /today (200), /aa (200) and /quota/service/turso (200) answered normally in the same batch. /api/program.json answered but slowly (200, 8.12s, 64,896 B).
    2. Independent re-probe (03:34Z): /api/board.json 000 after 12.011s (0 B) while /program (200, 1.63s, 1,167,098 B), /api/program.json (200, 0.11s), /board (200, 5.17s, 60,287 B), /frag/overview (200, 9.74s — slow) and /api/overview.json (200, 5.06s) answered.
    3. Immediate follow-up (03:34Z): /api/board.json answered 200 twice at ~5.1s (9,841 B) — confirming intermittency, not a hard outage.

    Pattern matches this issue exactly: the shared overview/board assembly intermittently dies with empty replies at ~12s. Note: an earlier probe result in the same steward run reported all surfaces healthy — the failure is flapping within minutes, so single healthy probes do not clear it. Steward is watch-and-surface only per its instruction; no aggregator repair attempted. Separately, /program HTML remains ~1.167 MB.

  2. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Steward refresh — 2026-11-04 daily pass (141st run, ~06:19Z, laptop localhost:4870): the empty-reply failure mode REPRODUCED on all four board/overview-assembly surfaces in one probe batch — /board 000 (no answer within the 25s probe cap, 0 B), /api/board.json 000, /frag/overview 000, /api/overview.json 000. In the same batch: /program 200 @ 3.16s (1,167,043 B — the ~1.167 MB HTML size concern stands), /api/program.json 200 @ 0.11s (64,896 B), and every quota surface answered 200 (/ 4.98s, /quota 5.02s, /today 3.77s, /aa 2.24s, /quota/service/turso 5.13s, /api/quota.json 5.08s 51,808 B). This matches the intermittent pattern recorded 2026-11-04T03:28–03:34Z: the shared board/overview assembly dies while program and quota surfaces stay up. Steward is watch-and-surface only; no repair attempted.

  3. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Steward addendum to the 141st-run refresh above (comment 6624171213): a second probe batch from the same run (~06:2xZ, laptop localhost:4870) returned a DIFFERENT failure mix, and a steward re-probe at ~07:05Z found everything healthy — the surfaces are flapping within minutes, exactly this issue's intermittent mode. Batch 2: /program 000 @ 12.00s (0 B — the empty-reply death reached /program itself this time), /board 000 @ 12.00s, /api/board.json 000 @ 12.00s, /api/program.json 200 but slow @ 8.06s (61,773 B), /frag/overview 200 slow @ 9.76s, /api/overview.json 200 @ 5.03s; quota surfaces all fast 200 in that batch. Re-probe ~07:05Z: /program 200 @ 1.90s (1,166,369 B), /board 200 @ 5.18s, /api/board.json 200 @ 5.03s, /frag/overview 200 @ 5.33s, /api/overview.json 200 @ 5.04s. Combined picture for the run: batch 1 = board assembly four surfaces dead, program up; batch 2 = program + board + board.json dead, overview fragments up slow; re-probe = all up, board assembly ~5s. Watch-and-surface only; no repair attempted.

  4. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 4, 2026
  5. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    🤖 Agent note · handed off

  6. added
    queue/queued
    status/needs-triage
    task/triage
    and removed
    queue/queued
    on Nov 4, 2026
  7. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    agent-note:v1
    {"kind":"handoff","task":9456,"lane":"code-v","execution_lane":"opencode","state":"parked","note":"task 9456 (triage) handed off to opencode claimant by lane code-v. Fresh revalidation: issue #5082 OPEN, no hard-stop labels, no prior task progress — claimant triages the pm-stack aggregator empty-reply deaths (/board, /api/board.json, /api/overview.json, /frag/overview at ~12s) from scratch."}

  8. added
    queue/parked
    and removed
    status/needs-triage
    on Nov 4, 2026
  9. 264 remaining items

  10. added
    kind/bug
    on Nov 29, 2026
  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

    • STRENGTHS: The symptom evidence is precise (four routes, ~12.0s empty-reply deaths with curl exit 52, the 5.1s degraded successes, /program HTML regrown to 1.16MB), the steward now watches these surfaces every run, and the queue disposition is merged_verified with the residual tracked in PM aggregator /program still stalls on a cold first request #10383 — this stays open as the umbrella tracker.
    • GAPS: It carried no kind/* label, and (per CEN-C03's note today, which also added the missing priority/high) the body's evidence set is from 2026-11-03: nothing in the record confirms whether the ~12s empty-reply deaths still reproduce today.
    • FIXES I APPLIED: Added kind/bug.
    • REMAINS: First step for whoever picks this up: re-probe the four routes (/board, /api/board.json, /api/overview.json, /frag/overview) against the live aggregator and record timings here; if the deaths no longer reproduce, the umbrella can close against the PM aggregator /program still stalls on a cold first request #10383 residual; if they do, the fresh evidence restarts the fix track.
  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Progress — Felix lane 0640-AH, 2026-11-29.

    Re-probe (census note's first step), live laptop aggregator 2026-11-29 ~15:22–15:28Z: all four named routes answer 200 with content across repeated probes — /board 0.060–0.125 s (1,370,304–1,370,463 B), /api/board.json 0.009 s (711,415 B), /api/overview.json 0.025–0.027 s (~5.3 KB), /frag/overview 0.013 s (7,208 B). /program: 169,755 B on five consecutive hits (0.02–0.05 s) — back under the post-slimming size; one single earlier hit at 1,367,153 B was observed once and did not reproduce (possibly a stale generation served across a restart; not chased). /api/quota.json took 1.91 s on one pass. The ~12 s empty-reply deaths do not reproduce warm today. Cold-request behaviour is the #10383 disk-last-good mechanism (closed).

    Slice landed — PR #16838: the failure family's most recent reproduction was not the board/overview routes but the quota pair (steward runs 444/449/450/453, 2026-11-17: /api/quota.json + /quota stalling past 25 s, zero bytes — the observation this issue was reopened on). Those two routes were the only dashboard assemblies still outside BOUNDED_DASHBOARD_PATHS: /quota's per-facet .catch cannot fire on a read that never settles, and /api/quota.json awaits its facets with no catch at all. PR #16838 adds both to the bounded set (marked-stale last good or a 503 with a body, never an empty reply) with the assembly-deadline tests extended to cover them. Verification run 46279018709 dispatched on the branch; verdict will be recorded here from the job log.

    Issue stays open: the steward's standing watch continues, and a cold-probe series across a restart remains the one acceptance leg only time can produce.

  13. added a commit that references this issue on Nov 29, 2026
  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Verification — Felix lane 0640-AH, 2026-11-29. PR #16838 verified via the repo-native workflow: pm-aggregator-tests run 46279874269 on branch felix/5082-bound-quota-routes — step "Run aggregator tests": success (the full aggregator suite, including the extended test/assembly-deadline.test.ts coverage for /quota and /api/quota.json). The run's only failure is the Typecheck step: tsconfig.json(6,5): error TS5102 — the pre-existing #16835 breakage (TypeScript 7 removed baseUrl), on a file this PR does not touch; lane 0640-AG holds that fix. The fleet-command run 46279018709 dispatched earlier remains queued in the executor backlog and is now redundant; it was left alone per the session model (runs stay open by design).

    PR #16838 is ready for Felix's merge. This closes the slice: the quota pair now degrades to marked-stale/503-with-body instead of an empty reply when its assembly stalls. The issue itself stays open for the steward's standing watch and the cold-probe leg named in my progress note.

  15. added
    status/needs-triage
    effort/m
    app/pm-stack
    on Nov 29, 2026
  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: label set was nearly empty — no kind/, no status/, no effort/, no app/ (only priority/high, task/triage and epic/parent markers). Acceptance existed only as a prose "Acceptance shape" paragraph, not checkable criteria.
    Strengths: strong evidence body — symptoms with timestamps and byte counts, the shared assembly failure point identified in source (overviewContext() family), the ~12.000s cutoff characterised, and what is NOT being asked (no rebuild; the steward watches) stated plainly. Related work linked (#1503).
    Actions: added labels kind/bug, status/needs-triage, effort/m, app/pm-stack; appended a ## Acceptance criteria section derived from the body's own acceptance shape (original text untouched). Priority unchanged (high — user-facing board/overview surfaces failing outright justifies it).

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

    @developing-today-fleet
    Contributor

    Progress — oc-code-06, 2026-11-29. Rechecked the acceptance criteria before cutting another slice. Code evidence on current origin/main: assembly-deadline.ts bounds /board, /api/board.json, /api/overview.json, /frag/overview, and /program; test/assembly-deadline.test.ts covers visible timeout responses, stale last-good responses, late assemblies, and cold disk-cache behavior. PR #16838 is merged and independently recorded as verified. Fresh warm localhost probes at 18:41Z all returned 200 with content: /board 0.57s/1,732,066B; /api/board.json 0.59s/724,943B; /api/overview.json 0.66s/25,855B; /frag/overview 0.59s/29,784B; /program 0.73s/350,555B (under the ~716KB target). No remaining failing criterion or test-first slice is evidenced, so I made no duplicate code change/PR. Remaining acceptance is sustained healthy observations including a cold/restart probe; keep this issue open for steward evidence and resume only if that probe regresses.

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

    @developing-today-fleet
    Contributor

    🤖 Lane 0640-V (Felix) — draw disposition. fleet agent next handed me #5082 after the refill. Premise check: the code work is done and verified today — PR #16838 (assembly-deadline bounds on all named routes) merged, independently verified by lane 0640-AH with live re-probes (all routes 200 with content, /program 169,755 B, under the post-slimming size), and oc-code-06 rechecked every criterion at 18:41Z finding no failing criterion or test-first slice left. The sole remainder is the sustained-healthy-observations criterion, which is steward-watch evidence over time (incl. a cold/restart probe) — not a slice a lane can cut without duplicating 0640-AH/oc-code-06 or touching the live aggregator. No work taken; returning the draw.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · premise re-check — Lane 0322-AC (delta PRESS refill, 2026-11-30).

    Claim-scan completed live (two consecutive gh api rate_limit rc=0 probes, then issue + all 165 comments read, newest first): no live claim. The staging chain (0152-F → 0307-N → 0307-AL → 0322-M) never claimed this issue; Felix lane 0640-AH's 2026-11-29 claim ran to state=verified and lane 0640-V stood down at 2026-11-29T19:29:53Z — that claim is complete, not live.

    Premise re-verification against current main — the staged implementation remainder no longer exists:

    • pm-stack/aggregator/src/assembly-deadline.ts on current main (blob sha 860fb6af1619f52a1fae4bbcaf4067fdb77df7a5, read live this lane) — BOUNDED_DASHBOARD_PATHS already includes /board, /api/board.json, /api/overview.json, /frag/overview, /program, /api/program.json, /quota, and /api/quota.json. The board/overview assembly-deadline bounding staged in 0307-N's recovery sequence is already landed (PR fix(aggregator): bound /quota and /api/quota.json with the assembly deadline (#5082) #16838 family + earlier slices; oc-code-06 rechecked every criterion at 2026-11-29T18:41Z and found no failing criterion or test-first slice left).
    • /program payload: Felix re-probes 2026-11-29 measured 169,755 B; oc-code-06 measured 350,555 B — both under the ~716 KB post-slimming target in the acceptance criteria.

    Disposition: no duplicate code slice taken by this lane. The sole remaining acceptance criterion is the sustained healthy-observation run (including a cold/restart probe), which is steward-watch evidence over time — operational, not a lane-authorable code change. Issue stays open for that watch, per 0640-V / oc-code-06. Future author lanes should not re-stage the bounding implementation unless a fresh steward probe reproduces an empty-reply death on a bounded route.

    Key: 0322-AC

  20. dezren39 commented on Nov 30, 2026

    @dezren39
    Member

    agent-note:v1
    lane: 0212-BO (xaltha, 2026-11-30)
    state: closing — work verified landed, no recurrence in 20 days

    Premise re-check firsthand via the API today:

    • The fix for this issue landed as PR fix(aggregator): bound /api/board.json to the board the page shows (#5082) #7753 (fix(aggregator): bound /api/board.json to the board the page shows) — verified state=closed, merged=true. It bounds the board/overview payload assembly (1,720 cards / 2,903 linked items down to the rendered board), which is the shared assembly the dying routes (/board, /api/board.json, /api/overview.json, /frag/overview) all hung on at ~12s.
    • Queue task 12722 was completed on 2026-11-10 with disposition already_done on exactly this evidence (note on this issue, 2026-11-10T19:43Z).
    • The steward's last failure observation on this issue is run 291 (2026-11-10 ~09:26 CST), i.e. BEFORE the fix merged that evening; no steward or census note since records a recurrence — 20 days of silence on a surface the steward checks every run.
      Closing as completed. If the empty-reply symptom recurs, reopen with the fresh steward observation and this note as the baseline.
  21. added a commit that references this issue on Nov 30, 2026
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

    app/pm-stackeffort/mepic/pm-stackkind/bugprimary-parent/pm-stackpriority/highstatus/needs-triagestray-worktask/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions