Backups → Open readiness… hits a display fault on a fresh community — the recovery kit cannot be exported #2080

Closed
opened 2026-10-29 05:15:14 +00:00 by ben · 3 comments
Owner

What happens

On a freshly founded community, Backups → Recovery readiness → Open readiness… renders the surface error boundary instead of the readiness surface:

This view hit a display fault. The fleet itself is unaffected — this is a display failure, not a service failure. RELOAD THIS VIEW

So a new Administrator cannot export their recovery kit — the one thing the Backups page itself tells them is unrecoverable ("Your community's identity is not backed up… nobody — including you — can sign in to this community again"). The card reads ⚠ NEEDS ATTENTION · recovery kit not exported · no share ceremony yet — the operator's kit is the plan, and the only door to fix it crashes.

Repro (seen live, twice)

User-guide walk drive (--drive guide, branch session/guide-walk-drive) on bens-mac-04, runs 20261028T224615Z and 20261028T232644Z: private path, Passwords & passkeys (Kanidm), local sandbox, fresh founding. Panel → Backups → click Open readiness…. Screenshot + screen text: test-results/private-path/20261028T232644Z/artifacts/guide/27-recovery-kit.{png,txt} on the Mac.

What we know

  • The server side answers fine: Caddy logs show GET /api/v1/rescue/recovery/readiness 200 (×6), /rescue/recovery/keys 200, /rescue/recovery/candidates 200. So this is a client-side render throw in the composed P8-S7 surface (BackupsSurface.vue recoveryOpen → readiness reading / OperatorKeyLedger.vue / share ceremony) on fresh-community data — most likely an empty keys/candidates/shares shape the components don't expect.
  • The panel's own console was not captured by the walk, so the exact exception is owed — reproduce against the same fixture shape (fresh community: no kit exported, no keys, no ceremony) in a unit test first.

Acceptance

  • A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix.
  • On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it.
  • The guide walk's recovery-kit capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075).

Found by the #2075 user-guide accuracy walk.

## What happens On a freshly founded community, **Backups → Recovery readiness → Open readiness…** renders the surface error boundary instead of the readiness surface: > This view hit a display fault. The fleet itself is unaffected — this is a display failure, not a service failure. **RELOAD THIS VIEW** So a new Administrator **cannot export their recovery kit** — the one thing the Backups page itself tells them is unrecoverable ("Your community's identity is not backed up… nobody — including you — can sign in to this community again"). The card reads `⚠ NEEDS ATTENTION · recovery kit not exported · no share ceremony yet — the operator's kit is the plan`, and the only door to fix it crashes. ## Repro (seen live, twice) User-guide walk drive (`--drive guide`, branch `session/guide-walk-drive`) on bens-mac-04, runs `20261028T224615Z` and `20261028T232644Z`: private path, Passwords & passkeys (Kanidm), local sandbox, fresh founding. Panel → Backups → click **Open readiness…**. Screenshot + screen text: `test-results/private-path/20261028T232644Z/artifacts/guide/27-recovery-kit.{png,txt}` on the Mac. ## What we know - The server side answers fine: Caddy logs show `GET /api/v1/rescue/recovery/readiness` 200 (×6), `/rescue/recovery/keys` 200, `/rescue/recovery/candidates` 200. So this is a **client-side render throw** in the composed P8-S7 surface (`BackupsSurface.vue` `recoveryOpen` → readiness reading / `OperatorKeyLedger.vue` / share ceremony) on fresh-community data — most likely an empty keys/candidates/shares shape the components don't expect. - The panel's own console was not captured by the walk, so the exact exception is owed — reproduce against the same fixture shape (fresh community: no kit exported, no keys, no ceremony) in a unit test first. ## Acceptance - [ ] A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix. - [ ] On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it. - [ ] The guide walk's `recovery-kit` capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075). Found by the #2075 user-guide accuracy walk.

