rescue: situation-probe — dual-path break-glass reachability, honest per node #33

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

Parent

Feature spec: #21 (rescue).

What to build

When the control plane, the dashboard, or the mesh coordination is down, no dashboard can serve its own rescue, so the operator app is the standing fallback seat and drives the fleet directly — break-glass. The Situation probe (P8-S3) is its entry: it probes every node on both paths and shows both — a MESH column and an SSH column, mesh first with direct SSH as fallback and the config repo replica as the address book (ADR 0087) — and states plainly what is down (e.g. "karaka, running your dashboard, is unreachable; the others are fine — you can move the control plane"). A lost control plane or dashboard routed here from monitoring (story 3) lands on this surface rather than being asked to rescue a dead dashboard from that dashboard.

The probe is honest per node: a node reachable on neither path is named unreachable and excluded honestly, never silently skipped; a LAN-only node unreachable from the operator's current network is reported as exactly that, with the remedy stated ("rescue from a machine on the community's network"). It shows the replica's freshness ("synced 12 min ago — safe to act from"), and a stale replica raises a gating confirm (not a passive badge) before any re-apply of configuration — stating the replica is N days behind and that re-applying can push stale history over the fleet, requiring explicit confirmation (ADR 0032, DDR 0092) — while probing and restarting node services stay un-gated.

Thin UI over the breakglass helper via its stdio NDJSON contract (ADR 0051). The prober is breakglass-owned, not a clan seam verb (ADR 0087) — no repo-root seam is amended. Onward routes (S3→S4 actions, S3→S3x no-material) land in their own slices.

Acceptance criteria

  • (story 3) Given monitoring escalates a lost control plane or dashboard, when the operator goes to rescue, then the route is to the operator app's break-glass surface (P8-S3), because the dashboard cannot serve its own rescue (ADRs 0086/0087).
  • (story 32) Given break-glass opens (P8-S3), when it probes, then it shows every node with a MESH column and an SSH column — mesh first, direct SSH fallback with the replica as the address book (ADR 0087) — and states what is down (e.g. "karaka, running your dashboard, is unreachable; the others are fine — you can move the control plane").
  • (story 33) Given a node answers on neither mesh nor SSH, when the probe completes, then it is named unreachable and excluded honestly, never silently skipped; a LAN-only node unreachable from the current network is reported as exactly that, with the remedy stated ("rescue from a machine on the community's network").
  • (story 34) Given the config replica, when P8-S3 loads, then it shows the replica's status and age (e.g. "synced 12 min ago — safe to act from").
  • (story 35) Given a replica N days behind, when the operator attempts to re-apply configuration, then a gating confirm (not a passive badge) states the replica is N days behind and that re-applying can push stale history over the fleet, and requires explicit confirmation (ADR 0032, DDR 0092).
  • (story 35) Given the same stale replica, when the operator probes or restarts node services, then those stay available un-gated; it is only re-applying possibly out-of-date config that the warning gates.

Blocked by

  • #25 — break-glass drives the fleet (SSH fallback path)
  • #28 — the app is the standing fallback seat for break-glass

Task manifest

task: rescue:situation-probe
implements_flow: p8-rescue
implements_edge: P5-S4→S3, S3→S4, S3→S4 (stale-warn confirm), S3→S3x
wireframe: docs/ux/wireframes/p8-rescue/p8-s3-situation.html
interface: breakglass helper (operator app, stdio NDJSON, ADR 0051) — probe every node on both paths (mesh first, direct SSH fallback with the replica as address book); return a per-node MESH/SSH table with unreachable named; report replica freshness; gate re-apply behind a stale-replica confirm; the prober is breakglass-owned, not a clan seam verb (ADR 0087)
seam: breakglass helper seam tests (operator app, Go) — a fake prober (per-node mesh/SSH answers on command), a fake replica (freshness controllable — assert the ADR 0032 staleness gate), a fake clan adapter; assert the dual-path table, unreachable-node honesty, and that probing/restarting stay un-gated while re-apply is gated
acceptance:
  - given: monitoring escalates a lost control plane or dashboard
    when: the operator goes to rescue
    then: the route is to the operator app's break-glass surface (P8-S3)
  - given: break-glass opens (P8-S3)
    when: it probes
    then: it shows every node with a MESH and an SSH column (mesh first, SSH fallback, replica as address book) and states what is down
  - given: a node answers on neither path
    when: the probe completes
    then: it is named unreachable and excluded honestly, never silently skipped; a LAN-only unreachable node is reported as exactly that with the remedy
  - given: the config replica
    when: P8-S3 loads
    then: it shows the replica's status and age
  - given: a replica N days behind
    when: the operator attempts to re-apply configuration
    then: a gating confirm states it is N days behind and that re-applying can push stale history, requiring explicit confirmation (ADR 0032, DDR 0092); probing and restarting stay un-gated
