dashboard: a component render crash degrades the panel silently — no fault frame, shell quietly resets #396

Closed
opened 2026-08-10 13:43:40 +00:00 by ben · 2 comments
Owner

Found by the nextcloud provision drive 20260810T124857Z (e2e session, 2026-08-10).

What happened

The change-assessment briefly served needs: null (nil Go slice — fixed on the wire in 5576738, fleetstate: zero gaps is a list on the wire, never null). AssessScreen.vue renders needs.length, so the P4 drill-in threw an unhandled TypeError mid-render. What followed is the actual subject of this ticket:

  • the error surfaced nowhere the operator can see — console only;
  • under the shell's ~12s fleet/enroll polling re-renders, the provisioning surface decayed progressively: the drill-in went blank ~3 min later, and ~3 min after that the shell quietly reset to Overview (the OverviewScreen re-mounted — /api/v1/overview re-fetched with no user input);
  • a deploy was running at the time; it finished green server-side, but its screen was gone, so the operator (and the drive's S4 wait) stared at a first-run Overview while state: active had no surface to land on.

Why it matters

This is a fail-loud violation at the composition level: ADR 0027 / the #297 async-guard work made every seam call failure a rendered OcErrorState — but a render failure has no equivalent. One component's contract violation currently takes down the panel silently and slowly, which is the worst shape: nothing crashes, nothing explains, the operator just loses their place mid-deploy.

Suggested direction

An app-level app.config.errorHandler (bootstrap.ts owns createApp) that routes a render/effect error into a visible fault frame — the same honest vocabulary as OcErrorState — instead of letting Vue's default console-log-and-limp behaviour stand. Possibly per-surface onErrorCaptured in DashboardComposition so one tab's crash doesn't reset the whole shell. Needs a design ruling on what the frame says and where it mounts (shell-level vs surface-level), hence needs-design.

Evidence

  • run dir test-results/private-path/20260810T124857Z (bridge worktree), trace: 2× TypeError: Cannot read properties of null (reading 'length') at AssessScreen's compiled render; screencast shows drill-in blank at 12:58:33Z, shell on Overview at 13:01:34Z, second /api/v1/overview fetch at 13:01:34.814Z with no preceding input or data change.
  • the deploy POST itself: 200 after 420s, all steps done, outcome.state = "active" — completed into an unmounted screen.
Found by the nextcloud provision drive `20260810T124857Z` (e2e session, 2026-08-10). ## What happened The change-assessment briefly served `needs: null` (nil Go slice — fixed on the wire in `5576738`, `fleetstate: zero gaps is a list on the wire, never null`). `AssessScreen.vue` renders `needs.length`, so the P4 drill-in threw an unhandled `TypeError` mid-render. What followed is the actual subject of this ticket: - the error surfaced **nowhere** the operator can see — console only; - under the shell's ~12s fleet/enroll polling re-renders, the provisioning surface **decayed progressively**: the drill-in went blank ~3 min later, and ~3 min after that the shell quietly reset to Overview (the `OverviewScreen` re-mounted — `/api/v1/overview` re-fetched with no user input); - a deploy was running at the time; it finished green server-side, but its screen was gone, so the operator (and the drive's S4 wait) stared at a first-run Overview while `state: active` had no surface to land on. ## Why it matters This is a fail-loud violation at the composition level: ADR 0027 / the #297 async-guard work made every **seam call** failure a rendered `OcErrorState` — but a **render** failure has no equivalent. One component's contract violation currently takes down the panel *silently and slowly*, which is the worst shape: nothing crashes, nothing explains, the operator just loses their place mid-deploy. ## Suggested direction An app-level `app.config.errorHandler` (bootstrap.ts owns `createApp`) that routes a render/effect error into a visible fault frame — the same honest vocabulary as `OcErrorState` — instead of letting Vue's default console-log-and-limp behaviour stand. Possibly per-surface `onErrorCaptured` in `DashboardComposition` so one tab's crash doesn't reset the whole shell. Needs a design ruling on what the frame says and where it mounts (shell-level vs surface-level), hence `needs-design`. ## Evidence - run dir `test-results/private-path/20260810T124857Z` (bridge worktree), trace: 2× `TypeError: Cannot read properties of null (reading 'length')` at AssessScreen's compiled render; screencast shows drill-in blank at 12:58:33Z, shell on Overview at 13:01:34Z, second `/api/v1/overview` fetch at 13:01:34.814Z with no preceding input or data change. - the deploy POST itself: 200 after 420s, all steps done, `outcome.state = "active"` — completed into an unmounted screen.
Author
Owner

Ruled (Ben, 2026-08-12 backlog walk): surface-level fault frame. DDR 0167 (docs/adr/0167-design-a-surface-render-crash-wears-a-fault-frame.md) records the design: onErrorCaptured per surface in DashboardComposition — the crashed surface holds its place wearing an OcErrorState-vocabulary fault frame ("display fault; the fleet itself is unaffected", one affordance: Reload this view); no blanking, no silent reset to Overview; app.config.errorHandler as shell-level backstop; the wireframe fault-frame state lands in the implementing commit (ADR 0042). Flipping needs-design → ready-for-agent with the DDR as the brief.

**Ruled (Ben, 2026-08-12 backlog walk): surface-level fault frame.** DDR 0167 (`docs/adr/0167-design-a-surface-render-crash-wears-a-fault-frame.md`) records the design: `onErrorCaptured` per surface in `DashboardComposition` — the crashed surface holds its place wearing an `OcErrorState`-vocabulary fault frame ("display fault; the fleet itself is unaffected", one affordance: Reload this view); no blanking, no silent reset to Overview; `app.config.errorHandler` as shell-level backstop; the wireframe fault-frame state lands in the implementing commit (ADR 0042). Flipping `needs-design` → `ready-for-agent` with the DDR as the brief.
Author
Owner

close-report for #396 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 396,
  "status": "success",
  "commits": [
    "2e7adf8"
  ],
  "changed_files": [
    "dashboard/src/components/SurfaceErrorBoundary.vue",
    "dashboard/src/components/DashboardComposition.vue",
    "dashboard/src/bootstrap.ts",
    "dashboard/tests/unit/surfaceFaultFrame.test.ts",
    "docs/ux/wireframes/shell/shell-dn-nav-chrome.html",
    "docs/ux/flows/shell.mermaid",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm vitest run tests/unit/surfaceFaultFrame.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm vitest run (full dashboard suite, 1033 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint (changed files)",
      "exit_code": 0
    },
    {
      "command": "npx prettier --check (changed files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A render/effect crash surfaces a visible fault frame, not console-only (fail-loud at composition level, DDR 0167)": "SurfaceErrorBoundary.vue onErrorCaptured renders OcErrorState (status=display-fault); test 'renders the fault frame in the OcErrorState vocabulary' in surfaceFaultFrame.test.ts",
    "The frame is honest and local — names the display fault, states the fleet is unaffected (a display failure, not a service failure), offers one affordance 'Reload this view'": "FAULT_MESSAGE in SurfaceErrorBoundary.vue; test asserts /display fault/, /not a service failure/, and retry label /reload this view/",
    "The shell holds — the crashed surface stays selected, no blanking, no silent reset to Overview (the #396 regression is pinned)": "onErrorCaptured returns false (no propagation); test 'holds its place — no blanking, no silent reset to Overview' asserts selectedTab still fleet, OverviewSurface not mounted, chrome tabs still present",
    "One surface crash does not take down its neighbours": "per-surface boundary; test 'a neighbouring surface still mounts' routes to members and asserts MembersSurface mounts",
    "Reload this view re-mounts the crashed surface": "reload() bumps a keyed subtree; test 'Reload this view re-mounts the surface — a transient fault clears'",
    "App-level backstop: app.config.errorHandler routes an out-of-boundary fault to the same frame at shell level (bootstrap.ts owns createApp)": "bootstrap.ts sets app.config.errorHandler into a reactive shellFault sink; DashboardComposition renders shell-level OcErrorState; test 'bootstrap wires app.config.errorHandler to the shell fault frame'",
    "Wireframe discipline (ADR 0042): the dashboard wireframe gains the fault-frame state in the implementing commit": "shell-dn-nav-chrome.html gains the DNf frame (data-status=display-fault, data-action=retry); shell.mermaid gains the DNf node + reload edge"
  },
  "summary": "A dashboard surface render crash now wears a surface-level OcErrorState fault frame that holds its place, with an app-level backstop and the DNf wireframe state, per DDR 0167.",
  "blockers": []
}
**close-report** for #396 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 396, "status": "success", "commits": [ "2e7adf8" ], "changed_files": [ "dashboard/src/components/SurfaceErrorBoundary.vue", "dashboard/src/components/DashboardComposition.vue", "dashboard/src/bootstrap.ts", "dashboard/tests/unit/surfaceFaultFrame.test.ts", "docs/ux/wireframes/shell/shell-dn-nav-chrome.html", "docs/ux/flows/shell.mermaid", "STATUS.md" ], "tests": [ { "command": "pnpm vitest run tests/unit/surfaceFaultFrame.test.ts", "exit_code": 0 }, { "command": "pnpm vitest run (full dashboard suite, 1033 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint (changed files)", "exit_code": 0 }, { "command": "npx prettier --check (changed files)", "exit_code": 0 } ], "criteria": { "A render/effect crash surfaces a visible fault frame, not console-only (fail-loud at composition level, DDR 0167)": "SurfaceErrorBoundary.vue onErrorCaptured renders OcErrorState (status=display-fault); test 'renders the fault frame in the OcErrorState vocabulary' in surfaceFaultFrame.test.ts", "The frame is honest and local — names the display fault, states the fleet is unaffected (a display failure, not a service failure), offers one affordance 'Reload this view'": "FAULT_MESSAGE in SurfaceErrorBoundary.vue; test asserts /display fault/, /not a service failure/, and retry label /reload this view/", "The shell holds — the crashed surface stays selected, no blanking, no silent reset to Overview (the #396 regression is pinned)": "onErrorCaptured returns false (no propagation); test 'holds its place — no blanking, no silent reset to Overview' asserts selectedTab still fleet, OverviewSurface not mounted, chrome tabs still present", "One surface crash does not take down its neighbours": "per-surface boundary; test 'a neighbouring surface still mounts' routes to members and asserts MembersSurface mounts", "Reload this view re-mounts the crashed surface": "reload() bumps a keyed subtree; test 'Reload this view re-mounts the surface — a transient fault clears'", "App-level backstop: app.config.errorHandler routes an out-of-boundary fault to the same frame at shell level (bootstrap.ts owns createApp)": "bootstrap.ts sets app.config.errorHandler into a reactive shellFault sink; DashboardComposition renders shell-level OcErrorState; test 'bootstrap wires app.config.errorHandler to the shell fault frame'", "Wireframe discipline (ADR 0042): the dashboard wireframe gains the fault-frame state in the implementing commit": "shell-dn-nav-chrome.html gains the DNf frame (data-status=display-fault, data-action=retry); shell.mermaid gains the DNf node + reload edge" }, "summary": "A dashboard surface render crash now wears a surface-level OcErrorState fault frame that holds its place, with an app-level backstop and the DNf wireframe state, per DDR 0167.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 16:18:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#396
No description provided.