transport: rescue-compose-live — compose the rescue surfaces and wire their transport live #158

Closed
opened 2026-07-28 19:35:52 +00:00 by ben · 1 comment
Owner

Parent

ADR 0037 / issue #130 — the rescue half, split out per Ben's ruling 2026-07-28 (the #128 split precedent). Blocked by #157 (the rescue mount design) via a native dependency.

Standing on

The transport groundwork is already on main (2bea00e): all 17 rescue endpoints in the OpenAPI spec, internal/controlapi/rescue.go over a RescueService the real *rescue.{ServiceLadders,DeviceLadders,Engagements} satisfy by construction, 3 HttpRescue clients, Go handler-stub test + live-HTTP vitest. #110 added the recovery-readiness surface and its (fake-backed) recoveryReadiness.ts seam.

What to build

  1. Compose the rescue surfaces into the dashboard per #157's mount decisions (mount-table entries / DashboardDeps slots / the P8-S8 app→dashboard routing).
  2. Register WithRescue in the production binary. Wire resting orchestrators with fail-loud unwired ports per the backups pattern in main.go (#132 bars fakes; restingMemberRescue already reads rescue's share ledger, so partial resting state exists). If a rescue orchestrator genuinely cannot rest fail-loud without its production adapters (clan.Clan, Provisioning, Restorer, AlertResolver, KeyLedger, …), ask via ask-human.sh rather than faking or guessing — the adapters arc is future map work, not this ticket.
  3. Wire the HttpRescue clients (and a live transport for the #110 recovery-readiness seam — reactive shapes follow the #151 poll/cache ruling) into productionDashboardDeps; no fake remains in the rescue production wiring.

Acceptance criteria

  • Given each rescue surface, it is reachable in the production dashboard per #157's design, its production client is the generated one, and every flow its tests drive works against a real control plane.
  • Given the OpenAPI spec, it describes every endpoint these surfaces consume (including recovery readiness).
  • No fake remains in the rescue surfaces' production wiring; anything unwireable fails loud.

Task manifest

task: transport:rescue-compose-live
implements_flow: p8-rescue
implements_edge: "rescue dashboard surfaces (service rescue, remote support, recovery readiness) compose + read/act over real HTTP"
interface: "existing 17 rescue endpoints + recovery-readiness read(s); WithRescue in the production binary"
seam: "Go integration test over the real rescue orchestrators; node-env TS client round-trips"
acceptance: "see Acceptance criteria above"
depends_on: ["#157"]
out_of_scope: [rescue orchestrator production adapters (the engine-adapters arc), SSE/push transport]
needs_human_decision: []
## Parent ADR 0037 / issue #130 — the rescue half, split out per Ben's ruling 2026-07-28 (the #128 split precedent). **Blocked by #157** (the rescue mount design) via a native dependency. ## Standing on The transport groundwork is already on `main` (`2bea00e`): all 17 rescue endpoints in the OpenAPI spec, `internal/controlapi/rescue.go` over a `RescueService` the real `*rescue.{ServiceLadders,DeviceLadders,Engagements}` satisfy by construction, 3 `HttpRescue` clients, Go handler-stub test + live-HTTP vitest. #110 added the recovery-readiness surface and its (fake-backed) `recoveryReadiness.ts` seam. ## What to build 1. **Compose** the rescue surfaces into the dashboard per #157's mount decisions (mount-table entries / `DashboardDeps` slots / the P8-S8 app→dashboard routing). 2. **Register `WithRescue`** in the production binary. Wire resting orchestrators with **fail-loud** unwired ports per the backups pattern in `main.go` (#132 bars fakes; `restingMemberRescue` already reads rescue's share ledger, so partial resting state exists). If a rescue orchestrator genuinely cannot rest fail-loud without its production adapters (`clan.Clan`, `Provisioning`, `Restorer`, `AlertResolver`, `KeyLedger`, …), **ask via ask-human.sh** rather than faking or guessing — the adapters arc is future map work, not this ticket. 3. **Wire the `HttpRescue` clients** (and a live transport for the #110 recovery-readiness seam — reactive shapes follow the #151 poll/cache ruling) into `productionDashboardDeps`; no fake remains in the rescue production wiring. ## Acceptance criteria - [ ] Given each rescue surface, it is reachable in the production dashboard per #157's design, its production client is the generated one, and every flow its tests drive works against a real control plane. - [ ] Given the OpenAPI spec, it describes every endpoint these surfaces consume (including recovery readiness). - [ ] No fake remains in the rescue surfaces' production wiring; anything unwireable fails loud. ## Task manifest ```yaml task: transport:rescue-compose-live implements_flow: p8-rescue implements_edge: "rescue dashboard surfaces (service rescue, remote support, recovery readiness) compose + read/act over real HTTP" interface: "existing 17 rescue endpoints + recovery-readiness read(s); WithRescue in the production binary" seam: "Go integration test over the real rescue orchestrators; node-env TS client round-trips" acceptance: "see Acceptance criteria above" depends_on: ["#157"] out_of_scope: [rescue orchestrator production adapters (the engine-adapters arc), SSE/push transport] needs_human_decision: [] ```
Author
Owner

Landed in 19bbcdb (sandcastle: transport:rescue-compose-live #158).

Go / control plane — main.go registers WithRescue + a new WithRecoveryReadiness over resting orchestrators (rescue_surfaces.go): the real *rescue.{ServiceLadders,DeviceLadders,Engagements,Orchestrator,Ceremony,Keyring} wired with fail-loud engine adapters. At rest the in-memory ladders/engagement read null (no incident escalated), the P8-S7 readiness reading stands its honest 1-of-1 floor (degraded, chrome indicator raised), and every write reaching an unwired adapter (fleet vars, mesh+SSH identity side, the durable share/key ledgers — the engine-adapters arc, now #160) fails loud (ADR 0100 / #132). No production fake. New internal/controlapi/recovery.go (RecoveryReadinessService + 8 endpoints), 8 recovery-readiness endpoints + schemas in openapi.yaml, generated.ts regenerated.

Dashboard — HttpRecoveryReadinessClient (generated-backed) in rescueClient.ts; the live rescue + recovery clients wired into productionDashboardDeps (fakes only in defaultDashboardDeps). Per DDR 0101 §4 the Recovery readiness card lands on the Backups overview (P7-S1 + first-run), opening the composed P8-S7 surface from within Backups. The crisis surfaces (S1/S2/S6) ride the composition ready-for-mount for monitoring's escalate hand-off (DDR 0101 §3, routed-to only — the #129 ready-for-mount precedent).

Acceptance — (1) each surface reachable, production client is the generated one, live tests drive the flows against a real control plane; (2) OpenAPI describes every endpoint incl. recovery readiness; (3) no fake in the rescue production wiring, unwireable fails loud. Proof: Go integration test (main_test.go), recoveryReadinessLive.test.ts (8-verb node-env round-trip), recoveryReadinessCard.test.ts. Verified: go build/vet/test (+dev) + golangci-lint clean; check:client in sync; all TS packages build+test (dashboard 669, ui-kit 73, app 336, spec 3); eslint clean.

Follow-ups (out of scope, not blockers): the rescue engine-adapters arc (#160); the chrome recoveryIndicatorSource wiring (needs a composite IndicatorSource — its securityIndicatorSource precedent #109 is itself unwired); the Overview needs-attention item (server-side /overview fan-out); the app Tier-3 deep-link (DDR 0101 §5).

Landed in `19bbcdb` (sandcastle: transport:rescue-compose-live #158). **Go / control plane** — `main.go` registers `WithRescue` + a new `WithRecoveryReadiness` over resting orchestrators (`rescue_surfaces.go`): the real `*rescue.{ServiceLadders,DeviceLadders,Engagements,Orchestrator,Ceremony,Keyring}` wired with fail-loud engine adapters. At rest the in-memory ladders/engagement read `null` (no incident escalated), the P8-S7 readiness reading stands its honest 1-of-1 floor (degraded, chrome indicator raised), and every write reaching an unwired adapter (fleet vars, mesh+SSH identity side, the durable share/key ledgers — the engine-adapters arc, now #160) fails loud (ADR 0100 / #132). No production fake. New `internal/controlapi/recovery.go` (`RecoveryReadinessService` + 8 endpoints), 8 recovery-readiness endpoints + schemas in `openapi.yaml`, `generated.ts` regenerated. **Dashboard** — `HttpRecoveryReadinessClient` (generated-backed) in `rescueClient.ts`; the live rescue + recovery clients wired into `productionDashboardDeps` (fakes only in `defaultDashboardDeps`). Per DDR 0101 §4 the **Recovery readiness card** lands on the Backups overview (P7-S1 + first-run), opening the composed P8-S7 surface from within Backups. The crisis surfaces (S1/S2/S6) ride the composition ready-for-mount for monitoring's escalate hand-off (DDR 0101 §3, routed-to only — the #129 ready-for-mount precedent). **Acceptance** — (1) each surface reachable, production client is the generated one, live tests drive the flows against a real control plane; (2) OpenAPI describes every endpoint incl. recovery readiness; (3) no fake in the rescue production wiring, unwireable fails loud. Proof: Go integration test (`main_test.go`), `recoveryReadinessLive.test.ts` (8-verb node-env round-trip), `recoveryReadinessCard.test.ts`. Verified: go build/vet/test (+dev) + golangci-lint clean; `check:client` in sync; all TS packages build+test (dashboard 669, ui-kit 73, app 336, spec 3); eslint clean. **Follow-ups (out of scope, not blockers):** the rescue engine-adapters arc (#160); the chrome `recoveryIndicatorSource` wiring (needs a composite `IndicatorSource` — its `securityIndicatorSource` precedent #109 is itself unwired); the Overview needs-attention item (server-side `/overview` fan-out); the app Tier-3 deep-link (DDR 0101 §5).
ben closed this issue 2026-07-29 05:01:33 +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#158
No description provided.