rescue: recovery-readiness — standing surface for Tier-3 preparedness #43

Closed
opened 2026-07-25 04:55:29 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #21 (rescue).

What to build

Recovery readiness (P8-S7) is a standing surface — not a wizard's last page — that always tells the community whether it is actually prepared for total loss (ADR 0090): the recovery kit exported or not, the recovery shares held and by whom, the threshold, and any degraded coverage. Being unprepared is never a silent surprise. Founding's hand-off (P1-S12) offers the recovery kit; until it is exported, that re-prompt lands here and persists until resolved, so an un-exported kit keeps nagging in one honest place.

The surface states the honest floor plainly: a community that has not run the share ceremony is 1-of-1 — "the operator's kit IS the plan" — until it deliberately runs the ceremony (ADR 0006). It tracks each share's receipt: a minted-but-unconfirmed share shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time. When a share holder is suspended or removed in members (the advice-not-veto warning edge from P6-S4 lands here) or a receipt was never confirmed, readiness shows coverage degraded, names why, and offers Re-mint (rotating the shares and invalidating the old ones). And when coverage is below the community's own threshold, readiness may supply a standing indicator to shell's reserved chrome slot (the ADR 0068 pattern), so the community is never silently unprepared.

Thin UI over the rescue orchestrator, mounted into shell (needs shell's mount-slot / indicator contract). The live-fleet share ceremony itself (story 27) is share-ceremony's; this slice owns the standing picture and the re-mint prompt.

Notes: founding's kit offer and members' suspend/remove share-holder warning are runtime couplings (ruling 2026-07-25), read at runtime — no build edges on founding or members. Whether rescue claims shell's standing-indicator slot for "kit not exported" stays rescue's build-time call; the slot exists (ADR 0068 pattern).

Acceptance criteria

  • (story 24) Given Recovery readiness (P8-S7), when the operator opens it, then it always shows the kit exported or not, the shares held and by whom, the threshold, and any degraded coverage — a standing surface, not a wizard's last page (ADR 0090).
  • (story 25) Given founding's hand-off (P1-S12) offered the recovery kit, when the kit is not yet exported, then the re-prompt lands on P8-S7 and persists there until the kit is exported.
  • (story 26) Given a community that has not run the share ceremony, when the operator views readiness, then it states the floor is 1-of-1 — "the operator's kit IS the plan" — until the community deliberately runs the ceremony (ADR 0006).
  • (story 28) Given a minted share, when the holder has not confirmed receipt, then it shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time.
  • (story 29) Given a share holder is suspended or removed in members (the advice-not-veto warning edge from P6-S4 lands here) or a receipt was never confirmed, when readiness computes coverage, then it shows coverage degraded, names why, and offers Re-mint (which rotates the shares and invalidates the old ones).
  • (story 30) Given coverage below the community's own threshold, when readiness detects it, then it may supply a standing indicator to shell's reserved chrome slot (the ADR 0068 pattern).

Blocked by

  • #29 — mounts + supplies the chrome indicator

Task manifest

task: rescue:recovery-readiness
implements_flow: p8-rescue
implements_edge: P1-S12→S7 (kit re-prompt), P6-S4→S7 (share-holder warning), S7→S7
wireframe: docs/ux/wireframes/p8-rescue/p8-s7-recovery-readiness.html
interface: rescue orchestrator (control plane) — compute standing readiness (kit exported?, shares + holders + threshold, degraded coverage with reasons); persist founding's kit re-prompt until export; derive coverage from share receipts and members' suspend/remove events; offer Re-mint; supply shell's chrome indicator when below threshold
seam: rescue orchestrator seam tests (control plane, Go) — in-memory share ledger, a fake member read (holder suspend/remove events), fake kit-export state; assert 1-of-1 honest floor, unconfirmed-receipt keeps coverage degraded, degraded coverage names why and offers Re-mint, below-threshold raises the indicator
acceptance:
  - given: Recovery readiness (P8-S7)
    when: opened
    then: it always shows kit exported or not, shares held and by whom, the threshold, and any degraded coverage (ADR 0090)
  - given: founding's kit offer (P1-S12) with the kit not yet exported
    when: readiness renders
    then: the re-prompt lands on P8-S7 and persists until the kit is exported
  - given: a community that has not run the ceremony
    when: readiness is viewed
    then: it states the floor is 1-of-1 until the ceremony is deliberately run (ADR 0006)
  - given: a minted share with receipt unconfirmed
    when: coverage is computed
    then: it shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time
  - given: a share holder suspended/removed in members, or a receipt never confirmed
    when: readiness computes coverage
    then: it shows coverage degraded, names why, and offers Re-mint (rotating shares, invalidating the old)
  - given: coverage below the community's own threshold
    when: detected
    then: readiness may supply a standing indicator to shell's chrome slot (ADR 0068 pattern)
depends_on: [shell:ui-kit-mount-slot-contract]
out_of_scope:
  - story 27 the live-fleet share ceremony — share-ceremony's
  - founding's kit export and hand-off (P1) — read at runtime, not built here
  - members' designation/suspend/remove machinery (P6) — read at runtime, not built here
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build **Recovery readiness** (P8-S7) is a standing surface — not a wizard's last page — that always tells the community whether it is actually prepared for total loss (ADR 0090): the recovery kit exported or not, the recovery shares held and by whom, the threshold, and any degraded coverage. Being unprepared is never a silent surprise. Founding's hand-off (P1-S12) offers the recovery kit; until it is exported, that **re-prompt lands here and persists** until resolved, so an un-exported kit keeps nagging in one honest place. The surface states the **honest floor** plainly: a community that has not run the share ceremony is 1-of-1 — "the operator's kit IS the plan" — until it deliberately runs the ceremony (ADR 0006). It **tracks each share's receipt**: a minted-but-unconfirmed share shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time. When a share holder is suspended or removed in members (the advice-not-veto warning edge from P6-S4 lands here) or a receipt was never confirmed, readiness shows **coverage degraded**, names why, and offers **Re-mint** (rotating the shares and invalidating the old ones). And when coverage is below the community's own threshold, readiness may supply a **standing indicator to shell's reserved chrome slot** (the ADR 0068 pattern), so the community is never silently unprepared. Thin UI over the `rescue` orchestrator, mounted into shell (needs shell's mount-slot / indicator contract). The live-fleet share ceremony itself (story 27) is share-ceremony's; this slice owns the standing picture and the re-mint prompt. Notes: founding's kit offer and members' suspend/remove share-holder warning are runtime couplings (ruling 2026-07-25), read at runtime — no build edges on founding or members. Whether rescue claims shell's standing-indicator slot for "kit not exported" stays rescue's build-time call; the slot exists (ADR 0068 pattern). ## Acceptance criteria - [ ] (story 24) Given Recovery readiness (P8-S7), when the operator opens it, then it always shows the kit exported or not, the shares held and by whom, the threshold, and any degraded coverage — a standing surface, not a wizard's last page (ADR 0090). - [ ] (story 25) Given founding's hand-off (P1-S12) offered the recovery kit, when the kit is not yet exported, then the re-prompt lands on P8-S7 and persists there until the kit is exported. - [ ] (story 26) Given a community that has not run the share ceremony, when the operator views readiness, then it states the floor is 1-of-1 — "the operator's kit IS the plan" — until the community deliberately runs the ceremony (ADR 0006). - [ ] (story 28) Given a minted share, when the holder has not confirmed receipt, then it shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time. - [ ] (story 29) Given a share holder is suspended or removed in members (the advice-not-veto warning edge from P6-S4 lands here) or a receipt was never confirmed, when readiness computes coverage, then it shows coverage degraded, names why, and offers Re-mint (which rotates the shares and invalidates the old ones). - [ ] (story 30) Given coverage below the community's own threshold, when readiness detects it, then it may supply a standing indicator to shell's reserved chrome slot (the ADR 0068 pattern). ## Blocked by - #29 — mounts + supplies the chrome indicator ## Task manifest ```yaml task: rescue:recovery-readiness implements_flow: p8-rescue implements_edge: P1-S12→S7 (kit re-prompt), P6-S4→S7 (share-holder warning), S7→S7 wireframe: docs/ux/wireframes/p8-rescue/p8-s7-recovery-readiness.html interface: rescue orchestrator (control plane) — compute standing readiness (kit exported?, shares + holders + threshold, degraded coverage with reasons); persist founding's kit re-prompt until export; derive coverage from share receipts and members' suspend/remove events; offer Re-mint; supply shell's chrome indicator when below threshold seam: rescue orchestrator seam tests (control plane, Go) — in-memory share ledger, a fake member read (holder suspend/remove events), fake kit-export state; assert 1-of-1 honest floor, unconfirmed-receipt keeps coverage degraded, degraded coverage names why and offers Re-mint, below-threshold raises the indicator acceptance: - given: Recovery readiness (P8-S7) when: opened then: it always shows kit exported or not, shares held and by whom, the threshold, and any degraded coverage (ADR 0090) - given: founding's kit offer (P1-S12) with the kit not yet exported when: readiness renders then: the re-prompt lands on P8-S7 and persists until the kit is exported - given: a community that has not run the ceremony when: readiness is viewed then: it states the floor is 1-of-1 until the ceremony is deliberately run (ADR 0006) - given: a minted share with receipt unconfirmed when: coverage is computed then: it shows unconfirmed and keeps coverage degraded; a confirmed share shows held with the receipt time - given: a share holder suspended/removed in members, or a receipt never confirmed when: readiness computes coverage then: it shows coverage degraded, names why, and offers Re-mint (rotating shares, invalidating the old) - given: coverage below the community's own threshold when: detected then: readiness may supply a standing indicator to shell's chrome slot (ADR 0068 pattern) depends_on: [shell:ui-kit-mount-slot-contract] out_of_scope: - story 27 the live-fleet share ceremony — share-ceremony's - founding's kit export and hand-off (P1) — read at runtime, not built here - members' designation/suspend/remove machinery (P6) — read at runtime, not built here needs_human_decision: [] ```
Author
Owner

