idip: founding-s6a-ceremony — the S6a recovery-phrase gate before Create #777

Closed
opened 2026-08-25 04:27:03 +00:00 by ben · 2 comments
Owner

Parent

Feature spec: #767 (idip; wayfinder map #725).

What to build

The founder ceremony (ADR 0195, DDR 0200): on the IDIP path, confirming S6 Review leads to S6a "Write down your recovery phrase" before any carrier stand-up — twelve BIP-39 words in a grid, generated locally in the app; a "Give me different words" regenerate escape that resets confirmation progress; Create gated on re-entering 3 randomly-picked words; the honest loss statement on-screen ("If you lose this phrase and this device, no one — not even Mātou — can restore your identity."). The mnemonic is never written to disk: only the derived passcode persists, in the OS keychain (Electron safeStorage) — daily use never asks for the words. Not re-openable: a reopened walk returning to IDIP mints a fresh phrase; switching to kanidm at S3a discards everything derived. The kanidm path goes straight from Review to stand-up, untouched.

Acceptance criteria

  • (story 4) Given IDIP chosen, when the founder confirms Review, then S6a appears and Create does not fire until the 3-word confirm passes; the kanidm path sees no S6a.
  • (story 5) Given "Give me different words", when picked, then a fresh mnemonic generates locally and confirmation progress resets.
  • (story 6) Given the ceremony completes, then the mnemonic exists nowhere on disk; only the derived passcode is in the OS keychain.
  • (story 7) Given a reopened walk returning to IDIP, then a fresh phrase is minted; given a switch to kanidm at S3a, then the phrase and derivations are discarded.
  • (story 4) Given S6a renders, then the honest loss statement is present verbatim per the wireframe.

Blocked by

  • #774 — idip:founding-s3a-identity
  • #772 — idip:keri-client-core

Task manifest

task: idip:founding-s6a-ceremony
implements_flow: p1-founding
implements_edge: S6→S6a
wireframe: docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html
interface: 'the founding orchestrator gains the S6a gate (IDIP path only): local mnemonic generation,
  regenerate, 3-word confirm gating Create, passcode-to-keychain persistence, fresh-phrase-per-return
  semantics'
seam: app renderer tests over the ceremony state machine (gate, regenerate, confirm, discard-on-switch)
  + safeStorage persistence contract (mnemonic never persisted; passcode only) + founding orchestrator
  seam tests for the path branch
acceptance:
- given: IDIP chosen at Review
  when: the founder confirms
  then: S6a gates Create on the 3-word confirm; kanidm path unaffected
- given: the ceremony completes
  when: disk and keychain inspected
  then: no mnemonic anywhere; derived passcode in the OS keychain only
- given: a reopened walk returning to IDIP / a switch to kanidm
  when: S6a would apply
  then: fresh phrase minted / phrase discarded
depends_on:
- founding-s3a-identity
- keri-client-core
out_of_scope:
- the identity stand-up legs — founding-identity-legs
- the rescue ladder — rescue-ladder-idip
- passkey-wrapped mnemonics (spec Out of Scope)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build The founder ceremony (ADR 0195, DDR 0200): on the IDIP path, confirming S6 Review leads to S6a "Write down your recovery phrase" before any carrier stand-up — twelve BIP-39 words in a grid, generated locally in the app; a "Give me different words" regenerate escape that resets confirmation progress; Create gated on re-entering 3 randomly-picked words; the honest loss statement on-screen ("If you lose this phrase and this device, no one — not even Mātou — can restore your identity."). The mnemonic is never written to disk: only the derived passcode persists, in the OS keychain (Electron safeStorage) — daily use never asks for the words. Not re-openable: a reopened walk returning to IDIP mints a fresh phrase; switching to kanidm at S3a discards everything derived. The kanidm path goes straight from Review to stand-up, untouched. ## Acceptance criteria - [ ] (story 4) Given IDIP chosen, when the founder confirms Review, then S6a appears and Create does not fire until the 3-word confirm passes; the kanidm path sees no S6a. - [ ] (story 5) Given "Give me different words", when picked, then a fresh mnemonic generates locally and confirmation progress resets. - [ ] (story 6) Given the ceremony completes, then the mnemonic exists nowhere on disk; only the derived passcode is in the OS keychain. - [ ] (story 7) Given a reopened walk returning to IDIP, then a fresh phrase is minted; given a switch to kanidm at S3a, then the phrase and derivations are discarded. - [ ] (story 4) Given S6a renders, then the honest loss statement is present verbatim per the wireframe. ## Blocked by - #774 — idip:founding-s3a-identity - #772 — idip:keri-client-core ## Task manifest ```yaml task: idip:founding-s6a-ceremony implements_flow: p1-founding implements_edge: S6→S6a wireframe: docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html interface: 'the founding orchestrator gains the S6a gate (IDIP path only): local mnemonic generation, regenerate, 3-word confirm gating Create, passcode-to-keychain persistence, fresh-phrase-per-return semantics' seam: app renderer tests over the ceremony state machine (gate, regenerate, confirm, discard-on-switch) + safeStorage persistence contract (mnemonic never persisted; passcode only) + founding orchestrator seam tests for the path branch acceptance: - given: IDIP chosen at Review when: the founder confirms then: S6a gates Create on the 3-word confirm; kanidm path unaffected - given: the ceremony completes when: disk and keychain inspected then: no mnemonic anywhere; derived passcode in the OS keychain only - given: a reopened walk returning to IDIP / a switch to kanidm when: S6a would apply then: fresh phrase minted / phrase discarded depends_on: - founding-s3a-identity - keri-client-core out_of_scope: - the identity stand-up legs — founding-identity-legs - the rescue ladder — rescue-ladder-idip - passkey-wrapped mnemonics (spec Out of Scope) needs_human_decision: [] ```

