rescue: tier3-ceremony — recombine shares, rebuild via founding's stand-up #97

Closed
opened 2026-07-25 05:00:16 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #21 (rescue).

What to build

At total loss — reached only through the S3x variant-C door or a lost break-glass action — the app runs the Tier-3 recovery ceremony (P8-S8), in two acts.

Act 1 — recombine. The threshold of recovery shares combines with the recovery kit. Below threshold it is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"): nothing is reconstituted below threshold and there is no operator-app override — the threshold is the community's decision (ADR 0091). When the threshold is met, the crown jewels are reconstituted in the app's memory only, for this rebuild.

Act 2 — rebuild from checkout. The operator picks the freshest checkout they can reach — this machine's replica, another operator's replica (freshest wins, named), or a repo restored from backup — and the machine to carry the control plane (one meeting the gateway minimum). The rebuild rides founding's own stand-up machinery: the helper drives the founding orchestrator's install → seed → deploy path with recovered material substituted for newly-born material (ADRs 0091/0043/0052), ending in the same scrub (ADR 0044) so the machine keeps no ambient crown jewels. It ends at recovered (P8-S5, rebuilt variant): the cluster and access are recovered — control plane, sign-in, mesh, dashboard — and data is not all back yet: restores continue in backups, per dataset, the Identity dataset first so members exist again (ADR 0078), and the spent shares show on Recovery readiness with a prompt to re-run the ceremony.

Thin UI over the breakglass helper (stdio NDJSON), which composes the founding package already bundled in the helper — no new binary target. Data returns through backups' restore; rescue never grows a data-restore path.

Note: build-depends on the founding orchestrator (install → seed → deploy → scrub) and consumes backups' rebuild-from-nothing restore artifacts.

Acceptance criteria

  • (story 48) Given the Tier-3 ceremony act 1 (P8-S8), when fewer than the threshold of shares combine, then it is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"), nothing is reconstituted below threshold, and there is no operator-app override — the threshold is the community's decision (ADR 0091).
  • (story 49) Given the threshold of shares combines with the recovery kit, when act 1 completes, then the crown jewels are reconstituted in the app's memory only, for this rebuild.
  • (story 50) Given act 2 (rebuild from checkout), when the operator picks the checkout, then it offers this machine's replica, another operator's replica (freshest wins, named), or a repo restored from backup, and the operator picks the machine to carry the control plane (one that meets the gateway minimum).
  • (story 51) Given a chosen checkout and machine, when the rebuild runs, then the helper drives founding's stand-up (install → seed → deploy) with recovered material substituted for newly-born material (ADRs 0091/0043/0052), and ends in the same scrub (ADR 0044) so the machine keeps no ambient crown jewels.
  • (story 52) Given a completed rebuild, when it finishes, then P8-S5 (rebuilt variant) states the cluster and access are recovered — control plane, sign-in, mesh, dashboard — and that data is not all back yet: restores continue in backups, per dataset, the Identity dataset first so members exist again (ADR 0078), and the spent shares show on Recovery readiness with a prompt to re-run the ceremony.

Blocked by

  • #44 — variant C is the door into Tier-3
  • #56 — a lost action routes to Tier-3
  • #55 — recombine consumes the minted shares
  • #72 — rebuild drives founding's stand-up + scrub
  • #91 — post-rebuild data return per dataset

Task manifest

task: rescue:tier3-ceremony
implements_flow: p8-rescue
implements_edge: S3x→S8, S4x→S8, S8→S8, S8→S5
wireframe:
  - docs/ux/wireframes/p8-rescue/p8-s8-tier3-recovery-ceremony.html
  - docs/ux/wireframes/p8-rescue/p8-s5-recovered.html
