rescue: breakglass-action-failed — a failed action is a first-class state #56

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

Parent

Feature spec: #21 (rescue).

What to build

A break-glass action that fails partway or does not hold is a first-class state (P8-S4x), never a toast claiming success. The screen names the action, its outcome ("failed at step 2 of 4 — deploy runner exited on start"), the load-bearing log excerpt, and exactly what it changed before failing — with nothing claimed recovered (DDR 0088 §6).

From here a failure is a fork, not a wall: the operator can Retry this action (same action, the log naming the blocker to clear first), or Pick a different action (back to P8-S4 with the evidence attached — e.g. move to a different node). And escalation is always reachable: when stuck but not lost, the operator can download the log bundle to hand a remote helper (the app-side Tier-2 start); when everything is lost, the operator can begin the Tier-3 ceremony (P8-S8); and if the dashboard is still up alongside the stuck app action, requesting remote support (P8-S6) remains available.

Thin UI over the breakglass helper (stdio NDJSON). The Tier-3 ceremony itself is tier3-ceremony's; this slice owns the failed-action state and its forks.

Acceptance criteria

  • (story 44) Given a break-glass action that fails partway or does not hold, when it fails, then P8-S4x names the action, its outcome ("failed at step 2 of 4 — deploy runner exited on start"), the load-bearing log excerpt, and exactly what it changed before failing — with nothing claimed recovered (DDR 0088 §6).
  • (story 45) Given P8-S4x, when the operator decides, then they can Retry this action (same action, the log naming the blocker to clear first), or Pick a different action (back to P8-S4 with the evidence attached, e.g. move to a different node).
  • (story 46) Given P8-S4x, when the operator is stuck but not lost, then they can download the log bundle to hand a remote helper (the app-side Tier-2 start); given everything is lost, when the operator chooses, then they begin the Tier-3 ceremony (P8-S8).
  • (story 46) Given the dashboard is still up alongside a stuck app action, when the operator chooses, then requesting remote support (P8-S6) remains available.

Blocked by

  • #45 — this is the failure state of a run action

Task manifest

task: rescue:breakglass-action-failed
implements_flow: p8-rescue
implements_edge: S4→S4x, S4x→S4, S4x→S8
wireframe: docs/ux/wireframes/p8-rescue/p8-s4x-action-failed.html
interface: breakglass helper (operator app, stdio NDJSON) — represent a failed/not-holding action as a state carrying named step, log excerpt, and what changed before failing (nothing claimed recovered, DDR 0088 §6); offer retry-same / pick-different (evidence attached), download log bundle, begin Tier-3, and (if the dashboard is up) request remote support
seam: breakglass helper seam tests (operator app, Go) — a fake clan adapter driving a partial-failure/not-holding action; assert P8-S4x carries the named step, log excerpt, and pre-failure changes with nothing claimed recovered, and that the retry / pick-different / bundle / Tier-3 / remote-support forks are offered
acceptance:
  - given: a break-glass action that fails partway or does not hold
    when: it fails
    then: P8-S4x names the action, its outcome, the load-bearing log excerpt, and exactly what it changed before failing — nothing claimed recovered (DDR 0088 §6)
  - given: P8-S4x
    when: the operator decides
    then: they can Retry this action (log naming the blocker) or Pick a different action (back to P8-S4 with evidence attached)
  - given: P8-S4x
    when: stuck but not lost / everything lost
    then: they can download the log bundle for a remote helper, or begin the Tier-3 ceremony (P8-S8)
  - given: the dashboard is still up alongside a stuck app action
    when: the operator chooses
    then: requesting remote support (P8-S6) remains available
