Research: rehost mechanics on the pinned KERI stack — KEL/TEL portability, group witness rotation, agent re-derivation, tenant repoint #1303
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1303
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293)
Question
Rehost mechanics on the pinned KERI stack (charting ruling 6, the hard direction): moving a community from coa-shared to its own gateway without changing who anyone is. Research first-hand (keripy 1.2.2 / KERIA 0.2.0-rc1 / signify-ts 0.3.0-rc2,
matou-infrastructure/keri, this repo's ADR 0201 restore rung andinternal/keria/restore.go):identifiers().createwith the same name reproduce the same prefix, or must the existing KEL be adopted — and does signify-ts have an adopt path at all?).rotcutting Mātou's witnesses and adding the gateway's (thresholds,toad, what a 1-of-1 vs 2-of-3 steward set signs, what happens to members who never see the rotation).Output:
docs/research/2026-09-07-rehost-mechanics.mdwith a step table and the dead ends; no decisions.Claimed 2026-09-07 (charting session). Research subagent fired inline; findings land on branch
research/rehost-mechanicsasdocs/research/2026-09-07-rehost-mechanics.md(laptop checkout, unpushed until reviewed).Resolution (research, 2026-09-07)
Findings:
docs/research/2026-09-07-rehost-mechanics.mdon branchresearch/rehost-mechanics(commit78fe53bc, laptop checkout, unpushed): verdict, Q1–Q5, a 16-row step table, dead ends, 10 flagged unverified claims, a version-crossing hazard table; all claims cited. Nothing executed live.1. Same twelve words ⇒ same AID is FALSE for wallet-minted identities. signify-ts derives only the controller AID from the bran; every
identifiers().createwithout abrankarg mints a random per-AID salt (keeping.js:114-117), encrypted with the bran-derived AEID and stored on KERIA assxlt. matou-app never passesbran(client.ts:279,283). Re-creating on a new KERIA mints a different prefix. This repo's own app passes the bran as the AID salt (app/src/lib/keri/inception.ts:52-69), so ADR 0201's "no-backup" rung holds for IDSS-minted identities and is false for the wallet's; the determinism proof tests only the IDSS shape. → This reaches beyond rehost: member adoption into the app (#1297) and the second-community rule (charting ruling 2) both assumed re-derivation. Adoption of a browser-minted (IDSS-shape) identity into the app still works IF the app connects to the same agent (same KERIA) — it never re-creates; but the wallet's own future mints must passbran(or the salt must travel) for any cross-backend story to hold.2. The per-AID salt is recoverable only while the old agent lives (
identifiers().get→salty.sxlt, decrypted with the re-derived AEID). A member whose coa-shared agent is gone before migration has an unrecoverable identity — new AID, re-invite.3. An existing AID CAN be adopted onto a new KERIA:
POST /identifiersrefuses only a taken name; with the KEL already pulled (OOBI / CESR push), the posted original inception is a duplicate-not-duplicitous event (keripy eventing.py:3789-3815) andSignifyHab.makerecords the hab + salty params. No library verb — signify-ts'screatealways incepts fresh keys — so it is an app-level POST overclient.manager.new({sxlt,…}). Pull the KEL before adopting (misfit escrow otherwise).4. The group hab has a first-class path:
groups().join(name, rot, sigs, gid, smids, rmids)(grouping.py:86-203), needing every member KEL in kevers and the steward's personal hab adopted first;POST /identifierswithalgo:'group'also works against an existing KEL.5. Group witness rotation is feasible and the add-only half is already proven by the wallet's
adoptOrgWitnesses;cutsride the same call and keripy allows cut-all + add-disjoint in onerotwith1 ≤ toad ≤ |new|. New witnesses get the whole KEL viaReceiptor.catchup; cut witnesses are never contacted. Wallet-minted groups arekt=nt=1at every N (and ADR 0197 amendment 3 rules 1-of-N) → one steward signs.6. Version-crossing hazard: the gateway is KERIA 0.4.0 / keripy 1.2.13 (DDR 0207), Mātou's patches dropped. Every endpoint/check above is unchanged in 0.4.0 (diffed), BUT keripy 1.2.13's
catchupis byte-identical to the buggy 1.2.2 code Mātou patches (witness_catchup_patch.py) — a witness-adding rotation on a long KEL is exactly that failure. Also: 0.4.0's pyproject pinskeri==1.2.12(IDSS overrides to 1.2.13); signify-ts 0.3.0 ↔ KERIA 0.4.0 wire unverified; the wallet's exn-before-OOBI join flows depend on the dropped escrow patches.7. Registry/TEL: KERIA has no client-facing TEL query; the reachable route is
credentials().get(said, includeCESR)on the old agent →PUT /on the new agent's CESR door, then re-register the originalvcp(SignifyRegistry.maketolerates the duplicate) — before the witness rotation. Else: fresh registry + bulk reissue.8. The roster cannot be rebuilt from the TEL alone: holder AID and role live in the ACDC body (old agent's
reger); username/email are any-sync/backend, nowhere in KERI.9. Tenant repoint / next launch: the wallet's config-server URL is baked at build (
kit.jsonconfigUrl), KERIA URLs read once at boot, 5-min cache; per-tenantkeri.*in coa-shared tenant mode unverified. A member's next launch against the gateway hitsagent does not exist→boot()→ 403 from the invite-gated boot door, every launch; an authorised boot mints an empty agent. Nothing re-derives automatically.10. Point-at needs from the descriptor: the bridge reads key state from the gateway KERIA's
/oobi/{aid}, which refuses non-managed AIDs (ending.py:85-96), so the descriptor must name coa-shared's CESR door / Mātou's witnesses as the KEL source, carry their witness + schema OOBIs, and route/bootto coa-shared during point-at; the gateway roster must be seeded from the old agent's issued credentials.Feeds the Coa-first grill (#1304), and finding 1 must be read by #1297 and the descriptor grill (#1295).