rescue: no-tier1-material — honest states when break-glass can't act #44

Closed
opened 2026-07-25 04:55:33 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #21 (rescue).

What to build

When break-glass's own preconditions fail, the app says why and who can act instead rather than rendering dead tools (P8-S3x, DDR 0092). This slice is the three honest states of "no usable Tier-1 material":

  • Variant A — the operator's key is revoked. The screen states when and by whom it was revoked, names another operator who holds a valid key and can rescue from their own app, and points at restoring access from the dashboard's operator-key ledger — never a Situation screen of dead tools.
  • Variant B — this machine holds no replica (fresh install or new laptop). The screen states rescue needs the replica (config and address book), points at another operator's synced app, and — if the operator's key is valid — offers Clone the config repo to rescue from here.
  • Variant C — no operator holds usable Tier-1 material (every key gone or revoked and no machine holds a usable replica). This is the only variant that routes onward to the Tier-3 recovery ceremony (P8-S8): "everything lost" is a conclusion reached through a door, not a button beside working tools, so the ceremony is never begun casually.

And any S3x variant offers Check again: when material is regained (key restored, replica cloned), it returns to the Situation screen (P8-S3).

Thin UI over the breakglass helper (stdio NDJSON). The app says WHO can act (DDR 0092). Routes to Tier-3 (variant C) land in tier3-ceremony.

Acceptance criteria

  • (story 36) Given the operator's key is revoked, when break-glass checks its preconditions, then P8-S3x variant A states when and by whom it was revoked, names another operator who holds a valid key and can rescue from their own app, and points at restoring access from the dashboard's operator-key ledger — never a Situation screen of dead tools (DDR 0092).
  • (story 37) Given this machine holds no replica (fresh install or new laptop), when break-glass checks its preconditions, then P8-S3x variant B states rescue needs the replica (config and address book), points at another operator's synced app, and — if the key is valid — offers Clone the config repo to rescue from here.
  • (story 38) Given no operator holds usable Tier-1 material — every key gone or revoked and no machine holds a usable replica, when break-glass checks, then P8-S3x variant C states this plainly and is the only variant that routes onward to the Tier-3 recovery ceremony (P8-S8).
  • (story 38) Given any S3x variant, when material is regained (key restored, replica cloned), then Check again returns to the Situation screen (P8-S3).

Blocked by

  • #33 — S3x is the precondition-failure branch of the probe

Task manifest

task: rescue:no-tier1-material
implements_flow: p8-rescue
implements_edge: S3→S3x, S3x→S3, S3x→S8
wireframe: docs/ux/wireframes/p8-rescue/p8-s3x-no-usable-tier1-material.html
interface: breakglass helper (operator app, stdio NDJSON) — check Tier-1 preconditions (valid operator key present?, usable replica present?) and return the honest S3x variant (A revoked key → who can act + ledger fix; B no replica → another app or clone-if-key-valid; C no operator holds material → route to Tier-3); Check again re-evaluates and returns to P8-S3
seam: breakglass helper seam tests (operator app, Go) — fake Tier-1 material (key present/revoked/absent, replica present/absent per DDR 0092); assert each variant's message and route, that only variant C routes to Tier-3, and that regained material returns to the Situation screen
acceptance:
  - given: the operator's key is revoked
    when: break-glass checks preconditions
    then: P8-S3x variant A states when/by whom it was revoked, names another operator who can rescue, and points at the operator-key ledger restore — never dead tools (DDR 0092)
  - given: this machine holds no replica
    when: break-glass checks preconditions
    then: P8-S3x variant B states rescue needs the replica, points at another operator's synced app, and offers Clone the config repo if the key is valid
  - given: no operator holds usable Tier-1 material
    when: break-glass checks
    then: P8-S3x variant C states this plainly and is the only variant routing to the Tier-3 ceremony (P8-S8)
  - given: any S3x variant
    when: material is regained (key restored, replica cloned)
    then: Check again returns to the Situation screen (P8-S3)
