The gateway's /api/config carries the descriptor's community block, not the organization/registry.{id,name} org-config the app reads — every branded app lands on 'Set up … first admin' (ADR 0226 d1/d3) #1825
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#1825
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?
Symptom
Ben, 2026-09-24, first launch of the whakatohea-demo Android build (matou-app v0.7.3, backend
https://whakatohea-demo.idss.nz, any-sync handshake now OK after #1813): the app opens on "Set up WHAKATOHEA DEMO — first admin", i.e. the founding flow. Submitting name + email ends inSetup failed: Failed to fetch. ADR 0226 decision 3: on an IDSS backend the app never founds — a branded app against a gateway can only join. The community is already founded (the descriptor names its AIDEEPniUBM…, registryEIb--9e6…, stewardben).Cause —
/api/configis served in the descriptor's shape, not the org-config shape the app readsThe app decides "join, don't set up" from
GET <apex>/api/config(ADR 0226 §context, decision 1: "the gateway serves matou-app's document in the shape the app … already expect[s]"). matou-app's reader (frontend/src/api/config.ts; the Android backend'sinternal/api/org.gomirrors it) expectsand gates on
isUsableConfig = !!config.organization?.aid && !!config.registry?.id— anything else isnot_configured, andboot/keri.tsthen redirects every route to/setup.The gateway's config server serves the SAME document on
/api/configand/api/client-config(diffed live:/api/configis the descriptor minus thekeri/witnesses/schema_server_urlblocks) —internal/orgconfig(doc.go: "served at /api/config and /api/client-config") renderscommunity.{name,slug,aid,oobi,registry}+admins[]and noorganization/registry.{id,name}at all:So the roster rendering is right, but it was written to the descriptor's vocabulary, not to the org-config vocabulary decision 1 promised. Decision 5's "a 1.0 wallet strips the keys it does not read" only holds for ADDED keys; the keys the wallet reads are missing.
Fix (proposed, two-way door)
Render
/api/config(or the whole document — the app strips extras) with the org-config keys ALONGSIDE the community block, derived from the same roster:organization: { aid: community.aid, name: community.name, oobi: community.oobi }registry: { id: community.registry, name: "<community name> registry" }(the top-levelregistrykey is free;community.registrystays a string)admins[]already matches (aid,name,oobi)generated: <RFC3339 of the render>render_test.go: assert the document parses as matou-app'sOrgConfig(a golden copied fromfrontend/src/api/config.ts) and thatorganization.aid == community.aid. Then re-render + re-write for standing communities (the descriptor writer already updates in place on every steward change — one steward touch, or a control-plane restart if the writer re-renders at boot, republishes whakatohea-demo's).Acceptance
curl https://whakatohea-demo.idss.nz/api/config | jq '.organization.aid, .registry.id'→ the community AID and registry SAID./setup.Companion on the app side (defence in depth, ADR 0226 d3): matou-app ticket "honour
backend_kind: idss— never route to /setup, derive the org identity fromcommunity" (linked below once filed).Related: ADR 0226 (d1, d3, d5), ADR 0235, #1813, #1807,
docs/research/2026-09-07-community-backend-contract.md§1.4 + gap 2.Companion app-side ticket: Matou/matou-app#610 (Matou/matou-app#610) — the app must never route to /setup on an IDSS-kind backend regardless of this fix.
swarm-claim host=bens-mac-04 run=31863
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1825 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
admins[].oobiis empty for the founding steward — the app's KERI registration exchange (ADR 0235) cannot reach the steward's agent, so no member can register from the app #1843