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

Open
opened 2026-09-15 15:36:49 +00:00 by ben · 0 comments
Owner

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, wireframes docs/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 verifier door/{cesr,said,witness,verify}.go, golden vectors door/testdata/, wallet/wallet.mjs as 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, iss seal and no rev, 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-when contract. "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)

  1. As a member, I want the community's sign-in page to offer my community app as the way in once the app exists, so that I never type my twelve words at a door.
    • Given the community's app card reads 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").
    • Given the app card does not read ready, When the same page is opened, Then it is the twelve-words page exactly as today (ADR 0212), with no app door.
  2. As a member at a laptop, I want a code to scan with the app on my phone, so that the wallet on my phone answers a page on my laptop.
    • Given a laptop-width viewport, When WS-S1 renders, Then the QR (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 the matou://signin link.
  3. As a member on my phone, I want one button that opens my community app on the approve screen, so that a phone can sign in without scanning its own screen.
    • Given a phone-width viewport, When WS-S1 renders, Then Open my community app (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.
    • Given the operating system has no handler for 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).
  4. As a member, I want the code and the link to carry everything the wallet needs, so that the wallet can name the site, the service and the credential before I approve.
    • Given a challenge is minted, When the QR or deep link is built, Then it carries the sign-in site's own address, the challenge id, the schema SAID(s) the door asks for, the service name from the OIDC client, and the community's name; and the same payload sits behind the QR and the button.
  5. As a member, I want the page to wait quietly and never promise speed, so that a real eight-second approval does not feel like a failure.
    • Given the page is waiting, When it polls the status route, Then the status region (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.
  6. As a member, I want an approved sign-in to land me straight in the service, so that there is no interstitial to dismiss.
    • Given the door's verdict is VERIFIED, When the page's next poll sees it, Then the page completes the auth request and redirects to the OIDC callback; no "Signed in" face, identity dump or timings are rendered.
  7. As a member, I want an expired code to say so and offer a new one, so that a slow scan never silently fails.
    • Given two minutes pass with no approval, When the challenge expires, Then the status region shows 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.
    • Given a code expired, When a new one is shown, Then the try-again count is unchanged (expiry is not a refusal).

The page wears the brand and orders its regions (DDR 0246 §6b/6c)

  1. As an operator, I want the app door to wear my community's brand kit exactly as the words page does, so that the door is recognisably ours.
    • Given a brand kit with a logo and a greeting, When WS-S1 renders, Then 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.
  2. As a member, I want any status or error to sit right under the community's name, before the door, so that I see whose page it is and then read what happened.
    • Given any state of the status region, When WS-S1 renders, Then the DOM order is community-logo → welcome-line → [data-status] → lede → app-door → words-door-link, at both widths.

The handover and the first-contact prompt (WS-A1)

  1. As a member, I want my wallet to open on the approve card when I scan a code or open a link, so that sign-in is one tap.
    • Given the wallet is installed and unlocked, When it scans a matou://signin code or the OS opens one, Then it parses the site address, challenge, schema, service and name and shows WS-A2 (or WS-A1 first).
  2. As a member, I want the wallet to stop me before it presents to a sign-in site it has never met, so that a lookalike page cannot harvest my details on a reflex.
    • Given the code names a site address not in the wallet's known doors, When the wallet opens it, Then WS-A1 shows before any card: headline "A sign-in site you haven't met", the address dominant (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.
    • Given the member taps Don't, When the prompt closes, Then nothing is remembered and the browser page keeps waiting until its code expires.
    • Given the member taps Trust, When the site is added to known doors, Then the wallet continues to WS-A2 for this same sign-in.
  3. As a member, I want my home community's site to be trusted from the start, so that I never see the prompt for my own community.
    • Given the descriptor's 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)

  1. As a member, I want the approve card to tell me which service is asking, at which site, and what will be shown, so that I approve something I understand.
    • Given a parsed sign-in ask, When WS-A2 renders, Then the headline is "Sign in to ‹service› at ‹community›?" (data-field="ask" with service and community), 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").
    • Given the card, When it renders, Then no AID, SAID, nonce or words are on the face; a details disclosure (data-action="details") holds the AID, credential SAID, challenge id and the exact bound message.
  2. As a member, I want Approve to do the whole thing, so that one tap signs and presents.
    • Given Approve is tapped, When the wallet acts, Then it signs idss-idp:<site url>:<aid>:<nonce> with the AID's current key, exports the credential's CESR (the ACDC and its iss; the full includeCESR stream 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.
  3. As a member, I want Not now to be a clean exit, so that closing the card does nothing behind my back.
    • Given Not now is tapped, When the card closes, Then nothing was signed or posted and the page keeps waiting until its code expires.
  4. As a member on my phone, I want to be told the sign-in worked and to go back to my browser, so that I know where to look.
    • Given the door answers VERIFIED, When the wallet shows WS-A2d, Then it reads "Signed in. Back to your browser." (data-status="done") and closes after a beat; no claims, timings or AID are shown.
  5. As a member, I want the wallet to remember my sign-in sites and nothing else about sign-ins, so that a repeat sign-in is one tap and nothing sensitive accumulates.
    • Given a sign-in completed, When the wallet persists state, Then only the known doors entry ({url: {name, firstMet, lastUsed}}) changes; no per-event log is kept.
  6. As a member, I want a repeat approval not to pay the whole key derivation again, so that sign-in is well inside the seven-second bar.
    • Given the wallet is unlocked and has signed once this session, When it signs again, Then the derived signer is reused from memory (export + sign + post well under one second on the prototype's numbers); the cache lives in memory only and is dropped on lock or app exit.

Sign-in sites you trust (WS-A3)

  1. As a member, I want to see which sign-in sites I've trusted, so that a mistaken Trust can be undone.
    • Given the identity screen, When the member opens "Sign-in sites you trust" (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 with data-status="home" and the "your community" mark, other rows data-status="known".
    • Given a non-home row, When Forget (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.
    • Given the home row, When WS-A3 renders, Then it has no Forget; and there is no "add a site" control anywhere.

Verification at the door (ADR 0236, the Go verifier)

  1. As a community, I want the door to verify a presented credential against our own witnessed ledger and nothing else, so that no one keeps a copy and no roster is trusted over the ledger.
    • Given a posted {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 over idss-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 the iss event's SAIDs recompute from the received bytes (Blake3-256, d blanked); (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 an iss seal for the credential SAID and no rev seal; (v) the credential's schema SAID is in the trust list; (vi) the credential's a.i equals the signing AID. The verdict records only the credential SAID, schema, issuer and the claims the rule needs; the presentation bytes are not stored.
    • Given the presentation is the trimmed two-message stream or the full includeCESR stream, When verified, Then both are accepted; exactly one ACDC and one iss are required.
  2. As a community, I want the door to refuse a signature harvested by a fake site, so that a phished approval is worthless at the real door.
    • Given a signature made over any other site address, When it is posted to this bridge, Then the verdict is the signature refusal (403) and no session is created.
  3. As a community, I want revocation to take effect at the next sign-in with no gateway list in the loop, so that a revoked member is refused even while their wallet's copy still reads issued.
    • Given the issuer's KEL carries a rev seal for the credential, When the same presentation that verified before is posted again, Then it is refused as revoked.
  4. As a community, I want the door to fail closed when our records cannot be read, so that an outage never widens access.
    • Given the witness read fails or the issuer's KEL cannot be fetched, When verifying, Then the verdict is records-unreachable, nothing is cached and no session is created.
  5. As an operator, I want the trust list pinned to my community identity and the gateway's schemas in v1, so that a foreign credential is refused without configuration.
    • Given the trust list, When the bridge starts, Then it holds exactly the community identity's issuer AID with its witness and the Membership and Committee schema SAIDs; any other issuer or schema is refused as untrusted.

Refusals (WS-S1r, S1z, S1u, WS-A2r)

  1. As a member, I want every verification refusal to speak with one voice on both the page and the wallet, so that I know what happened without reading two stories.
    • Given a refusal with data-refusal in {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").
    • Given the holder mismatch case, When shown, Then it wears the signature tail and is not distinguished.
  2. As a member, I want a capped, page-local Try again, so that I am slowed down but nobody can lock me out.
    • Given the first or second refusal on a page visit, When Try again is used, Then a fresh challenge is minted on the same auth request and data-field="tries-left" counts down from 3.
    • Given the third refusal, When shown, Then the page renders 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.
  3. As a member, I want the fail-closed case to have its own honest words, so that I am not blamed for the community's outage.
    • Given records-unreachable, When shown on the page (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.
  4. As a member on my phone, I want the wallet alone to tell me when the sign-in site did not answer, so that a dead network is not mistaken for a refusal.
    • Given the wallet's post gets no response, When it gives up, Then it shows "Couldn't reach the sign-in site. Check your connection and try again." (data-status="site-unreachable") and the page, having heard nothing, keeps waiting.

Sessions (ADR 0196 amended)

  1. As a community, I want every token mint to re-walk the ledger for the session's credential, so that revocation lands within an access-token hour at worst and at the next service hop at best.
    • Given a live session recording a credential SAID, When a refresh token is exchanged, Then the bridge re-walks the issuer's KEL for that SAID (no re-presentation, no wallet involved) and refuses the refresh on a rev seal or on records-unreachable, caching nothing.
    • Given a live 12 h session cookie, When a second client's authorize hits the silent hop, Then the same walk runs before the auth request completes; a revoked or unreachable walk falls through to the sign-in page instead of completing silently.
    • Given ADR 0196's lengths (12 h cookie, 1 h tokens, 30 d rotating refresh), When this feature ships, Then they are unchanged.

The App-only switch (WS-D1, WS-D2)

  1. As an operator, I want one row that moves my community to app-only sign-in, so that the browser era ends by my decision, not a timer.
    • Given the app card does not read ready, When the Members surface renders, Then the row "Members use the app only" (data-field="app-only-row") is data-status="unavailable", greyed, with "Available once your community's app is ready."
    • Given the app card reads ready, When the row renders, Then it is data-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.
    • Given the operator switches it on (data-action="toggle-app-only"), When the setting persists, Then the bridge reads it over the control-plane loopback and the row shows data-status="on".
  2. As an operator, I want the switch to close the three browser doors together, so that "app only" means one thing.
    • Given App-only is on, When the sign-in page renders, Then words-door-link is absent (not hidden) and a POST to the words door's verify route is refused.
    • Given App-only is on, When an invite link is opened, Then W-S0's "continue in the browser instead" is absent and the browser join is refused.
    • Given App-only is on, When a steward opens the Members surface, Then the twelve-words unlock field (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.
  3. As an operator, I want the switch to be reversible and harmless, so that a mistake costs one tap.
    • Given App-only is switched off again, When the surfaces render, Then the words link, the browser join fallback and the dashboard unlock return; and at no point did the switch revoke a credential, delete an agent or end a session.

Descriptor and packaging

  1. As a wallet, I want the descriptor to name the community's sign-in site, so that the home site is trusted from the start and the doorkeeper block is gone.
    • Given the config server's 1.1 descriptor, When served, Then it carries signin: {url} naming the bridge's sign-in endpoint and no doorkeeper block; the wallet tolerates an absent doorkeeper and reads signin.
  2. As a member, I want tapping "Open my community app" to actually open the app, so that same-device sign-in works.
    • Given the app is installed, When a 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

  1. As the team, I want the whole path proven at the bridge seam and driven end to end, so that the feature is green by leg list.
    • Given the bridge seam, When run, Then it proves: present → token; fake-site signature → refused; revoked fixture → refused; silent hop refuses after a revoke; witness down → refused with nothing cached; App-only on → words route refused; the page wears the kit; the region order.
    • Given the IDIP journey drive, When it runs, Then it carries the legs member-sign-in-app, first-contact, refused-after-revoke and app-only-toggle with screenshots eyeballed.

Implementation Decisions

idss — the bridge (idss-idp).

  • The sign-in page becomes one template with two doors and the region order logo → welcome line → status → lede → door → words link; the app door's primary is chosen by viewport width in CSS, and the QR is served by a bridge route keyed on the challenge id. The page is composed from the same brand-kit compile the words page uses today (the kit projected through the portal surface: logo, greeting, accent ramp, status tokens) — no override stylesheet.
  • Three routes join the existing login surface: a challenge route that returns the challenge id, expiry, the bridge's own sign-in URL, the requested schema SAIDs, the service name (from the OIDC client of the auth request) and the community name, and builds the deep link; a present route that accepts the wallet's JSON post cross-origin (CORS for the wallet's origins; the app is not a browser page, but the web build is) and answers the verdict; a status route the page polls, keyed on the challenge id, that reports waiting / verified / refused-with-kind / expired and, on verified, completes the auth request so the page redirects. Try again mints a new challenge on the same auth request; the three-try cap is page-side.
  • The roster-backed verifier is replaced by the Go verifier lifted from the spike into the KERI-auth package: CESR stream framing by version string, SAID recompute, the witness ledger fetch with the /query → /oobi fallback, the seal walk over ixn/rot/drt anchors, 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's Verifier interface: 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.
  • The trust list is configuration: rows of issuer AID, issuer witness/OOBI, schema SAIDs; v1 populated from the community identity and the gateway's two schemas at seeding. A row carrying the issuer's OOBI rather than a witness URL is preferred so witness rotation needs no edit (spike finding §10).
  • The App-only setting persists in the config repo the way the service-access matrix does and is exposed on the control plane; the bridge reads it over the same loopback the roster client uses (bearer, loopback-only). When on: the words door's verify route refuses, the words link is not rendered, and the browser join route refuses.
  • ADR 0196 amended: the silent hop's completion runs the seal walk; a refused or unreachable walk renders the sign-in page instead of redirecting.

idss — dashboard and browser bundle.

  • The Members surface (IDIP) gains the SIGN-IN box with the one row, greyed until the app card reads 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.
  • The member browser bundle's join surface (W-S0 / P6-S3i path) hides "continue in the browser instead" when the descriptor or the control plane says App-only; the server-side refusal is the guard.

matou-app — the wallet.

  • Present-as-holder, general (ADR 0236 §2): one export core (the ACDC and its iss, with attachments) and two outputs — a raw HTTP post to a known door, and an IPEX grant for an identity-bearing verifier's apply. The sign-in ask (from a scanned/opened code or an apply) 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.
  • Known doors: {url: {name, firstMet, lastUsed}} with the home site seeded from the descriptor's signin.url; first-contact prompt (WS-A1); Sign-in sites you trust (WS-A3) with Forget on non-home rows; no manual add.
  • The approve card (WS-A2/A2p/A2d/A2r) with the copy contract above; the bound message signed over the site's address; the signer cache in memory for the unlocked session; the wallet-only site-unreachable line.
  • matou:// OS registration on Android, iOS and Electron; the in-app scanner accepts matou://signin beside matou://pair.
  • Read signin from the descriptor; tolerate an absent doorkeeper and drop it.

matou-infrastructure. Config-server 1.1 serves signin: {url} and no doorkeeper block (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's ready state (DDR 0228) do not exist in code. The bridge must work with the app door enabled by configuration (the card's ready state feeding it once that slice lands), and the dashboard row must grey with honest copy until the card exists — sequenced by to-tickets, never stubbed as ready.

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.

  • The seam is the existing bridge OIDC-over-HTTP smoke in the bridge package (prior art: the active-member code flow, repeat sign-in, silent SSO, no-membership refused, refresh-after-revoke refused, the page-wears-the-kit and progress-vs-refusal-regions tests). The fake verifier is replaced for these tests by the real Go verifier fed the golden vectors, with a test HTTP witness serving the fixture ledger (and a revoked variant with a rev seal 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.
  • Verifier unit tests lift the spike's: SAID recompute for ACDC, iss and the attribute block; tampered attribute breaks the SAID; seal walk finds issuance and rejects an unknown credential; bound-message shape; ledger unreachable fails closed.
  • Dashboard unit tests pin the row's three states and the hand-off replacing the unlock field (prior art: the Members-tab unit suites).
  • Drive legs on the IDIP journey (Playwright): 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.
  • matou-app proves its screens in its own suite (the wallet map's precedent: Playwright over the app's web build).

Out of Scope

  • Push from the bridge to the wallet; the handover is always a code or a link.
  • A credential picker on screen (the path exists; one community never shows it); the second community; any foreign sign-in site in practice beyond the drive's test-world door; an operator-editable trusted-issuers list (map: out of scope).
  • Keep-me-signed-in or remembered devices on the page; a recent-sign-ins log in the wallet.
  • The IDIP wallet app (map fog); the community initialisation pipeline and the none card's "Design your community app".
  • Any change to the twelve-words page's own form or copy beyond the demote-to-link and the App-only closure.
  • Checking witness receipts in Go, multisig issuers, a grace window over cached verdicts (ADR 0236 rejected it).
  • kanidm-path communities.

Further Notes

  • Prototype #1301's numbers set the copy: the door's verdict is ~150 ms; the wallet's Argon2 is 5–8 s per signature until the signer cache lands, so no v1 copy promises speed.
  • GET /query?typ=kel is 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.
  • Ben's two review passes on the wireframes (2026-09-15) are both in the contract: the page wears the kit natively, and status/errors render under the logo and welcome line, before the door — his first ask (above the brand) was reversed the same day.
  • The journey view docs/ux/flows/community-app-journey.mermaid shows where this feature sits between founding's app choice and the app card's ready state.
## 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`, wireframes `docs/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 verifier `door/{cesr,said,witness,verify}.go`, golden vectors `door/testdata/`, `wallet/wallet.mjs` as 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, `iss` seal and no `rev`, 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-when` contract. "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) 1. As a member, I want the community's sign-in page to offer my community app as the way in once the app exists, so that I never type my twelve words at a door. - Given the community's app card reads `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"`). - Given the app card does not read `ready`, When the same page is opened, Then it is the twelve-words page exactly as today (ADR 0212), with no app door. 2. As a member at a laptop, I want a code to scan with the app on my phone, so that the wallet on my phone answers a page on my laptop. - Given a laptop-width viewport, When WS-S1 renders, Then the QR (`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 the `matou://signin` link. 3. As a member on my phone, I want one button that opens my community app on the approve screen, so that a phone can sign in without scanning its own screen. - Given a phone-width viewport, When WS-S1 renders, Then *Open my community app* (`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. - Given the operating system has no handler for `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). 4. As a member, I want the code and the link to carry everything the wallet needs, so that the wallet can name the site, the service and the credential before I approve. - Given a challenge is minted, When the QR or deep link is built, Then it carries the sign-in site's own address, the challenge id, the schema SAID(s) the door asks for, the service name from the OIDC client, and the community's name; and the same payload sits behind the QR and the button. 5. As a member, I want the page to wait quietly and never promise speed, so that a real eight-second approval does not feel like a failure. - Given the page is waiting, When it polls the status route, Then the status region (`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. 6. As a member, I want an approved sign-in to land me straight in the service, so that there is no interstitial to dismiss. - Given the door's verdict is VERIFIED, When the page's next poll sees it, Then the page completes the auth request and redirects to the OIDC callback; no "Signed in" face, identity dump or timings are rendered. 7. As a member, I want an expired code to say so and offer a new one, so that a slow scan never silently fails. - Given two minutes pass with no approval, When the challenge expires, Then the status region shows `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. - Given a code expired, When a new one is shown, Then the try-again count is unchanged (expiry is not a refusal). ### The page wears the brand and orders its regions (DDR 0246 §6b/6c) 8. As an operator, I want the app door to wear my community's brand kit exactly as the words page does, so that the door is recognisably ours. - Given a brand kit with a logo and a greeting, When WS-S1 renders, Then `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. 9. As a member, I want any status or error to sit right under the community's name, before the door, so that I see whose page it is and then read what happened. - Given any state of the status region, When WS-S1 renders, Then the DOM order is community-logo → welcome-line → `[data-status]` → lede → app-door → words-door-link, at both widths. ### The handover and the first-contact prompt (WS-A1) 10. As a member, I want my wallet to open on the approve card when I scan a code or open a link, so that sign-in is one tap. - Given the wallet is installed and unlocked, When it scans a `matou://signin` code or the OS opens one, Then it parses the site address, challenge, schema, service and name and shows WS-A2 (or WS-A1 first). 11. As a member, I want the wallet to stop me before it presents to a sign-in site it has never met, so that a lookalike page cannot harvest my details on a reflex. - Given the code names a site address not in the wallet's known doors, When the wallet opens it, Then WS-A1 shows before any card: headline "A sign-in site you haven't met", the address dominant (`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. - Given the member taps Don't, When the prompt closes, Then nothing is remembered and the browser page keeps waiting until its code expires. - Given the member taps Trust, When the site is added to known doors, Then the wallet continues to WS-A2 for this same sign-in. 12. As a member, I want my home community's site to be trusted from the start, so that I never see the prompt for my own community. - Given the descriptor's `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) 13. As a member, I want the approve card to tell me which service is asking, at which site, and what will be shown, so that I approve something I understand. - Given a parsed sign-in ask, When WS-A2 renders, Then the headline is "Sign in to ‹service› at ‹community›?" (`data-field="ask"` with `service` and `community`), 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"`). - Given the card, When it renders, Then no AID, SAID, nonce or words are on the face; a `details` disclosure (`data-action="details"`) holds the AID, credential SAID, challenge id and the exact bound message. 14. As a member, I want Approve to do the whole thing, so that one tap signs and presents. - Given Approve is tapped, When the wallet acts, Then it signs `idss-idp:<site url>:<aid>:<nonce>` with the AID's current key, exports the credential's CESR (the ACDC and its `iss`; the full `includeCESR` stream 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. 15. As a member, I want Not now to be a clean exit, so that closing the card does nothing behind my back. - Given Not now is tapped, When the card closes, Then nothing was signed or posted and the page keeps waiting until its code expires. 16. As a member on my phone, I want to be told the sign-in worked and to go back to my browser, so that I know where to look. - Given the door answers VERIFIED, When the wallet shows WS-A2d, Then it reads "Signed in. Back to your browser." (`data-status="done"`) and closes after a beat; no claims, timings or AID are shown. 17. As a member, I want the wallet to remember my sign-in sites and nothing else about sign-ins, so that a repeat sign-in is one tap and nothing sensitive accumulates. - Given a sign-in completed, When the wallet persists state, Then only the known doors entry (`{url: {name, firstMet, lastUsed}}`) changes; no per-event log is kept. 18. As a member, I want a repeat approval not to pay the whole key derivation again, so that sign-in is well inside the seven-second bar. - Given the wallet is unlocked and has signed once this session, When it signs again, Then the derived signer is reused from memory (export + sign + post well under one second on the prototype's numbers); the cache lives in memory only and is dropped on lock or app exit. ### Sign-in sites you trust (WS-A3) 19. As a member, I want to see which sign-in sites I've trusted, so that a mistaken Trust can be undone. - Given the identity screen, When the member opens "Sign-in sites you trust" (`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 with `data-status="home"` and the "your community" mark, other rows `data-status="known"`. - Given a non-home row, When *Forget* (`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. - Given the home row, When WS-A3 renders, Then it has no Forget; and there is no "add a site" control anywhere. ### Verification at the door (ADR 0236, the Go verifier) 20. As a community, I want the door to verify a presented credential against our own witnessed ledger and nothing else, so that no one keeps a copy and no roster is trusted over the ledger. - Given a posted `{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 over `idss-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 the `iss` event's SAIDs recompute from the received bytes (Blake3-256, `d` blanked); (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 an `iss` seal for the credential SAID and no `rev` seal; (v) the credential's schema SAID is in the trust list; (vi) the credential's `a.i` equals the signing AID. The verdict records only the credential SAID, schema, issuer and the claims the rule needs; the presentation bytes are not stored. - Given the presentation is the trimmed two-message stream or the full `includeCESR` stream, When verified, Then both are accepted; exactly one ACDC and one `iss` are required. 21. As a community, I want the door to refuse a signature harvested by a fake site, so that a phished approval is worthless at the real door. - Given a signature made over any other site address, When it is posted to this bridge, Then the verdict is the signature refusal (403) and no session is created. 22. As a community, I want revocation to take effect at the next sign-in with no gateway list in the loop, so that a revoked member is refused even while their wallet's copy still reads issued. - Given the issuer's KEL carries a `rev` seal for the credential, When the same presentation that verified before is posted again, Then it is refused as revoked. 23. As a community, I want the door to fail closed when our records cannot be read, so that an outage never widens access. - Given the witness read fails or the issuer's KEL cannot be fetched, When verifying, Then the verdict is records-unreachable, nothing is cached and no session is created. 24. As an operator, I want the trust list pinned to my community identity and the gateway's schemas in v1, so that a foreign credential is refused without configuration. - Given the trust list, When the bridge starts, Then it holds exactly the community identity's issuer AID with its witness and the Membership and Committee schema SAIDs; any other issuer or schema is refused as untrusted. ### Refusals (WS-S1r, S1z, S1u, WS-A2r) 25. As a member, I want every verification refusal to speak with one voice on both the page and the wallet, so that I know what happened without reading two stories. - Given a refusal with `data-refusal` in {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"`). - Given the holder mismatch case, When shown, Then it wears the signature tail and is not distinguished. 26. As a member, I want a capped, page-local Try again, so that I am slowed down but nobody can lock me out. - Given the first or second refusal on a page visit, When Try again is used, Then a fresh challenge is minted on the same auth request and `data-field="tries-left"` counts down from 3. - Given the third refusal, When shown, Then the page renders `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. 27. As a member, I want the fail-closed case to have its own honest words, so that I am not blamed for the community's outage. - Given records-unreachable, When shown on the page (`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. 28. As a member on my phone, I want the wallet alone to tell me when the sign-in site did not answer, so that a dead network is not mistaken for a refusal. - Given the wallet's post gets no response, When it gives up, Then it shows "Couldn't reach the sign-in site. Check your connection and try again." (`data-status="site-unreachable"`) and the page, having heard nothing, keeps waiting. ### Sessions (ADR 0196 amended) 29. As a community, I want every token mint to re-walk the ledger for the session's credential, so that revocation lands within an access-token hour at worst and at the next service hop at best. - Given a live session recording a credential SAID, When a refresh token is exchanged, Then the bridge re-walks the issuer's KEL for that SAID (no re-presentation, no wallet involved) and refuses the refresh on a `rev` seal or on records-unreachable, caching nothing. - Given a live 12 h session cookie, When a second client's authorize hits the silent hop, Then the same walk runs before the auth request completes; a revoked or unreachable walk falls through to the sign-in page instead of completing silently. - Given ADR 0196's lengths (12 h cookie, 1 h tokens, 30 d rotating refresh), When this feature ships, Then they are unchanged. ### The App-only switch (WS-D1, WS-D2) 30. As an operator, I want one row that moves my community to app-only sign-in, so that the browser era ends by my decision, not a timer. - Given the app card does not read `ready`, When the Members surface renders, Then the row "Members use the app only" (`data-field="app-only-row"`) is `data-status="unavailable"`, greyed, with "Available once your community's app is ready." - Given the app card reads `ready`, When the row renders, Then it is `data-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. - Given the operator switches it on (`data-action="toggle-app-only"`), When the setting persists, Then the bridge reads it over the control-plane loopback and the row shows `data-status="on"`. 31. As an operator, I want the switch to close the three browser doors together, so that "app only" means one thing. - Given App-only is on, When the sign-in page renders, Then `words-door-link` is absent (not hidden) and a POST to the words door's verify route is refused. - Given App-only is on, When an invite link is opened, Then W-S0's "continue in the browser instead" is absent and the browser join is refused. - Given App-only is on, When a steward opens the Members surface, Then the twelve-words unlock field (`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. 32. As an operator, I want the switch to be reversible and harmless, so that a mistake costs one tap. - Given App-only is switched off again, When the surfaces render, Then the words link, the browser join fallback and the dashboard unlock return; and at no point did the switch revoke a credential, delete an agent or end a session. ### Descriptor and packaging 33. As a wallet, I want the descriptor to name the community's sign-in site, so that the home site is trusted from the start and the `doorkeeper` block is gone. - Given the config server's `1.1` descriptor, When served, Then it carries `signin: {url}` naming the bridge's sign-in endpoint and no `doorkeeper` block; the wallet tolerates an absent `doorkeeper` and reads `signin`. 34. As a member, I want tapping "Open my community app" to actually open the app, so that same-device sign-in works. - Given the app is installed, When a `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 35. As the team, I want the whole path proven at the bridge seam and driven end to end, so that the feature is green by leg list. - Given the bridge seam, When run, Then it proves: present → token; fake-site signature → refused; revoked fixture → refused; silent hop refuses after a revoke; witness down → refused with nothing cached; App-only on → words route refused; the page wears the kit; the region order. - Given the IDIP journey drive, When it runs, Then it carries the legs `member-sign-in-app`, `first-contact`, `refused-after-revoke` and `app-only-toggle` with screenshots eyeballed. ## Implementation Decisions **idss — the bridge (`idss-idp`).** - The sign-in page becomes one template with two doors and the region order logo → welcome line → status → lede → door → words link; the app door's primary is chosen by viewport width in CSS, and the QR is served by a bridge route keyed on the challenge id. The page is composed from the same brand-kit compile the words page uses today (the kit projected through the portal surface: logo, greeting, accent ramp, status tokens) — no override stylesheet. - Three routes join the existing login surface: a challenge route that returns the challenge id, expiry, the bridge's own sign-in URL, the requested schema SAIDs, the service name (from the OIDC client of the auth request) and the community name, and builds the deep link; a present route that accepts the wallet's JSON post cross-origin (CORS for the wallet's origins; the app is not a browser page, but the web build is) and answers the verdict; a status route the page polls, keyed on the challenge id, that reports waiting / verified / refused-with-kind / expired and, on verified, completes the auth request so the page redirects. Try again mints a new challenge on the same auth request; the three-try cap is page-side. - The roster-backed verifier is replaced by the Go verifier lifted from the spike into the KERI-auth package: CESR stream framing by version string, SAID recompute, the witness ledger fetch with the `/query` → `/oobi` fallback, the seal walk over `ixn`/`rot`/`drt` anchors, 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's `Verifier` interface: 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. - The trust list is configuration: rows of issuer AID, issuer witness/OOBI, schema SAIDs; v1 populated from the community identity and the gateway's two schemas at seeding. A row carrying the issuer's OOBI rather than a witness URL is preferred so witness rotation needs no edit (spike finding §10). - The App-only setting persists in the config repo the way the service-access matrix does and is exposed on the control plane; the bridge reads it over the same loopback the roster client uses (bearer, loopback-only). When on: the words door's verify route refuses, the words link is not rendered, and the browser join route refuses. - ADR 0196 amended: the silent hop's completion runs the seal walk; a refused or unreachable walk renders the sign-in page instead of redirecting. **idss — dashboard and browser bundle.** - The Members surface (IDIP) gains the SIGN-IN box with the one row, greyed until the app card reads `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. - The member browser bundle's join surface (W-S0 / P6-S3i path) hides "continue in the browser instead" when the descriptor or the control plane says App-only; the server-side refusal is the guard. **matou-app — the wallet.** - Present-as-holder, general (ADR 0236 §2): one export core (the ACDC and its `iss`, with attachments) and two outputs — a raw HTTP post to a known door, and an IPEX `grant` for an identity-bearing verifier's `apply`. The sign-in ask (from a scanned/opened code or an `apply`) 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. - Known doors: `{url: {name, firstMet, lastUsed}}` with the home site seeded from the descriptor's `signin.url`; first-contact prompt (WS-A1); Sign-in sites you trust (WS-A3) with Forget on non-home rows; no manual add. - The approve card (WS-A2/A2p/A2d/A2r) with the copy contract above; the bound message signed over the site's address; the signer cache in memory for the unlocked session; the wallet-only site-unreachable line. - `matou://` OS registration on Android, iOS and Electron; the in-app scanner accepts `matou://signin` beside `matou://pair`. - Read `signin` from the descriptor; tolerate an absent `doorkeeper` and drop it. **matou-infrastructure.** Config-server `1.1` serves `signin: {url}` and no `doorkeeper` block (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's `ready` state (DDR 0228) do not exist in code. The bridge must work with the app door enabled by configuration (the card's `ready` state feeding it once that slice lands), and the dashboard row must grey with honest copy until the card exists — sequenced by `to-tickets`, never stubbed as `ready`. ## 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. - **The seam is the existing bridge OIDC-over-HTTP smoke** in the bridge package (prior art: the active-member code flow, repeat sign-in, silent SSO, no-membership refused, refresh-after-revoke refused, the page-wears-the-kit and progress-vs-refusal-regions tests). The fake verifier is replaced for these tests by the real Go verifier fed the golden vectors, with a test HTTP witness serving the fixture ledger (and a revoked variant with a `rev` seal 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. - **Verifier unit tests** lift the spike's: SAID recompute for ACDC, `iss` and the attribute block; tampered attribute breaks the SAID; seal walk finds issuance and rejects an unknown credential; bound-message shape; ledger unreachable fails closed. - **Dashboard unit tests** pin the row's three states and the hand-off replacing the unlock field (prior art: the Members-tab unit suites). - **Drive legs** on the IDIP journey (Playwright): `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. - **matou-app** proves its screens in its own suite (the wallet map's precedent: Playwright over the app's web build). ## Out of Scope - Push from the bridge to the wallet; the handover is always a code or a link. - A credential picker on screen (the path exists; one community never shows it); the second community; any foreign sign-in site in practice beyond the drive's test-world door; an operator-editable trusted-issuers list (map: out of scope). - Keep-me-signed-in or remembered devices on the page; a recent-sign-ins log in the wallet. - The IDIP wallet app (map fog); the community initialisation pipeline and the `none` card's "Design your community app". - Any change to the twelve-words page's own form or copy beyond the demote-to-link and the App-only closure. - Checking witness receipts in Go, multisig issuers, a grace window over cached verdicts (ADR 0236 rejected it). - kanidm-path communities. ## Further Notes - Prototype #1301's numbers set the copy: the door's verdict is ~150 ms; the wallet's Argon2 is 5–8 s per signature until the signer cache lands, so no v1 copy promises speed. - `GET /query?typ=kel` is 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. - Ben's two review passes on the wireframes (2026-09-15) are both in the contract: the page wears the kit natively, and status/errors render under the logo and welcome line, before the door — his first ask (above the brand) was reversed the same day. - The journey view `docs/ux/flows/community-app-journey.mermaid` shows where this feature sits between founding's app choice and the app card's `ready` state.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1492
No description provided.