bootstrap: share-splitting-spike — decide Shamir vs sealed copies (ADR 0090) #24

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

Parent

Wayfinder map: #7 — the engineering foundation (PROCESS.md Phase 2½, emitted as DAG root slices).

What to build

A gating spike (a DAG root by construction — the PROCESS.md Phase 2½ exception: spikes reference no seam and depend on nothing) that answers the one mechanism question ADR 0090 deliberately left open for shared safekeeping: how the community's crown jewels are actually split into recovery shares. Two candidate mechanisms are on the table — Shamir secret sharing over the recovery/escrow key, versus N sealed full copies governed by a threshold policy. S13 Q3 confirmed only the recipient-set substrate (machine key / operator keys / excluded escrow key); the ledger, ceremony, and readiness design in ADR 0090 are identical under either mechanism, so this choice is the only thing blocking rescue's build.

The deliverable is a written finding with a clear recommendation, plus a prototype that demonstrates recombine-at-threshold: shares minted from the crown-jewel material, and any threshold-sized subset (default 2-of-N, configurable) deliberately combining to reconstruct — while a below-threshold subset cannot. The finding must respect ADR 0090's discipline: nothing assembled persists, the jewels are never written anywhere new, and the recipient set includes the machine key and operator keys while excluding the escrow key.

Notes: this spike gates rescue:share-ceremony and rescue:tier3-ceremony. It can run any time and needs no other slice. Its output feeds back as the resolution of ADR 0090's carried needs_human_decision before those rescue slices build.

Acceptance criteria

  • Given the two candidate mechanisms (Shamir over the recovery/escrow key vs N sealed full copies with a threshold policy), when the spike concludes, then a written finding recommends one, with the reasoning grounded in ADR 0090 and the S13 Q3 recipient-set substrate.
  • Given the recommended mechanism, when the prototype runs, then shares mint from the crown-jewel material and any threshold-sized subset (default 2-of-N, configurable) recombines to reconstruct, while a below-threshold subset cannot.
  • Given ADR 0090's discipline, when the prototype recombines, then nothing assembled persists and the jewels are never written anywhere new (a transient act), and the recipient set includes machine + operator keys and excludes the escrow key.

Blocked by

None — can start immediately.

Task manifest

task: bootstrap:share-splitting-spike
implements_seam: —   # spike: references no seam contract (PROCESS Phase 2½ exception)
implements_edge: —   # engineering spike; no flow edge
wireframe: —         # no wireframe; a written finding + prototype
interface: a written finding with a recommendation (Shamir over the recovery/escrow
  key vs N sealed full copies with a threshold policy, per ADR 0090) plus a prototype
  demonstrating recombine-at-threshold over the S13 Q3 recipient-set substrate
seam: the spike's own prototype checks — mint shares, recombine a threshold-sized
  subset to reconstruct, confirm a below-threshold subset cannot, nothing persists
acceptance:
  - given: the two candidate mechanisms
    when: the spike concludes
    then: a written finding recommends one, grounded in ADR 0090 and the S13 Q3 recipient-set substrate
  - given: the recommended mechanism
    when: the prototype runs
    then: shares mint from the crown-jewel material and any threshold-sized subset (default 2-of-N, configurable) recombines, while a below-threshold subset cannot
  - given: ADR 0090's discipline
    when: the prototype recombines
    then: nothing assembled persists, the jewels are never written anywhere new, and the recipient set includes machine + operator keys and excludes the escrow key