Done in commit 17d9105 — the rescue control-plane orchestrator's recovery-readiness face (P8-S7) in internal/rescue/.

Interface built: Orchestrator.Readiness() computes the standing picture — kit exported-or-not, shares held and by whom, threshold, degraded coverage with plain-language reasons — composing founding's kit state (KitReader) and members' share-holder lifecycle (MemberReader) read at runtime (no build edge, ruling 2026-07-25) over rescue's own share Ledger. Plus Remint(holders, threshold) (rotates fresh shares, revokes old for audit) and the standing chrome Indicator supplied to shell's reserved slot (ADR 0068 pattern, mirroring the ui-kit StandingIndicator shape).

Acceptance clauses, each a seam test:

  • story 24 — standing surface always complete (kit/shares/threshold/coverage), never blank ✅
  • story 25 — founding kit re-prompt (Offered && !Exported) lands here and persists across re-reads until export ✅
  • story 26 — 1-of-1 honest floor ("the operator's kit IS the plan", ADR 0006), and unexported-floor is a named unprepared state raising a critical indicator ✅
  • story 28 — unconfirmed receipt shows unconfirmed + keeps coverage degraded; confirmed shows held with receipt time ✅
  • story 29 — suspended/removed holder (P6-S4 warning edge) or never-confirmed receipt → degraded, names why, offers Re-mint (rotate + invalidate old) ✅
  • story 30 — below the community's own threshold raises the standing chrome indicator ✅