interface: breakglass helper (operator app, stdio NDJSON) composing the founding package — act 1 recombine (kit + threshold of shares → reconstitute in memory; below threshold is an honest stuck state, no override); act 2 rebuild from chosen checkout (this replica / another operator's freshest / repo-from-backup) onto a gateway-minimum machine by driving founding's install→seed→deploy with recovered material, then scrub; land on P8-S5 rebuilt variant with data returning via backups, Identity first
seam: breakglass helper seam tests (operator app, Go) — the founding stand-up fake harness (in-memory ledger + clock, ADR 0052), fake shares (threshold met / insufficient), fake kit; assert reconstitution never happens below threshold (no override), the founding stand-up is invoked with recovered-material inputs, the post-rebuild scrub runs, and the rebuilt-variant P8-S5 states data still returning (Identity first, ADR 0078)
acceptance:
  - given: Tier-3 act 1 (P8-S8) with fewer than the threshold of shares
    when: shares combine
    then: it is an honest stuck state naming what is missing; nothing reconstituted below threshold; no operator-app override (ADR 0091)
  - given: the threshold of shares combines with the kit
    when: act 1 completes
    then: the crown jewels are reconstituted in the app's memory only, for this rebuild
  - given: act 2 (rebuild from checkout)
    when: the operator picks the checkout
    then: it offers this machine's replica / another operator's (freshest, named) / a repo from backup, and the operator picks a gateway-minimum machine
  - given: a chosen checkout and machine
    when: the rebuild runs
    then: the helper drives founding's install→seed→deploy with recovered material (ADRs 0091/0043/0052) and ends in the same scrub (ADR 0044)
  - given: a completed rebuild
    when: it finishes
    then: P8-S5 (rebuilt) states control plane, sign-in, mesh, dashboard recovered and data not all back — restores continue in backups per dataset, Identity first (ADR 0078); spent shares show on Recovery readiness with a re-run prompt
depends_on: [no-tier1-material, breakglass-action-failed, share-ceremony, founding:identity-handoff-scrub, backups:restore-in-place-replaces]
out_of_scope:
  - backups' restore machinery and per-dataset data return (P7) — invoked, not owned
  - founding's stand-up internals (install/seed/deploy/scrub) — driven, not redesigned
  - the share ceremony and readiness surface (P8-S7) — share-ceremony's / recovery-readiness's
  - the S3x variants and break-glass action states — no-tier1-material's / breakglass-action-failed's
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build At total loss — reached only through the S3x variant-C door or a lost break-glass action — the app runs the **Tier-3 recovery ceremony** (P8-S8), in two acts. **Act 1 — recombine.** The threshold of recovery shares combines with the recovery kit. Below threshold it is an **honest stuck state** naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"): nothing is reconstituted below threshold and there is **no operator-app override** — the threshold is the community's decision (ADR 0091). When the threshold is met, the crown jewels are reconstituted **in the app's memory only**, for this rebuild. **Act 2 — rebuild from checkout.** The operator picks the freshest checkout they can reach — this machine's replica, another operator's replica (freshest wins, named), or a repo restored from backup — and the machine to carry the control plane (one meeting the gateway minimum). The rebuild rides **founding's own stand-up machinery**: the helper drives the `founding` orchestrator's install → seed → deploy path with **recovered material substituted for newly-born material** (ADRs 0091/0043/0052), ending in the **same scrub** (ADR 0044) so the machine keeps no ambient crown jewels. It ends at **recovered** (P8-S5, rebuilt variant): the cluster and access are recovered — control plane, sign-in, mesh, dashboard — and **data is not all back yet**: restores continue in backups, per dataset, the **Identity dataset first** so members exist again (ADR 0078), and the spent shares show on Recovery readiness with a prompt to re-run the ceremony. Thin UI over the `breakglass` helper (stdio NDJSON), which **composes the `founding` package** already bundled in the helper — no new binary target. Data returns through backups' restore; rescue never grows a data-restore path. Note: build-depends on the `founding` orchestrator (install → seed → deploy → scrub) and consumes backups' rebuild-from-nothing restore artifacts. ## Acceptance criteria - [ ] (story 48) Given the Tier-3 ceremony act 1 (P8-S8), when fewer than the threshold of shares combine, then it is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"), nothing is reconstituted below threshold, and there is no operator-app override — the threshold is the community's decision (ADR 0091). - [ ] (story 49) Given the threshold of shares combines with the recovery kit, when act 1 completes, then the crown jewels are reconstituted in the app's memory only, for this rebuild. - [ ] (story 50) Given act 2 (rebuild from checkout), when the operator picks the checkout, then it offers this machine's replica, another operator's replica (freshest wins, named), or a repo restored from backup, and the operator picks the machine to carry the control plane (one that meets the gateway minimum). - [ ] (story 51) Given a chosen checkout and machine, when the rebuild runs, then the helper drives founding's stand-up (install → seed → deploy) with recovered material substituted for newly-born material (ADRs 0091/0043/0052), and ends in the same scrub (ADR 0044) so the machine keeps no ambient crown jewels. - [ ] (story 52) Given a completed rebuild, when it finishes, then P8-S5 (rebuilt variant) states the cluster and access are recovered — control plane, sign-in, mesh, dashboard — and that data is not all back yet: restores continue in backups, per dataset, the Identity dataset first so members exist again (ADR 0078), and the spent shares show on Recovery readiness with a prompt to re-run the ceremony. ## Blocked by - #44 — variant C is the door into Tier-3 - #56 — a lost action routes to Tier-3 - #55 — recombine consumes the minted shares - #72 — rebuild drives founding's stand-up + scrub - #91 — post-rebuild data return per dataset ## Task manifest ```yaml task: rescue:tier3-ceremony implements_flow: p8-rescue implements_edge: S3x→S8, S4x→S8, S8→S8, S8→S5 wireframe: - docs/ux/wireframes/p8-rescue/p8-s8-tier3-recovery-ceremony.html - docs/ux/wireframes/p8-rescue/p8-s5-recovered.html interface: breakglass helper (operator app, stdio NDJSON) composing the founding package — act 1 recombine (kit + threshold of shares → reconstitute in memory; below threshold is an honest stuck state, no override); act 2 rebuild from chosen checkout (this replica / another operator's freshest / repo-from-backup) onto a gateway-minimum machine by driving founding's install→seed→deploy with recovered material, then scrub; land on P8-S5 rebuilt variant with data returning via backups, Identity first seam: breakglass helper seam tests (operator app, Go) — the founding stand-up fake harness (in-memory ledger + clock, ADR 0052), fake shares (threshold met / insufficient), fake kit; assert reconstitution never happens below threshold (no override), the founding stand-up is invoked with recovered-material inputs, the post-rebuild scrub runs, and the rebuilt-variant P8-S5 states data still returning (Identity first, ADR 0078) acceptance: - given: Tier-3 act 1 (P8-S8) with fewer than the threshold of shares when: shares combine then: it is an honest stuck state naming what is missing; nothing reconstituted below threshold; no operator-app override (ADR 0091) - given: the threshold of shares combines with the kit when: act 1 completes then: the crown jewels are reconstituted in the app's memory only, for this rebuild - given: act 2 (rebuild from checkout) when: the operator picks the checkout then: it offers this machine's replica / another operator's (freshest, named) / a repo from backup, and the operator picks a gateway-minimum machine - given: a chosen checkout and machine when: the rebuild runs then: the helper drives founding's install→seed→deploy with recovered material (ADRs 0091/0043/0052) and ends in the same scrub (ADR 0044) - given: a completed rebuild when: it finishes then: P8-S5 (rebuilt) states control plane, sign-in, mesh, dashboard recovered and data not all back — restores continue in backups per dataset, Identity first (ADR 0078); spent shares show on Recovery readiness with a re-run prompt depends_on: [no-tier1-material, breakglass-action-failed, share-ceremony, founding:identity-handoff-scrub, backups:restore-in-place-replaces] out_of_scope: - backups' restore machinery and per-dataset data return (P7) — invoked, not owned - founding's stand-up internals (install/seed/deploy/scrub) — driven, not redesigned - the share ceremony and readiness surface (P8-S7) — share-ceremony's / recovery-readiness's - the S3x variants and break-glass action states — no-tier1-material's / breakglass-action-failed's needs_human_decision: [] ```
Author
Owner

