spec: wallet sign-in — the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, and the App-only switch that retires the browser era (map #1293, DDR 0246 / ADR 0236) #1492
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1492
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
Program map: #1293 (the community wallet — route clear on the sign-in side 2026-09-15; decisions inherited: charting rulings 1–11, ADR 0226 the descriptor, DDR 0228 the app card, DDR 0230 adoption + open registration, ADR 0235 standing is the credential, ADR 0236 no Doorkeeper identity — the bridge verifies in Go, ADR 0238/DDR 0239 Coa-first, prototype #1301 proven end to end). Design contract: DDR 0246 (the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, the App-only switch; §6b brand kit natively, §6c status under the branding), flow
docs/ux/flows/wallet-signin.mermaid, wireframesdocs/ux/wireframes/wallet-signin/(WS-S1/S1x/S1r/S1z/S1u, WS-A1/A2/A2p/A2d/A2r/A3, WS-D1/D2 — reviewed by Ben 2026-09-15, two review passes landed). Journey view:docs/ux/flows/community-app-journey.mermaid. Amendments this spec carries: ADR 0196 (the silent hop walks the ledger), ADR 0236 §6/§7 answered, DDR 0217 ruling 9 and DDR 0230's browser fallback made conditional on App-only. Spike to lift:spikes/1301-wallet-signin/(the Go verifierdoor/{cesr,said,witness,verify}.go, golden vectorsdoor/testdata/,wallet/wallet.mjsas the headless wallet driver). Grilled with/grill-ux-with-docs, both gates confirmed by Ben.Problem Statement
A member of an IDIP community signs in by typing their twelve words into a web page. That is the one thing the whole identity design says they should never have to do at a door: the words are the recovery phrase, typing them on a public page teaches members to hand them to whatever page asks, and the ceremony takes seven-plus seconds of Argon2 every time. Meanwhile the community's own app — the wallet — already holds the member's identity and every credential the community issued them, and can sign anything the door asks in one tap. Nothing connects the two. On the steward's side the same words are typed into the dashboard once per session to unlock signing, and the door verifies a member by asking a roster the gateway keeps rather than by reading the community's own witnessed ledger. ADR 0236 ruled the mechanics and prototype #1301 proved them (a warm verdict in 142 ms, no agent, no sidecar, no copy kept). What is missing is the product: the page, the approve screen, what the wallet remembers, what every refusal says, how sessions re-check, and how a community stops using the browser door once its app exists.
Solution
Wallet sign-in. Once the community's app card reads
ready, the bridge's sign-in page becomes the app door: on a laptop a QR code to scan with the phone, on a phone an Open my community app button, the twelve-words door demoted to one link beneath. The code or link carries the sign-in site's address, the challenge, the schema asked for, the service asking and the community's name. The wallet shows one approve card — Sign in to Files at Whakatōhea?, the sign-in site, what will be shown — and on Approve signs the challenge bound to the site's address and posts its credential as a bare CESR stream. The bridge verifies in Go against the issuer's witnessed ledger (signature, SAIDs,issseal and norev, schema in the trust list, holder is the signer) and the page redirects straight into the service. A site the wallet has not met gets a first-contact prompt first, its address as fact and its name as a claim; trusted sites live in Sign-in sites you trust, the home site pinned. Every refusal says the same sentence on both surfaces, Try again is capped at three per page visit, and the fail-closed case has its own words. Sessions keep ADR 0196's lengths but walk the ledger at every mint, the silent hop included. One dashboard row, Members use the app only, greyed until the app is ready, retires the browser era together — the words link, the browser join fallback and the dashboard's signing unlock — reversibly, and steward acts hand off to the app. The page wears the brand kit natively, and status and errors render under the community's logo and welcome line, before the door.User Stories
Acceptance criteria are Given/When/Then, sourced from the flow's nodes and edges (
wallet-signin.mermaid) and the wireframes'data-field/data-action/data-status/data-refusal/data-visible-whencontract. "Service" means the OIDC client that started the hop (Files, the Portal, the dashboard); "sign-in site" is the member-facing word for a known door.The app door (WS-S1)
ready, When a member opens a service signed out and lands on the bridge's sign-in page, Then the page shows the app door (data-field="app-door") and the twelve-words door only as one link (data-field="words-door-link",data-action="sign-in-with-words").ready, When the same page is opened, Then it is the twelve-words page exactly as today (ADR 0212), with no app door.data-field="signin-qr") is primary with the hint "Scan this with the app on your phone." and a secondary link "Have the app on this computer? Open it" (data-action="open-app-here") whose target is thematou://signinlink.data-action="open-app") is primary and "On another device? Show me a code to scan" (data-action="show-code",data-field="qr-fold") folds the same QR out beneath it.matou://, When the button is tapped, Then nothing else on the page changes and the page keeps waiting (the button is honestly dead until the app registers the scheme).data-status="waiting") says "Waiting for you to approve in the app." with a spinner and no countdown, no elapsed seconds and no "instant" or "a few seconds" copy anywhere on the page.data-status="expired""That code has expired." with one button Show a new one (data-action="new-code") that mints a fresh challenge in place on the same auth request; the QR/button are greyed; the page never swaps a code by itself.The page wears the brand and orders its regions (DDR 0246 §6b/6c)
data-field="community-logo"is the kit's logo (letter mark when the kit has none),data-field="welcome-line"is the kit's greeting (default "Nau mai — sign in to ‹name›"), the primary button, QR frame and spinner take the kit's accent, the page the kit's background, refusal and healthy tints the kit's status tokens, and the page carries the compiled--oc-*tokens with no override stylesheet.[data-status]→ lede → app-door → words-door-link, at both widths.The handover and the first-contact prompt (WS-A1)
matou://signincode or the OS opens one, Then it parses the site address, challenge, schema, service and name and shows WS-A2 (or WS-A1 first).data-field="site-address"), the code's name as a claim "It says it is ‹name›." (data-field="site-claimed-name"), one sentence on what trusting discloses (data-field="trust-means"), and two buttons Trust this sign-in site (data-action="trust-site") / Don't (data-action="dont-trust"); no Approve button is on that screen.signin.url, When the wallet boots or refreshes its descriptor, Then that address is in known doors marked as the home site, and a code naming it never shows WS-A1.The approve card (WS-A2, A2p, A2d)
data-field="ask"withserviceandcommunity), the site line names the community's sign-in site and its address (data-field="site",data-status="home-site"with the "your community" chip for the home site,"known-site"otherwise), and "What will be shown" names the held credential matching the requested schema with its role and issue date (data-field="credential-to-show").detailsdisclosure (data-action="details") holds the AID, credential SAID, challenge id and the exact bound message.idss-idp:<site url>:<aid>:<nonce>with the AID's current key, exports the credential's CESR (the ACDC and itsiss; the fullincludeCESRstream is also acceptable to the door), posts{aid, challengeID, response, presentation}to the site's present route, and shows WS-A2p ("Proving you're a member…", buttons inactive, no percentage or seconds) until the door answers.data-status="done") and closes after a beat; no claims, timings or AID are shown.{url: {name, firstMet, lastUsed}}) changes; no per-event log is kept.Sign-in sites you trust (WS-A3)
data-action="open-sites",data-field="sites-count"), Then WS-A3 lists one row per known door (data-field="site-row": name, address, first met, last used), the home site first withdata-status="home"and the "your community" mark, other rowsdata-status="known".data-action="forget-site") is tapped, Then the row goes, nothing is told to the site, and the next code naming that address shows WS-A1 again.Verification at the door (ADR 0236, the Go verifier)
{aid, challengeID, response, presentation}, When the bridge verifies, Then it runs, in order and failing closed: (i) the challenge exists, is unexpired and unconsumed; (ii) the signature overidss-idp:<this bridge's own sign-in url>:<aid>:<nonce>verifies against the signer's current key state read from the witness; (iii) the ACDC's and theissevent's SAIDs recompute from the received bytes (Blake3-256,dblanked); (iv) the issuer's witnessed KEL, fetched by the bridge from the trust row's witness (try/query?typ=kel&pre=then/oobi/<aid>), holds anissseal for the credential SAID and norevseal; (v) the credential's schema SAID is in the trust list; (vi) the credential'sa.iequals the signing AID. The verdict records only the credential SAID, schema, issuer and the claims the rule needs; the presentation bytes are not stored.includeCESRstream, When verified, Then both are accepted; exactly one ACDC and oneissare required.revseal for the credential, When the same presentation that verified before is posted again, Then it is refused as revoked.Refusals (WS-S1r, S1z, S1u, WS-A2r)
data-refusalin {no-membership, revoked, untrusted-issuer, signature, wrong-holder}, When the page and the wallet show it, Then both render "Your access could not be verified. It looks like " followed by the tail — no-membership: "you don't hold a membership from this community yet. Ask your operator to add you."; revoked: "your membership here has been revoked."; untrusted-issuer: "that credential wasn't issued by this community."; signature and wrong-holder: "that approval didn't match this sign-in." — followed by Try again (data-action="try-again") and the line "or contact your community's operator" (data-field="contact-line").data-field="tries-left"counts down from 3.data-status="refused-final""Your access could not be verified after three tries. Contact your community's operator." with no Try again and no code; the count is kept in the page only, nothing is recorded on the door, and opening the service again starts a fresh page and count.data-status="records-unreachable") or the wallet, Then the line is "The community's records can't be reached right now. Try again shortly." with an uncapped Try again, no "could not be verified" opener and no operator line; the attempt does not count.data-status="site-unreachable") and the page, having heard nothing, keeps waiting.Sessions (ADR 0196 amended)
revseal or on records-unreachable, caching nothing.The App-only switch (WS-D1, WS-D2)
ready, When the Members surface renders, Then the row "Members use the app only" (data-field="app-only-row") isdata-status="unavailable", greyed, with "Available once your community's app is ready."ready, When the row renders, Then it isdata-status="off"by default with the guard "Anyone who hasn't put their identity in the app yet won't be able to sign in until they do. You can switch this back at any time." and no confirmation dialog.data-action="toggle-app-only"), When the setting persists, Then the bridge reads it over the control-plane loopback and the row showsdata-status="on".words-door-linkis absent (not hidden) and a POST to the words door's verify route is refused.idip-steward-phrase) is absent and every steward act (approve, decline, approve-all, issue, revoke, rotation co-sign) is replaced by the hand-off (data-field="steward-handoff",data-status="app-only") "‹N› applications are waiting. Open your app to approve them." with Open my app (data-action="open-app"); the roster projection and the counts still render.Descriptor and packaging
doorkeeperblock is gone.1.1descriptor, When served, Then it carriessignin: {url}naming the bridge's sign-in endpoint and nodoorkeeperblock; the wallet tolerates an absentdoorkeeperand readssignin.matou://signin?…link is opened by the OS, Then the app receives it on Android (intent filter), iOS (URL scheme) and the Electron desktop build (protocol client) and lands on WS-A1/WS-A2.Proof
member-sign-in-app,first-contact,refused-after-revokeandapp-only-togglewith screenshots eyeballed.Implementation Decisions
idss — the bridge (
idss-idp)./query→/oobifallback, the seal walk overixn/rot/drtanchors, the five checks with typed refusal errors, per-leg timing in the log. The bound message gains the door URL (the KERI-auth prefix, then the bridge's own sign-in URL, the AID and the nonce). The verifier's port stays the bridge'sVerifierinterface: presentation verification returns the identity and the recorded SAID; the issued check becomes the seal walk and is called at sign-in, at refresh and in the silent hop's completion. The key-state cache stays; verdicts are never cached.idss — dashboard and browser bundle.
ready(DDR 0228's card state; until that slice exists the row is greyed with the same copy). The signing-session module reads the flag: when on, it never asks for words and every act renders the hand-off with the pending count; the roster projection keeps rendering.matou-app — the wallet.
iss, with attachments) and two outputs — a raw HTTP post to a known door, and an IPEXgrantfor an identity-bearing verifier'sapply. The sign-in ask (from a scanned/opened code or anapply) names schema(s), so the chooser is one path; with one matching credential it renders as the "What will be shown" line, with several as a picker.{url: {name, firstMet, lastUsed}}with the home site seeded from the descriptor'ssignin.url; first-contact prompt (WS-A1); Sign-in sites you trust (WS-A3) with Forget on non-home rows; no manual add.matou://OS registration on Android, iOS and Electron; the in-app scanner acceptsmatou://signinbesidematou://pair.signinfrom the descriptor; tolerate an absentdoorkeeperand drop it.matou-infrastructure. Config-server
1.1servessignin: {url}and nodoorkeeperblock (ADR 0226 amended by ADR 0236).coa. Nothing new.
Dependencies on unbuilt slices. The descriptor's
signin{url}(ADR 0226/0236) and the app card'sreadystate (DDR 0228) do not exist in code. The bridge must work with the app door enabled by configuration (the card'sreadystate feeding it once that slice lands), and the dashboard row must grey with honest copy until the card exists — sequenced byto-tickets, never stubbed asready.Testing Decisions
A good test drives the external behaviour a member or operator sees — a page, a route, a verdict, a redirect — never the verifier's internals. Cryptography is tested by golden vectors: KERIA's own bytes (the spike's
presentation.cesr,issuer-oobi.cesr,vectors.json) in a fixture directory, so no keripy, container or network is needed to prove a SAID recompute, a seal walk or a flipped-byte refusal.revseal appended). New seam tests: present → token; fake-site-bound signature → 403; revoked fixture → refused; silent hop re-walk refuses after revoke; witness down → refused and nothing cached; App-only on → words route refused and link absent; the app door wears the kit; the region order.issand the attribute block; tampered attribute breaks the SAID; seal walk finds issuance and rejects an unknown credential; bound-message shape; ledger unreachable fails closed.member-sign-in-app(open Files → app door → the headless wallet from the spike, or the app's web build, approves → lands in Files),first-contact(a second door in the test world → prompt → trust → approve),refused-after-revoke,app-only-toggle. Screenshots eyeballed; a green with a faulted leg is a false green.Out of Scope
nonecard's "Design your community app".Further Notes
GET /query?typ=kelis a keripy 1.2.x route; older witnesses serve the KEL at/oobi/<aid>. Keep the fallback; a foreign community's witness may be any generation.docs/ux/flows/community-app-journey.mermaidshows where this feature sits between founding's app choice and the app card'sreadystate.