depends_on: [breakglass-actions-run]
out_of_scope:
  - stories 39–43, 47 the actions themselves and the recovered screen — breakglass-actions-run's
  - stories 48–52 the Tier-3 ceremony — tier3-ceremony's
  - the dashboard-side remote-support engagement (P8-S6) — remote-support-engagement's
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build A break-glass action that **fails partway or does not hold** is a first-class state (P8-S4x), never a toast claiming success. The screen names the action, its outcome ("failed at step 2 of 4 — deploy runner exited on start"), the load-bearing **log excerpt**, and exactly **what it changed before failing** — with nothing claimed recovered (DDR 0088 §6). From here a failure is a **fork, not a wall**: the operator can **Retry this action** (same action, the log naming the blocker to clear first), or **Pick a different action** (back to P8-S4 with the evidence attached — e.g. move to a different node). And escalation is always reachable: when stuck but not lost, the operator can **download the log bundle** to hand a remote helper (the app-side Tier-2 start); when everything is lost, the operator can begin the **Tier-3 ceremony** (P8-S8); and if the dashboard is still up alongside the stuck app action, **requesting remote support** (P8-S6) remains available. Thin UI over the `breakglass` helper (stdio NDJSON). The Tier-3 ceremony itself is tier3-ceremony's; this slice owns the failed-action state and its forks. ## Acceptance criteria - [ ] (story 44) Given a break-glass action that fails partway or does not hold, when it fails, then P8-S4x names the action, its outcome ("failed at step 2 of 4 — deploy runner exited on start"), the load-bearing log excerpt, and exactly what it changed before failing — with nothing claimed recovered (DDR 0088 §6). - [ ] (story 45) Given P8-S4x, when the operator decides, then they can Retry this action (same action, the log naming the blocker to clear first), or Pick a different action (back to P8-S4 with the evidence attached, e.g. move to a different node). - [ ] (story 46) Given P8-S4x, when the operator is stuck but not lost, then they can download the log bundle to hand a remote helper (the app-side Tier-2 start); given everything is lost, when the operator chooses, then they begin the Tier-3 ceremony (P8-S8). - [ ] (story 46) Given the dashboard is still up alongside a stuck app action, when the operator chooses, then requesting remote support (P8-S6) remains available. ## Blocked by - #45 — this is the failure state of a run action ## Task manifest ```yaml task: rescue:breakglass-action-failed implements_flow: p8-rescue implements_edge: S4→S4x, S4x→S4, S4x→S8 wireframe: docs/ux/wireframes/p8-rescue/p8-s4x-action-failed.html interface: breakglass helper (operator app, stdio NDJSON) — represent a failed/not-holding action as a state carrying named step, log excerpt, and what changed before failing (nothing claimed recovered, DDR 0088 §6); offer retry-same / pick-different (evidence attached), download log bundle, begin Tier-3, and (if the dashboard is up) request remote support seam: breakglass helper seam tests (operator app, Go) — a fake clan adapter driving a partial-failure/not-holding action; assert P8-S4x carries the named step, log excerpt, and pre-failure changes with nothing claimed recovered, and that the retry / pick-different / bundle / Tier-3 / remote-support forks are offered acceptance: - given: a break-glass action that fails partway or does not hold when: it fails then: P8-S4x names the action, its outcome, the load-bearing log excerpt, and exactly what it changed before failing — nothing claimed recovered (DDR 0088 §6) - given: P8-S4x when: the operator decides then: they can Retry this action (log naming the blocker) or Pick a different action (back to P8-S4 with evidence attached) - given: P8-S4x when: stuck but not lost / everything lost then: they can download the log bundle for a remote helper, or begin the Tier-3 ceremony (P8-S8) - given: the dashboard is still up alongside a stuck app action when: the operator chooses then: requesting remote support (P8-S6) remains available depends_on: [breakglass-actions-run] out_of_scope: - stories 39–43, 47 the actions themselves and the recovered screen — breakglass-actions-run's - stories 48–52 the Tier-3 ceremony — tier3-ceremony's - the dashboard-side remote-support engagement (P8-S6) — remote-support-engagement's needs_human_decision: [] ```
Author
Owner

Done in 7cdb854 (on origin/main).

P8-S4x — a break-glass action that fails partway or does not hold is a first-class state, not a toast (DDR 0088 §6):

  • story 44 — the breakglass seam attaches a FailedAction to a move/restart/re-apply result that did not recover (internal/breakglass/actions.go, failedAction): it names the action, states its outcome ("failed at step 2 of 3 — deploy runner exited on start", or the partial-reach "not a full re-apply" line), carries the load-bearing log excerpt of the failing moment, and lists exactly what it changed before failing — only steps completed before the first failure, nothing claimed recovered.
  • story 45 — from FailedActionScreen.vue: Retry the action (re-runs the same action) or Pick a different action (back to P8-S4 with the actions in hand).
  • story 46 — Download log bundle (the app-side Tier-2 start), begin the Tier-3 ceremony (P8-S8), and — only when the dashboard is still up alongside the stuck app action (a probe finds a reachable dashboard-role node) — request remote support (P8-S6).

Thin UI FailedActionScreen.vue (to the wireframe's data-field/data-action contract) rendered by ActionsScreen.vue in place of #45's inline-outcome placeholder. The Tier-3 ceremony (P8-S8) and the dashboard-side remote-support engagement (P8-S6) stay their own slices — this slice only routes to them.

Evidence: 4 Go seam tests in internal/breakglass/actions_test.go + 9 Vue tests in app/tests/unit/failedActionScreen.test.ts (plus two actionsScreen.test.ts assertions updated to the P8-S4x screen). Full suites green: Go internal/…, app 141 tests, vue-tsc clean.

Done in `7cdb854` (on `origin/main`). P8-S4x — a break-glass action that fails partway or does not hold is a first-class **state, not a toast** (DDR 0088 §6): - **story 44** — the `breakglass` seam attaches a `FailedAction` to a move/restart/re-apply result that did not recover (`internal/breakglass/actions.go`, `failedAction`): it names the action, states its outcome ("failed at step 2 of 3 — deploy runner exited on start", or the partial-reach "not a full re-apply" line), carries the **load-bearing log excerpt** of the failing moment, and lists exactly **what it changed before failing** — only steps completed *before* the first failure, nothing claimed recovered. - **story 45** — from `FailedActionScreen.vue`: **Retry the action** (re-runs the same action) or **Pick a different action** (back to P8-S4 with the actions in hand). - **story 46** — **Download log bundle** (the app-side Tier-2 start), **begin the Tier-3 ceremony** (P8-S8), and — **only when the dashboard is still up** alongside the stuck app action (a probe finds a reachable dashboard-role node) — **request remote support** (P8-S6). Thin UI `FailedActionScreen.vue` (to the wireframe's `data-field`/`data-action` contract) rendered by `ActionsScreen.vue` in place of #45's inline-outcome placeholder. The Tier-3 ceremony (P8-S8) and the dashboard-side remote-support engagement (P8-S6) stay their own slices — this slice only routes to them. Evidence: 4 Go seam tests in `internal/breakglass/actions_test.go` + 9 Vue tests in `app/tests/unit/failedActionScreen.test.ts` (plus two `actionsScreen.test.ts` assertions updated to the P8-S4x screen). Full suites green: Go `internal/…`, app 141 tests, `vue-tsc` clean.
ben closed this issue 2026-07-25 23:20:44 +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#56
No description provided.