idip: rescue-ladder-idip — recover-from-phrase, re-key-now, both-lost #781

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

Parent

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

What to build

The IDIP founder-identity rescue ladder (ADR 0195, amending 0088) — three rungs, stateful and honestly worded: (1) device lost, phrase held → recover from phrase: fresh install, type the 12 words, passcode re-derives, the agent reconnects to the community's KERIA and finds the AIDs (matou-app's recovery flow); (2) phrase lost, device signed in → re-key now: generate a new phrase and rotate to it from the working device, old phrase dead — the mechanism (signify/KERIA passcode rotation) is a named build-time verification: if disproven, the rung degrades to the honest warning "your identity is one device failure from loss"; (3) both lost → an honestly-named end state, not a menu: "No one can restore control of this identity" — history persists in the gateway's KERIA state, control does not.

Acceptance criteria

  • (story 29) Given a fresh install and the 12 words, when recovery runs, then the passcode re-derives, the agent reconnects and the founder's AIDs are found.
  • (story 30) Given a working signed-in device, when re-key runs, then a new phrase is rotated to and the old phrase no longer recovers — OR the verification disproved the mechanism and the rung shows the honest warning instead.
  • (story 31) Given both lost, then the surface states the end state honestly; no false hope, no reset link.

Blocked by

  • #777 — idip:founding-s6a-ceremony
  • #772 — idip:keri-client-core

Task manifest

task: idip:rescue-ladder-idip
interface: 'the operator-app rescue ladder for the IDIP founder identity: recover-from-phrase, re-key-now
  (verified or honestly degraded), both-lost end state — 0088-toned wording throughout'
seam: 'app recovery flows against the real packaged stack: recover-from-phrase round-trip; the re-key
  build-time verification (signify passcode rotation) with the degrade path; both-lost wording per ADR
  0195'
acceptance:
- given: a fresh install + the 12 words
  when: recovery runs
  then: passcode re-derives, agent reconnects, AIDs found
- given: a signed-in device
  when: re-key runs
  then: new phrase live, old dead — or the honest degraded warning if the mechanism is disproven
- given: phrase and device both lost
  when: the ladder is consulted
  then: the honestly-named end state, nothing else
depends_on:
- founding-s6a-ceremony
- keri-client-core
out_of_scope:
- community continuity via co-stewards — steward-add-rotate
- the no-backup rung — identity-restore
- kanidm reset ladder (unchanged)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build The IDIP founder-identity rescue ladder (ADR 0195, amending 0088) — three rungs, stateful and honestly worded: (1) device lost, phrase held → recover from phrase: fresh install, type the 12 words, passcode re-derives, the agent reconnects to the community's KERIA and finds the AIDs (matou-app's recovery flow); (2) phrase lost, device signed in → re-key now: generate a new phrase and rotate to it from the working device, old phrase dead — the mechanism (signify/KERIA passcode rotation) is a named build-time verification: if disproven, the rung degrades to the honest warning "your identity is one device failure from loss"; (3) both lost → an honestly-named end state, not a menu: "No one can restore control of this identity" — history persists in the gateway's KERIA state, control does not. ## Acceptance criteria - [ ] (story 29) Given a fresh install and the 12 words, when recovery runs, then the passcode re-derives, the agent reconnects and the founder's AIDs are found. - [ ] (story 30) Given a working signed-in device, when re-key runs, then a new phrase is rotated to and the old phrase no longer recovers — OR the verification disproved the mechanism and the rung shows the honest warning instead. - [ ] (story 31) Given both lost, then the surface states the end state honestly; no false hope, no reset link. ## Blocked by - #777 — idip:founding-s6a-ceremony - #772 — idip:keri-client-core ## Task manifest ```yaml task: idip:rescue-ladder-idip interface: 'the operator-app rescue ladder for the IDIP founder identity: recover-from-phrase, re-key-now (verified or honestly degraded), both-lost end state — 0088-toned wording throughout' seam: 'app recovery flows against the real packaged stack: recover-from-phrase round-trip; the re-key build-time verification (signify passcode rotation) with the degrade path; both-lost wording per ADR 0195' acceptance: - given: a fresh install + the 12 words when: recovery runs then: passcode re-derives, agent reconnects, AIDs found - given: a signed-in device when: re-key runs then: new phrase live, old dead — or the honest degraded warning if the mechanism is disproven - given: phrase and device both lost when: the ladder is consulted then: the honestly-named end state, nothing else depends_on: - founding-s6a-ceremony - keri-client-core out_of_scope: - community continuity via co-stewards — steward-add-rotate - the no-backup rung — identity-restore - kanidm reset ladder (unchanged) 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 #781 — status success

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

