rescue: breakglass-actions-run — curated break-glass actions, reach-honest #45

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

Parent

Feature spec: #21 (rescue).

What to build

From the Situation screen, break-glass offers a curated set of actions (P8-S4) rather than raw tools, so the operator can act without systems expertise in the worst hour: Restart services on a node, Re-apply configuration, Move the control plane to a healthy node — each with a plain "what this does" line and its own Open log. Each action is honest about reach and is logged.

Re-apply configuration runs the replica's config against reachable nodes only, names the nodes it ran against and the nodes it could not reach and excluded, and never reports "configuration re-applied" over a half-reached fleet (DDR 0088 §5). Move the control plane to a healthy node is a first-class action — it redeploys the config repo, deploy runner, and dashboard onto the chosen node, every step logged — so a dead gateway is recoverable from the app. An action that works lands the operator on recovered (P8-S5): it states what recovered and where the dashboard is now (e.g. "Control plane now on rimu; your dashboard is back"), notes every action was written to the community's audit log on reconnect, and the app goes quiet (back to operator home). And the operator can Download a log bundle for a remote helper — the app-side Tier-2 start; a supporter guides while the control plane is down, and a supporter key waits for a live control plane (ADR 0089).

Thin UI over the breakglass helper (stdio NDJSON). The failed/not-holding action state (P8-S4x) is breakglass-action-failed's.

Acceptance criteria

  • (story 39) Given the Situation screen picks an action, when P8-S4 loads, then it offers a curated set — Restart services on a node, Re-apply configuration, Move the control plane to a healthy node — each with a plain "what this does" line and its own Open log.
  • (story 40) Given Re-apply configuration, when it runs, then it runs the replica's config against reachable nodes only, names the nodes it ran against and the nodes it could not reach and excluded, and never reports "configuration re-applied" over a half-reached fleet (DDR 0088 §5).
  • (story 41) Given a lost control-plane home, when the operator chooses Move the control plane to a healthy node, then it redeploys the config repo, deploy runner, and dashboard onto the chosen node, and every step is logged.
  • (story 42) Given a break-glass action recovers the fleet, when it completes, then P8-S5 shows the outcome (e.g. "Control plane now on rimu; your dashboard is back"), and the actions are audit-logged to the cluster on reconnect.
  • (story 43) Given P8-S4, when the operator chooses Download log bundle, then it produces the artifact to hand a remote helper — the app-side Tier-2 start; a supporter guides while the control plane is down, and a supporter key waits for a live control plane (ADR 0089).
  • (story 47) Given a break-glass recovery, when P8-S5 loads, then it states what recovered and where the dashboard is now, notes every action was written to the community's audit log on reconnect, and the app goes quiet (back to operator home).

Blocked by

  • #33 — actions run against the probed situation

Task manifest

task: rescue:breakglass-actions-run
implements_flow: p8-rescue
implements_edge: S4→S5, S4→S6, S5→P5-S1
wireframe:
  - docs/ux/wireframes/p8-rescue/p8-s4-actions.html
  - docs/ux/wireframes/p8-rescue/p8-s5-recovered.html
interface: "breakglass helper (operator app, stdio NDJSON) \u2014 offer curated actions (restart node services, re-apply config against reachable nodes only, move the control plane: repo+runner+dashboard); produce a Tier-2 log bundle; land recovery on P8-S5 with what recovered and where the dashboard is, actions audit-logged to the cluster on reconnect"
seam: breakglass helper seam tests (operator app, Go) — a fake clan adapter (partial-failure flows), the fake prober (reachable set), fake replica; assert re-apply names ran-against and excluded nodes and never claims a half-reached fleet, move-control-plane redeploys and logs every step, and recovery lands on P8-S5
acceptance:
  - given: the Situation screen picks an action
    when: P8-S4 loads
    then: it offers restart / re-apply / move-control-plane, each with a "what this does" line and its own Open log
  - given: Re-apply configuration
    when: it runs
    then: it runs against reachable nodes only, names ran-against and excluded nodes, and never reports re-applied over a half-reached fleet (DDR 0088 §5)
  - given: a lost control-plane home
    when: Move the control plane is chosen
    then: it redeploys the config repo, deploy runner, and dashboard onto the chosen node, every step logged
  - given: a break-glass action recovers the fleet
    when: it completes
    then: P8-S5 shows what recovered and where the dashboard is; actions are audit-logged to the cluster on reconnect and the app goes quiet
  - given: P8-S4
    when: Download log bundle is chosen
    then: it produces the artifact for a remote helper (app-side Tier-2 start; supporter guides, supporter key waits for a live control plane — ADR 0089)
