rescue: the recovery kit is a promise with no artifact — nothing generates, downloads or verifies it #1428

Open
opened 2026-09-12 15:03:19 +00:00 by ben · 0 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

What the UI shows

  • dashboard/src/components/rescue/RecoveryReadinessCard.vue:80 states "recovery kit exported / not exported"; rescue/RecoveryReadinessScreen.vue:20-34 offers Export the recovery kit ↗ and says (:45) the shares plus the kit reconstitute the crown jewels. The Backups tab hosts the card.
  • The button emits {action: 'export-recovery-kit', owner: 'founding'} (dashboard/src/lib/recoveryReadiness.ts:213-215) and no dashboard surface handles it — a dead control.

What exists

  • The HTTP client is real (dashboard/src/lib/api/rescueClient.ts:137-167, wired at mountRegistry.ts:516), but the Go side's restingKitReader.KitExport() returns a zero KitStatus unconditionally (control-plane/cmd/control-plane/rescue_surfaces.go:108-110) and nothing else implements rescue.KitReader (internal/rescue/rescue.go:122-126).
  • founding/handoff.go:579-595 SaveRecoveryKit only flips a bool; backup/rebuild.go:405 RecoveryKit is an in-memory struct. There is no generate / download / print / verify anywhere.
  • Readiness writes (ceremony, re-mint, mint-key) all return errRescueEngineUnwired in production — that half is #306 (engine adapters resting) and is NOT this ticket.

Governing: ADR 0044, ADR 0090, ADR 0092, DDR 0101 §4; spec #21 (rescue, deferred).

What to do

  1. Design: confirm whether the P8 wireframes carry a kit generate → download/print → verify frame set. If not, /wireframe them first (the readiness screen exists; the kit's own frames do not). Decide the kit's contents and format (paper-printable + file) against ADR 0044/0092.
  2. Go: implement rescue.KitReader for real — a kit built from the crown jewels DDR 0101 names, an export that yields the artifact, a verify that checks a presented kit against the community's current state; KitStatus reports exported-at / verified-at truthfully (never a zero struct dressed as "not exported").
  3. Dashboard: handle export-recovery-kit (the Backups surface or a rescue surface — the owner must be the one that mounts), hand the artifact to the browser, and paint verified-at.

Acceptance criteria

  • Given a founded community, when the operator presses Export the recovery kit, then a kit artifact is produced and handed to the browser, and the readiness card reads exported with the timestamp.
  • Given an exported kit, when verify is run against it, then the card reads verified; given a kit for a different community or a stale key set, then verify refuses with the reason.
  • Given no kit has ever been exported, then the card says so from the seam's answer, not from a zero struct (ADR 0100).

Depends on

#306 (rescue engine adapters) for the readiness writes; this ticket is the kit artifact only.

## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## What the UI shows - `dashboard/src/components/rescue/RecoveryReadinessCard.vue:80` states "recovery kit exported / not exported"; `rescue/RecoveryReadinessScreen.vue:20-34` offers **Export the recovery kit ↗** and says (:45) the shares plus the kit reconstitute the crown jewels. The Backups tab hosts the card. - The button emits `{action: 'export-recovery-kit', owner: 'founding'}` (`dashboard/src/lib/recoveryReadiness.ts:213-215`) and **no dashboard surface handles it** — a dead control. ## What exists - The HTTP client is real (`dashboard/src/lib/api/rescueClient.ts:137-167`, wired at `mountRegistry.ts:516`), but the Go side's `restingKitReader.KitExport()` returns a zero `KitStatus` unconditionally (`control-plane/cmd/control-plane/rescue_surfaces.go:108-110`) and nothing else implements `rescue.KitReader` (`internal/rescue/rescue.go:122-126`). - `founding/handoff.go:579-595 SaveRecoveryKit` only flips a bool; `backup/rebuild.go:405 RecoveryKit` is an in-memory struct. There is no generate / download / print / verify anywhere. - Readiness writes (ceremony, re-mint, mint-key) all return `errRescueEngineUnwired` in production — that half is #306 (engine adapters resting) and is NOT this ticket. Governing: ADR 0044, ADR 0090, ADR 0092, DDR 0101 §4; spec #21 (rescue, deferred). ## What to do 1. Design: confirm whether the P8 wireframes carry a kit **generate → download/print → verify** frame set. If not, `/wireframe` them first (the readiness screen exists; the kit's own frames do not). Decide the kit's contents and format (paper-printable + file) against ADR 0044/0092. 2. Go: implement `rescue.KitReader` for real — a kit built from the crown jewels DDR 0101 names, an export that yields the artifact, a verify that checks a presented kit against the community's current state; `KitStatus` reports exported-at / verified-at truthfully (never a zero struct dressed as "not exported"). 3. Dashboard: handle `export-recovery-kit` (the Backups surface or a rescue surface — the owner must be the one that mounts), hand the artifact to the browser, and paint verified-at. ## Acceptance criteria - [ ] Given a founded community, when the operator presses Export the recovery kit, then a kit artifact is produced and handed to the browser, and the readiness card reads exported with the timestamp. - [ ] Given an exported kit, when verify is run against it, then the card reads verified; given a kit for a different community or a stale key set, then verify refuses with the reason. - [ ] Given no kit has ever been exported, then the card says so from the seam's answer, not from a zero struct (ADR 0100). ## Depends on #306 (rescue engine adapters) for the readiness writes; this ticket is the kit artifact only.
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#1428
No description provided.