depends_on: [bootstrap:clan-seam, shell:app-side-shell]
out_of_scope:
  - stories 36–38 the no-usable-Tier-1-material states (S3x) — no-tier1-material's
  - stories 39–43, 47 the curated break-glass actions — breakglass-actions-run's
  - the dashboard-track ladders (P8-S1/S2) — service-ladder's / device-ladder's
needs_human_decision: []
## Parent Feature spec: #21 (rescue). ## What to build When the control plane, the dashboard, or the mesh coordination is down, no dashboard can serve its own rescue, so the operator app is the standing fallback seat and drives the fleet directly — **break-glass**. The **Situation probe** (P8-S3) is its entry: it probes **every node on both paths** and shows both — a MESH column and an SSH column, mesh first with direct SSH as fallback and the config repo replica as the address book (ADR 0087) — and states plainly what is down (e.g. "karaka, running your dashboard, is unreachable; the others are fine — you can move the control plane"). A lost control plane or dashboard routed here from monitoring (story 3) lands on this surface rather than being asked to rescue a dead dashboard from that dashboard. The probe is **honest per node**: a node reachable on **neither** path is named **unreachable** and excluded honestly, never silently skipped; a LAN-only node unreachable from the operator's current network is reported as exactly that, with the remedy stated ("rescue from a machine on the community's network"). It shows the **replica's freshness** ("synced 12 min ago — safe to act from"), and a **stale replica** raises a **gating confirm** (not a passive badge) before any re-apply of configuration — stating the replica is N days behind and that re-applying can push stale history over the fleet, requiring explicit confirmation (ADR 0032, DDR 0092) — while probing and restarting node services stay un-gated. Thin UI over the `breakglass` helper via its stdio NDJSON contract (ADR 0051). The prober is **breakglass-owned, not a clan seam verb** (ADR 0087) — no repo-root seam is amended. Onward routes (S3→S4 actions, S3→S3x no-material) land in their own slices. ## Acceptance criteria - [ ] (story 3) Given monitoring escalates a lost control plane or dashboard, when the operator goes to rescue, then the route is to the operator app's break-glass surface (P8-S3), because the dashboard cannot serve its own rescue (ADRs 0086/0087). - [ ] (story 32) Given break-glass opens (P8-S3), when it probes, then it shows every node with a MESH column and an SSH column — mesh first, direct SSH fallback with the replica as the address book (ADR 0087) — and states what is down (e.g. "karaka, running your dashboard, is unreachable; the others are fine — you can move the control plane"). - [ ] (story 33) Given a node answers on neither mesh nor SSH, when the probe completes, then it is named unreachable and excluded honestly, never silently skipped; a LAN-only node unreachable from the current network is reported as exactly that, with the remedy stated ("rescue from a machine on the community's network"). - [ ] (story 34) Given the config replica, when P8-S3 loads, then it shows the replica's status and age (e.g. "synced 12 min ago — safe to act from"). - [ ] (story 35) Given a replica N days behind, when the operator attempts to re-apply configuration, then a gating confirm (not a passive badge) states the replica is N days behind and that re-applying can push stale history over the fleet, and requires explicit confirmation (ADR 0032, DDR 0092). - [ ] (story 35) Given the same stale replica, when the operator probes or restarts node services, then those stay available un-gated; it is only re-applying possibly out-of-date config that the warning gates. ## Blocked by - #25 — break-glass drives the fleet (SSH fallback path) - #28 — the app is the standing fallback seat for break-glass ## Task manifest ```yaml task: rescue:situation-probe implements_flow: p8-rescue implements_edge: P5-S4→S3, S3→S4, S3→S4 (stale-warn confirm), S3→S3x wireframe: docs/ux/wireframes/p8-rescue/p8-s3-situation.html interface: breakglass helper (operator app, stdio NDJSON, ADR 0051) — probe every node on both paths (mesh first, direct SSH fallback with the replica as address book); return a per-node MESH/SSH table with unreachable named; report replica freshness; gate re-apply behind a stale-replica confirm; the prober is breakglass-owned, not a clan seam verb (ADR 0087) seam: breakglass helper seam tests (operator app, Go) — a fake prober (per-node mesh/SSH answers on command), a fake replica (freshness controllable — assert the ADR 0032 staleness gate), a fake clan adapter; assert the dual-path table, unreachable-node honesty, and that probing/restarting stay un-gated while re-apply is gated acceptance: - given: monitoring escalates a lost control plane or dashboard when: the operator goes to rescue then: the route is to the operator app's break-glass surface (P8-S3) - given: break-glass opens (P8-S3) when: it probes then: it shows every node with a MESH and an SSH column (mesh first, SSH fallback, replica as address book) and states what is down - given: a node answers on neither path when: the probe completes then: it is named unreachable and excluded honestly, never silently skipped; a LAN-only unreachable node is reported as exactly that with the remedy - given: the config replica when: P8-S3 loads then: it shows the replica's status and age - given: a replica N days behind when: the operator attempts to re-apply configuration then: a gating confirm states it is N days behind and that re-applying can push stale history, requiring explicit confirmation (ADR 0032, DDR 0092); probing and restarting stay un-gated depends_on: [bootstrap:clan-seam, shell:app-side-shell] out_of_scope: - stories 36–38 the no-usable-Tier-1-material states (S3x) — no-tier1-material's - stories 39–43, 47 the curated break-glass actions — breakglass-actions-run's - the dashboard-track ladders (P8-S1/S2) — service-ladder's / device-ladder's needs_human_decision: [] ```
Author
Owner