depends_on: [situation-probe]
out_of_scope:
  - stories 44–46 the action-failed state (P8-S4x) — breakglass-action-failed's
  - the dashboard-side remote-support engagement and supporter-key minting (P8-S6) — remote-support-engagement's
  - stories 48–52 the Tier-3 ceremony — tier3-ceremony's
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build From the Situation screen, break-glass offers a **curated set of actions** (P8-S4) rather than raw tools, so the operator can act without systems expertise in the worst hour: **Restart services on a node**, **Re-apply configuration**, **Move the control plane to a healthy node** — each with a plain "what this does" line and its own Open log. Each action is honest about reach and is logged. **Re-apply configuration** runs the replica's config against **reachable nodes only**, names the nodes it ran against and the nodes it could not reach and excluded, and never reports "configuration re-applied" over a half-reached fleet (DDR 0088 §5). **Move the control plane to a healthy node** is a first-class action — it redeploys the config repo, deploy runner, and dashboard onto the chosen node, every step logged — so a dead gateway is recoverable from the app. An action that **works** lands the operator on **recovered** (P8-S5): it states what recovered and where the dashboard is now (e.g. "Control plane now on rimu; your dashboard is back"), notes every action was written to the community's audit log on reconnect, and the app goes quiet (back to operator home). And the operator can **Download a log bundle** for a remote helper — the app-side Tier-2 start; a supporter *guides* while the control plane is down, and a supporter key waits for a live control plane (ADR 0089). Thin UI over the `breakglass` helper (stdio NDJSON). The failed/not-holding action state (P8-S4x) is breakglass-action-failed's. ## Acceptance criteria - [ ] (story 39) Given the Situation screen picks an action, when P8-S4 loads, then it offers a curated set — Restart services on a node, Re-apply configuration, Move the control plane to a healthy node — each with a plain "what this does" line and its own Open log. - [ ] (story 40) Given Re-apply configuration, when it runs, then it runs the replica's config against reachable nodes only, names the nodes it ran against and the nodes it could not reach and excluded, and never reports "configuration re-applied" over a half-reached fleet (DDR 0088 §5). - [ ] (story 41) Given a lost control-plane home, when the operator chooses Move the control plane to a healthy node, then it redeploys the config repo, deploy runner, and dashboard onto the chosen node, and every step is logged. - [ ] (story 42) Given a break-glass action recovers the fleet, when it completes, then P8-S5 shows the outcome (e.g. "Control plane now on rimu; your dashboard is back"), and the actions are audit-logged to the cluster on reconnect. - [ ] (story 43) Given P8-S4, when the operator chooses Download log bundle, then it produces the artifact to hand a remote helper — the app-side Tier-2 start; a supporter guides while the control plane is down, and a supporter key waits for a live control plane (ADR 0089). - [ ] (story 47) Given a break-glass recovery, when P8-S5 loads, then it states what recovered and where the dashboard is now, notes every action was written to the community's audit log on reconnect, and the app goes quiet (back to operator home). ## Blocked by - #33 — actions run against the probed situation ## Task manifest ```yaml task: rescue:breakglass-actions-run implements_flow: p8-rescue implements_edge: S4→S5, S4→S6, S5→P5-S1 wireframe: - docs/ux/wireframes/p8-rescue/p8-s4-actions.html - docs/ux/wireframes/p8-rescue/p8-s5-recovered.html interface: "breakglass helper (operator app, stdio NDJSON) \u2014 offer curated actions (restart node services, re-apply config against reachable nodes only, move the control plane: repo+runner+dashboard); produce a Tier-2 log bundle; land recovery on P8-S5 with what recovered and where the dashboard is, actions audit-logged to the cluster on reconnect" seam: breakglass helper seam tests (operator app, Go) — a fake clan adapter (partial-failure flows), the fake prober (reachable set), fake replica; assert re-apply names ran-against and excluded nodes and never claims a half-reached fleet, move-control-plane redeploys and logs every step, and recovery lands on P8-S5 acceptance: - given: the Situation screen picks an action when: P8-S4 loads then: it offers restart / re-apply / move-control-plane, each with a "what this does" line and its own Open log - given: Re-apply configuration when: it runs then: it runs against reachable nodes only, names ran-against and excluded nodes, and never reports re-applied over a half-reached fleet (DDR 0088 §5) - given: a lost control-plane home when: Move the control plane is chosen then: it redeploys the config repo, deploy runner, and dashboard onto the chosen node, every step logged - given: a break-glass action recovers the fleet when: it completes then: P8-S5 shows what recovered and where the dashboard is; actions are audit-logged to the cluster on reconnect and the app goes quiet - given: P8-S4 when: Download log bundle is chosen then: it produces the artifact for a remote helper (app-side Tier-2 start; supporter guides, supporter key waits for a live control plane — ADR 0089) depends_on: [situation-probe] out_of_scope: - stories 44–46 the action-failed state (P8-S4x) — breakglass-action-failed's - the dashboard-side remote-support engagement and supporter-key minting (P8-S6) — remote-support-engagement's - stories 48–52 the Tier-3 ceremony — tier3-ceremony's needs_human_decision: [] ```
Author
Owner

Done in 154f7a0 (on origin/main).

Shipped the P8-S4 curated-actions surface and the P8-S5 recovery landing over the app-track breakglass orchestrator (ADR 0086, DDR 0088 §5, ADR 0089):

  • Curated actions (story 39) — Actions() offers Restart / Re-apply / Move the control plane, each a card with a plain "what this does" line and its own Open log. ActionsScreen.vue renders them to the wireframe data-field/data-action contract.
  • Re-apply against reachable nodes only (story 40, DDR 0088 §5) — Reapply() probes for the reachable set, runs ApplyConfig per reachable node, names ran-against AND excluded nodes, and never claims "configuration re-applied" over a half-reached fleet. Full reach + every step holding recovers; a partial re-apply is honest and claims nothing.
  • Move the control plane (story 41) — Move() redeploys the config repo, the deploy runner, and the dashboard onto the chosen node, every step logged.
  • Recovery lands on P8-S5 (stories 42, 47) — Recovery states what recovered and where the dashboard is now, notes every action was audit-logged to the cluster on reconnect (Applier.Audit), and the app goes quiet. RecoveredScreen.vue.
  • Download log bundle (story 43, ADR 0089) — Bundle() produces the Tier-2 artifact; the note states a supporter guides while the control plane is down and a supporter key waits for a live control plane.

New break-glass-owned Applier (clan adapter) drives restart/apply/deploy per node with partial failure as a first-class Step outcome; wired via WithApplier (situation-probe unchanged) and to a fake in helper breakglass until the real per-node applier slice lands. DashboardURL added to the Replica interface.

Evidence: internal/breakglass/{actions.go,actions_test.go} (8 Go seam tests), app/src/lib/breakglass.ts, app/src/components/rescue/{ActionsScreen,RecoveredScreen}.vue, app/tests/unit/actionsScreen.test.ts (8 Vue tests). Full suites green (Go internal/…, app 132 tests, vue-tsc clean). STATUS.md updated.

Out of scope (own slices): P8-S4x failed-action state (#56), remote-support engagement (P8-S6), Tier-3 ceremony (P8-S8).

Done in 154f7a0 (on origin/main). Shipped the P8-S4 curated-actions surface and the P8-S5 recovery landing over the app-track `breakglass` orchestrator (ADR 0086, DDR 0088 §5, ADR 0089): - **Curated actions (story 39)** — `Actions()` offers Restart / Re-apply / Move the control plane, each a card with a plain "what this does" line and its own Open log. `ActionsScreen.vue` renders them to the wireframe data-field/data-action contract. - **Re-apply against reachable nodes only (story 40, DDR 0088 §5)** — `Reapply()` probes for the reachable set, runs `ApplyConfig` per reachable node, names ran-against AND excluded nodes, and never claims "configuration re-applied" over a half-reached fleet. Full reach + every step holding recovers; a partial re-apply is honest and claims nothing. - **Move the control plane (story 41)** — `Move()` redeploys the config repo, the deploy runner, and the dashboard onto the chosen node, every step logged. - **Recovery lands on P8-S5 (stories 42, 47)** — `Recovery` states what recovered and where the dashboard is now, notes every action was audit-logged to the cluster on reconnect (`Applier.Audit`), and the app goes quiet. `RecoveredScreen.vue`. - **Download log bundle (story 43, ADR 0089)** — `Bundle()` produces the Tier-2 artifact; the note states a supporter guides while the control plane is down and a supporter key waits for a live control plane. New break-glass-owned `Applier` (clan adapter) drives restart/apply/deploy per node with partial failure as a first-class Step outcome; wired via `WithApplier` (situation-probe unchanged) and to a fake in `helper breakglass` until the real per-node applier slice lands. `DashboardURL` added to the Replica interface. Evidence: internal/breakglass/{actions.go,actions_test.go} (8 Go seam tests), app/src/lib/breakglass.ts, app/src/components/rescue/{ActionsScreen,RecoveredScreen}.vue, app/tests/unit/actionsScreen.test.ts (8 Vue tests). Full suites green (Go internal/…, app 132 tests, vue-tsc clean). STATUS.md updated. Out of scope (own slices): P8-S4x failed-action state (#56), remote-support engagement (P8-S6), Tier-3 ceremony (P8-S8).
ben closed this issue 2026-07-25 23:01:51 +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#45
No description provided.