transport: backups-rescue-live — backups and rescue surfaces onto the real client #130

Closed
opened 2026-07-26 22:03:47 +00:00 by ben · 2 comments
Owner

Parent

ADR 0037. Filed from Ben's rulings 2026-07-26 after the review sweep of 6596977..9e946b7: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now.

What to build

The backups surfaces (overview, policy, runs, restore, export) and the rescue dashboard surfaces (service rescue, remote support, recovery readiness) move from fakes to real control-plane endpoints via the generated client, following the tracer's pattern.

Acceptance criteria

  • Given each named surface, 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.
  • No fake remains in these surfaces' production wiring.

Blocked by

  • transport:control-plane-tracer.

Task manifest

task: transport:backups-rescue-live
implements_flow: p7-backups
implements_edge: "backups + rescue dashboard surfaces read/act over real HTTP"
wireframe: "the surfaces' existing wireframes (contracts unchanged; transport only)"
interface: "real endpoints + generated-client adoption for backups and rescue surfaces"
seam: "integration tests per surface against a real control-plane process"
acceptance: "see Acceptance criteria above"
depends_on: [transport:control-plane-tracer]
out_of_scope: [screen changes, break-glass local paths (app-side, not HTTP)]
needs_human_decision: []
## Parent ADR 0037. Filed from Ben's rulings 2026-07-26 after the review sweep of `6596977..9e946b7`: integration-last was deliberate seam-first sequencing — now build the integration layer; and pay all standards debt now. ## What to build The backups surfaces (overview, policy, runs, restore, export) and the rescue dashboard surfaces (service rescue, remote support, recovery readiness) move from fakes to real control-plane endpoints via the generated client, following the tracer's pattern. ## Acceptance criteria - [ ] Given each named surface, 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. - [ ] No fake remains in these surfaces' production wiring. ## Blocked by - transport:control-plane-tracer. ## Task manifest ```yaml task: transport:backups-rescue-live implements_flow: p7-backups implements_edge: "backups + rescue dashboard surfaces read/act over real HTTP" wireframe: "the surfaces' existing wireframes (contracts unchanged; transport only)" interface: "real endpoints + generated-client adoption for backups and rescue surfaces" seam: "integration tests per surface against a real control-plane process" acceptance: "see Acceptance criteria above" depends_on: [transport:control-plane-tracer] out_of_scope: [screen changes, break-glass local paths (app-side, not HTTP)] needs_human_decision: [] ```
Author
Owner

Backups half delivered in production; rescue transport built but blocked on composition — flagging for a scoping ruling.

Commit 2bea00e on origin/main.

