fleet wire: facts the Overview paints that no seam states — founding on FleetNode, installMode/joined on DeviceTelemetry, gateway public IP and region #1434

Closed
opened 2026-09-12 15:03:43 +00:00 by ben · 2 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Gap (ADR 0097: shell derives nothing; ADR 0100: no silent absence)

  • dashboard/src/components/shell/FleetDiagram.vue:127-128, 257 orders branches by row.founding — no such field on FleetNode (openapi ~:6789-6844, controlapi/fleet.go). The tag can never render.
  • P9 paints installMode and joined (dashboard/src/lib/deviceTelemetry.ts:131,137); device_telemetry.go:123-152 and the DeviceTelemetry schema never carry them.
  • The gateway card's public IP / region / "connected via" have no wire source; uplink state is derived shell-side from /network ports (networkView.ts:176).

What to do

For each fact: either the store states it, or the paint goes. Concretely:

  • founding: bool on FleetNode from the fleet store (the founding gateway and any device placed in the founding plan — #1391's Placement); joined (enrol timestamp) and installMode (vm / bare from the enrol ledger, ADR 0125) on DeviceTelemetry.
  • Gateway public_ip and region from the rent record where one exists (enroll_rent.go), else absent — the card then omits the line rather than showing a blank.
  • Replace the shell-side uplink derivation with the /network seam's own verdict if it has one; otherwise leave it and document.
  • openapi + regen + the Go projections + the dashboard fakes and harness fixtures aligned.

Acceptance criteria

  • Given a founded fleet, then the diagram marks the founding gateway from the wire's founding, not from a fixture.
  • Given a rented gateway, then P9 shows region and public IP from the wire; given a self-hosted one, then neither line renders.
  • grep -rn "founding\|installMode\|joined" dashboard/src finds no field that the openapi schema lacks.
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Gap (ADR 0097: shell derives nothing; ADR 0100: no silent absence) - `dashboard/src/components/shell/FleetDiagram.vue:127-128, 257` orders branches by `row.founding` — no such field on `FleetNode` (openapi ~:6789-6844, `controlapi/fleet.go`). The tag can never render. - P9 paints `installMode` and `joined` (`dashboard/src/lib/deviceTelemetry.ts:131,137`); `device_telemetry.go:123-152` and the `DeviceTelemetry` schema never carry them. - The gateway card's public IP / region / "connected via" have no wire source; uplink state is derived shell-side from `/network` ports (`networkView.ts:176`). ## What to do For each fact: either the store states it, or the paint goes. Concretely: - `founding: bool` on `FleetNode` from the fleet store (the founding gateway and any device placed in the founding plan — #1391's `Placement`); `joined` (enrol timestamp) and `installMode` (`vm` / `bare` from the enrol ledger, ADR 0125) on `DeviceTelemetry`. - Gateway `public_ip` and `region` from the rent record where one exists (`enroll_rent.go`), else absent — the card then omits the line rather than showing a blank. - Replace the shell-side uplink derivation with the `/network` seam's own verdict if it has one; otherwise leave it and document. - openapi + regen + the Go projections + the dashboard fakes and harness fixtures aligned. ## Acceptance criteria - [ ] Given a founded fleet, then the diagram marks the founding gateway from the wire's `founding`, not from a fixture. - [ ] Given a rented gateway, then P9 shows region and public IP from the wire; given a self-hosted one, then neither line renders. - [ ] `grep -rn "founding\|installMode\|joined" dashboard/src` finds no field that the openapi schema lacks.

