rescue: share-ceremony — split the crown jewels on the live fleet #55

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

Parent

Feature spec: #21 (rescue).

What to build

From Recovery readiness (P8-S7), the operator can run the share ceremony on the live fleet — the deliberate act of splitting the community's crown jewels into recovery shares held across the people the community trusts (ADR 0090). The operator picks holders from operators and kaitiaki (candidates read from members' designations via the member orchestrator — rescue never designates people), sets the threshold (default 2-of-N, configurable), mints on the live fleet, and each holder confirms receipt. The ceremony honours the scrub discipline (ADR 0044): nothing assembled persists and the crown jewels are written nowhere new — the crown jewels live on in the fleet vars, so a live fleet can split them. Re-minting on degradation runs the same ceremony.

Thin UI over the rescue orchestrator, driven from the readiness surface. Kaitiaki candidates are read via the member orchestrator at runtime (fakes in seam tests — no build edge on members).

Note: this slice blocks on bootstrap:share-splitting-spike — the share-splitting mechanism (Shamir over the recovery/escrow key vs N sealed full copies with a threshold policy, ADR 0006) is a spike-shaped unknown and is undecided until the spike reports; the ledger, ceremony and readiness design are identical under either outcome, so the surface is built against the spike's confirmed mechanism.

Acceptance criteria

  • (story 27) Given the ceremony (P8-S7), when the operator runs it, then they pick holders from operators and kaitiaki (candidates read from members' designations via the member orchestrator — rescue never designates people), set the threshold (default 2-of-N, configurable), mint on the live fleet, and each holder confirms receipt; nothing assembled persists and the crown jewels are written nowhere new (the ADR 0044 scrub discipline holds).

Blocked by

  • #43 — the ceremony launches from the readiness surface
  • #32 — reuses the ledger/mint discipline for shares
  • #24 — the split mechanism is undecided until the spike reports

Task manifest

task: rescue:share-ceremony
implements_flow: p8-rescue
implements_edge: S7→S7 (runs the share ceremony)
wireframe: docs/ux/wireframes/p8-rescue/p8-s7-recovery-readiness.html
interface: "rescue orchestrator (control plane) \u2014 run the live-fleet ceremony (ADR 0090): read operator+kaitiaki candidates via the member orchestrator, set threshold (default 2-of-N), mint shares on the live fleet, collect receipt confirmations, re-mint on degradation; scrub discipline holds (ADR 0044)"
seam: rescue orchestrator seam tests (control plane, Go) — in-memory share ledger, a fake member read (kaitiaki designations / candidates), fake fleet-vars source; assert holder selection is candidates-only, threshold default 2-of-N and configurable, mint + per-holder receipt, and that nothing assembled persists (crown jewels written nowhere new)
acceptance:
  - given: the ceremony (P8-S7)
    when: the operator runs it
    then: they pick holders from operators and kaitiaki (candidates read via the member orchestrator), set the threshold (default 2-of-N, configurable), mint on the live fleet, and each holder confirms receipt; nothing assembled persists and the crown jewels are written nowhere new (ADR 0044)
depends_on: [recovery-readiness, operator-key-ledger, bootstrap:share-splitting-spike]
out_of_scope:
  - stories 24–26, 28–30 the standing readiness surface and degraded-coverage/re-mint prompt — recovery-readiness's
  - the share-splitting cryptographic mechanism itself — the bootstrap:share-splitting-spike's to decide
  - members' kaitiaki designation (P6) — read at runtime, not built here
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build From Recovery readiness (P8-S7), the operator can run the **share ceremony** on the **live fleet** — the deliberate act of splitting the community's crown jewels into recovery shares held across the people the community trusts (ADR 0090). The operator picks holders from operators and kaitiaki (candidates read from members' designations via the `member` orchestrator — rescue never designates people), sets the threshold (default **2-of-N**, configurable), mints on the live fleet, and each holder confirms receipt. The ceremony honours the scrub discipline (ADR 0044): nothing assembled persists and the crown jewels are written nowhere new — the crown jewels live on in the fleet vars, so a live fleet can split them. Re-minting on degradation runs the same ceremony. Thin UI over the `rescue` orchestrator, driven from the readiness surface. Kaitiaki candidates are read via the `member` orchestrator at runtime (fakes in seam tests — no build edge on members). Note: this slice **blocks on `bootstrap:share-splitting-spike`** — the share-splitting mechanism (Shamir over the recovery/escrow key vs N sealed full copies with a threshold policy, ADR 0006) is a spike-shaped unknown and is **undecided until the spike reports**; the ledger, ceremony and readiness design are identical under either outcome, so the surface is built against the spike's confirmed mechanism. ## Acceptance criteria - [ ] (story 27) Given the ceremony (P8-S7), when the operator runs it, then they pick holders from operators and kaitiaki (candidates read from members' designations via the `member` orchestrator — rescue never designates people), set the threshold (default 2-of-N, configurable), mint on the live fleet, and each holder confirms receipt; nothing assembled persists and the crown jewels are written nowhere new (the ADR 0044 scrub discipline holds). ## Blocked by - #43 — the ceremony launches from the readiness surface - #32 — reuses the ledger/mint discipline for shares - #24 — the split mechanism is undecided until the spike reports ## Task manifest ```yaml task: rescue:share-ceremony implements_flow: p8-rescue implements_edge: S7→S7 (runs the share ceremony) wireframe: docs/ux/wireframes/p8-rescue/p8-s7-recovery-readiness.html interface: "rescue orchestrator (control plane) \u2014 run the live-fleet ceremony (ADR 0090): read operator+kaitiaki candidates via the member orchestrator, set threshold (default 2-of-N), mint shares on the live fleet, collect receipt confirmations, re-mint on degradation; scrub discipline holds (ADR 0044)" seam: rescue orchestrator seam tests (control plane, Go) — in-memory share ledger, a fake member read (kaitiaki designations / candidates), fake fleet-vars source; assert holder selection is candidates-only, threshold default 2-of-N and configurable, mint + per-holder receipt, and that nothing assembled persists (crown jewels written nowhere new) acceptance: - given: the ceremony (P8-S7) when: the operator runs it then: they pick holders from operators and kaitiaki (candidates read via the member orchestrator), set the threshold (default 2-of-N, configurable), mint on the live fleet, and each holder confirms receipt; nothing assembled persists and the crown jewels are written nowhere new (ADR 0044) depends_on: [recovery-readiness, operator-key-ledger, bootstrap:share-splitting-spike] out_of_scope: - stories 24–26, 28–30 the standing readiness surface and degraded-coverage/re-mint prompt — recovery-readiness's - the share-splitting cryptographic mechanism itself — the bootstrap:share-splitting-spike's to decide - members' kaitiaki designation (P6) — read at runtime, not built here needs_human_decision: [] ```
Author
Owner

