Destroy community 8/9 — destroy from the operator app when the gateway is gone (HOx → DCA2 / DCA2x) #1792

Closed
opened 2026-09-23 18:07:01 +00:00 by ben · 2 comments
Owner

Parent

#1784 (spec) — from #1781.

What to build

The surface #1751 was missing. On the unreachable operator home (HOx), a quiet Destroy community… sits last. It opens DCA2, which shows:

  • what the app knows goes (the name, the gateway's fate, the member count from the replica);
  • an honest note that no backup can be taken from here;
  • since when the gateway has been unreachable;
  • the printed destroy word, which arms confirm.

Confirm reveals the claim secret from the app's own sealed config, calls leave (ticket 1) and lands on DCA1 (ticket 7) with the outcome. When the app holds no readable claim secret, DCA2x says so with nothing sent: the name stays reserved, the server lapses per its lease, and support is named as the recovery path (#1751 item 2 stays out of scope).

Acceptance criteria

  • HOx carries a quiet destroy-community action last; pressing it opens DCA2 (spec #1784 story 39)
  • DCA2 renders destroy-headline, goes-name, gateway-fate, goes-members, no-backup-possible, gateway-unreachable (with since-when), confirm-word-prompt and app-uses-sealed-secret; confirm-destroy arms only on the word (40)
  • confirm → leave with the sealed secret → DCA1 with the outcome (41)
  • no readable secret → DCA2x (data-status="cannot-release") with why, what-stays-reserved, server-lapse, matou-recovery; nothing sent; close → HOx (42)
  • app vitest for HOx, DCA2 and DCA2x; helper tests with a fake broker and fake vars covering both paths

Design contract: DDR 0274, flow docs/ux/flows/destroy-community.mermaid, frames docs/ux/wireframes/destroy-community/ — the data-field / data-action / data-status attributes are the element contract design-verify checks.

Blocked by

## Parent #1784 (spec) — from #1781. ## What to build The surface #1751 was missing. On the **unreachable** operator home (HOx), a quiet **Destroy community…** sits last. It opens **DCA2**, which shows: - what the app knows goes (the name, the gateway's fate, the member count from the replica); - an honest note that **no backup can be taken** from here; - since when the gateway has been unreachable; - the printed destroy word, which arms confirm. Confirm reveals the claim secret from the app's own sealed config, calls `leave` (ticket 1) and lands on DCA1 (ticket 7) with the outcome. When the app holds **no readable claim secret**, DCA2x says so with nothing sent: the name stays reserved, the server lapses per its lease, and support is named as the recovery path (#1751 item 2 stays out of scope). ## Acceptance criteria - [ ] HOx carries a quiet `destroy-community` action last; pressing it opens DCA2 (spec #1784 story 39) - [ ] DCA2 renders `destroy-headline`, `goes-name`, `gateway-fate`, `goes-members`, `no-backup-possible`, `gateway-unreachable` (with since-when), `confirm-word-prompt` and `app-uses-sealed-secret`; `confirm-destroy` arms only on the word (40) - [ ] confirm → `leave` with the sealed secret → DCA1 with the outcome (41) - [ ] no readable secret → DCA2x (`data-status="cannot-release"`) with `why`, `what-stays-reserved`, `server-lapse`, `matou-recovery`; nothing sent; `close` → HOx (42) - [ ] app vitest for HOx, DCA2 and DCA2x; helper tests with a fake broker and fake vars covering both paths Design contract: DDR 0274, flow `docs/ux/flows/destroy-community.mermaid`, frames `docs/ux/wireframes/destroy-community/` — the `data-field` / `data-action` / `data-status` attributes are the element contract `design-verify` checks. ## Blocked by - #1785 - #1791

swarm-claim host=bens-mac-04 run=30974
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=30974 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1792 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1792,
  "status": "success",
  "commits": [
    "2178eb9e0056e9108283c8a1faea9667513cfd31"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/shell/CannotReleaseScreen.vue",
    "app/src/components/shell/DestroyFromAppScreen.vue",
    "app/src/components/shell/ForgetCommunityScreen.vue",
    "app/src/components/shell/OperatorHomeDestroyedScreen.vue",
    "app/src/components/shell/OperatorHomeScreen.vue",
    "app/src/components/shell/OperatorHomeUnreachableScreen.vue",
    "app/src/lib/destroyCommunity.ts",
    "app/src/lib/seat.ts",
    "app/tests/unit/destroyCommunity.test.ts",
    "app/tests/unit/destroyFromApp.test.ts",
    "app/tests/unit/operatorHomeUnreachable.test.ts"
  ],
  "tests": [
    {
      "command": "vitest run tests/unit/destroyFromApp.test.ts tests/unit/destroyCommunity.test.ts tests/unit/operatorHomeUnreachable.test.ts tests/unit/operatorHomeDestroyed.test.ts tests/unit/operatorHome.test.ts tests/unit/productTypeScale.test.ts tests/unit/quasarUiShell.test.ts tests/unit/forgetCommunity.test.ts tests/unit/restingRootDestroyed.test.ts",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "eslint (changed app files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "HOx carries a quiet destroy-community action last; pressing it opens DCA2 (story 39)": "OperatorHomeUnreachableScreen.vue adds a quiet link-variant `destroy-community` action in a set-apart `__foot`, emitting `destroy-community`; OperatorHomeScreen opens DCA2 on it. Proven by operatorHomeUnreachable.test.ts 'carries a quiet Destroy community action…' and destroyFromApp.test.ts 'HOx opens DCA2…'.",
    "DCA2 renders destroy-headline, goes-name, gateway-fate, goes-members, no-backup-possible, gateway-unreachable (since-when), confirm-word-prompt, app-uses-sealed-secret; confirm-destroy arms only on the word (40)": "DestroyFromAppScreen.vue renders every data-field; confirm-destroy carries data-status=disabled until the typed word matches. Proven by destroyFromApp.test.ts 'renders the whole element contract…' and 'arms confirm ONLY once the printed word is typed'.",
    "confirm → leave with the sealed secret → DCA1 with the outcome (41)": "onConfirm → DestroyCommunityController.destroyFromApp reveals the secret and calls leave; OperatorHomeScreen lands on DCA1 via a local destroyed marker. Proven by destroyFromApp.test.ts 'reveals the sealed secret, leaves, and emits destroyed…', 'a broker refusal still lands on DCA1, unconfirmed', and 'HOx opens DCA2; a confirmed destroy lands on DCA1…'.",
    "no readable secret → DCA2x (data-status=cannot-release) with why, what-stays-reserved, server-lapse, matou-recovery; nothing sent; close → HOx (42)": "destroyFromApp answers canRelease:false with no leave; CannotReleaseScreen.vue renders the four fields; close returns to HOx. Proven by destroyFromApp.test.ts 'no readable secret → cannot-release, with NOTHING sent', DCA2x contract test, and 'no readable secret lands on DCA2x; close returns to HOx'.",
    "app vitest for HOx, DCA2 and DCA2x; helper tests with a fake broker and fake vars covering both paths": "destroyFromApp.test.ts (16 tests) covers HOx→DCA2→DCA1/DCA2x; destroyCommunity.test.ts adds destroyFromApp seam cases with FakeDestroySeam (secret present, tombstone, no secret, broker refusal). All green."
  },
  "summary": "The operator app can destroy an unreachable community from HOx (DCA2) using its own sealed claim secret, landing on DCA1 with the outcome, or on DCA2x when no readable secret is held.",
  "blockers": []
}
**close-report** for #1792 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1792, "status": "success", "commits": [ "2178eb9e0056e9108283c8a1faea9667513cfd31" ], "changed_files": [ "STATUS.md", "app/src/components/shell/CannotReleaseScreen.vue", "app/src/components/shell/DestroyFromAppScreen.vue", "app/src/components/shell/ForgetCommunityScreen.vue", "app/src/components/shell/OperatorHomeDestroyedScreen.vue", "app/src/components/shell/OperatorHomeScreen.vue", "app/src/components/shell/OperatorHomeUnreachableScreen.vue", "app/src/lib/destroyCommunity.ts", "app/src/lib/seat.ts", "app/tests/unit/destroyCommunity.test.ts", "app/tests/unit/destroyFromApp.test.ts", "app/tests/unit/operatorHomeUnreachable.test.ts" ], "tests": [ { "command": "vitest run tests/unit/destroyFromApp.test.ts tests/unit/destroyCommunity.test.ts tests/unit/operatorHomeUnreachable.test.ts tests/unit/operatorHomeDestroyed.test.ts tests/unit/operatorHome.test.ts tests/unit/productTypeScale.test.ts tests/unit/quasarUiShell.test.ts tests/unit/forgetCommunity.test.ts tests/unit/restingRootDestroyed.test.ts", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "eslint (changed app files)", "exit_code": 0 } ], "criteria": { "HOx carries a quiet destroy-community action last; pressing it opens DCA2 (story 39)": "OperatorHomeUnreachableScreen.vue adds a quiet link-variant `destroy-community` action in a set-apart `__foot`, emitting `destroy-community`; OperatorHomeScreen opens DCA2 on it. Proven by operatorHomeUnreachable.test.ts 'carries a quiet Destroy community action…' and destroyFromApp.test.ts 'HOx opens DCA2…'.", "DCA2 renders destroy-headline, goes-name, gateway-fate, goes-members, no-backup-possible, gateway-unreachable (since-when), confirm-word-prompt, app-uses-sealed-secret; confirm-destroy arms only on the word (40)": "DestroyFromAppScreen.vue renders every data-field; confirm-destroy carries data-status=disabled until the typed word matches. Proven by destroyFromApp.test.ts 'renders the whole element contract…' and 'arms confirm ONLY once the printed word is typed'.", "confirm → leave with the sealed secret → DCA1 with the outcome (41)": "onConfirm → DestroyCommunityController.destroyFromApp reveals the secret and calls leave; OperatorHomeScreen lands on DCA1 via a local destroyed marker. Proven by destroyFromApp.test.ts 'reveals the sealed secret, leaves, and emits destroyed…', 'a broker refusal still lands on DCA1, unconfirmed', and 'HOx opens DCA2; a confirmed destroy lands on DCA1…'.", "no readable secret → DCA2x (data-status=cannot-release) with why, what-stays-reserved, server-lapse, matou-recovery; nothing sent; close → HOx (42)": "destroyFromApp answers canRelease:false with no leave; CannotReleaseScreen.vue renders the four fields; close returns to HOx. Proven by destroyFromApp.test.ts 'no readable secret → cannot-release, with NOTHING sent', DCA2x contract test, and 'no readable secret lands on DCA2x; close returns to HOx'.", "app vitest for HOx, DCA2 and DCA2x; helper tests with a fake broker and fake vars covering both paths": "destroyFromApp.test.ts (16 tests) covers HOx→DCA2→DCA1/DCA2x; destroyCommunity.test.ts adds destroyFromApp seam cases with FakeDestroySeam (secret present, tombstone, no secret, broker refusal). All green." }, "summary": "The operator app can destroy an unreachable community from HOx (DCA2) using its own sealed claim secret, landing on DCA1 with the outcome, or on DCA2x when no readable secret is held.", "blockers": [] } ``` </details>
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#1792
No description provided.