swarm-claim host=matou-dev-server-01 run=56694
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=56694 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #2080 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 04b5054c2e3c is not a valid commit object (fabricated, or never pushed)
  • changed_files: 'dashboard/src/components/rescue/RecoveryReadinessSurface.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/recoveryReadiness.test.ts' is not in the diff of the claimed commits
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
envelope
{
  "issue": 2080,
  "status": "success",
  "commits": [
    "04b5054c2e3c"
  ],
  "changed_files": [
    "dashboard/src/components/rescue/RecoveryReadinessSurface.vue",
    "dashboard/tests/unit/recoveryReadiness.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run tests/unit/recoveryReadiness.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run tests/unit/backupsSurfaceGuard.test.ts tests/unit/backupsGuard304.test.ts tests/unit/rescueGuard304.test.ts tests/unit/recoveryReadinessLive.test.ts tests/unit/recoveryReadinessCard.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix": "dashboard/tests/unit/recoveryReadiness.test.ts — new describe 'a fresh community whose empty ledgers arrive as null (#2080)' mounts RecoveryReadinessSurface with shares/keys/candidates all null; reproduced the exact throw at RecoveryReadinessScreen.vue:51 (Cannot read properties of null reading 'length') before the fix, green after",
    "On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it": "RecoveryReadinessSurface.vue reload() coerces nil shares/keys/candidates to [] at the one composition seam; the test asserts [data-field=recovery-readiness-surface], [data-field=recovery-readiness] and the [data-action=export-recovery-kit] door all render on the fresh-community payload",
    "The guide walk's recovery-kit capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075)": "Owed externally in idss-design (PR #7 / #2075) — out of this repo; this fix makes the surface render so the re-shot capture is now possible"
  },
  "summary": "Backups → Open readiness… renders on a fresh community (nil recovery ledgers coerced to [] at the surface seam), so a new Administrator can export the recovery kit instead of hitting a display fault.",
  "blockers": []
}
**close-report** for #2080 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 04b5054c2e3c is not a valid commit object (fabricated, or never pushed) - changed_files: 'dashboard/src/components/rescue/RecoveryReadinessSurface.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/recoveryReadiness.test.ts' is not in the diff of the claimed commits - changed_files: 'STATUS.md' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 2080, "status": "success", "commits": [ "04b5054c2e3c" ], "changed_files": [ "dashboard/src/components/rescue/RecoveryReadinessSurface.vue", "dashboard/tests/unit/recoveryReadiness.test.ts", "STATUS.md" ], "tests": [ { "command": "cd dashboard && npx vitest run tests/unit/recoveryReadiness.test.ts", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run tests/unit/backupsSurfaceGuard.test.ts tests/unit/backupsGuard304.test.ts tests/unit/rescueGuard304.test.ts tests/unit/recoveryReadinessLive.test.ts tests/unit/recoveryReadinessCard.test.ts", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint .", "exit_code": 0 } ], "criteria": { "A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix": "dashboard/tests/unit/recoveryReadiness.test.ts — new describe 'a fresh community whose empty ledgers arrive as null (#2080)' mounts RecoveryReadinessSurface with shares/keys/candidates all null; reproduced the exact throw at RecoveryReadinessScreen.vue:51 (Cannot read properties of null reading 'length') before the fix, green after", "On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it": "RecoveryReadinessSurface.vue reload() coerces nil shares/keys/candidates to [] at the one composition seam; the test asserts [data-field=recovery-readiness-surface], [data-field=recovery-readiness] and the [data-action=export-recovery-kit] door all render on the fresh-community payload", "The guide walk's recovery-kit capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075)": "Owed externally in idss-design (PR #7 / #2075) — out of this repo; this fix makes the surface render so the re-shot capture is now possible" }, "summary": "Backups → Open readiness… renders on a fresh community (nil recovery ledgers coerced to [] at the surface seam), so a new Administrator can export the recovery kit instead of hitting a display fault.", "blockers": [] } ``` </details>

close-report for #2080 — status success

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

envelope
{
  "issue": 2080,
  "status": "success",
  "commits": [
    "04b5054c8a29d6327542b9774f1a480bdb84a01e"
  ],
  "changed_files": [
    "dashboard/src/components/rescue/RecoveryReadinessSurface.vue",
    "dashboard/tests/unit/recoveryReadiness.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run tests/unit/recoveryReadiness.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run tests/unit/backupsSurfaceGuard.test.ts tests/unit/backupsGuard304.test.ts tests/unit/rescueGuard304.test.ts tests/unit/recoveryReadinessLive.test.ts tests/unit/recoveryReadinessCard.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix": "dashboard/tests/unit/recoveryReadiness.test.ts — new describe 'a fresh community whose empty ledgers arrive as null (#2080)' mounts RecoveryReadinessSurface with shares/keys/candidates all null; reproduced the exact throw at RecoveryReadinessScreen.vue:51 (Cannot read properties of null reading 'length') before the fix, green after",
    "On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it": "RecoveryReadinessSurface.vue reload() coerces nil shares/keys/candidates to [] at the one composition seam; the test asserts [data-field=recovery-readiness-surface], [data-field=recovery-readiness] and the [data-action=export-recovery-kit] door all render on the fresh-community payload",
    "The guide walk's recovery-kit capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075)": "Owed externally in idss-design (PR #7 / #2075) — out of this repo; this fix makes the surface render so the re-shot capture is now possible"
  },
  "summary": "Backups → Open readiness… renders on a fresh community (nil recovery ledgers coerced to [] at the surface seam), so a new Administrator can export the recovery kit instead of hitting a display fault.",
  "blockers": []
}
**close-report** for #2080 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2080, "status": "success", "commits": [ "04b5054c8a29d6327542b9774f1a480bdb84a01e" ], "changed_files": [ "dashboard/src/components/rescue/RecoveryReadinessSurface.vue", "dashboard/tests/unit/recoveryReadiness.test.ts", "STATUS.md" ], "tests": [ { "command": "cd dashboard && npx vitest run tests/unit/recoveryReadiness.test.ts", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run tests/unit/backupsSurfaceGuard.test.ts tests/unit/backupsGuard304.test.ts tests/unit/rescueGuard304.test.ts tests/unit/recoveryReadinessLive.test.ts tests/unit/recoveryReadinessCard.test.ts", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint .", "exit_code": 0 } ], "criteria": { "A unit/seam test mounts the readiness surface with the fresh-community readiness/keys/candidates payloads and fails today, passes after the fix": "dashboard/tests/unit/recoveryReadiness.test.ts — new describe 'a fresh community whose empty ledgers arrive as null (#2080)' mounts RecoveryReadinessSurface with shares/keys/candidates all null; reproduced the exact throw at RecoveryReadinessScreen.vue:51 (Cannot read properties of null reading 'length') before the fix, green after", "On a fresh community, Open readiness… shows the readiness surface and the recovery kit can be exported from it": "RecoveryReadinessSurface.vue reload() coerces nil shares/keys/candidates to [] at the one composition seam; the test asserts [data-field=recovery-readiness-surface], [data-field=recovery-readiness] and the [data-action=export-recovery-kit] door all render on the fresh-community payload", "The guide walk's recovery-kit capture shows the surface (not the fault) — then the guide's page 05 placeholder screenshot is replaced (idss-design PR #7 / #2075)": "Owed externally in idss-design (PR #7 / #2075) — out of this repo; this fix makes the surface render so the re-shot capture is now possible" }, "summary": "Backups → Open readiness… renders on a fresh community (nil recovery ledgers coerced to [] at the surface seam), so a new Administrator can export the recovery kit instead of hitting a display fault.", "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#2080
No description provided.