Coa-first founding: detect the Coa tenant, run point-at, offer Rehost — the walk, the copy, the irreversible steps #1304

Closed
opened 2026-09-07 19:43:01 +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

Coa-first founding (charting ruling 6): a community already has its Coa app on Mātou-hosted tenancy and now founds on IDSS. Decide: how S3a detects it (a Coa slug field → probe the tenant's descriptor; or the recognition credential as a hint), the point-at interim (the gateway's doorkeeper and roster run against coa-shared's KERIA — what the honest degradation row says, what the dashboard shows), the Rehost offer ("bring it home" as a founding leg vs a dashboard action later), the rehost walk itself from the research (founder types their Coa twelve words at S6a instead of minting; witness rotation; registry rebuild; tenant repoint; members' next launch), what the founder is told before an irreversible step, and the rescue posture during the move. Output: an ADR (this repo) + a DDR for the S3a/S6a amendments and the rehost screens + Coa's obligations (tenant repoint API).

## 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 **Coa-first founding** (charting ruling 6): a community already has its Coa app on Mātou-hosted tenancy and now founds on IDSS. Decide: how S3a detects it (a Coa slug field → probe the tenant's descriptor; or the recognition credential as a hint), the **point-at** interim (the gateway's doorkeeper and roster run against coa-shared's KERIA — what the honest degradation row says, what the dashboard shows), the **Rehost** offer ("bring it home" as a founding leg vs a dashboard action later), the rehost walk itself from the research (founder types their Coa twelve words at S6a instead of minting; witness rotation; registry rebuild; tenant repoint; members' next launch), what the founder is told before an irreversible step, and the rescue posture during the move. Output: an ADR (this repo) + a DDR for the S3a/S6a amendments and the rehost screens + Coa's obligations (tenant repoint API).

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: apply no-triage. This is a /wayfinder-pipeline ticket (a child of map #1293), not work for the triage state machine. It moves through the wayfinder fan-out (grill-ux-with-docs → wireframe → to-spec) one ticket per session under /wayfinder; the triage state roles (ready-for-agent / needs-design / etc.) do not apply until this feature reaches to-tickets. no-triage tells 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). These tickets are owned by the wayfinder pipeline in docs/agents/issue-tracker.md (Wayfinding operations), not by triage.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** apply `no-triage`. This is a `/wayfinder`-pipeline ticket (a child of map #1293), not work for the triage state machine. It moves through the wayfinder fan-out (`grill-ux-with-docs` → `wireframe` → `to-spec`) one ticket per session under `/wayfinder`; the triage state roles (`ready-for-agent` / `needs-design` / etc.) do not apply until this feature reaches `to-tickets`. `no-triage` tells 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`). These tickets are owned by the wayfinder pipeline in docs/agents/issue-tracker.md (Wayfinding operations), not by triage.
ben self-assigned this 2026-09-11 21:45:55 +00:00
Author
Owner

Resolution (Ben's rulings, 2026-09-11) — ADR 0238 + DDR 0239

ADR 0238 and DDR 0239, landed on main as 848d55cb.

The ticket's premise was reframed mid-grill. Ben asked whether an export + upload could just move the databases instead of re-creating each step. It can, and the stack agrees:

  • ADR 0201 already treats the community identity as its data directory — the rescue dataset is the keripy root + the witness's own state, backed up by quiesce, copy, resume (internal/keria/backup.go, restore.go). There is no KERIA database-restore verb; file-level copy is the supported technique here.
  • KERIA gives each agent its own directories named by the controller AID — agenting.py:333 habbing.Habery(name=caid, base=self.base, …), landing at keri/db/<caid>, keri/ks/<caid>, keri/reg/<caid>. Verified in the pinned patched image (keripy 1.2.2). One community's agents lift out of a shared host without touching another's.
  • Research #1303's killer finding — a wallet-minted AID's random per-AID salt does not re-derive from the twelve words — dissolves: the salt lives inside that agent's directory, sealed under the member's own passcode, and travels with it.

So the protocol walk (per-AID adoption, per-credential CESR export/push, vcp re-registration, a window in which the old agent must stay alive) is rejected as the primary path and kept only as the fallback if the keripy 1.2.2 → 1.2.13 crossing cannot be made to work.

The rulings

  1. The existing Coa identity IS the community identity. Founding adopts it; the gateway mints none, ever. No federation, no merge.
  2. Founding proves stewardship with the wallet — the founder signs in and presents a steward credential, checked by ADR 0236's own verifier against the community's own witnesses. Rejected: no proof (a slug is public), and proof by Mātou's recognition credential (that makes Mātou a gate on a community founding its own gateway).
  3. S6a does not run on this branch. Nothing is minted, so there is no phrase; the founder's words are the ones they already hold.
  4. Point-at is a resting place, not a waiting room — one founding-written trust row (issuer, schemas, and the foreign witnesses its KEL is read from), fail-closed intact, and an honest standing row on the operator's home that never nags.
  5. The tenant repoints to the community's apex from day one, and the gateway's descriptor hands back Mātou's addresses unchanged until each layer moves. Coa is out of the loop at the dangerous moment, and no rebuild is ever needed to move a pointer.
  6. Coming home is a data move, one short window, everyone at once. Every identity, credential, revocation, mailbox and contact arrives intact; no member acts or needs to be present.
  7. The handover is self-service, proved with the wallet — that community's agents only, delivered only to the address its own descriptor names, every steward told. Mātou is never a gate on a community leaving. Threat walk: a stolen steward credential yields credential contents and the membership graph, never anyone's keys (each salt stays sealed under its own twelve words).
  8. Rehearse sealed, then cut once — migrate, count against the source, serve nothing, community untouched; then copy, start, the gateway's own ADR 0201 backup, and only then destroy Mātou's copy. That is also the rescue posture: no moment is covered by neither copy. Rejected: one window covering the proof; and keeping the old copy cold as a fallback (reviving an extended key log is the unrecoverable split).
  9. The version crossing is proven before it is trusted (1.2.2 → 1.2.13; keripy's migration framework).
  10. Witnesses rotate, they do not move — add, catch up, cut; 1-of-N, one steward signs; keripy 1.2.13's catchup bug is the rehearsal's job.
  11. Content does not move under this ADR. Mātou runs one any-sync network for all its communities (network id, signing key, coordinator, Mongo — none re-derivable; research #1314 §5–6), so a gateway network is a new network seeded from members' own devices, and that has never been tested. Its own research ticket. Said out loud in the product: a community that comes home is sovereign over who its people are before it is sovereign over what they have written.
  12. The content stack is not installed at founding on this branch (amends ADR 0226 §8), while KERIA and the witness are — the witness must be publicly reachable and proven before a key log ever rotates onto it.

Surface (DDR 0239)

S3a asks first does your community already have its own app?; yes replaces DDR 0228's build-an-app choice and opens S3a-JOIN (community field → descriptor probe → wallet proof, Continue disabled until verified). Review names the adopted identity and says the phrase is the one you already hold. A standing identity-host row (hosted / moving / home) sits beside the app card with a plain detail panel and the bring-it-home entry. The walk is four frames — what will happen (both one-way doors named), the rehearsal (community untouched, counts shown), choose the window (typed-name confirm, drafted member notice), and the move (a live rail ending on home). Members see nothing but the ordinary cannot-reach state; their stewards tell them.

Amends

ADR 0226 (the descriptor may serve another backend's addresses; the any-sync install exception), DDR 0228 (S3a asks first), ADR 0236 (the trust list carries an adopted community read from foreign witnesses; founding reuses the verifier). CONTEXT.md: Rehost rewritten, Handover added. Charting ruling 6 stands, narrowed — founding makes the offer visible; the move is never a founding leg.

Left open on purpose

The content transfer (its own research ticket), and the two unverified load-bearing facts: the 1.2.2 → 1.2.13 database crossing and the catch-up bug on a long KEL. Both are what the rehearsal exists to expose.

## Resolution (Ben's rulings, 2026-09-11) — ADR 0238 + DDR 0239 **[ADR 0238](https://git.matou.nz/Matou/idss/src/branch/main/docs/adr/0238-coa-first-founding-adopts-the-community-identity-where-it-stands.md)** and **[DDR 0239](https://git.matou.nz/Matou/idss/src/branch/main/docs/adr/0239-design-the-coa-first-founding-branch-and-the-bring-it-home-walk.md)**, landed on `main` as `848d55cb`. **The ticket's premise was reframed mid-grill.** Ben asked whether an export + upload could just move the databases instead of re-creating each step. It can, and the stack agrees: - ADR 0201 already treats the community identity **as its data directory** — the rescue dataset is the keripy root + the witness's own state, backed up by quiesce, copy, resume (`internal/keria/backup.go`, `restore.go`). There is no KERIA database-restore verb; file-level copy is the supported technique here. - KERIA gives **each agent its own directories named by the controller AID** — `agenting.py:333` `habbing.Habery(name=caid, base=self.base, …)`, landing at `keri/db/<caid>`, `keri/ks/<caid>`, `keri/reg/<caid>`. Verified in the pinned patched image (keripy **1.2.2**). One community's agents lift out of a shared host without touching another's. - Research #1303's killer finding — a wallet-minted AID's **random per-AID salt** does not re-derive from the twelve words — **dissolves**: the salt lives inside that agent's directory, sealed under the member's own passcode, and travels with it. So the protocol walk (per-AID adoption, per-credential CESR export/push, `vcp` re-registration, a window in which the old agent must stay alive) is **rejected as the primary path** and kept only as the fallback if the keripy 1.2.2 → 1.2.13 crossing cannot be made to work. ### The rulings 1. **The existing Coa identity IS the community identity.** Founding adopts it; the gateway mints none, ever. No federation, no merge. 2. **Founding proves stewardship with the wallet** — the founder signs in and presents a steward credential, checked by ADR 0236's own verifier against the community's own witnesses. Rejected: no proof (a slug is public), and proof by Mātou's recognition credential (that makes Mātou a gate on a community founding its own gateway). 3. **S6a does not run on this branch.** Nothing is minted, so there is no phrase; the founder's words are the ones they already hold. 4. **Point-at is a resting place, not a waiting room** — one founding-written trust row (issuer, schemas, and the **foreign witnesses** its KEL is read from), fail-closed intact, and an honest standing row on the operator's home that never nags. 5. **The tenant repoints to the community's apex from day one**, and the gateway's descriptor **hands back Mātou's addresses unchanged** until each layer moves. Coa is out of the loop at the dangerous moment, and no rebuild is ever needed to move a pointer. 6. **Coming home is a data move, one short window, everyone at once.** Every identity, credential, revocation, mailbox and contact arrives intact; no member acts or needs to be present. 7. **The handover is self-service, proved with the wallet** — that community's agents only, delivered only to the address its own descriptor names, every steward told. Mātou is never a gate on a community leaving. Threat walk: a stolen steward credential yields credential contents and the membership graph, never anyone's keys (each salt stays sealed under its own twelve words). 8. **Rehearse sealed, then cut once** — migrate, count against the source, serve nothing, community untouched; then copy, start, **the gateway's own ADR 0201 backup**, and only then destroy Mātou's copy. That is also the rescue posture: no moment is covered by neither copy. Rejected: one window covering the proof; and keeping the old copy cold as a fallback (reviving an extended key log is the unrecoverable split). 9. **The version crossing is proven before it is trusted** (1.2.2 → 1.2.13; keripy's migration framework). 10. **Witnesses rotate, they do not move** — add, catch up, cut; 1-of-N, one steward signs; keripy 1.2.13's `catchup` bug is the rehearsal's job. 11. **Content does not move under this ADR.** Mātou runs **one** any-sync network for all its communities (network id, signing key, coordinator, Mongo — none re-derivable; research #1314 §5–6), so a gateway network is a **new** network seeded from members' own devices, and that has never been tested. Its own research ticket. Said out loud in the product: a community that comes home is sovereign over who its people are before it is sovereign over what they have written. 12. **The content stack is not installed at founding on this branch** (amends ADR 0226 §8), while KERIA and the witness are — the witness must be publicly reachable and proven before a key log ever rotates onto it. ### Surface (DDR 0239) S3a asks first *does your community already have its own app?*; **yes** replaces DDR 0228's build-an-app choice and opens **S3a-JOIN** (community field → descriptor probe → wallet proof, Continue disabled until verified). Review names the adopted identity and says the phrase is the one you already hold. A standing **identity-host** row (`hosted` / `moving` / `home`) sits beside the app card with a plain detail panel and the **bring-it-home** entry. The walk is four frames — what will happen (both one-way doors named), the rehearsal (community untouched, counts shown), choose the window (typed-name confirm, drafted member notice), and the move (a live rail ending on `home`). Members see nothing but the ordinary cannot-reach state; their stewards tell them. ### Amends ADR 0226 (the descriptor may serve another backend's addresses; the any-sync install exception), DDR 0228 (S3a asks first), ADR 0236 (the trust list carries an adopted community read from foreign witnesses; founding reuses the verifier). CONTEXT.md: **Rehost** rewritten, **Handover** added. Charting ruling 6 stands, narrowed — founding makes the offer visible; the move is never a founding leg. ### Left open on purpose The content transfer (its own research ticket), and the two unverified load-bearing facts: the 1.2.2 → 1.2.13 database crossing and the catch-up bug on a long KEL. Both are what the rehearsal exists to expose.
ben closed this issue 2026-09-12 02:11:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1304
No description provided.