Skip to content

Aggregator server: add a top-level error boundary and consistent not-found/error semantics #1211

Closed

Description

@dezren39

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.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. added
    source/humanFiled directly by a human
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    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 criteria section, original body preserved verbatim above it.

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  6. 3 remaining items

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  8. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  9. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · PR opened

  11. added a commit that references this issue on Nov 1, 2026
  12. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a human

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions