Prototype: wallet sign-in by challenge words — QR/deep link → signed /challenge/response → doorkeeper verify → OIDC completes #1301
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1301
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
Prove the wallet sign-in end to end before designing its screens (charting ruling 3): the bridge's sign-in page mints challenge words through the doorkeeper's agent and shows a QR / deep link carrying the doorkeeper's OOBI + the words + a session id; the wallet (a
matou-appbuild pointed at a lab gateway) resolves the OOBI, sends one signed/challenge/responseexn; the sidecar pollschallenges_verify, marks it, and the bridge completes the OIDC auth request against the roster as ADR 0212 does today; the page polls to completion. Spike on aclan-labgateway (or the IDIP drive's local-guest world) with a throwaway sidecar. Questions the spike answers: round-trip time (the #732 bar was ~7 s for browser sign-in), whether a foreign-agent exn arrives without a prior OOBI from the doorkeeper side, deep link vs QR on desktop, what the wallet must persist to make the second sign-in one tap. Links the spike asspikes/<n>-wallet-signin; torn down after Ben drives it.Reworded by ADR 0235 (2026-09-10, #1298)
The challenge is the bridge’s (ADR 0212 §1), carried to the wallet by QR/deep link; the wallet signs it and presents its Membership credential to the Doorkeeper over IPEX; the Doorkeeper verifies (issuer, schema, holder = challenge signer, not revoked from the witnessed KEL seals) and answers the bridge over loopback; OIDC completes. No
/challenge/responseexn round, no roster lookup.Reworded by ADR 0236 (2026-09-11, #1300)
There is no Doorkeeper agent to stand up and no sidecar. The spike: the bridge's sign-in page mints its challenge (ADR 0212 §1, signed bytes now
idss-idp:<door url>:<aid>:<nonce>) and shows a QR / deep link carrying the challenge id + nonce + the door's address + the schema wanted; the wallet (amatou-appbuild pointed at a lab gateway, readingsignin{url}from the descriptor) signs it and posts{aid, challengeID, response, presentation}wherepresentationis the bare credential CESR stream (credentials().get(said, includeCESR=true)); the bridge verifies in Go (SAIDs recomputed,iss/no-revseals from the witness'sGET /query, schema from the trust list, holder == signer) and completes OIDC. Questions the spike answers: round-trip time; the size of the Go verifier and whether keripy golden vectors cover it; the witness fetch latency at sign-in; deep link vs QR on desktop; what the wallet persists for one-tap repeat (the known door). Throwaway; no roster lookup.Ruled by agent under ADR 0174 — veto anytime.
Ruling: apply
no-triage. This is a/wayfinder-pipeline ticket (a child of map #1293), not work for the triage state machine. It moves through the wayfinder fan-out (grill-ux-with-docs→wireframe→to-spec) one ticket per session under/wayfinder; the triage state roles (ready-for-agent/needs-design/ etc.) do not apply until this feature reachesto-tickets.no-triagetells triage automation to skip it so it is not repeatedly re-surfaced as untriaged.Why a two-way door: a single additive label, reverted by removing it. It widens no security posture, destroys no data, spends nothing, and touches no credential or member-facing trust surface.
What proves it: the established precedent — the existing wayfinder map #262 carries exactly this pairing (
no-triage+wayfinder:map). These tickets are owned by the wayfinder pipeline in docs/agents/issue-tracker.md (Wayfinding operations), not by triage.Resolved — the path runs end to end, and the door verifies in 142 ms
Built as
spikes/1301-wallet-signin(throwaway), landed onmainas48902554. Readspikes/1301-wallet-signin/NOTES.mdfor the numbers;README.mdfor how to run it.What was proven
ADR 0236's path, against a live isolated KERIA + witness + schema stack (
proto1301), with a real Membership ACDC issued to a real wallet:idss-idp:<door url>:<aid>:<nonce>, exports its credential as a bare CESR stream (no IPEX) and POSTs{aid, challengeID, response, presentation};issseal walked, the schema checked against a trust list, the holder checked against the signer;https://evil.example/signinposted to the real door is refused (403); aftercredentials().revokethe same presentation is refused in 163 ms while the wallet's own copy still readsiss; and a browser drive walks door → first-contact prompt → Approve → Signed in (spikes/1301-wallet-signin/shots/).No Doorkeeper identity, no signify, no sidecar, no IPEX, no agent, no saved copy. ADR 0236 holds exactly as ruled.
The questions this ticket asked
internal/keriauth, plus one new dependency: a Blake3 implementation.wallet/setup.mjsdumps the bytes KERIA emitted intodoor/testdata/, and the Go tests recompute keripy's own SAIDs over them. No keripy, no container, no network in the test. A single flipped attribute byte breaks the credential's SAID (tested).keriauth's key-state cache already is.matou://could not be exercised — nothing registers the scheme here. Registering it is a matou-app packaging item (x-scheme-handler/matou), and it is the only thing standing between "Open my community app" and a working same-device tap. The spike substitutes a loopbackhttp://127.0.0.1:8302/approve?…link, which is also an honest real-world fallback.{url: {name, firstMet, lastUsed}}). The credential and the identity are already held, so a repeat sign-in saves the first-contact prompt, not the crypto — it is one tap, never zero.The finding that bends #1302
The round trip is the wallet's, not the door's. Measured:
new SignifyClient5.6 s,connect5.9 s,manager.get3.1–4.6 s, andkeeper.sign1.6–2.0 s per signature — becauseSaltyIdentifierManager.signcallscreator.create(...)on every call (signify-ts/dist/keri/core/keeping.js:159), re-stretching the salt with Argon2 each time. Credential export is 146 ms and the POST 200 ms.So the ~7 s bar is missed by signify-ts's key derivation, not by anything ADR 0236 introduced. Caching the derived signer in an unlocked matou-app is one code path, and until it exists no sign-in copy should promise speed. #1302 should design to this number.
Two substrate facts, now ADR 0236 amendments
GET /query?typ=kel&pre=is a keripy 1.2.x route.keri-witness-demo:1.1.0404s it and serves the same KEL atGET /oobi/<aid>— the doorinternal/keriauthalready reads. IDSS's own witness is pinned to 1.2.13, but a foreign community's witness (ADR 0238's adopted Coa identity) may be any generation, so the verifier tries/queryfirst and falls back to/oobi.ixnevents carrying{i: <credential>, s: "0"|"1", d: <TEL event SAID>}.Also worth carrying into the build
credentials().get(said, includeCESR=true)ships the issuer's KEL, the holder's KEL, the registry inception and every attachment; the door reads two messages — the ACDC and itsiss— and ignores the rest on purpose, because authority comes from the log it fetches itself.wallet.mjs --minimalposts just those two and gets the same verdict. A matou-app obligation; the door must accept both, and does.keriauth.HTTPKeyStateResolveralready does) — removing that trust is its own decision. Multi-key / multisig signers are refused.Driving it yourself
run.shis the headless proof and revokes the credential as its last step; re-runwallet/setup.mjs(~90 s) for a fresh world before driving by hand../tear-down.shremoves the stack.Throwaway: delete the directory once the real verifier lands in
idss-idp. #1302 is unblocked.adminInbox— Members' "waiting for approval" has never worked on a live community (#1932 built against a fake) #1977