a community can be founded but never given up — a Destroy community act on Settings: understand, back up, type DESTROY, confirm #1781

Open
opened 2026-09-23 17:07:37 +00:00 by ben · 3 comments
Owner

The gap

A community can be founded from the app but never given up from it.

ReleaseGateway has exactly one product call site — internal/founding/standup.go:1008 — and it fires only when an operator re-chooses away from a rented gateway during founding, abandoning a half-built community mid-walk:

"Re-choosing away from a rented gateway RELEASES the box at the broker (ADR 0189, amending DDR 0142 §4: 'named, not torn down' becomes 'named, and released'). The release presents the community's own claim secret (ADR 0135)"

Once founding completes and hands off, nothing offers to release the rental or free the name. Neither the operator app nor the control panel carries a "delete this community" surface — searched both. POST /v1/subdomains/offboard has no product caller at all (the Offboard* symbols in the tree are OffboardFate for departing members, unrelated).

So an operator who wants to stop has no way to release the server they are billed for or free the name they claimed. The rental lapses only when the broker's 24 h TTL reaper notices the heartbeat stopped. Every teardown to date has been a hand repair: decrypt the sealed idss-claim-secret clan var with sops, then curl the broker. That is what #1751 ran into from the other side — when the gateway is already dead the secret dies with it and even the hand path is gone.

The broker's own terms text, shown to the operator at founding, says: "you can leave any time (ADR 0189)." Today there is no way to.

