Research: what a community backend serves today (Coa tenant, matou-app boot reads, IDSS gateway doors) — the gap table #1294

Closed
opened 2026-09-07 19:40:57 +00:00 by ben · 2 comments
Owner

Parent

Map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293)

Question

What does a community backend actually serve today, on each side, and what must an IDSS gateway serve for a Coa-built matou-app to boot against it unchanged? Inventory, first-hand from the clones (~/Documents/1.projects/coa, matou-app, matou-infrastructure/keri, this repo):

  1. Coa tenant → app: every URL and document the branded app reads at boot and during setup/join/sign-in — the tenant config server (/api/client-config: keri.{admin_url,boot_url,cesr_url}, schema_server_url, witnesses.{urls,aids,oobis}, the anysync block), the org config (/api/v1/org/config and its config-server mirror), POST /admin/tenants, the ADR 0008 write-token TOFU chain, the Caddy proxied layout that #141 fixed. Which fields are load-bearing, which are any-sync residue.
  2. Coa form → backend: what /api/validate-backend probes today and what "self-hosted URL" in Coa ADR 0006 was expected to mean.
  3. IDSS gateway today: which of those doors already exist at the apex (KERIA admin/boot/cesr behind the front door, the invite-gated /boot, schema serving, witness OOBIs, dashboard/idip/keri-web.js) and which are missing; where the credschema SAIDs and matou-app's schema SAIDs (ECg6npd1… membership, the endorsement schema) disagree.
  4. Gap table: descriptor field → served by coa-shared? → served by the gateway? → owner repo.

Output: docs/research/2026-09-07-community-backend-contract.md with the gap table; no decisions. Feeds the descriptor grill.

## Parent Map: [The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired](https://git.matou.nz/Matou/idss/issues/1293) (#1293) ## Question What does a **community backend** actually serve today, on each side, and what must an IDSS gateway serve for a Coa-built `matou-app` to boot against it unchanged? Inventory, first-hand from the clones (`~/Documents/1.projects/coa`, `matou-app`, `matou-infrastructure/keri`, this repo): 1. **Coa tenant → app**: every URL and document the branded app reads at boot and during setup/join/sign-in — the tenant config server (`/api/client-config`: `keri.{admin_url,boot_url,cesr_url}`, `schema_server_url`, `witnesses.{urls,aids,oobis}`, the `anysync` block), the org config (`/api/v1/org/config` and its config-server mirror), `POST /admin/tenants`, the ADR 0008 write-token TOFU chain, the Caddy proxied layout that #141 fixed. Which fields are load-bearing, which are any-sync residue. 2. **Coa form → backend**: what `/api/validate-backend` probes today and what "self-hosted URL" in Coa ADR 0006 was expected to mean. 3. **IDSS gateway today**: which of those doors already exist at the apex (KERIA admin/boot/cesr behind the front door, the invite-gated `/boot`, schema serving, witness OOBIs, `dashboard/idip/keri-web.js`) and which are missing; where the `credschema` SAIDs and matou-app's schema SAIDs (`ECg6npd1…` membership, the endorsement schema) disagree. 4. **Gap table**: descriptor field → served by coa-shared? → served by the gateway? → owner repo. Output: `docs/research/2026-09-07-community-backend-contract.md` with the gap table; no decisions. Feeds the descriptor grill.
Author
Owner

Claimed 2026-09-07 (charting session). Research subagent fired inline; findings land on branch research/community-backend-contract as docs/research/2026-09-07-community-backend-contract.md (laptop checkout, unpushed until reviewed).

Claimed 2026-09-07 (charting session). Research subagent fired inline; findings land on branch `research/community-backend-contract` as `docs/research/2026-09-07-community-backend-contract.md` (laptop checkout, unpushed until reviewed).
ben self-assigned this 2026-09-07 19:45:43 +00:00
Author
Owner

Resolution (research, 2026-09-07)

