control-plane: fleet-overview-real — the Fleet and Overview reads retire restingFleet #201

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

Parent

Shell spec #22 (the Fleet and Overview tabs). Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben.

What's true today

  • Even the whole composition wires the resting structs for Fleet and Overview: the gateway row is an invented literal, Nodes() returns nil unconditionally, PendingDevices() returns nil — while the real fleet-state projection is built a few lines above and never threaded in.
  • The monitoring chip join is already real, so this is half-wired rather than a stub — but the Fleet tab shows one fabricated row regardless of what is actually enrolled, which is exactly the fake-success posture ADR 0100 bars.

What to build

Thread the real fleet-state projection into the Fleet and Overview services in the whole branch (gateway row and node rows from the projection's real state; pending devices from the real enroll ledger's projection). The resting branch keeps its honest resting rows. Seam-prove it: an enrolled device appears in the Fleet read.

Acceptance criteria

  • Given the whole composition with an enrolled device in the ledger, When the Fleet read is driven, Then the device's real row appears (name, role, connection) — no invented row
  • Given the whole composition, When Overview's pending-devices read is driven, Then it reflects the real pending projection
  • Given the resting composition, Then the honest resting rows — unchanged

Task manifest

task: control-plane:fleet-overview-real
implements_seam: "fleet-state projection (ADR 0107) into the shell's Fleet/Overview faces"
interface: "the Fleet and Overview tab reads, live in production"
seam: "a composition seam test: enrolled state in, real rows out"
acceptance:
  - given: an enrolled device; when: Fleet/Overview read; then: real rows from the real projection, never the invented literal
depends_on: []
out_of_scope: [the monitoring chip join (already real), new columns or surfaces]
needs_human_decision: []

Blocks

#183 — leg B·2's evidence ("Fleet view with both connected").

## Parent Shell spec #22 (the Fleet and Overview tabs). Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben. ## What's true today - Even the **whole** composition wires the resting structs for Fleet and Overview: the gateway row is an invented literal, `Nodes()` returns nil unconditionally, `PendingDevices()` returns nil — while the real fleet-state projection is built a few lines above and never threaded in. - The monitoring chip join is already real, so this is half-wired rather than a stub — but the Fleet tab shows one fabricated row regardless of what is actually enrolled, which is exactly the fake-success posture ADR 0100 bars. ## What to build Thread the real fleet-state projection into the Fleet and Overview services in the whole branch (gateway row and node rows from the projection's real state; pending devices from the real enroll ledger's projection). The resting branch keeps its honest resting rows. Seam-prove it: an enrolled device appears in the Fleet read. ## Acceptance criteria - [ ] Given the whole composition with an enrolled device in the ledger, When the Fleet read is driven, Then the device's real row appears (name, role, connection) — no invented row - [ ] Given the whole composition, When Overview's pending-devices read is driven, Then it reflects the real pending projection - [ ] Given the resting composition, Then the honest resting rows — unchanged ## Task manifest ```yaml task: control-plane:fleet-overview-real implements_seam: "fleet-state projection (ADR 0107) into the shell's Fleet/Overview faces" interface: "the Fleet and Overview tab reads, live in production" seam: "a composition seam test: enrolled state in, real rows out" acceptance: - given: an enrolled device; when: Fleet/Overview read; then: real rows from the real projection, never the invented literal depends_on: [] out_of_scope: [the monitoring chip join (already real), new columns or surfaces] needs_human_decision: [] ``` ## Blocks #183 — leg B·2's evidence ("Fleet view with both connected").
Author
Owner

Done — landed on origin/main as d85a4c5.

The whole composition's Fleet and Overview reads now serve the ONE real fleet-state projection instead of the resting literal (ADR 0107):

  • wholeFleet (embeds restingFleet for the chip join + never-empty fallback): Gateway() and Nodes() read projection.Devices() — real name + role per row, the gateway excluded from Nodes as row one. When the inventory places no gateway yet it falls back to restingFleet's structural row-one gateway (DDR 0095), never an invented device. AC1 ✓ — an enrolled+placed device shows its real row, no invented literal.
  • wholeOverview (embeds restingOverview): PendingDevices() reads the real enroll ledger's pending projection (#184) — a called-in device's real probed hostname — instead of the unconditional nil. AC2 ✓.
  • The resting branch keeps restingFleet/restingOverview unchanged. AC3 ✓ — covered by the existing TestRestingFleet…/TestRestingOverview… seam tests.
  • The monitoring chip join is untouched (already real, out of scope).

Evidence: control-plane/cmd/control-plane/whole_surfaces.go (the two whole faces) + whole_surfaces_test.go (the composition seam: enrolled/placed state in, real rows out — gateway row, node rows, the no-gateway fallback, and the pending-devices queue over a real ledger seeded mint→redeem→pair). Wiring in whole_composition.go; STATUS.md updated.

Note: the Sandcastle sandbox has no Go toolchain (#198), so this was verified by careful review of the types/APIs against the source; the CI seam validates the build/lint/tests on push.

Done — landed on `origin/main` as `d85a4c5`. The whole composition's Fleet and Overview reads now serve the ONE real fleet-state projection instead of the resting literal (ADR 0107): - **`wholeFleet`** (embeds `restingFleet` for the chip join + never-empty fallback): `Gateway()` and `Nodes()` read `projection.Devices()` — real name + role per row, the gateway excluded from Nodes as row one. When the inventory places no gateway yet it falls back to `restingFleet`'s structural row-one gateway (DDR 0095), never an invented device. **AC1** ✓ — an enrolled+placed device shows its real row, no invented literal. - **`wholeOverview`** (embeds `restingOverview`): `PendingDevices()` reads the real enroll ledger's pending projection (#184) — a called-in device's real probed hostname — instead of the unconditional nil. **AC2** ✓. - The resting branch keeps `restingFleet`/`restingOverview` unchanged. **AC3** ✓ — covered by the existing `TestRestingFleet…`/`TestRestingOverview…` seam tests. - The monitoring chip join is untouched (already real, out of scope). Evidence: `control-plane/cmd/control-plane/whole_surfaces.go` (the two whole faces) + `whole_surfaces_test.go` (the composition seam: enrolled/placed state in, real rows out — gateway row, node rows, the no-gateway fallback, and the pending-devices queue over a real ledger seeded mint→redeem→pair). Wiring in `whole_composition.go`; `STATUS.md` updated. Note: the Sandcastle sandbox has no Go toolchain (#198), so this was verified by careful review of the types/APIs against the source; the CI seam validates the build/lint/tests on push.
ben closed this issue 2026-07-31 04:29:45 +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#201
No description provided.