swarm-claim host=elitebook-distributed-server-03 run=10053
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10053 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #777 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 777,
  "status": "success",
  "commits": [
    "a6f5dadf3e83bc241c88bb4241546332240b7f5b"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src-electron/electron-main.ts",
    "app/src-electron/electron-preload.ts",
    "app/src/bootstrap.ts",
    "app/src/components/AppShell.vue",
    "app/src/components/founding/FoundingRecoveryPhrase.vue",
    "app/src/components/founding/FoundingWizard.vue",
    "app/src/entry/boot.ts",
    "app/src/lib/founding.ts",
    "app/src/lib/foundingCeremony.ts",
    "app/src/lib/keri/keychainStore.ts",
    "app/src/renderer/boot-info.ts",
    "app/src/renderer/dev.ts",
    "app/src/renderer/production.ts",
    "app/tests/unit/foundingWizard.test.ts",
    "app/tests/unit/keri/s6aCeremony.test.ts",
    "app/tests/unit/rendererBuild.test.ts"
  ],
  "tests": [
    {
      "command": "vitest run tests/unit/keri/s6aCeremony.test.ts tests/unit/foundingWizard.test.ts",
      "exit_code": 0
    },
    {
      "command": "vitest run --exclude **/boot.test.ts (full app unit suite, 997 tests)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "vite build -c vite.main.config.ts (electron main+preload bundle)",
      "exit_code": 0
    },
    {
      "command": "eslint (all changed files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 4 — IDIP: confirming Review shows S6a and Create does not fire until the 3-word confirm passes; kanidm sees no S6a": "FoundingWizard.vue onCreate branches on identity==='idip' (raises S6a, no create) vs kanidm (run(doCreate)); RecoveryPhraseCeremony.commit refuses until confirmed; tests 'IDIP: confirming Review raises S6a, and create-community does NOT fire yet' + 'the kanidm path never sees S6a' + 'the 3-word confirm unlocks Create' in foundingWizard.test.ts",
    "story 4 — the honest loss statement is present verbatim per the wireframe": "FoundingRecoveryPhrase.vue [data-field=loss-statement]; asserted verbatim in foundingWizard.test.ts ('If you lose this phrase and this device, no one — not even Mātou — can restore your identity.')",
    "story 5 — Give me different words mints a fresh phrase and resets confirmation progress": "RecoveryPhraseCeremony.regenerate + FoundingRecoveryPhrase.onRegenerate; tests '“Give me different words” mints a fresh phrase and re-locks Create' (wizard) and 'regenerate mints a fresh phrase and resets confirm progress' (s6aCeremony)",
    "story 6 — the mnemonic exists nowhere on disk; only the derived passcode is in the OS keychain": "RecoveryPhraseCeremony.commit persists ONLY StoreKeys.passcode = passcodeFromMnemonic(phrase); safeStorageKeriStore encrypts before disk; tests 'commit persists ONLY the derived passcode; the mnemonic is never stored' + 'the 3-word confirm ... persists ONLY it' + 'safeStorageKeriStore ... plaintext never lands in the blob'",
    "story 7 — reopened walk returning to IDIP mints a fresh phrase; switch to kanidm at S3a discards phrase and derivations": "S6a is ephemeral renderer state (fresh ceremony per mount); onAdvanced clears StoreKeys.passcode on identity==='kanidm'; RecoveryPhraseCeremony.discard; tests 'S6a Back returns to Review ... a fresh phrase mints on return' + 'switching S3a to kanidm discards the derived passcode' + 'discard clears the persisted passcode'"
  },
  "summary": "Shipped the IDIP-only S6a recovery-phrase ceremony (local mnemonic, regenerate, 3-word confirm gating Create, passcode-only keychain persistence, fresh-per-return/discard-on-switch) with its screen and the safeStorage store, wired on the wizard's IDIP path; kanidm untouched.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #777 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 777, "status": "success", "commits": [ "a6f5dadf3e83bc241c88bb4241546332240b7f5b" ], "changed_files": [ "STATUS.md", "app/src-electron/electron-main.ts", "app/src-electron/electron-preload.ts", "app/src/bootstrap.ts", "app/src/components/AppShell.vue", "app/src/components/founding/FoundingRecoveryPhrase.vue", "app/src/components/founding/FoundingWizard.vue", "app/src/entry/boot.ts", "app/src/lib/founding.ts", "app/src/lib/foundingCeremony.ts", "app/src/lib/keri/keychainStore.ts", "app/src/renderer/boot-info.ts", "app/src/renderer/dev.ts", "app/src/renderer/production.ts", "app/tests/unit/foundingWizard.test.ts", "app/tests/unit/keri/s6aCeremony.test.ts", "app/tests/unit/rendererBuild.test.ts" ], "tests": [ { "command": "vitest run tests/unit/keri/s6aCeremony.test.ts tests/unit/foundingWizard.test.ts", "exit_code": 0 }, { "command": "vitest run --exclude **/boot.test.ts (full app unit suite, 997 tests)", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "vite build -c vite.main.config.ts (electron main+preload bundle)", "exit_code": 0 }, { "command": "eslint (all changed files)", "exit_code": 0 } ], "criteria": { "story 4 — IDIP: confirming Review shows S6a and Create does not fire until the 3-word confirm passes; kanidm sees no S6a": "FoundingWizard.vue onCreate branches on identity==='idip' (raises S6a, no create) vs kanidm (run(doCreate)); RecoveryPhraseCeremony.commit refuses until confirmed; tests 'IDIP: confirming Review raises S6a, and create-community does NOT fire yet' + 'the kanidm path never sees S6a' + 'the 3-word confirm unlocks Create' in foundingWizard.test.ts", "story 4 — the honest loss statement is present verbatim per the wireframe": "FoundingRecoveryPhrase.vue [data-field=loss-statement]; asserted verbatim in foundingWizard.test.ts ('If you lose this phrase and this device, no one — not even Mātou — can restore your identity.')", "story 5 — Give me different words mints a fresh phrase and resets confirmation progress": "RecoveryPhraseCeremony.regenerate + FoundingRecoveryPhrase.onRegenerate; tests '“Give me different words” mints a fresh phrase and re-locks Create' (wizard) and 'regenerate mints a fresh phrase and resets confirm progress' (s6aCeremony)", "story 6 — the mnemonic exists nowhere on disk; only the derived passcode is in the OS keychain": "RecoveryPhraseCeremony.commit persists ONLY StoreKeys.passcode = passcodeFromMnemonic(phrase); safeStorageKeriStore encrypts before disk; tests 'commit persists ONLY the derived passcode; the mnemonic is never stored' + 'the 3-word confirm ... persists ONLY it' + 'safeStorageKeriStore ... plaintext never lands in the blob'", "story 7 — reopened walk returning to IDIP mints a fresh phrase; switch to kanidm at S3a discards phrase and derivations": "S6a is ephemeral renderer state (fresh ceremony per mount); onAdvanced clears StoreKeys.passcode on identity==='kanidm'; RecoveryPhraseCeremony.discard; tests 'S6a Back returns to Review ... a fresh phrase mints on return' + 'switching S3a to kanidm discards the derived passcode' + 'discard clears the persisted passcode'" }, "summary": "Shipped the IDIP-only S6a recovery-phrase ceremony (local mnemonic, regenerate, 3-word confirm gating Create, passcode-only keychain persistence, fresh-per-return/discard-on-switch) with its screen and the safeStorage store, wired on the wizard's IDIP path; kanidm untouched.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#777
No description provided.