depends_on: [situation-probe]
out_of_scope:
  - the dual-path probe and stale-replica gate (P8-S3) — situation-probe's
  - stories 48–52 the Tier-3 ceremony itself (P8-S8) — tier3-ceremony's
  - restoring the operator key from the ledger (P8-S3x variant-A fix on the dashboard) — operator-key-ledger's
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build When break-glass's own preconditions fail, the app says **why and who can act instead** rather than rendering dead tools (P8-S3x, DDR 0092). This slice is the three honest states of "no usable Tier-1 material": - **Variant A — the operator's key is revoked.** The screen states when and by whom it was revoked, names another operator who holds a valid key and can rescue from their own app, and points at **restoring access from the dashboard's operator-key ledger** — never a Situation screen of dead tools. - **Variant B — this machine holds no replica** (fresh install or new laptop). The screen states rescue needs the replica (config and address book), points at another operator's synced app, and — **if the operator's key is valid** — offers **Clone the config repo** to rescue from here. - **Variant C — no operator holds usable Tier-1 material** (every key gone or revoked and no machine holds a usable replica). This is the only variant that routes onward to the **Tier-3 recovery ceremony** (P8-S8): "everything lost" is a conclusion reached through a door, not a button beside working tools, so the ceremony is never begun casually. And any S3x variant offers **Check again**: when material is regained (key restored, replica cloned), it returns to the Situation screen (P8-S3). Thin UI over the `breakglass` helper (stdio NDJSON). The app **says WHO can act** (DDR 0092). Routes to Tier-3 (variant C) land in tier3-ceremony. ## Acceptance criteria - [ ] (story 36) Given the operator's key is revoked, when break-glass checks its preconditions, then P8-S3x variant A states when and by whom it was revoked, names another operator who holds a valid key and can rescue from their own app, and points at restoring access from the dashboard's operator-key ledger — never a Situation screen of dead tools (DDR 0092). - [ ] (story 37) Given this machine holds no replica (fresh install or new laptop), when break-glass checks its preconditions, then P8-S3x variant B states rescue needs the replica (config and address book), points at another operator's synced app, and — if the key is valid — offers Clone the config repo to rescue from here. - [ ] (story 38) Given no operator holds usable Tier-1 material — every key gone or revoked and no machine holds a usable replica, when break-glass checks, then P8-S3x variant C states this plainly and is the only variant that routes onward to the Tier-3 recovery ceremony (P8-S8). - [ ] (story 38) Given any S3x variant, when material is regained (key restored, replica cloned), then Check again returns to the Situation screen (P8-S3). ## Blocked by - #33 — S3x is the precondition-failure branch of the probe ## Task manifest ```yaml task: rescue:no-tier1-material implements_flow: p8-rescue implements_edge: S3→S3x, S3x→S3, S3x→S8 wireframe: docs/ux/wireframes/p8-rescue/p8-s3x-no-usable-tier1-material.html interface: breakglass helper (operator app, stdio NDJSON) — check Tier-1 preconditions (valid operator key present?, usable replica present?) and return the honest S3x variant (A revoked key → who can act + ledger fix; B no replica → another app or clone-if-key-valid; C no operator holds material → route to Tier-3); Check again re-evaluates and returns to P8-S3 seam: breakglass helper seam tests (operator app, Go) — fake Tier-1 material (key present/revoked/absent, replica present/absent per DDR 0092); assert each variant's message and route, that only variant C routes to Tier-3, and that regained material returns to the Situation screen acceptance: - given: the operator's key is revoked when: break-glass checks preconditions then: P8-S3x variant A states when/by whom it was revoked, names another operator who can rescue, and points at the operator-key ledger restore — never dead tools (DDR 0092) - given: this machine holds no replica when: break-glass checks preconditions then: P8-S3x variant B states rescue needs the replica, points at another operator's synced app, and offers Clone the config repo if the key is valid - given: no operator holds usable Tier-1 material when: break-glass checks then: P8-S3x variant C states this plainly and is the only variant routing to the Tier-3 ceremony (P8-S8) - given: any S3x variant when: material is regained (key restored, replica cloned) then: Check again returns to the Situation screen (P8-S3) depends_on: [situation-probe] out_of_scope: - the dual-path probe and stale-replica gate (P8-S3) — situation-probe's - stories 48–52 the Tier-3 ceremony itself (P8-S8) — tier3-ceremony's - restoring the operator key from the ledger (P8-S3x variant-A fix on the dashboard) — operator-key-ledger's needs_human_decision: [] ```
Author
Owner

