The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired #1293
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1293
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?
Destination
A community's wallet — its own branded community app, built with Coa on
matou-app— is where every IDIP member holds their identity and the credentials the community issues them, and how they sign in at the community's door instead of typing the twelve words. The two setups that today each mint a community (Coa's org setup on Mātou-hosted tenancy; IDSS founding on the community's own gateway) are paired: each detects whether the other already exists, adopts it if so, recommends it if not, and works alone if the operator so chooses. The map is done when every decision needed to/to-specthis (one child spec on this repo, naming per-repo work foridss,matou-appandcoa) is made.Notes
CONTEXT.mdnouns added while charting: Wallet, Doorkeeper, Community backend, Rehost — use them.Matou/matou-app(wallet + steward flows;frontend/src/lib/keri/client.ts,useOrgSetup.ts,useAdminActions.ts,useClaimIdentity.ts),Matou/coa(form → tenant → branded build; ADRs 0005/0006/0008,docs/community-credentials-investigation.md),matou-infrastructure/keri(the coa-shared stack; pins signify-ts 0.3.0-rc2 / KERIA 0.2.0-rc1). Laptop clones under~/Documents/1.projects/. This repo:internal/idp(bridge),internal/keriauth,internal/keria(adapter/roster),app/src/keriweb(browser join/sign-in),docs/research/2026-08-24-matou-app-keri-flow-inventory.md.GET /challenges, out-of-band hand-off, signed/challenge/responseexn,POST/PUT /challenges_verify/{aid}); verification signs nothing — but it runs on the agent that holds the verifier's mailbox, and the community group AID's agents live only in stewards' browsers (ADR 0197/0198), so the group AID cannot be the server-side verifier./grilling+/domain-modelingfor grilling tickets;/researchfor research tickets (instruct inline — background children never report back across the Agent boundary);/prototypefor the prototype ticket. Decisions land as ADRs/DDRs indocs/adr/(checkorigin/mainbefore minting a number).Charting rulings (Ben, 2026-09-07)
Sign-in is KERI-native: the designed challenge-words process, out-of-band hop = QR/deep link carrying the doorkeeper's OOBI + the words; the wallet answers with one signedReversed by ADR 0235 (#1298): the challenge is the bridge's (ADR 0212 §1), carried by QR/deep link; the wallet signs it and presents its credential to the Doorkeeper./challenge/responseexn.Matou/idss; build tickets go per repo at ticketing time.Decisions so far
Research: what a community backend serves today (Coa tenant, matou-app boot reads, IDSS gateway doors) — the gap table — a Coa build bakes ONE runtime-read config URL; load-bearing fields = keri admin/boot/cesr, ≥2 witness AIDs, any-sync block; the gateway already serves all five doors publicly but publishes no descriptor, gates /boot, serves only its own schema SAIDs (matou still pins
communityName: "MATOU"), runs ONE witness and KERIA 0.4.0 vs coa-shared's 0.2.0-rc1; coa's own backend probe hits the wrong path. Branchresearch/community-backend-contract.Research: hosting the Doorkeeper's signify session beside the Go bridge, the challenge round trip on KERIA 0.2.0-rc1, and vouching options — a foreign exn is silently dropped after 20 s unless the doorkeeper resolved the sender's OOBI first (bare OOBI suffices; sign-in bootstrap must carry the member's OOBI); delivery is direct to the doorkeeper's
agentend URL; NO Go signify exists → signifypy 0.4.2 fits the gateway's python set (kli verify = 300 s blocking poll); loopback boot is ungated; delegation = wallet-verified at OOBI time but needs the group to exist + one steward approve per rotation, credential buys only revocability; doorkeeper adds nothing to the 0201 dataset except its passcode var; 0.2.0-rc1↔0.4.0 wire identical. Branchresearch/doorkeeper-hosting-and-vouching.Research: rehost mechanics on the pinned KERI stack — KEL/TEL portability, group witness rotation, agent re-derivation, tenant repoint — same twelve words ⇒ same AID is FALSE for wallet-minted identities (matou-app never passes
branas the AID salt; the per-AID salt is recoverable only while the old agent lives) — IDSS-minted ones re-derive; an existing AID CAN be adopted onto a new KERIA (app-level POST over the pulled KEL, no library verb), the group hab viagroups().join; group witness rotation feasible, one steward signs, but keripy 1.2.13'scatchupstill carries the bug Mātou patches; TEL moves via CESR export + originalvcpre-register; roster NOT rebuildable from TEL alone; nothing re-derives automatically at next launch (gated /boot → 403). Branchresearch/rehost-mechanics.The community backend descriptor — the well-known document both setups serve and probe — ADR 0226: the descriptor IS matou-app's
client-config, served by Mātou's config server INSTALLED ON THE GATEWAY (the gateway is a matou-infrastructure backend); control plane = only writer of org-config (the app never founds on IDSS); baked URL = the apex (two path routes); additive1.1with optionalcommunity/doorkeeper/api_url/schemas/boot/backend_kind+stack/app,anysyncoptional; public unsigned TLS; founding "Coa now" submits the prefilled form and never waits; config server ALWAYS on IDIP, any-sync WHEN Coa is chosen (reverses #725's any-sync-out for the Coa case → research #1314).Research: any-sync and Mātou's config server on the gateway — node types, NixOS packaging, resource floor, secrets/rescue, install-later — minimal set = coordinator + tree + consensus + single-member MongoDB (file node + Redis-Bloom + S3 only for file bytes); any-sync is load-bearing DAILY (backend refuses to start without the coordinator; profiles/chat/files are any-sync trees); all five daemons build from source with
buildGoModulebut Mongo is SSPL and nixpkgs redis lacks Bloom → podman images are the alternative; ≈0.2–0.4 GiB idle, 4 GB floor holds, CPU under load unmeasured; network + node keys NOT re-derivable → ADR 0201 dataset; config server = one stdlib-Python file (writePython3Bin), but neither URL layout mintskeria.<apex>doors and witness AIDs are hard-coded (the 1.1 bump must fix both); install-later has no app-side spaces bootstrap; any-sync is raw TCP, cannot ride Caddy 443. Branchresearch/anysync-and-config-server-on-the-gateway.IDSS-first pairing: founding offers Coa, the Coa tenant adopts the gateway, the branded app boots against it — DDR 0228 (+ DDR 0227 brand kit secondary colour + round-logo dialog, build #1328): S3a on IDIP shows the wallet statement + two big cards (Option 1 build your community wallet now — preselected; Option 2 the IDIP wallet — disabled, coming soon); Option 1 = one extra step S3a-APP (Coa's feature toggles + live phone preview; brand + backend steps skipped); the submission rides the END of the deployment pipeline, any-sync installs at founding, Coa auto-builds IDSS-originated submissions; one app card × 4 states on operator home + dashboard overview, gateway polls Coa's public status document,
readywrites the descriptor'sappblock.Member identity adoption into the wallet: twelve words typed once into the app, same agent, nothing re-minted — DDR 0230 (amends ADR 0212): the app is the main way in; matou-app's three doors stay; registration on IDSS is open (
/bootungated, membership still steward-approved); an unadmitted reaper deletes agents with no Membership + no pending join after 7 d (reject marks, never deletes at once) via an admin-only loopback delete route on the pinned KERIA; Recover connects, never boots (found → home + one-time profile/space bootstrap, or the waiting screen; not found → one message, two exits); the invite opens app-first once the app card isready(W-S0, continue in the browser instead) + a one-line nudge on P6-S5 and sign-in; browser and app coexist; proof = Playwright over the app's web build with the gateway agent count unchanged. Flowwallet.mermaid, wireframeswallet/.One roster, two steward seats: reconciling matou-app's approve/issue flows with the IDSS invite gate and roster wire — ADR 0235 (amends 0198/0212/0226/0230): standing is the credential, not a list the gateway is told — the join is matou-app's registration exchange untouched (browser join sends the same; the unsigned post retires); the admin inbox is per steward, in their agent (dashboard shows it after the signing unlock); the roster holds no waiting members and the roster wire retires; one community ledger (
community.registry, carried at promotion; per-steward registries off on IDSS); the Doorkeeper is a pure verifier — the wallet signs the bridge's challenge and presents its credential, revocation read off the witnessed KEL seals (→ research #1387); no gateway member list; no automatic reaper (reject deletes the agent, a steward act); the invite preset rides the exchange; profile claims self-asserted at the door; app admin area on IDSS = keep / rewire / hide list.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 — a grant alone verifies nothing on stock 0.4.0: the embeds are parsed only when the receiver admits (local admit, no wallet round-trip, but it saves a copy → explicit delete); seal-only revocation is decidable but not keripy's model — the gateway's witness serves the TEL over unsigned GET, no steward online needed; keripy saves a revoked credential rather than refusing → the state read is the check; holder binding (presenter ==
a.i== challenge signer) is entirely the Doorkeeper's; schemas auto-cached on the gateway (KERIA_DURLS), public OOBIhttps://schema.<apex>/oobi/<SAID>; the wallet has no present-as-holder code yet. Bends #1300: a no-agent alternative — the wallet posts the grant bytes in ADR 0212'spresentationfield and the bridge verifies in Go (Ed25519 + SAID recompute + seal walk over the witness KEL) — no Doorkeeper AID, no sidecar. Docdocs/research/2026-09-10-doorkeeper-verification.md.The Doorkeeper identity: seeded, sidecar-driven, vouched for by the community identity, rescued with it — ADR 0236: there is NO Doorkeeper identity (charting ruling 4 reversed) — the sign-in bridge verifies the presented credential in Go against the issuer's witnessed KEL read from the community witness (SAIDs recomputed,
iss/no-revseals, schema, holder == challenge signer); the wallet posts the bare credential CESR stream (vLEI-verifier convention) with its signed challenge; present-as-holder is general (answers IPEXapplyfrom other verifiers too); verifier over a trust list pinned in v1 to the community identity; ledger unreachable → fail closed; descriptordoorkeeper{aid,oobi}→signin{url}; the wallet keeps known doors (home pre-trusted, others by first-contact consent) and signs over the door's address; no seeding, sidecar, vouching, rescue entry or saved copy; "Doorkeeper" = the bridge's verifier role.Coa-first founding: detect the Coa tenant, run point-at, offer Rehost — the walk, the copy, the irreversible steps — ADR 0238 + DDR 0239: founding ADOPTS the community identity where it stands; coming home is a DATA MOVE, not a re-mint. Ben's grill question ("is there not an export + upload process?") reframed it and the stack agreed — ADR 0201 already treats the identity AS its data directory (keripy root + witness state, quiesce-copy-resume), KERIA gives each agent its own dirs named by the controller AID (
Habery(name=caid,…), verified in the pinned image, keripy 1.2.2), and research #1303's random per-AID salt travels inside the agent dir — so the protocol walk is the FALLBACK, not the path. Founding mints nothing (S6a does not run) and proves stewardship by wallet sign-in + steward credential through ADR 0236's own verifier; point-at is a resting place (one founding-written trust row naming FOREIGN witnesses, fail-closed intact, an honest standing row that never nags); the tenant repoints to the apex from day one while the descriptor hands back Mātou's addresses until each layer moves (Coa out of the loop at the dangerous moment); the move is one short window for everyone at once, released by a self-service handover door (wallet proof, that community's agents only, delivered only to the descriptor's address), rehearsed sealed first, then copy → start → the gateway's own ADR 0201 backup → destroy Mātou's copy; witnesses rotate, not move. Content does NOT move (Mātou runs ONE any-sync network for all communities, none of it re-derivable) → research #1405. Amends ADRs 0226/0228/0236; CONTEXT.md Rehost rewritten + Handover added.Prototype: wallet sign-in by challenge words — QR/deep link → signed /challenge/response → doorkeeper verify → OIDC completes (#1301) — PROVEN end to end (
spikes/1301-wallet-signin, landed48902554): the page mints a challenge and shows a QR/deep link carrying the door's own address; the wallet signsidss-idp:<door>:<aid>:<nonce>, posts the bare CESR stream; the door verifies in Go — SAIDs recomputed from the received bytes, the issuer's witnessed KEL fetched by the door itself, theissseal walked, schema against the trust list, holder against the signer. No Doorkeeper identity, no signify, no sidecar, no IPEX, no saved copy — ADR 0236 holds. Green three ways: a signature bound to a fake door is refused (403); after revoke the same presentation is refused while the wallet's copy still readsiss; a browser drive walks door → first-contact prompt → Approve → Signed in. Numbers: the verifier is ~450 lines of Go overinternal/keriauth+ one Blake3 dep; a warm verdict is 142 ms (witness fetches ~120 ms, cryptography 13 ms); the presentation can be 693 bytes not 5792 (the door reads only the ACDC and itsiss); golden vectors are KERIA's own bytes in a fixture dir, so the test needs no keripy, no container, no network. The finding that bends #1302: the round trip is the wallet's — signify-ts re-derives the signer with Argon2 on every sign (1.6–2.0 s each), so sign-in costs 5–8 s of wallet crypto against 0.14 s of door; caching it is one code path in matou-app, and no copy should promise speed until it exists. Two ADR 0236 amendments:GET /query?typ=kelis a keripy 1.2.x route (older witnesses serve the same KEL at/oobi/<aid>— try both, a foreign community's witness may be any generation), and no TEL fetch is needed at all.matou://unexercised — registering the scheme is a matou-app packaging item, the only thing between "Open my community app" and a same-device tap.Sign-in UX with the wallet: approve-in-app on the bridge page, the wallet's approve screen, remembered doorkeepers, and when the browser door retires (#1302) — DDR 0246: the words door demotes to a link at app-ready and retires only by the operator's App-only switch (one Members-surface row, greyed until the app card is
ready; closes the words link + DDR 0230's browser join fallback + DDR 0217's dashboard signing unlock together; reversible; revokes nothing — no signing relay, steward acts hand off to the app); app door primary by screen width (laptop QR / phone Open my community app;matou://registration = matou-app packaging); the approve card names the service, the sign-in site (the copy word for a known door) and what will be shown; the first-contact prompt is its own screen (address as fact, name as claim, two taps); Sign-in sites you trust list, home pinned; no countdown, no speed promise; refusals "Your access could not be verified. It looks like …", Try again capped at three, records-unreachable uncapped; sessions unchanged but the silent hop walks the ledger (ADR 0196 amended, fail closed); seam = bridge OIDC smoke + Go verifier + golden vectors, Playwright for four drive legs. Next:/wireframe wallet-signin→/to-spec.Child spec: wallet sign-in (#1492) —
/to-specoff DDR 0246 + thewallet-signin/wireframes (Ben confirmed 2026-09-15): 35 stories with Given/When/Then, per-repo work for idss (bridge routes + the Go verifier lifted from #1301, App-only setting, dashboard row + hand-off), matou-app (present-as-holder, known doors, approve card,matou://registration, signer cache) and matou-infrastructure (descriptorsignin{url}); seam = the bridge OIDC smoke + golden vectors; four drive legs. TICKETED 2026-09-16 (/to-tickets, Ben confirmed granularity + ordering): idss #1523 Go verifier, #1524 ledger-walked sessions, #1525 the door's three routes, #1526 the app-door page, #1527 refusals + capped Try again, #1528 the App-only setting + row, #1529 its three closures, #1530 the ready-gate wiring, #1531 the drive legs (session); matou-app #531 approve card, #535 sign-in sites, #532 the link scheme. Every one sits behind #1512 (the descriptor answering from outside) — #1495 lands first.Child spec: community app pairing (#1495) —
/to-specoff ADR 0226 + DDR 0228 (+ ADR 0235/0236/0238 amendments) and thep1-s3a-identity/p1-s3a-community-appframes (Ben 2026-09-15 "start the community pairing slice now"): the config server unit + two apex routes + the control plane as the descriptor's only writer (1.1: community/api_url/schemas/boot/backend_kind/stack/signin{url}/app), S3a's wallet choice + a new "later" line + S3a-APP, the Coa submission at the pipeline tail (non-fatal), any-sync under podman when Option 1, the app card × 4 states with the status poll, the dashboard twin; per-repo work for idss / matou-infrastructure (1.1) / matou-app (tolerances) / coa (origin auto-build, probe path). TICKETED 2026-09-16: idss #1510 config server unit + apex routes → #1511 the descriptor writer (+ golden documents) → #1512 the 1.1 document from outside, beside #1513 S3a/S3a-APP and #1514 the app record; then #1515 the tail, #1516 the card, #1517 the poll → ready, #1518 any-sync, #1519 the spaces at the tail, #1520 the space-ID door, #1521 the dashboard twin, #1522 the drive leg (session); matou-app #530 the space-creation package (precedes #1519), #533 the 1.1 loader, #534 the first-steward fallback; matou-infrastructure #23 config server 1.1; coa #143 IDSS-originated auto-build. 44 native blocking edges, cross-repo included — the frontier today is #1510, #1513, #1514, matou-app #530, matou-infrastructure #23, coa #143. Two mechanisms ruled at ticketing and recorded in ADR 0226: the space-creation package is a nested PUBLIC Go module resolved through matou-app's GitHub mirror, and the founder's twelve words cross the operator app's local helper seam for the spaces step alone (in memory, zeroed after, never off the laptop). Ruled same day, twice (ADR 0226 amended): FOUNDING creates the three community any-sync spaces at the pipeline tail as the founder — the wallet derives their keys from the founder's twelve words, which the laptop holds until the scrub — through a Go package matou-app exports (one convention); the descriptor is complete from its first outside read. Fallback = the first steward's wallet ("later" from the dashboard, pre-dating communities): creates them, posts the IDs to the steward API, first write wins. Founding flow amended (S3a-APP, tail, app card); flow + wireframe indexes fixed. Next:/to-tickets #1495first (B before A–E), then#1492behind itssignin{url}tickets.Child spec: panel unlock (#1929) —
/to-specoff #1886 + ADR 0282 / DDR 0284 and thepanel-unlock/wireframes (Ben confirmed seams, scope and the handover mechanism 2026-09-27): 41 stories with Given/When/Then over the steward seat unlocking at control-panel sign-in and the Members tab reading the one community ledger through it. Settles this map's "steward acts on the wallet, in detail" item for the panel side — the seat, not the words, is what makes the list and the per-steward admin inbox readable; the roster is display-only. Mechanism ruled at the gate: ADR 0282 d.6's single tab does not exist (id.<apex>→admin.<apex>is a full navigation), so the unlock line arms the wallet for that one sign-in and the panel tab mints the sealing key and completes the handover — one tap, memory only, nothing in a URL. Per-repo work for idss (the app door's one-shot relay, a panel session epoch for sign-out-everywhere since the SSO cookie is stateless, the seat's phone source, the ledger-backed list + inbox) and matou-app (the unlock line, the unlock-only card, sealing, the sign-out-everywhere row — its second copy line gated on #1914). Seams: the app door's HTTP surface, the control-plane session resolver, and the dashboard's existing injected steward-bundle loader; one drive legsteward-panel-unlock. Slices: ledger list behind the words unlock → handover → sign-out-everywhere → leg, all behind #1910. TICKETED 2026-09-27 (/to-tickets, Ben confirmed granularity + edges; no slice-map — one feature, no cross-feature coupling left to find): idss #1930 the ledger read (frontier) → #1931 Members from the ledger (#1886's fix) → #1932 the admin inbox; #1933 the app-door relay → #1934 the phone unlock; #1935 sign-out-everywhere; #1936 the drive leg (session). matou-app #663 the unlock line → #664 the unlock-only card; #665 the sign-out row. 16 native blocking edges, cross-repo included; every ticket carries a task manifest. #1910 design-unblocked at ticketing (DDR 0284 d.4 is its design) since it gates #1931/#1933.Child spec: the Administrator credential (#1948) —
/grill-ux-with-docs→ ADR 0286 (13 decisions, Ben 2026-09-28) →/wireframe(9 screens) →/to-spec:roleis deleted and holding a second built-in credential grants the control panel, admin in every community service (#1535's ruled policy, carrier swapped) and matou-app's founding member (d.13 — one super user across both apps, so a founder needs no administrator-only surface). Signing stays with the group identity: promotion issues the credential, demotion revokes exactly the SAID it issued, the last live one cannot be revoked, founding issues it to the founder and there is no backfill. Wireframing killed one node — a non-steward administrator has no Members tab, because the registry lives in stewards' agents and both alternatives would have made ADR 0282 d.8 untrue. 25 stories with Given/When/Then; per-repo work for idss (the built-in, one decider over verified claims, expand–contract onrole, the epoch bump on revoke) and matou-app (resolve the founding-member bundle from the credential; granting founding member issues it; the steward check asks signify for group membership). Amends ADR 0196, ADR 0235 d.10, DDR 0217, #1876 r1 and #1535's reconciler key.Not yet specified
communityName: "MATOU"(Coa investigation §5.2) while this repo authors its own SAIDs (credschema); what the wallet must accept from an IDSS backend and how the descriptor carries schema OOBIs.Out of scope
Ruled by agent under ADR 0174 — veto anytime.
Ruling: apply
no-triage. This is the/wayfindermap for the community-wallet feature set — a program-scoping artifact, not work for the triage state machine. Its children (#1295–#1304) and the map itself move through the wayfinder pipeline one ticket per session; triage state roles do not apply until the 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).try againwhen it failed #1517Deferred feature recorded (Ben, 2026-09-21): #1676 — one app, several communities. A member holding memberships of more than one community in one Mātou app. It is the wallet's side of the map's existing out-of-scope item members of other communities into this community's services (the door's side); both meet at ADR 0236's trust list and known sign-in sites. Labelled
deferred— scoping work, not scheduled.role(#1948) #1956