Findings: docs/research/2026-09-07-community-backend-contract.md on branch research/community-backend-contract (commit 8bf9d6d4, laptop checkout, unpushed). Every claim cites file:line; unverified items flagged. Sources read at forgejo/main of matou-infrastructure (8b70975, the PR #18 merge) and matou-app origin/main (f45c773).

What a Coa build bakes vs reads. The only backend pointer baked into a branded build is the config-server URL (config_url → VITE_PROD_CONFIG_URL, also MATOU_CONFIG_SERVER_URL / MATOU_SMTP_RELAY_URL for the Go backend). Every other door is read at boot from GET /api/client-config. So "a tenant points at a backend" is already one URL, read at runtime (proven by #141: no rebuild after the proxied layout landed).

Load-bearing descriptor fields today: keri.{admin,boot,cesr}_url; witnesses.aids with a hard floor of two (assignWitnesses() throws below two); witnesses.urls; and the anysync block (the Go backend refuses to start in prod without it). Not read by the app at all: schema_server_url, config_server_url, witnesses.oobis. The app hard-codes http://schema-server:7723/oobi/<SAID> in five files and has KERIA resolve it; it learns witness OOBIs from KERIA's own /config iurls, not the descriptor.

The org-config document (GET /api/config: org AID/OOBI, admins, registry) is what flips a fresh install from "set up" to "join". On coa-shared the route exists but every tenant's document is empty — the ADR 0008 bootstrap-token/TOFU chain is ruled but not landed in any clone.

Coa's probe is broken against real backends: /api/validate-backend probes ${url}/config, but the real config server serves /api/client-config, so "Test my backend" 404s on the first probe (code reading, not run live); it also requires and TCP-probes any-sync. ADR 0006's "self-hosted URL" means "a matou-infrastructure config-server URL".

The gateway (IDIP path) already serves the five doors as public https names — keria.<apex>, keria-cesr.<apex> (= KERIA_CURLS, better than coa-shared's docker-internal http://keria:3902/), keria-boot.<apex>, witness.<apex>, schema.<apex> — but publishes no descriptor document; its own app derives doors from the apex by convention. /boot is invite-gated (X-Idss-Boot-Token forward_auth, CORS origin pinned to the apex); signify's client.boot() sends no token → 403.

Schema disagreement: matou ECg6… (Blake3, communityName still const "MATOU" at both matou-app and matou-infrastructure HEAD, ten-role enum) vs IDSS ICyW… (SHA2-256, parameterised name, operator|member). The gateway serves only ICyW…/IOfw…; matou-app's Go backend also hard-pins ECg6… for the space-join gate.

Version drift: coa-shared = KERIA 0.2.0-rc1 + Mātou monkey-patches, signify-ts 0.3.0-rc2; gateway = stock KERIA 0.4.0 / signify-ts 0.4.0 (DDR 0207) — wire compatibility unverified.

Gap table rows that decide the descriptor grill (#1295): #1 no descriptor on the gateway; #3 gated /boot vs a tokenless boot(); #7–#8 schema-server hostname + ECg6… schema unresolvable from the gateway's KERIA; #10 the two-witness floor vs the gateway's single witness by design; #15 the any-sync block the gateway can never serve; #17 the org-config document (empty on coa-shared too); #23 the KERIA version crossing; #24 coa's own probe-path bug. Row #22 is where the gateway is ahead (a public agent OOBI).

## Resolution (research, 2026-09-07) Findings: `docs/research/2026-09-07-community-backend-contract.md` on branch `research/community-backend-contract` (commit `8bf9d6d4`, laptop checkout, unpushed). Every claim cites file:line; unverified items flagged. Sources read at `forgejo/main` of matou-infrastructure (`8b70975`, the PR #18 merge) and matou-app `origin/main` (`f45c773`). **What a Coa build bakes vs reads.** The only backend pointer baked into a branded build is the config-server URL (`config_url` → `VITE_PROD_CONFIG_URL`, also `MATOU_CONFIG_SERVER_URL` / `MATOU_SMTP_RELAY_URL` for the Go backend). Every other door is read at boot from `GET /api/client-config`. So "a tenant points at a backend" is already one URL, read at runtime (proven by #141: no rebuild after the proxied layout landed). **Load-bearing descriptor fields today:** `keri.{admin,boot,cesr}_url`; `witnesses.aids` with a **hard floor of two** (`assignWitnesses()` throws below two); `witnesses.urls`; and the `anysync` block (the Go backend refuses to start in prod without it). **Not read by the app at all:** `schema_server_url`, `config_server_url`, `witnesses.oobis`. The app hard-codes `http://schema-server:7723/oobi/<SAID>` in five files and has KERIA resolve it; it learns witness OOBIs from KERIA's own `/config` `iurls`, not the descriptor. **The org-config document** (`GET /api/config`: org AID/OOBI, admins, registry) is what flips a fresh install from "set up" to "join". On coa-shared the route exists but **every tenant's document is empty** — the ADR 0008 bootstrap-token/TOFU chain is ruled but not landed in any clone. **Coa's probe is broken against real backends:** `/api/validate-backend` probes `${url}/config`, but the real config server serves `/api/client-config`, so "Test my backend" 404s on the first probe (code reading, not run live); it also requires and TCP-probes any-sync. ADR 0006's "self-hosted URL" means "a matou-infrastructure config-server URL". **The gateway (IDIP path) already serves the five doors as public https names** — `keria.<apex>`, `keria-cesr.<apex>` (= `KERIA_CURLS`, better than coa-shared's docker-internal `http://keria:3902/`), `keria-boot.<apex>`, `witness.<apex>`, `schema.<apex>` — but **publishes no descriptor document**; its own app derives doors from the apex by convention. `/boot` is invite-gated (`X-Idss-Boot-Token` forward_auth, CORS origin pinned to the apex); signify's `client.boot()` sends no token → 403. **Schema disagreement:** matou `ECg6…` (Blake3, `communityName` **still `const "MATOU"`** at both matou-app and matou-infrastructure HEAD, ten-role enum) vs IDSS `ICyW…` (SHA2-256, parameterised name, `operator|member`). The gateway serves only `ICyW…`/`IOfw…`; matou-app's Go backend also hard-pins `ECg6…` for the space-join gate. **Version drift:** coa-shared = KERIA 0.2.0-rc1 + Mātou monkey-patches, signify-ts 0.3.0-rc2; gateway = stock KERIA 0.4.0 / signify-ts 0.4.0 (DDR 0207) — wire compatibility **unverified**. **Gap table rows that decide the descriptor grill (#1295):** #1 no descriptor on the gateway; #3 gated `/boot` vs a tokenless `boot()`; #7–#8 `schema-server` hostname + `ECg6…` schema unresolvable from the gateway's KERIA; #10 the two-witness floor vs the gateway's single witness by design; #15 the any-sync block the gateway can never serve; #17 the org-config document (empty on coa-shared too); #23 the KERIA version crossing; #24 coa's own probe-path bug. Row #22 is where the gateway is ahead (a public agent OOBI).
ben closed this issue 2026-09-07 19:59:22 +00:00
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.

Reference
Matou/idss#1294
No description provided.