Research: how the Doorkeeper verifies a presented credential on the pinned stack — IPEX grant contents, revocation from witnessed KEL seals vs TEL fetch, holder binding, the verifier sidecar #1387
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#1387
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
How the Doorkeeper verifies a presented credential on the pinned stack (ADR 0235 decision 5 — the Doorkeeper is a pure verifier: it receives no registrations, holds no copies, and answers "does this identity hold a valid credential of this kind" from the wallet's presentation + the witnesses). Establish, in the KERIA 0.4.0 / keripy 1.2.13 / signify-ts 0.4.0 source the gateway pins (DDR 0207) and the KERIA 0.2.0-rc1 + Mātou patches / signify-ts 0.3.0 the wallet runs:
grant(oroffer/present) from a matou-app wallet carries on the wire — ACDC, the registryissevent, the anchoringixn, the issuer KEL — and what the receiving agent (the Doorkeeper's, on 0.4.0) does with it: doesTeveryverify theissagainst the issuer's witnessed KEL seal automatically? What must the Doorkeeper have resolved first (issuer OOBI, schema OOBI, registry)? Does the 0.2.0-rc1 → 0.4.0 crossing change anything forgrant/admit?iss/revis anchored as a seal in the group AID's KEL, which the witnesses serve. Can a verifier decide "not revoked" from the witnessed KEL seals alone (seali= credential SAID,s= 0 issued / 1 revoked), and does keripy's verifier accept that, or does it insist on the TEL event bytes? If the latter: how does a non-issuer agent fetch a registry's TEL events on 0.4.0 — thetelsquery route via the issuer agent's mailbox,credentials().state(), a registrar/backer — and which of those work when the issuer is a group AID whose agents live in stewards' browsers (often offline)?a.i) and to the bridge's signed challenge (ADR 0212 §1) — one identity, one session.ipexhandlers on 0.4.0 admit a grant without anadmitround-trip to the wallet.schemas); confirm the Doorkeeper needs that schema resolved via OOBI before verification and where that OOBI is served on the gateway.Capture findings on a throwaway
research/doorkeeper-verificationbranch underdocs/research/2026-09-10-doorkeeper-verification.mdwith a context pointer here; keep the doc under ~250 lines, file:line cited.Resolution — research landed:
docs/research/2026-09-10-doorkeeper-verification.md(branchresearch/doorkeeper-verification,e52f265a; landed on main same day)Read at the pinned tags (KERIA 0.4.0, keripy 1.2.13, signify-ts 0.4.0, signifypy 0.4.2, KERIA 0.2.0-rc1 + Mātou patches). Findings:
exnwithacdc/iss/ancembeds; the sender's KERIA streams issuer KEL + registry TEL + ACDC ahead of it. On receipt it is only a notification — the embeds are parsed when the Doorkeeper admits. The admit can be local (rec=[], no wallet round-trip; matou-app already uses this form), but the admitted credential is saved in the Doorkeeper's agent → "holds no copies" needs an explicitDELETE /credentials/{said}or a rewording. rc1 → 0.4.0 changes nothing here.vcStatewalks stored TEL bytes; the KEL seal (i=SAID,s=0/1) is decidable in principle but no library path uses it. The TEL bytes are served by the gateway's witness over an unsignedGET /query?typ=tel— the issuing steward's gateway-side agent disseminates them once the anchor completes; no steward needs to be online at verify time. The presented TEL is always stale (a revocation never reaches the holder, #732) and keripy's Verifier saves a revoked credential rather than refusing it → the state read is the check, never the save.a.i; the exn signature proves control ofexn.i; the bridge's challenge nonce can ride the signedmfield.GET /exchanges/{said}→ local admit → poll/credentials/{said}+/registries/{ri}/{said}→ answer the bridge over loopback → delete the copy.KERIA_DURLS(both IDSS schemas, loopback :7723), so a Doorkeeper agent booted there has them; the public OOBI for the descriptor'sschemas[kind].oobiishttps://schema.<apex>/oobi/<SAID>.includeCESR).Finding that bends the design (for #1300's first question): because the witness serves KEL + TEL over unsigned GET and a grant is one signed exn with attachments, a no-agent alternative exists — the wallet posts the grant bytes in the
presentationfield ADR 0212 §2 already accepts, and the bridge verifies in Go (exn Ed25519 by the presenter's key —keriauthalready does this; ACDC/iss SAID recompute; seal walk over the witness's KEL; schema by SAID fromcredschema). No Doorkeeper AID, no signify, no sidecar, no saved copy — hash + Ed25519 work, not a Go signify. It would retiredoorkeeper{aid,oobi}and IPEX presentation. #1300 must rule between the two.