Done in 5582698 (on origin/main).

Shipped the P8-S3 break-glass Situation probe — the app-track breakglass orchestrator (internal/breakglass/, ADRs 0086/0087), thin UI SituationScreen.vue over the helper stdio NDJSON bridge (helper breakglass, ADR 0051; app/src/lib/breakglass.ts).

  • Dual-path table, honest per node (stories 32/33): Probe reaches every node on both paths — MESH + SSH, mesh first with direct SSH fallback and the repo replica as the address book (ADR 0087) — classifying each Reachable/Unreachable/LANOnlyUnreachable. A node answering on neither is named and kept in the table, never silently skipped (DDR 0088); a LAN-only node off the operator's current network is reported as exactly that with the remedy stated.
  • Replica freshness (story 34): ReplicaStatus shows status + age ("synced 12 min ago — safe to act from" / "last synced 9 days ago" + a stale pill, ADR 0032).
  • Stale-replica gating confirm on re-apply (story 35): Gate returns the gating confirm (how far behind + push-stale-history warning, DDR 0092) for a re-apply against a stale replica, while probing and restarting stay un-gated; a fresh replica gates nothing.
  • Route (story 3): reached via the existing rescue nav destination → the app's break-glass surface, since the dashboard cannot serve its own rescue.

The prober is breakglass-owned, not a clan seam verb; no repo-root seam amended (ADR 0086). Evidence: 6 Go seam tests (internal/breakglass/*_test.go, go test ok) + 6 Vue tests (app/tests/unit/situationScreen.test.ts); full suites green (vitest 124 passed; vue-tsc + eslint + gofmt clean). STATUS.md updated.

Out of scope (their own slices): the S3x no-usable-Tier-1-material states, the curated break-glass actions, and the dashboard-track ladders (P8-S1/S2).

Done in 5582698 (on `origin/main`). Shipped the P8-S3 break-glass **Situation probe** — the app-track `breakglass` orchestrator (`internal/breakglass/`, ADRs 0086/0087), thin UI `SituationScreen.vue` over the helper stdio NDJSON bridge (`helper breakglass`, ADR 0051; `app/src/lib/breakglass.ts`). - **Dual-path table, honest per node** (stories 32/33): `Probe` reaches every node on both paths — MESH + SSH, mesh first with direct SSH fallback and the repo replica as the address book (ADR 0087) — classifying each `Reachable`/`Unreachable`/`LANOnlyUnreachable`. A node answering on neither is named and kept in the table, never silently skipped (DDR 0088); a LAN-only node off the operator's current network is reported as exactly that with the remedy stated. - **Replica freshness** (story 34): `ReplicaStatus` shows status + age ("synced 12 min ago — safe to act from" / "last synced 9 days ago" + a `stale` pill, ADR 0032). - **Stale-replica gating confirm on re-apply** (story 35): `Gate` returns the gating confirm (how far behind + push-stale-history warning, DDR 0092) for a re-apply against a stale replica, while probing and restarting stay un-gated; a fresh replica gates nothing. - **Route** (story 3): reached via the existing `rescue` nav destination → the app's break-glass surface, since the dashboard cannot serve its own rescue. The prober is breakglass-owned, not a clan seam verb; **no repo-root seam amended** (ADR 0086). Evidence: 6 Go seam tests (`internal/breakglass/*_test.go`, `go test` ok) + 6 Vue tests (`app/tests/unit/situationScreen.test.ts`); full suites green (vitest 124 passed; vue-tsc + eslint + gofmt clean). STATUS.md updated. Out of scope (their own slices): the S3x no-usable-Tier-1-material states, the curated break-glass actions, and the dashboard-track ladders (P8-S1/S2).
ben closed this issue 2026-07-25 22:43:08 +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#33
No description provided.