Done in commit 681dc9d (on origin/main).

The two-act Tier-3 recovery ceremony (P8-S8, ADR 0091), breakglass-hosted, composing the bundled founding package (no new binary target).

Act 1 — recombine (Recombine, stories 48/49): the threshold of recovery shares combining WITH the recovery kit (ShareSource) reconstitutes the crown jewels in the app's memory only (RecoveredMaterial — secret-bearing, unexported, never marshalled, ADR 0051). Below threshold is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"); nothing is reconstituted and there is no operator-app override — Reconstitute is never called below threshold (proven at the seam).

Act 2 — rebuild from checkout (RebuildOptions/Rebuild, stories 50–52): offers this machine's replica / another operator's (freshest, named) / a repo from backup (CheckoutSource) and gateway-minimum machines (MachineSource; below-minimum named, not hidden). Drives founding's own stand-up via a FoundingStandup seam — install→seed→deploy with recovered material substituted for newly-born (ADRs 0043/0052) — ending in the same scrub (ADR 0044), asserted against founding's own founding.Residue (refuses ErrRebuildNotScrubbed/ErrRebuildScrubResidue), then drops the in-memory jewels. Lands on P8-S5 rebuilt: cluster + access recovered (control plane · sign-in · mesh · dashboard), data not all back — restores continue per dataset via backups, Identity first (ADR 0078) — spent shares surfaced on Recovery readiness with a re-run prompt.