Evidence: 8 Go seam tests in internal/rescue/readiness_test.go against in-memory Ledger + FakeMemberReader + FakeKitReader + FakeClock. go test / vet / gofmt / golangci-lint all clean. docs/slices/rescue.yaml marks recovery-readiness status: done; STATUS.md updated.

Out of scope (own slices, read at runtime): the live-fleet share ceremony mint/confirm flow (share-ceremony, story 27), founding's kit export (P1), members' designation/suspend/remove (P6).

Done in commit `17d9105` — the `rescue` control-plane orchestrator's recovery-readiness face (P8-S7) in `internal/rescue/`. **Interface built:** `Orchestrator.Readiness()` computes the standing picture — kit exported-or-not, shares held and by whom, threshold, degraded coverage with plain-language reasons — composing founding's kit state (`KitReader`) and members' share-holder lifecycle (`MemberReader`) **read at runtime** (no build edge, ruling 2026-07-25) over rescue's own share `Ledger`. Plus `Remint(holders, threshold)` (rotates fresh shares, revokes old for audit) and the standing chrome `Indicator` supplied to shell's reserved slot (ADR 0068 pattern, mirroring the ui-kit `StandingIndicator` shape). **Acceptance clauses, each a seam test:** - story 24 — standing surface always complete (kit/shares/threshold/coverage), never blank ✅ - story 25 — founding kit re-prompt (`Offered && !Exported`) lands here and persists across re-reads until export ✅ - story 26 — 1-of-1 honest floor ("the operator's kit IS the plan", ADR 0006), and unexported-floor is a named unprepared state raising a critical indicator ✅ - story 28 — unconfirmed receipt shows unconfirmed + keeps coverage degraded; confirmed shows held with receipt time ✅ - story 29 — suspended/removed holder (P6-S4 warning edge) or never-confirmed receipt → degraded, names why, offers Re-mint (rotate + invalidate old) ✅ - story 30 — below the community's own threshold raises the standing chrome indicator ✅ **Evidence:** 8 Go seam tests in `internal/rescue/readiness_test.go` against in-memory `Ledger` + `FakeMemberReader` + `FakeKitReader` + `FakeClock`. `go test` / `vet` / `gofmt` / golangci-lint all clean. `docs/slices/rescue.yaml` marks `recovery-readiness` `status: done`; STATUS.md updated. **Out of scope (own slices, read at runtime):** the live-fleet share ceremony mint/confirm flow (share-ceremony, story 27), founding's kit export (P1), members' designation/suspend/remove (P6).
ben closed this issue 2026-07-25 07:34:03 +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.

Reference
Matou/idss#43
No description provided.