The design (Ben's ruling, 2026-09-23)

A button on community settings. The panel already has a Settings tab (dashboard/src/lib/dashboardNavigator.ts:109); this is its home.

It opens a dialog that requires the operator to understand what happens. The dialog states plainly that this will delete all services and all associated data.

It recommends a backup first, and offers to take one there and then — a "create and download backup now" action inside the dialog, so the operator does not have to leave, go elsewhere, and come back.

To complete it, the operator types the word DESTROY and then presses confirm. Nothing else arms the confirm.

What confirm must actually do

  1. Release the rented gateway at the broker (POST /v1/gateways/release, bearing the community's claim secret — the verb already exists in internal/brokerclient/client.go:181).
  2. Offboard the community's name (POST /v1/subdomains/offboard, same credential), so the slug is genuinely free and not merely lapsed.
  3. Do it while the gateway is still alive, because the credential that authorises both is sealed on the gateway (#1751). A teardown offered only after the box is unreachable is no teardown at all.

Design questions this raises, which the frames need to answer

  1. The surface is hosted on the thing it destroys. The control panel is served by the gateway. The moment the release lands, the page the operator is looking at dies. So: where do they land, and who reports that it worked? Options worth drawing: the panel hands off to the operator app (which lives on their machine and survives), or the panel shows a terminal state served from something that outlives the box. A confirm button that kills its own page and leaves a browser error is not an answer.
  2. What "download the backup" means here. How large, how long, where it lands, and what it contains — and whether an existing offsite copy (DDR 0268 / ADR 0269) satisfies the recommendation or is separate from it. An operator who presses it must be told how long they are waiting.
  3. DESTROY and the interface's language. The panel is being taken through full translation (#1377). Typing an English word into a te reo interface is a decision, not a detail: is the typed word translated, or is it deliberately a fixed token in every language? Either is defensible; it needs ruling rather than defaulting.
  4. The members. Their accounts and their data go with it. Are they told, before or after, and by what?
  5. The name. Once offboarded, <slug>.idss.nz is free for anyone. Say so in the dialog — it is part of what "understand" means here.
  6. The unreachable case. What the same button does when the gateway is already gone. It cannot release without the secret; it should say so honestly rather than appear to work (ADR 0100), and that is the surface #1751 has been missing.

Asks

  1. Draw the frames: the Settings button in place, the dialog with its warning, the backup action and its in-progress and done states, the typed-DESTROY arming, and the terminal state after confirm — including where the operator lands when the page dies.
  2. A DDR for anything hard to reverse the frames force — chiefly where the act is driven from (panel vs app), given question 1.
  3. Then build: the settings surface, the dialog, and the confirm wiring the release + offboard, with an honest failure when the credential or the box is gone.

Relates to #1751 (offboard impossible once the gateway is dead — the same credential, from the other side), ADR 0189 (the lease and its "leave any time" terms), ADR 0135 (the claim secret), DDR 0142 §4, #1377 (translation), DDR 0268 / ADR 0269 (offsite backups). Found while tearing down the 2026-09-23 manual founding by hand for the third time.

## The gap **A community can be founded from the app but never given up from it.** `ReleaseGateway` has exactly one product call site — `internal/founding/standup.go:1008` — and it fires only when an operator **re-chooses away from a rented gateway during founding**, abandoning a half-built community mid-walk: > "Re-choosing away from a rented gateway RELEASES the box at the broker (ADR 0189, amending DDR 0142 §4: 'named, not torn down' becomes 'named, and released'). The release presents the community's own claim secret (ADR 0135)" Once founding completes and hands off, nothing offers to release the rental or free the name. Neither the operator app nor the control panel carries a "delete this community" surface — searched both. `POST /v1/subdomains/offboard` has **no product caller at all** (the `Offboard*` symbols in the tree are `OffboardFate` for departing members, unrelated). So an operator who wants to stop has no way to release the server they are billed for or free the name they claimed. The rental lapses only when the broker's 24 h TTL reaper notices the heartbeat stopped. Every teardown to date has been a hand repair: decrypt the sealed `idss-claim-secret` clan var with sops, then curl the broker. That is what #1751 ran into from the other side — when the gateway is already dead the secret dies with it and even the hand path is gone. The broker's own terms text, shown to the operator at founding, says: *"you can leave any time (ADR 0189)."* Today there is no way to. ## The design (Ben's ruling, 2026-09-23) **A button on community settings.** The panel already has a Settings tab (`dashboard/src/lib/dashboardNavigator.ts:109`); this is its home. **It opens a dialog that requires the operator to understand what happens.** The dialog states plainly that this will delete **all services and all associated data**. **It recommends a backup first, and offers to take one there and then** — a *"create and download backup now"* action inside the dialog, so the operator does not have to leave, go elsewhere, and come back. **To complete it, the operator types the word `DESTROY`** and then presses confirm. Nothing else arms the confirm. ## What confirm must actually do 1. Release the rented gateway at the broker (`POST /v1/gateways/release`, bearing the community's claim secret — the verb already exists in `internal/brokerclient/client.go:181`). 2. Offboard the community's name (`POST /v1/subdomains/offboard`, same credential), so the slug is genuinely free and not merely lapsed. 3. Do it while the gateway is still alive, because the credential that authorises both is sealed on the gateway (#1751). A teardown offered only after the box is unreachable is no teardown at all. ## Design questions this raises, which the frames need to answer 1. **The surface is hosted on the thing it destroys.** The control panel is served by the gateway. The moment the release lands, the page the operator is looking at dies. So: where do they land, and who reports that it worked? Options worth drawing: the panel hands off to the operator app (which lives on their machine and survives), or the panel shows a terminal state served from something that outlives the box. A confirm button that kills its own page and leaves a browser error is not an answer. 2. **What "download the backup" means here.** How large, how long, where it lands, and what it contains — and whether an existing offsite copy (DDR 0268 / ADR 0269) satisfies the recommendation or is separate from it. An operator who presses it must be told how long they are waiting. 3. **`DESTROY` and the interface's language.** The panel is being taken through full translation (#1377). Typing an English word into a te reo interface is a decision, not a detail: is the typed word translated, or is it deliberately a fixed token in every language? Either is defensible; it needs ruling rather than defaulting. 4. **The members.** Their accounts and their data go with it. Are they told, before or after, and by what? 5. **The name.** Once offboarded, `<slug>.idss.nz` is free for anyone. Say so in the dialog — it is part of what "understand" means here. 6. **The unreachable case.** What the same button does when the gateway is already gone. It cannot release without the secret; it should say so honestly rather than appear to work (ADR 0100), and that is the surface #1751 has been missing. ## Asks 1. Draw the frames: the Settings button in place, the dialog with its warning, the backup action and its in-progress and done states, the typed-`DESTROY` arming, and the terminal state after confirm — including where the operator lands when the page dies. 2. A DDR for anything hard to reverse the frames force — chiefly where the act is driven from (panel vs app), given question 1. 3. Then build: the settings surface, the dialog, and the confirm wiring the release + offboard, with an honest failure when the credential or the box is gone. Relates to #1751 (offboard impossible once the gateway is dead — the same credential, from the other side), ADR 0189 (the lease and its "leave any time" terms), ADR 0135 (the claim secret), DDR 0142 §4, #1377 (translation), DDR 0268 / ADR 0269 (offsite backups). Found while tearing down the 2026-09-23 manual founding by hand for the third time.
Author
Owner

Designed and confirmed, landed in 50b93f94. Asks 1 and 2 are done; ask 3 (build) is next via /to-spec.

  • DDR 0274 (accepted, amends DDR 0099). Ben's rulings of 2026-09-23:
    • the panel drives the act and the operator app backstops it;
    • the destroy word follows the locale and is printed in the dialog;
    • the operator tells the members;
    • Forget this community is a separate step in the app.
  • Flow: docs/ux/flows/destroy-community.mermaid, plus new edges DS → DC1 and HOx → DCA2 in shell.mermaid.
  • Frames: docs/ux/wireframes/destroy-community/.
    • DC1: the dialog (understand, back up, type the word).
    • DC2 / DC3 / DC3x: backup running, backup downloaded, backup failed partway.
    • DC4: armed.
    • DC5: destroying.
    • DC6 / DC6x / DC6u: destroyed, not destroyed, outcome unconfirmed.
    • DCA1–DCA3: the app's home after a destroy, destroy from the app, and Forget.
    • Amended: shell DS (Settings) and HOx.

How the frames answer the six design questions:

  1. The page dies. The loaded page draws its own ending (DC6) and checks the name with the broker's availability check itself. If the gateway goes quiet before replying, DC6u says what it can confirm and what it can't. Both hand off to the operator app.
  2. The backup. It is every dataset's P7-S6 export, one after another, with the size shown before it starts and rate and time left while it runs. Sealed offsite and This computer copies do not count as keeping a copy, and the dialog says so.
  3. The word. It is translated, printed in the dialog, and matched ignoring case and macrons.
  4. Members. The dialog names the member count and says IDSS won't notify them; the operator does.
  5. The name. The dialog says it is freed and that anyone can claim it afterwards.
  6. Unreachable gateway. HOx → DCA2 runs the destroy from the app with its sealed claim secret. When the app holds no readable secret, DCA2x says so honestly.

Owed at spec time (engineering ADRs):

  • one broker act that releases and offboards under a single claim-secret check (either order of two separate calls strands something, DDR 0274 §3);
  • the gateway endpoint that performs it;
  • CORS on /v1/subdomains/available so the panel can call it directly;
  • the app-side act;
  • Forget;
  • the translated word in the #1377 catalogue.
**Designed and confirmed, landed in 50b93f94. Asks 1 and 2 are done; ask 3 (build) is next via `/to-spec`.** - **DDR 0274** (accepted, amends DDR 0099). Ben's rulings of 2026-09-23: - the panel drives the act and the operator app backstops it; - the destroy word follows the locale and is printed in the dialog; - the operator tells the members; - Forget this community is a separate step in the app. - **Flow:** `docs/ux/flows/destroy-community.mermaid`, plus new edges DS → DC1 and HOx → DCA2 in `shell.mermaid`. - **Frames:** `docs/ux/wireframes/destroy-community/`. - DC1: the dialog (understand, back up, type the word). - DC2 / DC3 / DC3x: backup running, backup downloaded, backup failed partway. - DC4: armed. - DC5: destroying. - DC6 / DC6x / DC6u: destroyed, not destroyed, outcome unconfirmed. - DCA1–DCA3: the app's home after a destroy, destroy from the app, and Forget. - Amended: shell DS (Settings) and HOx. How the frames answer the six design questions: 1. **The page dies.** The loaded page draws its own ending (DC6) and checks the name with the broker's availability check itself. If the gateway goes quiet before replying, DC6u says what it can confirm and what it can't. Both hand off to the operator app. 2. **The backup.** It is every dataset's P7-S6 export, one after another, with the size shown before it starts and rate and time left while it runs. Sealed offsite and This computer copies do not count as keeping a copy, and the dialog says so. 3. **The word.** It is translated, printed in the dialog, and matched ignoring case and macrons. 4. **Members.** The dialog names the member count and says IDSS won't notify them; the operator does. 5. **The name.** The dialog says it is freed and that anyone can claim it afterwards. 6. **Unreachable gateway.** HOx → DCA2 runs the destroy from the app with its sealed claim secret. When the app holds no readable secret, DCA2x says so honestly. **Owed at spec time (engineering ADRs):** - one broker act that releases and offboards under a single claim-secret check (either order of two separate calls strands something, DDR 0274 §3); - the gateway endpoint that performs it; - CORS on `/v1/subdomains/available` so the panel can call it directly; - the app-side act; - Forget; - the translated word in the #1377 catalogue.
Author
Owner

Child spec filed: #1784 (no-triage, auto mode under ADR 0174). It carries 49 stories with acceptance criteria from the flow, three seams (the broker leave verb + tombstone + CORS on available; the control-API destroy preview + act; the app helper's leave / destroyed-detection / forget), and a live-proof drive that re-founds under the same name, the #1751 regression. Next: /to-tickets 1784.

Child spec filed: **#1784** (no-triage, auto mode under ADR 0174). It carries 49 stories with acceptance criteria from the flow, three seams (the broker `leave` verb + tombstone + CORS on `available`; the control-API destroy preview + act; the app helper's leave / destroyed-detection / forget), and a live-proof drive that re-founds under the same name, the #1751 regression. Next: `/to-tickets 1784`.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: no-triage (parent feature/design tracker; not a buildable unit).

This is the Destroy-community feature-scoping ticket, not a work item. Its state is fully resolved and fanned out:

  • Ask 1 (frames) and Ask 2 (DDR 0274) — done, landed in 50b93f94 (Ben's comments above).
  • Ask 3 (build) — decomposed via /to-spec → spec #1784 (no-triage) → /to-tickets → the nine implementation tickets #1785–#1793, each carrying ## Parent #1784 (spec) — from #1781 and already labelled ready-for-agent / ready-for-session.

It carries enhancement + priority but no state role, so it re-surfaces as untriaged every headless run while carrying no takeable work. Applying ready-for-agent would point the swarm at a whole-feature rebuild that already lives in its children; the correct disposition is the no-triage escape hatch, mirroring how its own spec #1784 is labelled.

Why this is a two-way door: it is a single label change, revertible at any time, and provable by the existing children (#1784 spec + #1785–#1793 build tickets) which carry the actionable work. It is on none of the one-way-door lists (no credentials, no security-posture change, no member-facing trust accept, no data destruction, no spend). It leaves the ticket open as the feature umbrella — Ben can close it when the children land, or veto this ruling and route it otherwise.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `no-triage` (parent feature/design tracker; not a buildable unit). This is the Destroy-community **feature-scoping ticket**, not a work item. Its state is fully resolved and fanned out: - **Ask 1 (frames)** and **Ask 2 (DDR 0274)** — done, landed in `50b93f94` (Ben's comments above). - **Ask 3 (build)** — decomposed via `/to-spec` → spec **#1784** (`no-triage`) → `/to-tickets` → the nine implementation tickets **#1785–#1793**, each carrying `## Parent #1784 (spec) — from #1781` and already labelled `ready-for-agent` / `ready-for-session`. It carries `enhancement` + `priority` but no *state* role, so it re-surfaces as untriaged every headless run while carrying no takeable work. Applying `ready-for-agent` would point the swarm at a whole-feature rebuild that already lives in its children; the correct disposition is the `no-triage` escape hatch, mirroring how its own spec #1784 is labelled. **Why this is a two-way door:** it is a single label change, revertible at any time, and provable by the existing children (#1784 spec + #1785–#1793 build tickets) which carry the actionable work. It is on none of the one-way-door lists (no credentials, no security-posture change, no member-facing trust accept, no data destruction, no spend). It leaves the ticket **open** as the feature umbrella — Ben can close it when the children land, or veto this ruling and route it otherwise.
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#1781
No description provided.