envelope
{
  "issue": 781,
  "status": "success",
  "commits": [
    "5c7173a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/lib/keri/client.ts",
    "app/src/lib/keri/connection.ts",
    "app/src/lib/keri/index.ts",
    "app/src/lib/keri/rekey.ts",
    "app/src/lib/rescueLadder.ts",
    "app/tests/unit/keri/rekey.test.ts",
    "app/tests/unit/rescueLadder.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/keri/rekey.test.ts tests/unit/rescueLadder.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/keri/",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 29 — fresh install + 12 words: passcode re-derives, agent reconnects, AIDs found": "IdipRescueLadder.recoverFromPhrase wraps KERIClient.recover (app/src/lib/rescueLadder.ts); proven in tests/unit/rescueLadder.test.ts 'rung 1' (bran re-derives, found=true, AIDs in evidence) and tests/unit/keri/recovery.test.ts",
    "story 30 — re-key: new phrase live, old dead — OR honest degraded warning if disproven": "KERIClient.rekey rotates the passcode via SignifyClient.rotate; gated on verifyPasscodeRotation() (app/src/lib/keri/rekey.ts, GREEN build-time check). Both paths proven in tests/unit/rescueLadder.test.ts 'rung 2' (verified→rotate, old dead/new live; disproven→degraded warning 'your identity is one device failure from loss', no rotation) and tests/unit/keri/rekey.test.ts",
    "story 31 — both lost: honestly-named end state, no false hope, no reset link": "IdipRescueLadder.bothLost end-state wording (app/src/lib/rescueLadder.ts); proven in tests/unit/rescueLadder.test.ts 'rung 3' (status end-state, 'no one can restore control', 'there is no reset link', history survives)"
  },
  "summary": "Built the ADR 0195 three-rung IDIP founder-identity rescue ladder — recover-from-phrase, re-key-now gated on a green build-time signify passcode-rotation verification (degrades honestly if disproven), and the honest both-lost end state.",
  "blockers": []
}
**close-report** for #781 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 781, "status": "success", "commits": [ "5c7173a" ], "changed_files": [ "STATUS.md", "app/src/lib/keri/client.ts", "app/src/lib/keri/connection.ts", "app/src/lib/keri/index.ts", "app/src/lib/keri/rekey.ts", "app/src/lib/rescueLadder.ts", "app/tests/unit/keri/rekey.test.ts", "app/tests/unit/rescueLadder.test.ts" ], "tests": [ { "command": "npx vitest run tests/unit/keri/rekey.test.ts tests/unit/rescueLadder.test.ts", "exit_code": 0 }, { "command": "npx vitest run tests/unit/keri/", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json", "exit_code": 0 } ], "criteria": { "story 29 — fresh install + 12 words: passcode re-derives, agent reconnects, AIDs found": "IdipRescueLadder.recoverFromPhrase wraps KERIClient.recover (app/src/lib/rescueLadder.ts); proven in tests/unit/rescueLadder.test.ts 'rung 1' (bran re-derives, found=true, AIDs in evidence) and tests/unit/keri/recovery.test.ts", "story 30 — re-key: new phrase live, old dead — OR honest degraded warning if disproven": "KERIClient.rekey rotates the passcode via SignifyClient.rotate; gated on verifyPasscodeRotation() (app/src/lib/keri/rekey.ts, GREEN build-time check). Both paths proven in tests/unit/rescueLadder.test.ts 'rung 2' (verified→rotate, old dead/new live; disproven→degraded warning 'your identity is one device failure from loss', no rotation) and tests/unit/keri/rekey.test.ts", "story 31 — both lost: honestly-named end state, no false hope, no reset link": "IdipRescueLadder.bothLost end-state wording (app/src/lib/rescueLadder.ts); proven in tests/unit/rescueLadder.test.ts 'rung 3' (status end-state, 'no one can restore control', 'there is no reset link', history survives)" }, "summary": "Built the ADR 0195 three-rung IDIP founder-identity rescue ladder — recover-from-phrase, re-key-now gated on a green build-time signify passcode-rotation verification (degrades honestly if disproven), and the honest both-lost end state.", "blockers": [] } ``` </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#781
No description provided.