Done — landed on origin/main as 66e53b8.

P8-S3x "no usable Tier-1 material" is now a first-class state (DDR 0092): when break-glass's own preconditions fail, the app says why and who can act rather than rendering dead tools.

Seam (internal/breakglass/material.go, new Tier1Material queried fact + Material/CloneReplica; stdio ops material/clone):

  • Variant A — key revoked (story 36): states when/by whom, names another operator who holds a valid key and can rescue from their own app, points at the operator-key ledger restore — never a Situation screen of dead tools.
  • Variant B — no replica here (story 37): points at another operator's synced app and offers Clone the config repo when the key is valid (not offered for a fresh install with no key).
  • Variant C — no operator holds usable material (story 38): every key gone/revoked and no usable replica anywhere — stated plainly and the only variant that routes onward to the Tier-3 ceremony (P8-S8); decided first so "everything lost" is never concluded while an operator or replica can still act.
  • Check again / Clone re-evaluate; regained material returns Usable → back to the Situation screen (P8-S3).

UI (app/src/components/rescue/NoTier1MaterialScreen.vue, thin over the seam, to the wireframe's data-field/data-action/data-status contract; breakglass.ts gains the OperatorKey/Peer/MaterialStatus types + material/clone ops + fake mirror).

Evidence: 8 Go seam tests + 8 Vue tests (app suite 149 green); go build/vet/test ./... green, gofmt clean; vue-tsc + eslint clean.

Out of scope (their own slices): the dashboard-side operator-key ledger restore (variant-A fix), the Tier-3 ceremony itself (P8-S8).

Done — landed on `origin/main` as `66e53b8`. **P8-S3x "no usable Tier-1 material" is now a first-class state (DDR 0092):** when break-glass's own preconditions fail, the app says *why and who can act* rather than rendering dead tools. **Seam** (`internal/breakglass/material.go`, new `Tier1Material` queried fact + `Material`/`CloneReplica`; stdio ops `material`/`clone`): - **Variant A — key revoked** (story 36): states when/by whom, names another operator who holds a valid key and can rescue from *their own app*, points at the operator-key ledger restore — never a Situation screen of dead tools. - **Variant B — no replica here** (story 37): points at another operator's synced app and offers **Clone the config repo** when the key is valid (not offered for a fresh install with no key). - **Variant C — no operator holds usable material** (story 38): every key gone/revoked *and* no usable replica anywhere — stated plainly and the **only** variant that routes onward to the Tier-3 ceremony (P8-S8); decided first so "everything lost" is never concluded while an operator or replica can still act. - **Check again / Clone** re-evaluate; regained material returns `Usable` → back to the Situation screen (P8-S3). **UI** (`app/src/components/rescue/NoTier1MaterialScreen.vue`, thin over the seam, to the wireframe's `data-field`/`data-action`/`data-status` contract; `breakglass.ts` gains the `OperatorKey`/`Peer`/`MaterialStatus` types + `material`/`clone` ops + fake mirror). **Evidence:** 8 Go seam tests + 8 Vue tests (app suite 149 green); `go build/vet/test ./...` green, gofmt clean; `vue-tsc` + eslint clean. Out of scope (their own slices): the dashboard-side operator-key ledger restore (variant-A fix), the Tier-3 ceremony itself (P8-S8).
ben closed this issue 2026-07-25 23:40:56 +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#44
No description provided.