idip: identity-restore — one-act restore, the re-invite list, and the no-backup rung #787

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

Parent

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

What to build

Restore and the last rescue rungs (ADR 0201): on a rebuilt gateway the engine restores the identity dataset + roster in one act (ADR 0082) — agents, KELs, TELs, registry and roster return mutually consistent; members reconnect with just their passcodes; what was lost since the snapshot is named, not hidden — members who joined since appear on a printable re-invite list (fresh issuance, ADR 0198). And the no-backup rung: "witnesses have the KEL, the agent is gone" is not a dead end — signify keys derive deterministically from passcodes (keri-client-core's verified claim), so members and the founder re-boot fresh agents and re-derive the SAME AIDs; the community re-creates its registry and a steward bulk-reissues memberships — honest wording: "identities recovered; memberships reissued by a steward." If determinism is disproven at build time, the rung degrades to the honest warning.

Acceptance criteria

  • (story 34) Given a rebuilt gateway and a backup, when restore runs, then identity + roster return in one act, mutually consistent — roster row ⇄ TEL agree via IsIssued for every member.
  • (story 34) Given members joined since the snapshot, then the restore names them on a printable re-invite list.
  • (story 32) Given no backup and a fresh stack, when members re-boot from their passcodes, then the same AIDs re-derive; a steward bulk-reissues memberships; the surface wears the honest wording.

Blocked by

  • #783 — idip:identity-dataset-backup
  • #782 — idip:steward-approve-issue
  • backups:restore-in-place-replaces (done — satisfied)

Task manifest

task: idip:identity-restore
interface: 'one-act identity+roster restore with post-restore consistency proof and the printable re-invite
  diff; the no-backup rung: deterministic re-derivation + registry re-creation + steward bulk-reissue'
seam: 'restore verification against the real packaged stack: post-restore IsIssued ⇄ roster agreement
  for all members; joined-since diff printed; no-backup rung round-trip (fresh stack, same AIDs, bulk
  reissue)'
acceptance:
- given: a rebuilt gateway + backup
  when: restore runs
  then: one act; roster ⇄ TEL consistent via IsIssued; members reconnect by passcode
- given: joiners since the snapshot
  when: restore completes
  then: named on the printable re-invite list
- given: no backup
  when: members re-boot from passcodes
  then: same AIDs re-derive; steward bulk-reissues; honest wording
depends_on:
- identity-dataset-backup
- steward-approve-issue
- backups:restore-in-place-replaces
out_of_scope:
- the founder-phrase rungs — rescue-ladder-idip
- offsite targets (#310)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build Restore and the last rescue rungs (ADR 0201): on a rebuilt gateway the engine restores the identity dataset + roster in one act (ADR 0082) — agents, KELs, TELs, registry and roster return mutually consistent; members reconnect with just their passcodes; what was lost since the snapshot is named, not hidden — members who joined since appear on a printable re-invite list (fresh issuance, ADR 0198). And the no-backup rung: "witnesses have the KEL, the agent is gone" is not a dead end — signify keys derive deterministically from passcodes (keri-client-core's verified claim), so members and the founder re-boot fresh agents and re-derive the SAME AIDs; the community re-creates its registry and a steward bulk-reissues memberships — honest wording: "identities recovered; memberships reissued by a steward." If determinism is disproven at build time, the rung degrades to the honest warning. ## Acceptance criteria - [ ] (story 34) Given a rebuilt gateway and a backup, when restore runs, then identity + roster return in one act, mutually consistent — roster row ⇄ TEL agree via IsIssued for every member. - [ ] (story 34) Given members joined since the snapshot, then the restore names them on a printable re-invite list. - [ ] (story 32) Given no backup and a fresh stack, when members re-boot from their passcodes, then the same AIDs re-derive; a steward bulk-reissues memberships; the surface wears the honest wording. ## Blocked by - #783 — idip:identity-dataset-backup - #782 — idip:steward-approve-issue - backups:restore-in-place-replaces (done — satisfied) ## Task manifest ```yaml task: idip:identity-restore interface: 'one-act identity+roster restore with post-restore consistency proof and the printable re-invite diff; the no-backup rung: deterministic re-derivation + registry re-creation + steward bulk-reissue' seam: 'restore verification against the real packaged stack: post-restore IsIssued ⇄ roster agreement for all members; joined-since diff printed; no-backup rung round-trip (fresh stack, same AIDs, bulk reissue)' acceptance: - given: a rebuilt gateway + backup when: restore runs then: one act; roster ⇄ TEL consistent via IsIssued; members reconnect by passcode - given: joiners since the snapshot when: restore completes then: named on the printable re-invite list - given: no backup when: members re-boot from passcodes then: same AIDs re-derive; steward bulk-reissues; honest wording depends_on: - identity-dataset-backup - steward-approve-issue - backups:restore-in-place-replaces out_of_scope: - the founder-phrase rungs — rescue-ladder-idip - offsite targets (#310) needs_human_decision: [] ```

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

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

close-report for #787 — status success

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

envelope
{
  "issue": 787,
  "status": "success",
  "commits": [
    "7f4079651a9c92bb92adea018cb10caa400ea3e9"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/lib/keri/inception.ts",
    "app/src/lib/keri/index.ts",
    "app/src/lib/noBackupReissue.ts",
    "app/tests/unit/noBackupReissue.test.ts",
    "internal/keria/backup.go",
    "internal/keria/restore.go",
    "internal/keria/restore_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/keria/ ./internal/backupengine/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./internal/keria/...",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/noBackupReissue.test.ts tests/unit/keri/determinism.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx eslint app/src/lib/noBackupReissue.ts app/src/lib/keri/inception.ts app/tests/unit/noBackupReissue.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 34: rebuilt gateway + backup, restore runs -> identity + roster in one act, mutually consistent (roster row <-> TEL agree via IsIssued for every member)": "internal/keria/restore.go restoreInPlace (identity dataset + roster restored in one act) + VerifyRosterTELConsistency (per-member IsIssued<->TEL agreement, Consistent only if none disagree); proven by internal/keria/restore_test.go TestRestoreInPlaceReturnsIdentityAndRosterInOneAct + TestVerifyRosterTELConsistency (pass and split cases)",
    "story 34: members joined since the snapshot -> named on a printable re-invite list": "internal/keria/restore.go ReInviteList (observed AIDs absent from the restored snapshot roster) + RenderReInviteList (printable sheet, honest empty case); proven by TestReInviteListNamesJoinedSince",
    "story 32: no backup + fresh stack, members re-boot from passcodes -> same AIDs re-derive; a steward bulk-reissues; the surface wears the honest wording": "app/src/lib/noBackupReissue.ts NoBackupReissueDriver (determinism gate via verifyDeterministicReDerivation, registry re-creation, bulk reissue) + NO_BACKUP_WORDING; determinism (same AIDs re-derive) proven against real signify-ts in keri/inception.ts verifyDeterministicReDerivation; proven by app/tests/unit/noBackupReissue.test.ts (bulk reissue + honest wording, honest degradation, partial) and the runtime determinism verdict test"
  },
  "summary": "IDIP identity-restore: the primary rescue rung (one-act restore + post-restore roster<->TEL consistency proof + printable re-invite diff) and the no-backup rung (deterministic re-derivation gate, registry re-creation, steward bulk-reissue, honest wording) land, replacing #783's deferred restore verbs.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #787 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 787, "status": "success", "commits": [ "7f4079651a9c92bb92adea018cb10caa400ea3e9" ], "changed_files": [ "STATUS.md", "app/src/lib/keri/inception.ts", "app/src/lib/keri/index.ts", "app/src/lib/noBackupReissue.ts", "app/tests/unit/noBackupReissue.test.ts", "internal/keria/backup.go", "internal/keria/restore.go", "internal/keria/restore_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/keria/ ./internal/backupengine/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./internal/keria/...", "exit_code": 0 }, { "command": "npx vitest run tests/unit/noBackupReissue.test.ts tests/unit/keri/determinism.test.ts", "exit_code": 0 }, { "command": "npx eslint app/src/lib/noBackupReissue.ts app/src/lib/keri/inception.ts app/tests/unit/noBackupReissue.test.ts", "exit_code": 0 } ], "criteria": { "story 34: rebuilt gateway + backup, restore runs -> identity + roster in one act, mutually consistent (roster row <-> TEL agree via IsIssued for every member)": "internal/keria/restore.go restoreInPlace (identity dataset + roster restored in one act) + VerifyRosterTELConsistency (per-member IsIssued<->TEL agreement, Consistent only if none disagree); proven by internal/keria/restore_test.go TestRestoreInPlaceReturnsIdentityAndRosterInOneAct + TestVerifyRosterTELConsistency (pass and split cases)", "story 34: members joined since the snapshot -> named on a printable re-invite list": "internal/keria/restore.go ReInviteList (observed AIDs absent from the restored snapshot roster) + RenderReInviteList (printable sheet, honest empty case); proven by TestReInviteListNamesJoinedSince", "story 32: no backup + fresh stack, members re-boot from passcodes -> same AIDs re-derive; a steward bulk-reissues; the surface wears the honest wording": "app/src/lib/noBackupReissue.ts NoBackupReissueDriver (determinism gate via verifyDeterministicReDerivation, registry re-creation, bulk reissue) + NO_BACKUP_WORDING; determinism (same AIDs re-derive) proven against real signify-ts in keri/inception.ts verifyDeterministicReDerivation; proven by app/tests/unit/noBackupReissue.test.ts (bulk reissue + honest wording, honest degradation, partial) and the runtime determinism verdict test" }, "summary": "IDIP identity-restore: the primary rescue rung (one-act restore + post-restore roster<->TEL consistency proof + printable re-invite diff) and the no-backup rung (deterministic re-derivation gate, registry re-creation, steward bulk-reissue, honest wording) land, replacing #783's deferred restore verbs.", "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#787
No description provided.