transport: shell-fleet-live #152

Closed
opened 2026-07-27 20:44:23 +00:00 by ben · 1 comment
Owner

Parent

Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups.

Context

From #128's handback comment: shell fleet is a multi-owner aggregation — it joins fleetstate × monitoring per-node chip data — and warrants its own aggregating control-plane endpoint + slice, distinct from the single-owner migrations members already proved.

What to build

An aggregating control-plane endpoint that joins fleetstate and per-node monitoring data, and wiring of the shell fleet surface onto it via the generated client.

Acceptance criteria

  • Given the shell fleet 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 the new aggregating endpoint this surface consumes.
  • No fake remains in the fleet surface's production wiring.

Blocked by

  • #128 (members transport pattern, done on main)

Task manifest

task: transport:shell-fleet-live
implements_edge: "shell fleet surface reads over real HTTP via a new aggregating endpoint (fleetstate x monitoring)"
interface: "new aggregating control-plane endpoint + generated-client adoption"
seam: "integration test against a real control-plane process"
acceptance: "see Acceptance criteria above"
depends_on: []
out_of_scope: [screen changes, seam behaviour changes]
needs_human_decision: []
## Parent Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups. ## Context From #128's handback comment: shell **fleet** is a multi-owner aggregation — it joins `fleetstate` × monitoring per-node chip data — and warrants its own aggregating control-plane endpoint + slice, distinct from the single-owner migrations members already proved. ## What to build An aggregating control-plane endpoint that joins fleetstate and per-node monitoring data, and wiring of the shell fleet surface onto it via the generated client. ## Acceptance criteria - [ ] Given the shell fleet 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 the new aggregating endpoint this surface consumes. - [ ] No fake remains in the fleet surface's production wiring. ## Blocked by - #128 (members transport pattern, done on `main`) ## Task manifest ```yaml task: transport:shell-fleet-live implements_edge: "shell fleet surface reads over real HTTP via a new aggregating endpoint (fleetstate x monitoring)" interface: "new aggregating control-plane endpoint + generated-client adoption" seam: "integration test against a real control-plane process" acceptance: "see Acceptance criteria above" depends_on: [] out_of_scope: [screen changes, seam behaviour changes] needs_human_decision: [] ```
Author
Owner

Done on origin/main (18b36e4).

The Fleet surface (DF) now reads its whole resting list from ONE aggregating control-plane endpoint that joins server-side over its two owners — the fleet store (which devices exist, names, roles, the gateway founding made) joined per-node with monitoring's health chip — through the generated client (ADR 0037). No fake remains in the fleet production wiring (#132, ADR 0100).

Acceptance:

  • Fleet surface reads over a real control plane, no fake: productionDashboardDeps().fleet.source is HttpFleetClient; fleetLive.test.ts drives every flow (list, chips joined, gateway-alone, fault) against a live control-plane HTTP process.
  • OpenAPI describes the new aggregating endpoint: GET /api/v1/fleet + Fleet/FleetNode/HealthChip schemas; generated.ts regenerated (check:client green).
  • No fake in production wiring: the two sync source seams collapse into one async FleetSource.load(); mountRegistry wires the real httpFleetClient. The device-add pending strip (#60) is left unwired (not faked), the same discipline #128 used for member drill-ins.

Evidence: internal/controlapi/fleet.go (fan-out FleetService whose handler joins each node with its chip) + fleet_integration_test.go; dashboard/tests/unit/fleetLive.test.ts + fleet.test.ts. 658 dashboard tests + vue-tsc + check:client + eslint/prettier green; Go tests run in CI.

Follow-up: main.go fleet composition (a real FleetService joining the fleet store × monitoring), matching #155's members-compose pattern.

Done on `origin/main` (`18b36e4`). The Fleet surface (DF) now reads its whole resting list from ONE aggregating control-plane endpoint that joins server-side over its two owners — the fleet store (which devices exist, names, roles, the gateway founding made) joined per-node with monitoring's health chip — through the generated client (ADR 0037). No fake remains in the fleet production wiring (#132, ADR 0100). **Acceptance:** - *Fleet surface reads over a real control plane, no fake:* `productionDashboardDeps().fleet.source` is `HttpFleetClient`; `fleetLive.test.ts` drives every flow (list, chips joined, gateway-alone, fault) against a live control-plane HTTP process. - *OpenAPI describes the new aggregating endpoint:* `GET /api/v1/fleet` + `Fleet`/`FleetNode`/`HealthChip` schemas; `generated.ts` regenerated (`check:client` green). - *No fake in production wiring:* the two sync source seams collapse into one async `FleetSource.load()`; `mountRegistry` wires the real `httpFleetClient`. The device-add pending strip (#60) is left unwired (not faked), the same discipline #128 used for member drill-ins. **Evidence:** `internal/controlapi/fleet.go` (fan-out `FleetService` whose handler joins each node with its chip) + `fleet_integration_test.go`; `dashboard/tests/unit/fleetLive.test.ts` + `fleet.test.ts`. 658 dashboard tests + vue-tsc + `check:client` + eslint/prettier green; Go tests run in CI. **Follow-up:** `main.go` fleet composition (a real `FleetService` joining the fleet store × monitoring), matching #155's members-compose pattern.
ben closed this issue 2026-07-27 21:53:05 +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#152
No description provided.