swarm-claim host=bens-mac-04 run=22593
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=22593 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1434 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1434,
  "status": "success",
  "commits": [
    "e48138776bcc78992233b55b94c7abf208d42af4"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/observability/DeviceDetailSurface.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/deviceTelemetry.ts",
    "dashboard/src/lib/fleet.ts",
    "dashboard/tests/fakes/deviceTelemetry.ts",
    "dashboard/tests/unit/deviceDetailDrillIn.test.ts",
    "dashboard/tests/unit/fleetLive.test.ts",
    "internal/controlapi/device_telemetry.go",
    "internal/controlapi/device_telemetry_integration_test.go",
    "internal/controlapi/fleet.go",
    "internal/controlapi/fleet_integration_test.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run tests/unit/deviceDetailDrillIn.test.ts tests/unit/fleetLive.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run tests/unit/fleet.test.ts tests/unit/fleetTelemetryColumns.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "node packages/openapi-spec/scripts/generate-client.mjs --check",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a founded fleet, then the diagram marks the founding gateway from the wire's `founding`, not from a fixture": "Added `founding` to openapi FleetNode + controlapi.FleetNode (regenerated generated.ts); FleetDiagram.vue already reads row.founding, which camelizes straight from the wire into FleetRow (fleetClient.ts camelize, no fixture). Proven by fleet_integration_test.go (founding round-trips through GET /fleet, a non-founding node stays false) and dashboard fleetLive.test.ts (composition.gateway.founding===true camelized from the live wire).",
    "Given a rented gateway, then P9 shows region and public IP from the wire; given a self-hosted one, then neither line renders": "Added `region`/`public_ip` to openapi DeviceTelemetry + controlapi.DeviceFacts/DeviceTelemetry (projected in registerDeviceTelemetry); DeviceDetailSurface.vue paints data-field=region/public-ip rows that render only when present. Proven by device_telemetry_integration_test.go (a rented gateway carries region+public_ip, a self-hosted one omits both) and deviceDetailDrillIn.test.ts (region/public-ip render for RENTED_GATEWAY_VIEW, absent for the self-hosted REPORTING_VIEW).",
    "`grep -rn \"founding\\|installMode\\|joined\" dashboard/src` finds no field that the openapi schema lacks": "founding is now on openapi FleetNode (generated.ts FleetNode.founding); installMode/joined are on openapi DeviceTelemetry as install_mode/joined (generated.ts DeviceTelemetry.install_mode/joined), camelized at the client boundary. openapi check:client confirms generated.ts is in sync with the spec."
  },
  "summary": "Gave the founding/install_mode/joined/region/public_ip facts the control-panel UI paints a real wire source across openapi, the Go controlapi projections, the regenerated client and the P9 surface, with the paint omitting each line when absent.",
  "reason": "The #1399 sweep found the UI reading fields no seam stated; for each fact the store now states it (ADR 0097/0100) rather than removing the paint.",
  "blockers": []
}
**close-report** for #1434 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1434, "status": "success", "commits": [ "e48138776bcc78992233b55b94c7abf208d42af4" ], "changed_files": [ "STATUS.md", "dashboard/src/components/observability/DeviceDetailSurface.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/deviceTelemetry.ts", "dashboard/src/lib/fleet.ts", "dashboard/tests/fakes/deviceTelemetry.ts", "dashboard/tests/unit/deviceDetailDrillIn.test.ts", "dashboard/tests/unit/fleetLive.test.ts", "internal/controlapi/device_telemetry.go", "internal/controlapi/device_telemetry_integration_test.go", "internal/controlapi/fleet.go", "internal/controlapi/fleet_integration_test.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/controlapi/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "CI=true pnpm vitest run tests/unit/deviceDetailDrillIn.test.ts tests/unit/fleetLive.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm vitest run tests/unit/fleet.test.ts tests/unit/fleetTelemetryColumns.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "node packages/openapi-spec/scripts/generate-client.mjs --check", "exit_code": 0 } ], "criteria": { "Given a founded fleet, then the diagram marks the founding gateway from the wire's `founding`, not from a fixture": "Added `founding` to openapi FleetNode + controlapi.FleetNode (regenerated generated.ts); FleetDiagram.vue already reads row.founding, which camelizes straight from the wire into FleetRow (fleetClient.ts camelize, no fixture). Proven by fleet_integration_test.go (founding round-trips through GET /fleet, a non-founding node stays false) and dashboard fleetLive.test.ts (composition.gateway.founding===true camelized from the live wire).", "Given a rented gateway, then P9 shows region and public IP from the wire; given a self-hosted one, then neither line renders": "Added `region`/`public_ip` to openapi DeviceTelemetry + controlapi.DeviceFacts/DeviceTelemetry (projected in registerDeviceTelemetry); DeviceDetailSurface.vue paints data-field=region/public-ip rows that render only when present. Proven by device_telemetry_integration_test.go (a rented gateway carries region+public_ip, a self-hosted one omits both) and deviceDetailDrillIn.test.ts (region/public-ip render for RENTED_GATEWAY_VIEW, absent for the self-hosted REPORTING_VIEW).", "`grep -rn \"founding\\|installMode\\|joined\" dashboard/src` finds no field that the openapi schema lacks": "founding is now on openapi FleetNode (generated.ts FleetNode.founding); installMode/joined are on openapi DeviceTelemetry as install_mode/joined (generated.ts DeviceTelemetry.install_mode/joined), camelized at the client boundary. openapi check:client confirms generated.ts is in sync with the spec." }, "summary": "Gave the founding/install_mode/joined/region/public_ip facts the control-panel UI paints a real wire source across openapi, the Go controlapi projections, the regenerated client and the P9 surface, with the paint omitting each line when absent.", "reason": "The #1399 sweep found the UI reading fields no seam stated; for each fact the store now states it (ADR 0097/0100) rather than removing the paint.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1434
No description provided.