You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Aggregator server: add a top-level error boundary and consistent not-found/error semantics #1211
Part of epic #1184 (PM stack coherence review, 2026-10-26).
Server error handling is inconsistent: fail-soft inside sources, fail-hard between them. This extends #1186. Evidence: server.ts handler has no top-level try/catch, and boardContext()/roadmapContext()/itemMatch await facets together so one throwing facet 500s the whole page despite the per-facet fallback design. Not-found semantics differ: /item and /quota/service/ return HTTP 200 'Not found' HTML while APIs 404 as JSON and unknown paths return JSON even for browsers.
Acceptance:
A stub source that throws per-facet renders all pages with degraded banners and no 500s in boot tests.
Unknown page routes return styled 404 HTML with status 404; APIs return 404 JSON.
Handler is wrapped in a top-level error boundary that degrades per-context.
Acceptance criteria
A stub source that throws per-facet renders all pages with degraded banners and no 500s in boot tests.
Unknown page routes return styled 404 HTML with status 404; APIs return 404 JSON.
The handler is wrapped in a top-level error boundary that degrades per-context.
Still live: verified this run — the issue is open, and a merged-PR search found no PR that explicitly resolves it (no fixes-reference; the only real merged hit in the search set, PR #1318, does not mention it). It does not merely look solved.
Notes / risks: Risk: per-facet degradation must not silently swallow real errors — degraded banners are the visible contract.
Suggested approach: Suggested approach: top-level try/catch in server.ts handler, per-facet fallback in boardContext()/roadmapContext(), then uniform 404 semantics for page vs API routes.
Labels normalized this pass (see the issue's label set); acceptance criteria appended to the body as the standard ## Acceptance criteria section, original body preserved verbatim above it.
Next: verify the three triage-confirmed gaps against current main in pm-stack/aggregator/src/server.ts, then implement on branch queue/4920-1211-aggregator-errors in a laptop worktree.
Verified on the laptop: new tests 6/6 + boot 11/11 pass; full aggregator suite 920 pass / 1 fail (slice3 registry test fails identically on clean main — pre-existing in this environment); tsc errors identical to clean main (12 pre-existing, none in changed files).
Result: PR fix(aggregator): top-level error boundary, per-facet fail-soft, consistent 404s (#1211) #3985 merged 2026-11-01T21:14:40Z (merge commit 3acea07). All three gaps fixed: fetchHandler top-level error boundary (styled 500 pages / JSON 500 for /api, render-health accounting preserved), per-facet fail-soft in the previously unguarded contexts (board/roadmap/attention/today/overview + /quota + /item), and consistent not-found (/item and /quota/service misses now 404; unknown page routes styled HTML 404, /api JSON 404).
Verification: Codex review on PR fix(aggregator): top-level error boundary, per-facet fail-soft, consistent 404s (#1211) #3985 completed with no findings. Laptop: new test/error-boundary-1211.test.ts 6/6 + boot.test.ts 11/11 pass; full aggregator suite 920 pass / 1 fail — the slice3 registry failure is identical on clean main in this environment (pre-existing, unrelated); tsc errors identical to clean main (12 pre-existing, none in changed files).
Acceptance nuance (also on the PR): a throwing stub Source cannot be boot-injected (server picks its Source at module level, no test seam); fail-soft is by construction mirroring /program, with the degraded attention render boot-asserted.
Activity
developing-today commentedon Oct 27, 2026
CODE-345
dezren39 commentedon Oct 28, 2026
Intake review
Fleet-monitor intake pass (protocol §5), 2026-10-28.
Still live: verified this run — the issue is open, and a merged-PR search found no PR that explicitly resolves it (no fixes-reference; the only real merged hit in the search set, PR #1318, does not mention it). It does not merely look solved.
Related: Related: epic #1184; extends #1186.
Notes / risks: Risk: per-facet degradation must not silently swallow real errors — degraded banners are the visible contract.
Suggested approach: Suggested approach: top-level try/catch in server.ts handler, per-facet fallback in boardContext()/roadmapContext(), then uniform 404 semantics for page vs API routes.
Labels normalized this pass (see the issue's label set); acceptance criteria appended to the body as the standard
## Acceptance criteriasection, original body preserved verbatim above it.3 remaining items
dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 1, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 1, 2026
🤖 Agent note · PR opened
Merge pull request #3985 from developing-today/queue/4920-1211-aggreg…
dezren39 commentedon Nov 1, 2026
🤖 Agent note · done