Evidence: internal/breakglass/tier3.go (+tier3_fakes.go in-memory founding stand-up harness, +tier3_test.go seam tests — 11 pass), recombine/rebuild-options/rebuild bridge ops, app/src/lib/breakglass.ts seam types + fake, Tier3CeremonyScreen.vue (both acts + rebuilt landing, built to the wireframe's data-field/data-action/data-status contract), helper wiring. Verified: go build/vet/test ./... + gofmt clean; vue-tsc clean; 183 app tests + Tier-3 seam tests pass.

Done in commit 681dc9d (on `origin/main`). The two-act Tier-3 recovery ceremony (P8-S8, ADR 0091), `breakglass`-hosted, composing the bundled `founding` package (no new binary target). **Act 1 — recombine** (`Recombine`, stories 48/49): the threshold of recovery shares combining WITH the recovery kit (`ShareSource`) reconstitutes the crown jewels **in the app's memory only** (`RecoveredMaterial` — secret-bearing, unexported, never marshalled, ADR 0051). Below threshold is an **honest stuck state** naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"); nothing is reconstituted and there is **no operator-app override** — `Reconstitute` is never called below threshold (proven at the seam). **Act 2 — rebuild from checkout** (`RebuildOptions`/`Rebuild`, stories 50–52): offers this machine's replica / another operator's (freshest, named) / a repo from backup (`CheckoutSource`) and gateway-minimum machines (`MachineSource`; below-minimum named, not hidden). Drives founding's own stand-up via a `FoundingStandup` seam — install→seed→deploy with recovered material **substituted for newly-born** (ADRs 0043/0052) — ending in the **same scrub** (ADR 0044), asserted against founding's own `founding.Residue` (refuses `ErrRebuildNotScrubbed`/`ErrRebuildScrubResidue`), then drops the in-memory jewels. Lands on **P8-S5 rebuilt**: cluster + access recovered (control plane · sign-in · mesh · dashboard), data **not all back** — restores continue per dataset via backups, **Identity first** (ADR 0078) — spent shares surfaced on Recovery readiness with a re-run prompt. **Evidence:** `internal/breakglass/tier3.go` (+`tier3_fakes.go` in-memory founding stand-up harness, +`tier3_test.go` seam tests — 11 pass), `recombine`/`rebuild-options`/`rebuild` bridge ops, `app/src/lib/breakglass.ts` seam types + fake, `Tier3CeremonyScreen.vue` (both acts + rebuilt landing, built to the wireframe's `data-field`/`data-action`/`data-status` contract), helper wiring. Verified: `go build`/`vet`/`test ./...` + gofmt clean; `vue-tsc` clean; 183 app tests + Tier-3 seam tests pass.
ben closed this issue 2026-07-26 05:59:47 +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#97
No description provided.