Research: hosting the Doorkeeper's signify session beside the Go bridge, the challenge round trip on KERIA 0.2.0-rc1, and vouching options #1299
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#1299
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
The Doorkeeper (charting ruling 4) needs a server-side signify session beside a Go bridge, and a way for a wallet to recognise it as the community's own. Research, first-hand against the pinned stack (signify-ts 0.3.0-rc2, KERIA 0.2.0-rc1 — source in the session scratchpad or
matou-infrastructure/keri/node_modules):idss-idp, loopback-only HTTP for the bridge), any Go signify client worth trusting, keripyklias a driver; what each needs from the KERIA boot door (a boot token minted at seeding like the founder's, ADR 0212 amendment) and how the passcode is held (a clan-vars secret, never rendered into a page).GET /challenges, an exn/challenge/responsefrom a foreign AID landing in the doorkeeper's mailbox (does KERIA escrow it until the OOBI resolves? the matou…/pendingpatch),POST /challenges_verify/{aid}polling semantics,PUTmarking; whether a bare OOBI of the member is enough for the doorkeeper to resolve.Output:
docs/research/2026-09-07-doorkeeper-hosting-and-vouching.md; no decisions.Claimed 2026-09-07 (charting session). Research subagent fired inline; findings land on branch
research/doorkeeper-hosting-and-vouchingasdocs/research/2026-09-07-doorkeeper-hosting-and-vouching.md(laptop checkout, unpushed until reviewed).Resolution (research, 2026-09-07)
Findings:
docs/research/2026-09-07-doorkeeper-hosting-and-vouching.mdon branchresearch/doorkeeper-hosting-and-vouching(commit6d769594, laptop checkout, unpushed). Read against BOTH generations — KERIA 0.2.0-rc1/keripy 1.2.2 (the wallet's stack) and KERIA 0.4.0/keripy 1.2.13 (the gateway's, DDR 0207) — with a §5 version-difference table. Nothing was executed against a running KERIA; the challenge verbs are the one route family no IDSS drive has exercised on either generation. Note: matou-app resolves signify-ts 0.3.0 (pnpm-lock.yaml), not the DDR 0207 names.1. A foreign exn does NOT arrive usable without a prior OOBI resolve on the doorkeeper side. Unknown sender → escrow (
exchanging.py:89-91); the cued KEL query is a no-op for an unknown AID (agenting.py:462-464); the escrow is dropped silently afterTimeoutPSE= 20 s on 1.2.13 (10 s on 1.2.2). It IS re-processed if the resolve lands inside that window. This is the gap matou's dropped…/pendingpatch covered. Consequence for the sign-in design: the wallet's OOBI (bare form is enough — KEL + delegation chain + end roles + witness locs, if fully witnessed andaddEndRole('agent')was run) must reach the doorkeeper before or within 20 s of the exn — i.e. the sign-in bootstrap must carry the member's OOBI to the bridge (QR round trip or a first HTTP call), the doorkeeper resolves, then the exn lands.2. Delivery is direct to the doorkeeper's
agentend URL — KERIA never reads witness mailboxes — so the doorkeeper needs theagentend role and publiccurls(the gateway already hashttps://keria-cesr.<apex>/). The wallet mustoobis().resolvethe doorkeeper first (/identifiers/{name}/exchanges400s for unknown recipients).3.
POST /challenges_verify/{aid}404s unless the source is inkevers; the long-running op isdoneonly when a stored exn's words match — no error, no timeout, never auto-removed, one op per source AID at a time (name collision overwrites);db.reps/db.exnsgrow unbounded. The sidecar must time out and clean up itself.4. Sidecar viability. Every driving call is a Signify-signed admin request → a Signify client is unavoidable. No Go signify exists (signify-go 404, kerigo archived 2023, et-tu-cesr is a parser) and ADR 0200 forbids writing one. Node is NOT in the gateway's Nix closure. signifypy 0.4.2 (
keri>=1.2.12,<1.3, matches the gateway's keripy, same 4 challenge verbs) drops into the existingkeriaEnvpython set — cheapest packaging, least-adopted client.kli challenge generate/respond/verifyexist andkliis already on the gateway, but verify is a 300 s blocking mailbox-poll on a kli keystore (no KERIA agent, a new dataset tree).5. Boot and passcode.
:3903is ungated over loopback (only Caddy forward_auths the public name), so a sidecar needs no invite — or rides a second founder-style bootstrap mint (FounderBootActorpath) for ledger posture. Passcode = a clan-vars generator in therenderIdssIdpGateGeneratorshape, delivered as a file path; regenerating it is a re-key of the door.6. Vouching. Delegation: verified by the wallet's own KERIA at OOBI time (a
dipwithout the group's anchoring seal never enterskevers,eventing.py:2755-2790); the wallet checkskeyStates().get(dk).di == community AID. Costs: the group must exist first (so NOT at seeding — after the founder's group inception), one stewarddelegations().approve(kt=1 → one signature), and again on every doorkeeper rotation. Credential: a new schema SAID, a registry entry, an admit rail on the doorkeeper, and a TEL lookup in every wallet (signify-ts has no client-side ACDC verify) — buys revocability only. Descriptor-only = TLS trust. Contacts model showschallenges: [{dt, words, said, authenticated}]per contact — the mutual-challenge direction; nothing about delegation.7. Rescue. A KERIA-hosted doorkeeper adds nothing to the ADR 0201 dataset (it lives under
/var/lib/keria) but the passcode var must be restored too; on the no-backup rung the same doorkeeper AID re-derives with a new agent AID,addEndRolemust be re-run, and the descriptor must carry the bare OOBI form (which survives agent re-boots).8. Cross-generation wire (0.2.0-rc1 wallet agent → 0.4.0 doorkeeper): routes, bodies, exn shape and the CESR door are identical; the only behavioural delta is the 10 s vs 20 s escrow window.
Feeds the doorkeeper grill (#1300) and the sign-in prototype (#1301): the prototype must include the OOBI-first bootstrap and the sidecar's own timeout.