depends_on: []
out_of_scope: [the recovery-share ledger, the share ceremony (P8-S7), and recovery
  readiness (rescue:share-ceremony's — identical under either mechanism, ADR 0090),
  the Tier-3 combining/consuming side (ADR 0091, rescue:tier3-ceremony's)]
needs_human_decision: []
## Parent Wayfinder map: #7 — the engineering foundation (PROCESS.md Phase 2½, emitted as DAG root slices). ## What to build A gating spike (a DAG root by construction — the PROCESS.md Phase 2½ exception: spikes reference no seam and depend on nothing) that answers the one mechanism question ADR 0090 deliberately left open for shared safekeeping: how the community's crown jewels are actually split into recovery shares. Two candidate mechanisms are on the table — Shamir secret sharing over the recovery/escrow key, versus N sealed full copies governed by a threshold policy. S13 Q3 confirmed only the recipient-set substrate (machine key / operator keys / excluded escrow key); the ledger, ceremony, and readiness design in ADR 0090 are identical under either mechanism, so this choice is the only thing blocking rescue's build. The deliverable is a written finding with a clear recommendation, plus a prototype that demonstrates recombine-at-threshold: shares minted from the crown-jewel material, and any `threshold`-sized subset (default 2-of-N, configurable) deliberately combining to reconstruct — while a below-threshold subset cannot. The finding must respect ADR 0090's discipline: nothing assembled persists, the jewels are never written anywhere new, and the recipient set includes the machine key and operator keys while excluding the escrow key. Notes: this spike gates `rescue:share-ceremony` and `rescue:tier3-ceremony`. It can run any time and needs no other slice. Its output feeds back as the resolution of ADR 0090's carried `needs_human_decision` before those rescue slices build. ## Acceptance criteria - [ ] Given the two candidate mechanisms (Shamir over the recovery/escrow key vs N sealed full copies with a threshold policy), when the spike concludes, then a written finding recommends one, with the reasoning grounded in ADR 0090 and the S13 Q3 recipient-set substrate. - [ ] Given the recommended mechanism, when the prototype runs, then shares mint from the crown-jewel material and any threshold-sized subset (default 2-of-N, configurable) recombines to reconstruct, while a below-threshold subset cannot. - [ ] Given ADR 0090's discipline, when the prototype recombines, then nothing assembled persists and the jewels are never written anywhere new (a transient act), and the recipient set includes machine + operator keys and excludes the escrow key. ## Blocked by None — can start immediately. ## Task manifest ```yaml task: bootstrap:share-splitting-spike implements_seam: — # spike: references no seam contract (PROCESS Phase 2½ exception) implements_edge: — # engineering spike; no flow edge wireframe: — # no wireframe; a written finding + prototype interface: a written finding with a recommendation (Shamir over the recovery/escrow key vs N sealed full copies with a threshold policy, per ADR 0090) plus a prototype demonstrating recombine-at-threshold over the S13 Q3 recipient-set substrate seam: the spike's own prototype checks — mint shares, recombine a threshold-sized subset to reconstruct, confirm a below-threshold subset cannot, nothing persists acceptance: - given: the two candidate mechanisms when: the spike concludes then: a written finding recommends one, grounded in ADR 0090 and the S13 Q3 recipient-set substrate - given: the recommended mechanism when: the prototype runs then: shares mint from the crown-jewel material and any threshold-sized subset (default 2-of-N, configurable) recombines, while a below-threshold subset cannot - given: ADR 0090's discipline when: the prototype recombines then: nothing assembled persists, the jewels are never written anywhere new, and the recipient set includes machine + operator keys and excludes the escrow key depends_on: [] out_of_scope: [the recovery-share ledger, the share ceremony (P8-S7), and recovery readiness (rescue:share-ceremony's — identical under either mechanism, ADR 0090), the Tier-3 combining/consuming side (ADR 0091, rescue:tier3-ceremony's)] needs_human_decision: [] ```
Author
Owner

Spike reported — verdict: RECOMMEND Shamir secret sharing over the recovery/escrow key (over N sealed full copies).

A mechanism spike, not a substrate one — no lab: S13 Q3 already confirmed the sops-age recipient-set substrate on a real clan fleet, and ADR 0090/0091 fix the ceremony, ledger, and readiness identically under either candidate, so the split mechanism was the only open question — answerable with a self-contained cryptographic prototype.

Why Shamir, grounded in the design:

  1. It makes ADR 0091's "nothing is reconstituted below threshold… the threshold is the community's decision" a cryptographic fact (information-theoretic — a below-threshold set carries zero information). Sealed copies leave the threshold as pure governance: any single holder's copy is the whole secret, so one compromised holder = total breach.
  2. It keeps ADR 0090's "the jewels [are] never written anywhere new" — Shamir splits a key, the jewels stay the one at-rest ciphertext; holders hold key-shares, never jewels. Sealed copies mint N new full jewel copies (attack surface ×N, for the life of the community).
  3. It fits the S13 Q3 substrate: recipient set = machine + operator keys + a recovery pubkey, no standing escrow key — shared safekeeping replaces the escrow single-point with t-of-N.
  4. Clean re-mint (re-split on a fresh polynomial, old shares dead) and honest degradation, where a distributed sealed copy can't be clawed back.

The one honest cost — a transient assembled key in helper memory during the Tier-3 rebuild — is one ADR 0090/0091 already accept and sealed copies don't avoid. 1-of-1 (the recovery kit) is the degenerate Shamir case, unifying kit and shares.

Acceptance — all GREEN (spikes/bootstrap-share-splitting/run.sh, at 2-of-3 default and 3-of-5 configurable):

  • shares mint from the crown-jewel material; every threshold-sized subset recombines; every below-threshold subset cannot (fails to reconstruct the key and is rejected by the recipient-set MAC); a lone share reveals nothing.
  • nothing assembled persists — the run writes only sealed shares + the one unchanged at-rest ciphertext + the readiness ledger, and scans them every run: no jewel plaintext, no reconstructed key ever reaches disk.
  • recipient set includes machine + operator keys and excludes the escrow key (the escrow key is generated but is not a recipient and cannot decrypt).
  • a sealed-copies counter-demo reproduces the disqualifying single-holder breach.

Evidence:

  • Finding: docs/spike-findings/bootstrap-share-splitting.md (includes the recommended build shape for rescue:share-ceremony P8-S7 and rescue:tier3-ceremony P8-S8).
  • Prototype: spikes/bootstrap-share-splitting/ (pure Python stdlib — byte-wise Shamir over GF(256), a sops-age recipient-set model; run.sh for the seam).
  • Commit 4e4c643.

This resolves ADR 0090's carried needs_human_decision — the recommendation is delivered with evidence; a human folds it into ADR 0090 (or a follow-on ADR) before rescue's share-ceremony / tier3-ceremony slices arm. Deliberately did not write a new ADR, since ADR 0090 itself framed the choice as a human decision. The other zero-dep root, #23 bootstrap:skeleton, is untouched.

**Spike reported — verdict: RECOMMEND Shamir secret sharing over the recovery/escrow key** (over N sealed full copies). A **mechanism** spike, not a substrate one — **no lab**: S13 Q3 already confirmed the sops-age recipient-set substrate on a real clan fleet, and ADR 0090/0091 fix the ceremony, ledger, and readiness *identically under either candidate*, so the split mechanism was the only open question — answerable with a self-contained cryptographic prototype. **Why Shamir**, grounded in the design: 1. It makes ADR 0091's *"nothing is reconstituted below threshold… the threshold **is** the community's decision"* a **cryptographic fact** (information-theoretic — a below-threshold set carries zero information). Sealed copies leave the threshold as pure governance: any single holder's copy is the whole secret, so one compromised holder = total breach. 2. It keeps ADR 0090's *"the jewels [are] never written anywhere new"* — Shamir splits a **key**, the jewels stay the one at-rest ciphertext; holders hold key-shares, never jewels. Sealed copies mint N new full jewel copies (attack surface ×N, for the life of the community). 3. It fits the S13 Q3 substrate: recipient set = machine + operator keys + a recovery pubkey, **no standing escrow key** — shared safekeeping replaces the escrow single-point with `t`-of-N. 4. Clean re-mint (re-split on a fresh polynomial, old shares dead) and honest degradation, where a distributed sealed copy can't be clawed back. The one honest cost — a transient assembled key in helper memory during the Tier-3 rebuild — is one ADR 0090/0091 already accept and sealed copies don't avoid. 1-of-1 (the recovery kit) is the degenerate Shamir case, unifying kit and shares. **Acceptance — all GREEN** (`spikes/bootstrap-share-splitting/run.sh`, at 2-of-3 default and 3-of-5 configurable): - shares mint from the crown-jewel material; **every** threshold-sized subset recombines; **every** below-threshold subset cannot (fails to reconstruct the key *and* is rejected by the recipient-set MAC); a lone share reveals nothing. - nothing assembled persists — the run writes only sealed shares + the one unchanged at-rest ciphertext + the readiness ledger, and scans them every run: no jewel plaintext, no reconstructed key ever reaches disk. - recipient set includes machine + operator keys and **excludes the escrow key** (the escrow key is generated but is not a recipient and cannot decrypt). - a sealed-copies counter-demo reproduces the disqualifying single-holder breach. **Evidence:** - Finding: `docs/spike-findings/bootstrap-share-splitting.md` (includes the recommended build shape for `rescue:share-ceremony` P8-S7 and `rescue:tier3-ceremony` P8-S8). - Prototype: `spikes/bootstrap-share-splitting/` (pure Python stdlib — byte-wise Shamir over GF(256), a sops-age recipient-set model; `run.sh` for the seam). - Commit `4e4c643`. **This resolves ADR 0090's carried `needs_human_decision`** — the recommendation is delivered with evidence; a human folds it into ADR 0090 (or a follow-on ADR) before rescue's `share-ceremony` / `tier3-ceremony` slices arm. Deliberately did **not** write a new ADR, since ADR 0090 itself framed the choice as a human decision. The other zero-dep root, #23 `bootstrap:skeleton`, is untouched.
ben closed this issue 2026-07-25 05:12:36 +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#24
No description provided.