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#1495
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
Wayfinder map #1293 — the community wallet. This is the child spec for the community app pairing slice: the community backend descriptor served from the gateway (ADR 0226, amended by ADRs 0235, 0236, 0238), the IDSS-first pairing walk (DDR 0228, amended by DDR 0239), and the two blocks the sign-in spec #1492 waits on — the descriptor's
signin{url}and the app card'sreadystate. Cross-feature constraints inherited from the map's Decisions-so-far: sovereignty first (Mātou is never a gate on founding; a refused or unreachable Coa never fails a founding); the operator's choice is always kept ("later" costs nothing and the door stays open on the dashboard); the browser twelve-words door stays the interim until the app is downloadable; the control plane is the roster's single writer (ADR 0198) and therefore the descriptor's single writer; nothing built for the browser path is thrown away.Flow:
docs/ux/flows/p1-founding.mermaid(amended 2026-09-15 with S3a-APP, the pipeline tail and the app card) and the cross-feature viewdocs/ux/flows/community-app-journey.mermaid. Wireframes:docs/ux/wireframes/p1-founding/p1-s3a-identity.html(the wallet choice and the new "later" line),p1-s3a-community-app.html(S3a-APP and the HO/DO app card, four states). Research: #1294 (what each backend serves), #1314 (any-sync and the config server on NixOS).Problem Statement
A community that founds on the IDIP path has told its members they will sign in with a wallet app on their own device — and then has no app. The wallet is matou-app, built and branded by Coa, and a Coa build bakes exactly one backend address. Today Coa's form and IDSS founding each mint a community that knows nothing of the other: the gateway publishes no document a Coa build could point at, Coa's form asks for brand and backend details founding already holds, and a founder who wants the app must leave founding, fill Coa's form by hand, wait for a Mātou-triggered build, and never sees on their dashboard whether the app exists. The sign-in feature (#1492) cannot ship at all until the gateway serves the descriptor that tells a wallet where its sign-in site is, and the operator's surfaces cannot say "your app is ready" because nothing records it.
Solution
Founding on IDIP offers the community's own app as one choice on the identity step and one extra screen of feature toggles, then does the rest itself: the gateway installs Mātou's config server as one more unit of the identity stack and serves matou-app's
client-configat the apex as the community backend descriptor — the community's identity, its doors, its schemas, its sign-in site, and (once it exists) its app. At the end of the deployment pipeline, once the outside can read that descriptor, founding submits the app to Coa on the operator's behalf — brand from the kit, backend the apex, marked as IDSS-originated so Coa builds it without a relationship gate — and finishes without waiting. The operator home and the dashboard overview carry one app card that follows Coa's public status document from being built to downloads available (or failed, with try again), and ready writes the app's downloads address back into the descriptor so invites and the sign-in page can say "get the app". A founder who chooses "later" gets the same card at not yet designed, and designs the app from the dashboard when they are ready.User Stories
Actors: operator (founds and runs the community — the glossary's word; never "admin"), member (a person with a wallet), wallet (matou-app, the community's branded build), Coa (Mātou's app builder), control plane (the gateway's single writer).
A. The founding walk
As an operator on the IDIP path, I want the identity step to tell me plainly that members will sign in with a wallet app and offer to build ours now, so that the app is part of founding and not a later chore.
data-field="wallet-choice"), with Option 1 Create your own community wallet app now preselected and Option 2 Use the IDIP wallet app rendereddata-status="disabled"with "Coming soon", never selectable.As an operator, I want S3a-APP to show only what founding cannot fill in for Coa — the feature toggles beside a live preview of my app wearing my kit — so that I never see Coa's form.
data-field="features"lists Coa's toggleable features with Coa's defaults (identity locked on; notices, events, chat on; projects, proposals off; maramataka on),data-field="contact-email"is prefilled with my email, anddata-field="platforms"names macOS, Windows, Linux and Android with the iPhone / app-store caveat.data-field="app-preview") renders, then it wears them and its tab bar follows the toggles: the first three enabled features keep tabs, the rest roll into More.As an operator, I want a plain "not now" on the identity step, so that choosing later costs nothing and keeps the door open.
data-field="wallet-later"/data-action="wallet:later"reads Not now — I'll design the app later from my dashboard, with costs nothing; members sign in through the browser until then.noneafter hand-off.As an operator, I want Continue on S3a-APP to record my choices and send nothing, so that nothing leaves my computer before Review and nothing waits on Mātou.
As an operator, I want Review to say what will happen with the app, so that the submission is a confirmed choice, not a surprise.
B. The descriptor and the config server on the gateway
As an operator on the IDIP path, I want my gateway to be a community backend by construction, so that any Coa build can point at it with one address and no rebuild.
As a wallet or as Coa, I want the descriptor at the community's apex, so that the address a build bakes is the address people already know.
GET https://<apex>/api/client-configandGET https://<apex>/api/configproxy to the config server over loopback and every other path on the apex stays the control plane's (the Portal,/authz/signin, the steward API); the identity doors stay the subdomains they are today.As a wallet, I want the descriptor to be the
1.1shape ADR 0226 ruled, so that a 1.0 wallet keeps working and a 1.1 wallet learns everything it needs from one document./api/client-configis fetched from outside, then the document carriesversion: "1.1", the KERI block with the gateway's real doors (keria.<apex>,keria-cesr.<apex>,keria-boot.<apex>,witness.<apex>,schema.<apex>) and the one community witness's runtime-minted AID and OOBI,community{name, slug, aid, oobi, registry},api_url(the steward API root on the apex),schemas(each credential kind's SAID and public OOBI, the gateway's own),boot{gated: false, join_url},backend_kind: "idss",stack(KERIA / keripy / signify-ts generations from the pins),signin{url}(the bridge's sign-in endpoint as #1492 defines it), andapponly once the card isready.anysynckey; given any-sync installed, then the block names the gateway's nodes.doorkeeperblock exists and nothing secret rides in it (no admin token, no passcode, no private key material).As the control plane, I want to be the descriptor's only writer, so that the roster stays single-writer and the app never founds on IDSS.
communityblock reflects it.As the outside-in door probe, I want to prove the descriptor is readable from outside before anything is submitted to Coa, so that a build never bakes an address that does not answer.
https://<apex>/api/client-configfrom outside and requiresversionandcommunity.aid; given it fails within the same bounded attempts the door probe uses, then the Coa submission is skipped and the app card opens atfailedwith the outside could not read your community's details yet, and try again re-probes.C. The submission at the end of the pipeline
As an operator who chose Option 1, I want founding to submit my app to Coa for me, after my gateway is live, so that I never fill Coa's form and never wait on the build.
pending; the hand-off (S12-IDIP) proceeds exactly as today — founding never waits on the build.nonewith the copy naming that the app needs a public address.As an operator, I want a refused or unreachable Coa to be non-fatal, so that Mātou is never a gate on my founding.
failedwith Coa's reason in plain words, anddata-action="rebuild"re-submits from the dashboard.failedwith could not reach Coa and try again.As an operator who chose Option 1, I want any-sync installed at founding, so that my members' app has its content layer from day one.
anysyncblock served once the coordinator answers.anysynckey.D. The app card
As an operator, I want one app card on my operator home and my dashboard overview, so that I always know where my app is.
data-field="community-app"row sits with the standing checks with exactly onedata-statusofpending | ready | failed | none, and both surfaces read the same record.As an operator, I want the card at
pendingto show that the app is being built and let me see the details, so that waiting is honest.data-action="app-details"opens Coa's page for the community.As the control plane, I want to poll Coa's public status document for the slug, so that no Mātou credential ever points at a community.
pending, when the poll runs (on a fixed interval with backoff, and on demand when a surface opens), then it fetches Coa's public status document beside the community's page, unauthenticated, and mapsready→ready(with the downloads address and platforms),failed→failed(with the recorded reason), anything else → stillpending.pendingand the card shows last checked ‹time› — never a falsefailed.As an operator, I want
readyto mean downloads available, so that I can share the app.ready, when the record updates, then the card reads Your community app — downloads available, lists the platforms,data-action="open-downloads"opens the downloads page, and the copy names the Members tab as where to share it.ready, when the descriptor is next served, thenapp{downloads_url, name}is present — written by the control plane's org-config writer, the same path story 9 uses.ready, when the Members tab's invite (P6-S2i) renders, then its copy gains get the app with the downloads address (the invite's app-first opening itself is DDR 0230's, spec'd with adoption).As an operator, I want
failedto tell me why and let me try again, so that a build failure is a moment, not a dead end.failedor the tail's submit was refused, when the card renders, then it reads Your community app — the build failed,data-action="app-details"shows the reason, anddata-action="rebuild"re-submits the same submission from the record.As an operator who chose later, or whose community pre-dates this, I want the card at
noneto be the way in, so that the offer never expires.data-action="design-app"opens the dashboard twin (section E).As an operator, I want the card's record to survive restarts and be the same on both surfaces, so that I never see two truths.
E. Designing the app later, from the dashboard
data-action="design-app", when it opens, then the dashboard shows S3a-APP's twin (data-field="features",data-field="contact-email", the kit-wearing preview) prefilled from the brand kit; when I submit, then the control plane runs the same submission as the pipeline tail (descriptor probe, then Coa) and the card moves topendingorfailedby the same rules.anysynconce the coordinator answers.F. What matou-app, matou-infrastructure and Coa owe
As a wallet, I want to boot against an IDSS descriptor, so that a Coa build pointed at a gateway simply works. (matou-app)
anysyncabsent is tolerated (content surfaces show their empty state, sign-in and credentials work), a single witness satisfies the witness floor, schema OOBIs come fromschemas, absentdoorkeeperandappare tolerated,signin.urlbecomes the home sign-in site (#1492), and astackmismatch is a diagnostics warning, never a refusal; only an unknownversionmajor refuses.As the gateway, I want the config server to serve the 1.1 shape from sources a gateway has, so that one implementation owns the document. (matou-infrastructure)
signinreplacesdoorkeeper;anysyncstays optional; org-config gains an authenticated update path; the subprocess test suite gains the 1.1 file.As Coa, I want an IDSS-originated submission to build on submit, so that the founding is the relationship. (coa)
/api/client-config(not/config) and accepts a document withoutanysyncwhen the submission promises it (or the prober is told to require it only when present).ready, and the reason oncefailed(already so; asserted).G. The community's any-sync spaces (ADR 0226 amendment, 2026-09-15 — re-ruled the same day)
As an operator who chose Option 1, I want founding to create my community's spaces for me, so that the content layer exists before anyone installs the app. (idss)
anysyncwithout space IDs, and the app card's details name it; the first-steward fallback (story 26) then applies.As the first steward whose wallet lands against a gateway whose descriptor names no spaces, I want my wallet to create them, so that "later" and older communities get their content layer too. (matou-app — the fallback)
anysyncand whose org-config names no space IDs, then it creates the three spaces exactly as founding does and posts the IDs toapi_urlwith its existing steward authentication; nothing else of org setup runs.As the control plane, I want to record the space IDs once, so that org-config stays single-writer and every wallet joins the same spaces. (idss)
As the wallet's maintainers, I want space creation to live in one package, so that founding and the wallet can never drift apart. (matou-app)
Implementation Decisions
Repos. Work lands in four repos; this spec is the one place they are named together, and
to-ticketsemits per-repo tickets. Anything not listed for a repo is that repo's "nothing new".idss
now | later), features (the toggle map, Coa's keys), contact email. S3a-APP is a step of the founding page between S3a and S4 on the IDIP + Option 1 branch; "later" is thewallet:lateraction on S3a. The reopened-walk rules follow S3a's (editable until deploy, locked after Founded). The preview is the founding page's own mini, built from the kit compile the brand-kit step already has — not an iframe of Coa.keria/keri-witness/keri-schemashape), as a distinct systemd unit with a declared health check on its health door, packaged the way the schema server is (a Python file wrapped as a binary), env from a clan-vars generator (admin token) plus a rendered JSON file the control plane owns for the gateway blocks. Always on the IDIP path, never on kanidm. Its data directory joins the identity dataset's declared state (it is a rendering of the roster, small and rebuildable)./api/configand/api/client-config, proxied to the config server's loopback port; no other apex path changes; the unserved-host fall-through and the KERI subdomain doors are untouched.stack), the apex (api_url,boot.join_url,signin.url), and the app record (app), and writes it over loopback with the admin token — at the identity rows during founding, on every steward change, and when the app record reachesready. Loopback only; the token is a clan-vars secret the bridge and the control plane read, never the app./api/client-configfetch with the two required fields.{name, slug, primaryColour, secondaryColour, contactEmail}, features{identity: true, chat, projects, proposals, notices, events}(maramataka rides as Coa's default until Coa exposes it), backend{kind: "self-hosted", configServerUrl: "https://<apex>"}, the logo as a PNG rendered from the kit's round logo, plus the IDSS-originated marker as a form field (origin: idss). The slug is the founding slug; a slug-taken answer is afailedreason.{state, slug, pageUrl, submittedAt, lastCheckedAt, reason, downloadsUrl, platforms}.noneis the absence of a record or a record withchosen: later.pending.data-field="community-app"/data-status/data-actioncontract from the wireframe. On HO it sits with the gateway's standing checks; on DO beside the health and backups headlines. Never part of any health verdict.design-appaction, the same fields as S3a-APP, submitting through the same control-plane path; the any-sync install-later runs as a deploy of the any-sync units (the catalogue-service deploy precedent) before the submission is sent, so the descriptor probe Coa runs sees a complete document.mongodump+ store copy at backup. Two-way door: source-built units can replace the containers behind the same unit names.matou-infrastructure
community,api_url,schemas,boot,backend_kind,stack,signin,app) read from a rendered JSON path and merged over org-config;doorkeepergone;anysyncoptional stays; an authenticated update path for org-config (replace-in-place with the admin token) beside the first-write-wins post; the public-URL and tenant behaviours unchanged. The subprocess test suite gains a 1.1 file.matou-app
anysyncand org-config names no space IDs, gated on holding a steward credential; the IDs posted toapi_url; on conflict, re-read and join.anysyncoptional in the loader and the Go backend (content surfaces show their empty state without it); witness floor of one; schema OOBIs fromschemas; tolerate absentdoorkeeperandapp; readsignin.urlas the home sign-in site;stackmismatch as a diagnostics warning; refuse only an unknownversionmajor.coa
/api/client-config;anysyncis optional in the probe when absent (the IDSS founding installs it before submitting, so in practice it is present; the prober must not 422 a KERI-only document from the dashboard twin's probe-first path).ready(already so).Testing Decisions
A good test drives a public face with fakes behind it and asserts what an operator, a wallet or Coa would observe — the served document, the card's state, the request Coa received — never an internal call sequence.
Seams (existing, reused; one new fake each):
internal/founding, the scripted-fake precedent:FakeFleet, the injected door probe, the story-numbered tests such as the S12 hand-off and identity seed-leg tests). Add a scripted fake Coa (accepts / refuses with a reason / unreachable) and a fake descriptor probe. Stories 1–5, 10–13 (draft, tail, non-fatal failures, private path) are proven here end to end from S3a to the hand-off, including that a refused Coa leaves every stand-up step green.internal/clan, theRenderKeri_*/RenderFrontDoor_*/RenderIdssIdp_*tests): the config server unit with its declared health check and secret generator; the two apex routes present on IDIP and absent on kanidm; the any-sync units, ports, dataset and key generator when chosen; determinism.internal/controlapi, the*_integration_test.goprecedent): the app record's read and write, the poll against a fake status document (ready / failed / unreachable), the descriptor writer's org-config over a fake config server (founding write, steward-change update,appon ready), and that the served-document shape matches the 1.1 contract (a golden document per branch: no any-sync, any-sync, ready).Drive. The rented IDIP rehearsal drive gains one leg: with the harness's fake Coa, the app card reads
pendingat hand-off andreadyafter the fake flips its status document, and the descriptor served at the apex carriesappandsignin. A real Coa build is not on the drive (minutes to hours, and a Mātou-side dependency); the live proof against real Coa is a manual trial step, recorded in the trial guide.What is not tested here: the wallet's sign-in round trip (#1492's seam), any-sync's content behaviour in the app (the initialisation pipeline, below).
Out of Scope
/wireframeand spec; this spec's descriptor writer must not assume the addresses it serves are its own (they are data, read from the record).wallet/): W-S0, the invite opening app-first, the reaper. This spec only flips the invite's copy onready.signin{url}for it.schemascarries, iPhone builds and store listings.Further Notes
to-tickets. The descriptor and config server (B) come first — #1492's tickets block onsignin{url}. Then the founding walk (A) and the tail (C), then the card (D), then the twin (E). Story 28 (matou-app's space-creation package) precedes story 25's tail ticket. Story 24 (coa auto-build) and story 23 (config server 1.1) are external tickets the tail's real-Coa trial waits on; the fake-Coa seam does not.TOGGLEABLE_FEATURES= chat, projects, proposals, notices, events; builds are macOS (Intel, Apple silicon), Windows, Linux AppImage, Android APK; no iPhone build. Maramataka is not a Coa toggle today — S3a-APP shows it as on, and the submission does not carry it until Coa exposes it.community-app-journey.mermaidis the reader's map of where this slice sits between founding and App-only.try againwhen it failed #1517slug-takenand the app card dead-ends at "Coa already holds a page for this name" #1805logo: the client labels the logo partapplication/octet-stream(mw.CreateFormFile) and Coa validates the part's Content-Type, not the bytes — a PNG kit fails exactly like the JPEG one; fix the part header, then … #1806anysyncblock omitsid(the any-sync network-configuration id) — Coa's ClientConfigSchema refuses the backend probe, every IDSS-originated build is withheld at page-ready, and matou-app's client would start with an empty id #1807