Done in commit eeb9232 — the Ceremony orchestrator in internal/rescue/ (story 27).

What shipped

  • Ceremony.Run(CeremonyRequest) splits the crown jewels into recovery shares on the live fleet (ADR 0090): picks holders validated candidates-only from members's operators + kaitiaki (a new CandidateReader port read at runtime over the member orchestrator — rescue never designates people), resolves the threshold (default 2-of-N via DefaultThreshold, configurable, refused above the holder count), mints on the live fleet through a new FleetVars seam (MintShares seals one opaque share per holder to the S13 Q3 recipient set — machine + operator keys in, escrow key out — the spike's Shamir mechanism below the seam, #24), and records the fresh shares in the shared share Ledger unconfirmed.
  • ConfirmReceipt(shareID) stamps each holder's receipt (per-holder, idempotent, refusing revoked/unknown) so coverage stays honestly degraded until every holder confirms — recovery-readiness (#43) reads the same ledger.
  • Re-minting on degradation runs the same ceremony — a re-run invalidates the old shares (kept for the audit trail) and mints fresh.
  • The ADR 0044 scrub discipline holds: the ceremony writes only sealed shares, the at-rest crown-jewel ciphertext is byte-for-byte unchanged (written nowhere new), and the ledger holds metadata only — proven by a FakeFleetVars that scans every persisted blob for the plaintext / assembled key.

Acceptance (story 27): all clauses covered — candidates-only holder selection, 2-of-N default + configurable, mint + per-holder receipt, nothing assembled persists / crown jewels written nowhere new.

Evidence: 7 seam tests in internal/rescue/ceremony_test.go (TestStory27_*), go test/vet/gofmt clean; whole module builds green. Files: internal/rescue/ceremony.go, ceremony_fakes.go, ceremony_test.go; STATUS.md + docs/slices/rescue.yaml (marked done) in the same commit.

Out of scope (own slices): the ceremony's dashboard UI, the Tier-3 consuming side (P8-S8, ADR 0091), the durable fleet-vars implementation.

Done in commit `eeb9232` — the `Ceremony` orchestrator in `internal/rescue/` (story 27). **What shipped** - `Ceremony.Run(CeremonyRequest)` splits the crown jewels into recovery shares on the **live fleet** (ADR 0090): picks holders **validated candidates-only** from members's operators + kaitiaki (a new `CandidateReader` port read at runtime over the `member` orchestrator — rescue never designates people), resolves the threshold (**default 2-of-N** via `DefaultThreshold`, configurable, refused above the holder count), **mints on the live fleet** through a new `FleetVars` seam (`MintShares` seals one opaque share per holder to the S13 Q3 recipient set — machine + operator keys in, escrow key out — the spike's Shamir mechanism below the seam, #24), and records the fresh shares in the shared share `Ledger` **unconfirmed**. - `ConfirmReceipt(shareID)` stamps each holder's receipt (per-holder, idempotent, refusing revoked/unknown) so coverage stays honestly degraded until every holder confirms — recovery-readiness (#43) reads the same ledger. - **Re-minting on degradation runs the same ceremony** — a re-run invalidates the old shares (kept for the audit trail) and mints fresh. - The **ADR 0044 scrub discipline holds**: the ceremony writes only sealed shares, the at-rest crown-jewel ciphertext is byte-for-byte unchanged (written nowhere new), and the ledger holds metadata only — proven by a `FakeFleetVars` that scans every persisted blob for the plaintext / assembled key. **Acceptance (story 27):** all clauses covered — candidates-only holder selection, 2-of-N default + configurable, mint + per-holder receipt, nothing assembled persists / crown jewels written nowhere new. **Evidence:** 7 seam tests in `internal/rescue/ceremony_test.go` (`TestStory27_*`), `go test`/`vet`/`gofmt` clean; whole module builds green. Files: `internal/rescue/ceremony.go`, `ceremony_fakes.go`, `ceremony_test.go`; STATUS.md + `docs/slices/rescue.yaml` (marked done) in the same commit. Out of scope (own slices): the ceremony's dashboard UI, the Tier-3 consuming side (P8-S8, ADR 0091), the durable fleet-vars implementation.
ben closed this issue 2026-07-25 11:14:23 +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#55
No description provided.