Updates → Review this update crashes to "reload this view": a real signed release has no services/nodes, the review view marshals them as null, and ReviewUpdateScreen calls view.services.join on it #1815

Closed
opened 2026-09-24 05:00:43 +00:00 by ben · 3 comments
Owner

Proven (whakatohea-demo, control plane ff4a5263, 2026-09-24 ~04:55 UTC, Ben's screenshot)

Settings → Updates lists six pending releases. Review this update on any of them replaces the surface with the error boundary (SurfaceErrorBoundary.vue: "reload this view"). Caddy shows the data call succeeding — GET /api/v1/updates/reviews/7d3d84fa… 200, …/85e300b8… 200 — and the control plane logs no warning, so the failure is in the browser rendering the 200.

The view the API returns (internal/update/review.go:51-70): Nodes: rel.Nodes, Services: rel.Services, straight off the polled release. A real signed release from the rail carries none of those — the decoded channel/testing.json manifest has exactly {revision, sequence, kind, title, notes, signed_by, published, artifacts} — so both are nil slices and marshal as null. ReviewUpdateScreen.vue dereferences view.services.join(…) (and view.when.start/end, view.rollsBackTo, view.notes): null.join throws, the boundary catches it, the operator sees "reload this view" and can never reach Approve. The rehearsal fixtures carry services/nodes (the drive's fake releases are hand-built), which is why the U-series proof (#1675) is green while every real release is unreviewable.

Not read this session: the browser console line itself (Ben can paste it) — but a nil slice → null → .join is deterministic.

Fix

  1. Marshal Nodes/Services as [] never null (initialise in Review, or omitempty + a default in the client), and make the screen tolerate absence ((view.services ?? []).join). Both — the API contract and the consumer.
  2. Decide what the review sheet SHOWS for a real release: the rail does not know which services a cumulative patch touches. Honest copy: "Affects: the control plane, sign-in and the panel on the gateway" derived from the manifest's artifact roles (control-plane, idss-idp, control-panel, agent) rather than a services list the feed cannot supply.
  3. A seam test that feeds the review screen a release shaped exactly like a rail manifest (no nodes, no services) and asserts it renders with Approve reachable. The rehearsal's fake releases should drop those fields too, so the drive fails the way production fails.

Why it matters

With this, no operator on a real community can approve any update from the panel — the only lane that exists today (#1811 for Update now). Combined with #1815 (all patches parked pending) it means a founded community never updates.

Relates to: #1675, #1811, #1814, #1815, ADR 0248, the U-series wireframes.

## Proven (whakatohea-demo, control plane `ff4a5263`, 2026-09-24 ~04:55 UTC, Ben's screenshot) Settings → Updates lists six pending releases. **Review this update** on any of them replaces the surface with the error boundary (`SurfaceErrorBoundary.vue`: "reload this view"). Caddy shows the data call succeeding — `GET /api/v1/updates/reviews/7d3d84fa…` **200**, `…/85e300b8…` **200** — and the control plane logs no warning, so the failure is in the browser rendering the 200. The view the API returns (`internal/update/review.go:51-70`): `Nodes: rel.Nodes`, `Services: rel.Services`, straight off the polled release. A **real** signed release from the rail carries none of those — the decoded `channel/testing.json` manifest has exactly `{revision, sequence, kind, title, notes, signed_by, published, artifacts}` — so both are nil slices and marshal as **`null`**. `ReviewUpdateScreen.vue` dereferences `view.services.join(…)` (and `view.when.start/end`, `view.rollsBackTo`, `view.notes`): `null.join` throws, the boundary catches it, the operator sees "reload this view" and can never reach **Approve**. The rehearsal fixtures carry `services`/`nodes` (the drive's fake releases are hand-built), which is why the U-series proof (#1675) is green while every real release is unreviewable. Not read this session: the browser console line itself (Ben can paste it) — but a nil slice → `null` → `.join` is deterministic. ## Fix 1. Marshal `Nodes`/`Services` as `[]` never `null` (initialise in `Review`, or `omitempty` + a default in the client), and make the screen tolerate absence (`(view.services ?? []).join`). Both — the API contract and the consumer. 2. Decide what the review sheet SHOWS for a real release: the rail does not know which services a cumulative patch touches. Honest copy: "Affects: the control plane, sign-in and the panel on the gateway" derived from the manifest's artifact roles (`control-plane`, `idss-idp`, `control-panel`, `agent`) rather than a services list the feed cannot supply. 3. A seam test that feeds the review screen a release shaped exactly like a rail manifest (no `nodes`, no `services`) and asserts it renders with Approve reachable. The rehearsal's fake releases should drop those fields too, so the drive fails the way production fails. ## Why it matters With this, no operator on a real community can approve any update from the panel — the only lane that exists today (#1811 for Update now). Combined with #1815 (all patches parked pending) it means a founded community never updates. Relates to: #1675, #1811, #1814, #1815, ADR 0248, the U-series wireframes.
Author
Owner

Cross-reference fix: the "all patches parked pending" defect mentioned in the body is #1816 (not #1815 — that is this ticket).

Cross-reference fix: the "all patches parked pending" defect mentioned in the body is **#1816** (not #1815 — that is this ticket).

swarm-claim host=elitebook-distributed-server-03 run=31549
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=31549 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1815 — status success

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

envelope
{
  "issue": 1815,
  "status": "success",
  "commits": [
    "575f93e8"
  ],
  "changed_files": [
    "internal/update/review.go",
    "internal/update/review_test.go",
    "dashboard/src/lib/updateReview.ts",
    "dashboard/src/components/provisioning/ReviewUpdateScreen.vue",
    "dashboard/tests/fakes/updateReview.ts",
    "dashboard/tests/unit/updateReview.test.ts",
    "docs/GOTCHAS.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && node_modules/.bin/vitest run tests/unit/updateReview.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Nodes/Services marshal as [] never null (API contract), and the screen tolerates absence": "internal/update/review.go — nonNilStrings() applied to Nodes/Services in Review; json:\"nodes\"/\"services\" always []. ReviewUpdateScreen.vue uses (view.services ?? []).join and (view.nodes ?? []).length. Pinned by TestReview_RailManifestShapedRelease_NoNodesOrServices (asserts `[]` never `null` on the wire) and tests/unit/updateReview.test.ts (rail-shaped release renders with Approve reachable).",
    "The review shows an honest 'what it touches' for a real release, derived from the manifest's artifact roles": "internal/update/review.go — new Affects []string derived by affectsOf() from artifact roles (control-plane/idss-idp/control-panel/agent). Rendered by ReviewUpdateScreen.vue's affects-line via affectsLine() (oxford-join). Pinned by the Affects assertion in TestReview_RailManifestShapedRelease_NoNodesOrServices and the affects-line / oxford-join assertions in updateReview.test.ts.",
    "A seam test feeds the review a rail-manifest-shaped release (no nodes/services) and asserts it renders with Approve reachable; rehearsal fixtures drop those fields": "internal/update/review_test.go TestReview_RailManifestShapedRelease_NoNodesOrServices; dashboard tests/unit/updateReview.test.ts 'renders a real rail-shaped release … with Approve reachable'. reviewView() fixture in dashboard/src/lib/updateReview.ts now sets nodes:[]/services:[] and affects:[…]."
  },
  "summary": "Review this update no longer crashes on a real release: Nodes/Services marshal as [] not null, the screen tolerates absence, and it names what it touches from the signed artifact roles (Affects).",
  "blockers": []
}
**close-report** for #1815 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1815, "status": "success", "commits": [ "575f93e8" ], "changed_files": [ "internal/update/review.go", "internal/update/review_test.go", "dashboard/src/lib/updateReview.ts", "dashboard/src/components/provisioning/ReviewUpdateScreen.vue", "dashboard/tests/fakes/updateReview.ts", "dashboard/tests/unit/updateReview.test.ts", "docs/GOTCHAS.md", "STATUS.md" ], "tests": [ { "command": "go test ./internal/update/ ./internal/controlapi/", "exit_code": 0 }, { "command": "cd dashboard && node_modules/.bin/vitest run tests/unit/updateReview.test.ts", "exit_code": 0 }, { "command": "cd dashboard && node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "Nodes/Services marshal as [] never null (API contract), and the screen tolerates absence": "internal/update/review.go — nonNilStrings() applied to Nodes/Services in Review; json:\"nodes\"/\"services\" always []. ReviewUpdateScreen.vue uses (view.services ?? []).join and (view.nodes ?? []).length. Pinned by TestReview_RailManifestShapedRelease_NoNodesOrServices (asserts `[]` never `null` on the wire) and tests/unit/updateReview.test.ts (rail-shaped release renders with Approve reachable).", "The review shows an honest 'what it touches' for a real release, derived from the manifest's artifact roles": "internal/update/review.go — new Affects []string derived by affectsOf() from artifact roles (control-plane/idss-idp/control-panel/agent). Rendered by ReviewUpdateScreen.vue's affects-line via affectsLine() (oxford-join). Pinned by the Affects assertion in TestReview_RailManifestShapedRelease_NoNodesOrServices and the affects-line / oxford-join assertions in updateReview.test.ts.", "A seam test feeds the review a rail-manifest-shaped release (no nodes/services) and asserts it renders with Approve reachable; rehearsal fixtures drop those fields": "internal/update/review_test.go TestReview_RailManifestShapedRelease_NoNodesOrServices; dashboard tests/unit/updateReview.test.ts 'renders a real rail-shaped release … with Approve reachable'. reviewView() fixture in dashboard/src/lib/updateReview.ts now sets nodes:[]/services:[] and affects:[…]." }, "summary": "Review this update no longer crashes on a real release: Nodes/Services marshal as [] not null, the screen tolerates absence, and it names what it touches from the signed artifact roles (Affects).", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1815
No description provided.