idip: keri-client-core — the renderer signify-ts client core (matou-app lift) with the determinism check #772

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

Parent

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

What to build

The renderer-side KERI client core, lifted from matou-app's any-sync-free core (reuse inventory #728): mnemonic → bran/passcode → connect-or-boot → witnessed AID → group AID → credential registry → schema OOBI → issue + IPEX grant, and recovery (re-derive the bran, list AIDs). The hard-won matou-app rails travel with it: witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt. Dropped: /identity/set, /spaces/*, space-invites smuggled in IPEX, X-User-AID RBAC. Runs in the Electron renderer (and later the browser join page) — never in the Go control plane (DDR 0200). Carries the mnemonic → passcode → AID determinism unit check, the named build-time verification behind ADR 0201's no-backup rung.

Acceptance criteria

  • (spec testing exception) Given the same 12 words and the same witness configuration, when a fresh agent boots from the derived passcode, then the same AID results (deterministic inception) — proven by a unit-level check.
  • Given the lifted core, when its surface is reviewed, then the matou-app hardening rails (witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt) are present and the dropped surfaces are absent.
  • Given recovery, when a client re-derives from a phrase, then existing AIDs are found and reconnected (matou-app recovery flow shape).

Blocked by

  • bootstrap:skeleton (#23) (done — satisfied)

Task manifest

task: idip:keri-client-core
interface: 'the renderer KERI client core: mnemonic→passcode derivation, connect-or-boot, witnessed AID
  mint, group AID ops, registry, schema OOBI, issue + IPEX grant, recovery — with the witness-anchor/KEL-push/reboot-detection/escrow
  rails'
seam: 'renderer unit suite (vitest): determinism check (same mnemonic + witness config ⇒ same AID), derivation
  vectors vs matou-app reference, recovery re-derive; live agent behaviour is proven at the consuming
  slices per the slice-map ruling'
acceptance:
- given: the same 12 words and witness config
  when: a fresh agent boots from the derived passcode
  then: the same AID results — deterministic
- given: a recovery from phrase
  when: the client re-derives
  then: existing AIDs are found and reconnected
depends_on:
- bootstrap:skeleton
out_of_scope:
- the S6a ceremony screen — founding-s6a-ceremony
- the join page — member-join-page
- any-sync spaces / matou-app interop (spec Out of Scope)
needs_human_decision: []
## Parent Feature spec: #767 (idip; wayfinder map #725). ## What to build The renderer-side KERI client core, lifted from matou-app's any-sync-free core (reuse inventory #728): mnemonic → bran/passcode → connect-or-boot → witnessed AID → group AID → credential registry → schema OOBI → issue + IPEX grant, and recovery (re-derive the bran, list AIDs). The hard-won matou-app rails travel with it: witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt. Dropped: `/identity/set`, `/spaces/*`, space-invites smuggled in IPEX, X-User-AID RBAC. Runs in the Electron renderer (and later the browser join page) — never in the Go control plane (DDR 0200). Carries the mnemonic → passcode → AID determinism unit check, the named build-time verification behind ADR 0201's no-backup rung. ## Acceptance criteria - [ ] (spec testing exception) Given the same 12 words and the same witness configuration, when a fresh agent boots from the derived passcode, then the same AID results (deterministic inception) — proven by a unit-level check. - [ ] Given the lifted core, when its surface is reviewed, then the matou-app hardening rails (witness-anchor polling, KEL push, agent-reboot detection, escrow-until-receipt) are present and the dropped surfaces are absent. - [ ] Given recovery, when a client re-derives from a phrase, then existing AIDs are found and reconnected (matou-app recovery flow shape). ## Blocked by - bootstrap:skeleton (#23) (done — satisfied) ## Task manifest ```yaml task: idip:keri-client-core interface: 'the renderer KERI client core: mnemonic→passcode derivation, connect-or-boot, witnessed AID mint, group AID ops, registry, schema OOBI, issue + IPEX grant, recovery — with the witness-anchor/KEL-push/reboot-detection/escrow rails' seam: 'renderer unit suite (vitest): determinism check (same mnemonic + witness config ⇒ same AID), derivation vectors vs matou-app reference, recovery re-derive; live agent behaviour is proven at the consuming slices per the slice-map ruling' acceptance: - given: the same 12 words and witness config when: a fresh agent boots from the derived passcode then: the same AID results — deterministic - given: a recovery from phrase when: the client re-derives then: existing AIDs are found and reconnected depends_on: - bootstrap:skeleton out_of_scope: - the S6a ceremony screen — founding-s6a-ceremony - the join page — member-join-page - any-sync spaces / matou-app interop (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 #772 — status success

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

envelope
{
  "issue": 772,
  "status": "success",
  "commits": [
    "83ac985e8477b44453e3e9bb425d293726bb2bfd"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "pnpm-lock.yaml",
    "app/package.json",
    "app/src/lib/keri/agentLifecycle.ts",
    "app/src/lib/keri/client.ts",
    "app/src/lib/keri/connection.ts",
    "app/src/lib/keri/derivation.ts",
    "app/src/lib/keri/inception.ts",
    "app/src/lib/keri/index.ts",
    "app/src/lib/keri/store.ts",
    "app/src/lib/keri/witnessAssignment.ts",
    "app/tests/unit/keri/agentLifecycle.test.ts",
    "app/tests/unit/keri/derivation.test.ts",
    "app/tests/unit/keri/determinism.test.ts",
    "app/tests/unit/keri/recovery.test.ts",
    "app/tests/unit/keri/surface.test.ts",
    "app/tests/unit/keri/witnessAssignment.test.ts"
  ],
  "tests": [
    {
      "command": "pnpm exec vitest run tests/unit/keri/ (in app/)",
      "exit_code": 0
    },
    {
      "command": "pnpm build (vue-tsc, in app/)",
      "exit_code": 0
    },
    {
      "command": "pnpm exec eslint app/src/lib/keri app/tests/unit/keri",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given the same 12 words and witness config, when a fresh agent boots from the derived passcode, then the same AID results — deterministic": "app/tests/unit/keri/determinism.test.ts — inceptionAid runs signify-ts's real key derivation + incept() offline: same phrase+witness config ⇒ same AID (44-char qb64), re-derived-bran re-mints the same AID, different phrase/witness config ⇒ different AID. The recipe (deterministicKeeperArgs, passcode-derived bran as the AID salt) is in app/src/lib/keri/inception.ts and used by KERIClient.createAID.",
    "Given the lifted core, when its surface is reviewed, then the matou-app hardening rails are present and the dropped surfaces are absent": "app/tests/unit/keri/surface.test.ts — asserts KERIClient exposes awaitGroupAnchorWitnessed/pushKelToAgent/resolveViaWitnesses/queryKeyStateToSn/ensureConnected + recordAgentLifecycle + CESR-DESTINATION KEL push, and that /identity/set, /spaces, X-User-AID, space_invite, verifyCommunityAccess et al are absent from the comment-stripped source and prototype. Rails are real methods in app/src/lib/keri/client.ts.",
    "Given a recovery from phrase, when the client re-derives, then existing AIDs are found and reconnected": "app/tests/unit/keri/recovery.test.ts — KERIClient.recover re-derives the bran from the phrase and reconnects; against an injected KERIA keyed by bran, existing AIDs come back, two clients from the same phrase reach the same agent+AIDs, an unknown phrase reconnects but finds nothing, an invalid phrase is rejected before touching KERIA. Live agent behaviour rides the consuming slices per the slice-map ruling (manifest seam)."
  },
  "summary": "Lifted matou-app's any-sync-free KERI core into the Electron renderer as app/src/lib/keri/ with the mnemonic→passcode→AID determinism check proving ADR 0201's no-backup rung, backed by a 30-test vitest seam.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #772 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 772, "status": "success", "commits": [ "83ac985e8477b44453e3e9bb425d293726bb2bfd" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "pnpm-lock.yaml", "app/package.json", "app/src/lib/keri/agentLifecycle.ts", "app/src/lib/keri/client.ts", "app/src/lib/keri/connection.ts", "app/src/lib/keri/derivation.ts", "app/src/lib/keri/inception.ts", "app/src/lib/keri/index.ts", "app/src/lib/keri/store.ts", "app/src/lib/keri/witnessAssignment.ts", "app/tests/unit/keri/agentLifecycle.test.ts", "app/tests/unit/keri/derivation.test.ts", "app/tests/unit/keri/determinism.test.ts", "app/tests/unit/keri/recovery.test.ts", "app/tests/unit/keri/surface.test.ts", "app/tests/unit/keri/witnessAssignment.test.ts" ], "tests": [ { "command": "pnpm exec vitest run tests/unit/keri/ (in app/)", "exit_code": 0 }, { "command": "pnpm build (vue-tsc, in app/)", "exit_code": 0 }, { "command": "pnpm exec eslint app/src/lib/keri app/tests/unit/keri", "exit_code": 0 } ], "criteria": { "Given the same 12 words and witness config, when a fresh agent boots from the derived passcode, then the same AID results — deterministic": "app/tests/unit/keri/determinism.test.ts — inceptionAid runs signify-ts's real key derivation + incept() offline: same phrase+witness config ⇒ same AID (44-char qb64), re-derived-bran re-mints the same AID, different phrase/witness config ⇒ different AID. The recipe (deterministicKeeperArgs, passcode-derived bran as the AID salt) is in app/src/lib/keri/inception.ts and used by KERIClient.createAID.", "Given the lifted core, when its surface is reviewed, then the matou-app hardening rails are present and the dropped surfaces are absent": "app/tests/unit/keri/surface.test.ts — asserts KERIClient exposes awaitGroupAnchorWitnessed/pushKelToAgent/resolveViaWitnesses/queryKeyStateToSn/ensureConnected + recordAgentLifecycle + CESR-DESTINATION KEL push, and that /identity/set, /spaces, X-User-AID, space_invite, verifyCommunityAccess et al are absent from the comment-stripped source and prototype. Rails are real methods in app/src/lib/keri/client.ts.", "Given a recovery from phrase, when the client re-derives, then existing AIDs are found and reconnected": "app/tests/unit/keri/recovery.test.ts — KERIClient.recover re-derives the bran from the phrase and reconnects; against an injected KERIA keyed by bran, existing AIDs come back, two clients from the same phrase reach the same agent+AIDs, an unknown phrase reconnects but finds nothing, an invalid phrase is rejected before touching KERIA. Live agent behaviour rides the consuming slices per the slice-map ruling (manifest seam)." }, "summary": "Lifted matou-app's any-sync-free KERI core into the Electron renderer as app/src/lib/keri/ with the mnemonic→passcode→AID determinism check proving ADR 0201's no-backup rung, backed by a 30-test vitest seam.", "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#772
No description provided.