Backups (P7) — done, in production, no fake remains ✅

  • The OpenAPI client generator grew to carry path parameters + JSON request bodies (the tracer's generator only did argument-less GETs) — shared infra every later transport slice reuses.
  • The spec describes all 17 backups endpoints (overview / policy / runs / run-failed / gone-target / restore / export).
  • internal/controlapi/backups.go serves them over the real *backup.Orchestrator (BackupService face, satisfied by construction). control-plane/main.go wires a resting orchestrator: reads project the freshly-founded coverage; unwired write ports fail loud (the backup engine's real adapters are a later slice — #132 bars prod fakes).
  • productionDashboardDeps wires one real HttpBackupsClient into every P7 face — no fake remains in the backups production wiring.
  • Tests: a Go integration test drives the real orchestrator over HTTP (read + confirm); a live-HTTP vitest drives BackupsSurface and every P7 verb through the generated client.

Rescue (P8) — transport built & contract-proven, but NOT production-wired ⚠️

Built: all 17 rescue endpoints in the spec; internal/controlapi/rescue.go handlers over a RescueService the real *rescue.{ServiceLadders,DeviceLadders,Engagements} satisfy by construction (compile-time assertions); 3 HttpRescue clients; a Go handler-stub test + a live-HTTP vitest driving ServiceRescueSurface and every P8 verb.

Why it can't be finished as a transport-only slice (needs a human ruling):

  1. The rescue surfaces are not composed into the production dashboard — they have no mount-table entry and no DashboardDeps slot (they're drill-in surfaces the composition routes out via the navigator, never renders). Composing them is a screen/composition change, which #130's out_of_scope lists. So there is no rescue production wiring to de-fake, and clause 1 ("its production client is the generated one") has nothing to attach to.
  2. The rescue orchestrators lack production adapters (clan.Clan, Provisioning, Restorer, AlertResolver, KeyLedger, …) and #132 bars production fakes — so main.go cannot wire even a resting rescue (unlike backups, whose ports fail-loud cleanly). WithRescue is therefore not registered in the production binary.
  3. recovery readiness (named in the manifest) has no .vue surface yet — it's #110, unbuilt.

Recommendation: split the rescue half into its own ticket, sequenced after (a) a slice that composes the rescue surfaces into the dashboard and (b) the rescue orchestrators' production adapters. The transport groundwork (spec, handlers, clients, tests) is already on main for that ticket to wire up. Setting ready-for-human for this ruling rather than closing.

**Backups half delivered in production; rescue transport built but blocked on composition — flagging for a scoping ruling.** Commit `2bea00e` on `origin/main`. ### Backups (P7) — done, in production, no fake remains ✅ - The OpenAPI client generator grew to carry **path parameters + JSON request bodies** (the tracer's generator only did argument-less GETs) — shared infra every later transport slice reuses. - The spec describes all **17 backups endpoints** (overview / policy / runs / run-failed / gone-target / restore / export). - `internal/controlapi/backups.go` serves them over the **real `*backup.Orchestrator`** (`BackupService` face, satisfied by construction). `control-plane/main.go` wires a **resting** orchestrator: reads project the freshly-founded coverage; unwired write ports **fail loud** (the backup engine's real adapters are a later slice — #132 bars prod fakes). - `productionDashboardDeps` wires one real `HttpBackupsClient` into **every P7 face** — no fake remains in the backups production wiring. - Tests: a Go integration test drives the real orchestrator over HTTP (read + confirm); a live-HTTP vitest drives `BackupsSurface` and every P7 verb through the generated client. ### Rescue (P8) — transport built & contract-proven, but NOT production-wired ⚠️ Built: all 17 rescue endpoints in the spec; `internal/controlapi/rescue.go` handlers over a `RescueService` the real `*rescue.{ServiceLadders,DeviceLadders,Engagements}` **satisfy by construction** (compile-time assertions); 3 `HttpRescue` clients; a Go handler-stub test + a live-HTTP vitest driving `ServiceRescueSurface` and every P8 verb. **Why it can't be finished as a transport-only slice (needs a human ruling):** 1. **The rescue surfaces are not composed into the production dashboard** — they have no mount-table entry and no `DashboardDeps` slot (they're drill-in surfaces the composition routes out via the navigator, never renders). Composing them is a **screen/composition change**, which #130's `out_of_scope` lists. So there is no rescue *production wiring* to de-fake, and clause 1 ("its production client is the generated one") has nothing to attach to. 2. **The rescue orchestrators lack production adapters** (`clan.Clan`, `Provisioning`, `Restorer`, `AlertResolver`, `KeyLedger`, …) and #132 bars production fakes — so `main.go` cannot wire even a resting rescue (unlike backups, whose ports fail-loud cleanly). `WithRescue` is therefore not registered in the production binary. 3. `recovery readiness` (named in the manifest) has **no `.vue` surface** yet — it's #110, unbuilt. **Recommendation:** split the rescue half into its own ticket, sequenced **after** (a) a slice that composes the rescue surfaces into the dashboard and (b) the rescue orchestrators' production adapters. The transport groundwork (spec, handlers, clients, tests) is already on `main` for that ticket to wire up. Setting `ready-for-human` for this ruling rather than closing.
Author
Owner

Human ruling (Ben, in-session 2026-07-28): split and close, per the #128 precedent.

  • Backups half: accepted as delivered — live in production since 2bea00e, no fake remains in the P7 wiring.
  • Rescue half: split out. The blockers are not transport work: the mount is a missing design (the #110 commit defers it exactly as provisioning/updates — the same class as #156), and the orchestrator production adapters are the future engine-adapters arc.
    • #157 (needs-design) — where the rescue surfaces mount in the dashboard chrome (P8-S7/S8 + drill-ins); sibling of #156, one design session can settle both.
    • #158 (transport:rescue-compose-live, ready-for-agent, blocked by #157 via native dependency) — composes the surfaces, registers WithRescue fail-loud, wires the HttpRescue clients + the #110 recovery-readiness seam live. The transport groundwork this ticket wires up is already on main.

Closing this issue in favour of the two follow-ups.

**Human ruling (Ben, in-session 2026-07-28): split and close, per the #128 precedent.** - **Backups half: accepted as delivered** — live in production since `2bea00e`, no fake remains in the P7 wiring. - **Rescue half: split out.** The blockers are not transport work: the mount is a missing design (the #110 commit defers it exactly as provisioning/updates — the same class as #156), and the orchestrator production adapters are the future engine-adapters arc. - **#157** (`needs-design`) — where the rescue surfaces mount in the dashboard chrome (P8-S7/S8 + drill-ins); sibling of #156, one design session can settle both. - **#158** (`transport:rescue-compose-live`, `ready-for-agent`, **blocked by #157** via native dependency) — composes the surfaces, registers `WithRescue` fail-loud, wires the `HttpRescue` clients + the #110 recovery-readiness seam live. The transport groundwork this ticket wires up is already on `main`. Closing this issue in favour of the two follow-ups.
ben closed this issue 2026-07-28 19:36:17 +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#130
No description provided.