observability: shell-fleet-telemetry-columns — DF's three graded columns and the device-name look-at affordance #802

Closed
opened 2026-08-25 10:58:12 +00:00 by matou-build-agent · 2 comments

Parent

Feature spec: #769 — control-panel observability child spec: device telemetry (P9) (DDR 0202).
Design ticket #759; slice-map fan-in #770; wayfinder map #7.
Slice shell-fleet-telemetry-columns of docs/slices/observability.yaml; covers spec #769 stories 1–6.

What to build

The Fleet resting list gains telemetry at a glance: three graded columns — CPU / MEM / DISK —
on the existing resting list, each an OcResourceBar reading the shared grade constants, plus the
device-name look-at affordance that opens the P9 drill-in.

The honesty rule is the point: a row whose telemetry state is anything other than reporting
shows —, never 0% and never a frozen bar at the last value. Temperature stays drill-in-only
so the row stays one line at product type scale, and the never-empty framing of row one (DDR 0095)
is untouched by the amendment. Clicking outside the three named controls opens nothing — the row
has no implicit whole-row target, and change / set up and the health chip keep their existing
owners.

The canonical DF frame (docs/ux/wireframes/shell/shell-df-fleet.html) gains its ✎
telemetry-columns note in this commit, per the ADR 0042 discipline;
p9-df-fleet-telemetry-columns.html is the amendment depiction, not a second canonical frame.

Acceptance criteria

  • (story 1) Given the Fleet tab at rest with the aggregating read settled, when the resting list renders, then [data-field="fleet-list"] carries the columns DEVICE · ROLE · HEALTH · CPU · MEM · DISK and a trailing action column, and every reporting row renders a resource bar per telemetry cell (cpu-<id> / mem-<id> / disk-<id>) with a mono NN% readout.
  • (story 1) Given the gateway founding made, then it is still row one with its telemetry joined — the never-empty rule (DDR 0095) is untouched.
  • (story 3) Given a node whose telemetry state is anything other than reporting, when its row renders, then each telemetry cell shows — (data-status="none", the .rb bar in its .none variant) — never 0%, never a frozen bar.
  • (story 3) Given an asleep-expected helper and a connected-not-set-up device, then both render — in all three cells while their health chips keep rendering their own verbatim truth.
  • (story 4) Given readings below 60 / ≥60 and <80 / ≥80, then the bars grade ok / warn / bad, with bad painted from --oc-status-warning and its readout bolded — no red token is emitted anywhere in the rendered CSS.
  • (story 5) Given any DF row, when the operator activates the device name (data-action="device-detail-<id>"), then P9-S1 opens for that device in place on the Fleet tab; and change / set up and the health chip still open provisioning's P4-S1 and monitoring's P5-S3 unchanged.
  • (story 5) Given the row as a whole, then clicking outside the three named controls opens nothing.
  • (story 6) Given the resting list, then telemetry readouts render at ≥0.8rem mono and column headers at ≥0.75rem, temperature has no column, and each row occupies one line.

Design contract

  • Flow: docs/ux/flows/p9-device-telemetry.mermaid
  • Wireframes (the element-ID contract):
    • docs/ux/wireframes/p9-device-telemetry/p9-df-fleet-telemetry-columns.html

Blocked by

  • #799 — observability:ui-kit-telemetry-primitives
  • #801 — observability:transport-fleet-telemetry
  • shell:fleet-resting-list (#35 — done, satisfied)

Task manifest

task: observability:shell-fleet-telemetry-columns
implements_flow: p9-device-telemetry
wireframe: docs/ux/wireframes/p9-device-telemetry/p9-df-fleet-telemetry-columns.html
interface: '`FleetSurface`''s resting list gains three telemetry cells per row rendering `OcResourceBar`
  off the grown Fleet read, plus the `device-detail-<id>` look-at action on the device name'
seam: 'dashboard component tests against the hand-written fake of the grown Fleet seam (prior art `fleet.test.ts`),
  asserting the wireframe''s `data-field` / `data-action` / `data-status` contract: the six columns, the
  `—` honesty rule for every non-reporting state, the three grade bands, the three named controls routing
  to their own owners, and no whole-row target'
acceptance:
- given: the Fleet tab at rest
  when: the resting list renders
  then: DEVICE · ROLE · HEALTH · CPU · MEM · DISK render with a resource bar per reporting telemetry cell
- given: a node whose telemetry state is not `reporting`
  when: its row renders
  then: each telemetry cell shows `—` with `data-status="none"`, never `0%` and never a frozen bar
- given: readings of 59, 60 and 80
  when: the row renders
  then: they grade ok / warn / bad and the rendered CSS emits no red token
- given: any DF row
  when: the device name is activated
  then: P9-S1 opens in place for that device and the tab does not change
- given: any DF row
  when: an area outside the three named controls is clicked
  then: nothing opens
depends_on:
- ui-kit-telemetry-primitives
- transport-fleet-telemetry
- shell:fleet-resting-list
out_of_scope:
- a temperature column — drill-in-only so the row stays one line
- the drill-in itself (`shell-device-detail-drill-in`)
- any act that changes a device — *change* / *set up* stay provisioning's (ADR 0063)
- a second CPU/MEM/DISK fetch — the row reads the same aggregating read the drill-in does
needs_human_decision: []

Emitted by /to-tickets over docs/slices/observability.yaml in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.

## Parent Feature spec: **#769** — control-panel observability child spec: device telemetry (P9) (DDR 0202). Design ticket #759; slice-map fan-in **#770**; wayfinder map #7. Slice `shell-fleet-telemetry-columns` of `docs/slices/observability.yaml`; covers spec #769 stories 1–6. ## What to build The Fleet resting list gains telemetry at a glance: three graded columns — CPU / MEM / DISK — on the existing resting list, each an `OcResourceBar` reading the shared grade constants, plus the device-name look-at affordance that opens the P9 drill-in. The honesty rule is the point: a row whose telemetry state is anything other than *reporting* shows `—`, **never `0%` and never a frozen bar at the last value**. Temperature stays drill-in-only so the row stays one line at product type scale, and the never-empty framing of row one (DDR 0095) is untouched by the amendment. Clicking outside the three named controls opens nothing — the row has no implicit whole-row target, and *change* / *set up* and the health chip keep their existing owners. The canonical DF frame (`docs/ux/wireframes/shell/shell-df-fleet.html`) gains its `✎` telemetry-columns note in this commit, per the ADR 0042 discipline; `p9-df-fleet-telemetry-columns.html` is the amendment depiction, not a second canonical frame. ## Acceptance criteria - [ ] (story 1) Given the Fleet tab at rest with the aggregating read settled, when the resting list renders, then `[data-field="fleet-list"]` carries the columns DEVICE · ROLE · HEALTH · CPU · MEM · DISK and a trailing action column, and every reporting row renders a resource bar per telemetry cell (`cpu-<id>` / `mem-<id>` / `disk-<id>`) with a mono `NN%` readout. - [ ] (story 1) Given the gateway founding made, then it is still row one with its telemetry joined — the never-empty rule (DDR 0095) is untouched. - [ ] (story 3) Given a node whose telemetry state is anything other than *reporting*, when its row renders, then each telemetry cell shows `—` (`data-status="none"`, the `.rb` bar in its `.none` variant) — never `0%`, never a frozen bar. - [ ] (story 3) Given an asleep-expected helper and a connected-not-set-up device, then both render `—` in all three cells while their health chips keep rendering their own verbatim truth. - [ ] (story 4) Given readings below 60 / ≥60 and <80 / ≥80, then the bars grade `ok` / `warn` / `bad`, with *bad* painted from `--oc-status-warning` and its readout bolded — **no red token is emitted anywhere in the rendered CSS**. - [ ] (story 5) Given any DF row, when the operator activates the device name (`data-action="device-detail-<id>"`), then P9-S1 opens for that device in place on the Fleet tab; and *change* / *set up* and the health chip still open provisioning's P4-S1 and monitoring's P5-S3 unchanged. - [ ] (story 5) Given the row as a whole, then clicking outside the three named controls opens nothing. - [ ] (story 6) Given the resting list, then telemetry readouts render at ≥0.8rem mono and column headers at ≥0.75rem, temperature has no column, and each row occupies one line. ## Design contract - **Flow:** `docs/ux/flows/p9-device-telemetry.mermaid` - **Wireframes (the element-ID contract):** - `docs/ux/wireframes/p9-device-telemetry/p9-df-fleet-telemetry-columns.html` ## Blocked by - #799 — `observability:ui-kit-telemetry-primitives` - #801 — `observability:transport-fleet-telemetry` - `shell:fleet-resting-list` (#35 — done, satisfied) ## Task manifest ```yaml task: observability:shell-fleet-telemetry-columns implements_flow: p9-device-telemetry wireframe: docs/ux/wireframes/p9-device-telemetry/p9-df-fleet-telemetry-columns.html interface: '`FleetSurface`''s resting list gains three telemetry cells per row rendering `OcResourceBar` off the grown Fleet read, plus the `device-detail-<id>` look-at action on the device name' seam: 'dashboard component tests against the hand-written fake of the grown Fleet seam (prior art `fleet.test.ts`), asserting the wireframe''s `data-field` / `data-action` / `data-status` contract: the six columns, the `—` honesty rule for every non-reporting state, the three grade bands, the three named controls routing to their own owners, and no whole-row target' acceptance: - given: the Fleet tab at rest when: the resting list renders then: DEVICE · ROLE · HEALTH · CPU · MEM · DISK render with a resource bar per reporting telemetry cell - given: a node whose telemetry state is not `reporting` when: its row renders then: each telemetry cell shows `—` with `data-status="none"`, never `0%` and never a frozen bar - given: readings of 59, 60 and 80 when: the row renders then: they grade ok / warn / bad and the rendered CSS emits no red token - given: any DF row when: the device name is activated then: P9-S1 opens in place for that device and the tab does not change - given: any DF row when: an area outside the three named controls is clicked then: nothing opens depends_on: - ui-kit-telemetry-primitives - transport-fleet-telemetry - shell:fleet-resting-list out_of_scope: - a temperature column — drill-in-only so the row stays one line - the drill-in itself (`shell-device-detail-drill-in`) - any act that changes a device — *change* / *set up* stay provisioning's (ADR 0063) - a second CPU/MEM/DISK fetch — the row reads the same aggregating read the drill-in does needs_human_decision: [] ``` --- *Emitted by `/to-tickets` over `docs/slices/observability.yaml` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.*
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=10104
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10104 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #802 — status success

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

envelope
{
  "issue": 802,
  "status": "success",
  "commits": [
    "f816950407a410f8331599ebc40a22bceed747d5"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/shell/FleetScreen.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/lib/fleet.ts",
    "dashboard/tests/fakes/fleet.ts",
    "dashboard/tests/unit/fleetTelemetryColumns.test.ts",
    "docs/ux/wireframes/shell/shell-df-fleet.html"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/fleetTelemetryColumns.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (full dashboard suite, 1226 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story1: fleet-list carries DEVICE·ROLE·HEALTH·CPU·MEM·DISK + trailing action, reporting rows render cpu/mem/disk bars with mono NN%": "FleetScreen.vue thead + OcResourceBar per cell (data-field cpu-/mem-/disk-<id>); test 'the six-column contract' asserts headers and readouts",
    "story1: gateway still row one with telemetry joined (DDR 0095 untouched)": "frameRestingList unchanged; test 'keeps the gateway as row one with its telemetry joined' asserts karaka row one + 22/41/37",
    "story3: non-reporting row shows — (data-status=none), never 0% nor frozen bar": "cellPct(row,key) passes null unless telemetryState==='reporting'; tests 'shows — in every cell of a non-reporting row' and 'never a frozen bar: stale readings still render —'",
    "story3: asleep-expected + connected-not-set-up both render — while health chips keep their truth": "kauri/matai non-reporting in fake; test asserts — in all three cells and non-empty health-chip text",
    "story4: readings below 60 / >=60<80 / >=80 grade ok/warn/bad; bad from --oc-status-warning, readout bold; no red token in rendered CSS": "gradeResource via OcResourceBar + GRADE_TOKEN; test '59/60/80 as ok/warn/bad' and 'bad paints from the warning tier ... no red token' asserting fill style + .oc-resource-bar__pc--bad + FleetScreen style has no red token",
    "story5: device name (device-detail-<id>) opens P9-S1 in place; change/set up open P4-S1, health chip opens P5-S3 unchanged": "deviceDetailRoute + FleetSurface owner device-telemetry in-place mount; test 'activating the device name opens P9-S1 in place' and 'change / set up still open provisioning, health chip opens monitoring'",
    "story5: clicking outside the three named controls opens nothing": "no whole-row handler; test 'clicking outside the three named controls opens nothing' asserts no route + no drill-in on a role-cell click",
    "story6: readouts >=0.8rem mono, headers >=0.75rem, no temperature column, one line per row": "OcResourceBar readout 0.8rem mono; FleetScreen th 0.75rem mono; tests 'no temperature column and headers at the honest scale' and 'every device ... occupies exactly one row' (7 cells)"
  },
  "summary": "DF's resting Fleet list gains three graded CPU/MEM/DISK telemetry columns (honesty rule enforced structurally) and the device-name look-at affordance opening P9-S1 in place, per DDR 0202.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #802 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 802, "status": "success", "commits": [ "f816950407a410f8331599ebc40a22bceed747d5" ], "changed_files": [ "STATUS.md", "dashboard/src/components/shell/FleetScreen.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/lib/fleet.ts", "dashboard/tests/fakes/fleet.ts", "dashboard/tests/unit/fleetTelemetryColumns.test.ts", "docs/ux/wireframes/shell/shell-df-fleet.html" ], "tests": [ { "command": "npx vitest run tests/unit/fleetTelemetryColumns.test.ts", "exit_code": 0 }, { "command": "npx vitest run (full dashboard suite, 1226 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "story1: fleet-list carries DEVICE·ROLE·HEALTH·CPU·MEM·DISK + trailing action, reporting rows render cpu/mem/disk bars with mono NN%": "FleetScreen.vue thead + OcResourceBar per cell (data-field cpu-/mem-/disk-<id>); test 'the six-column contract' asserts headers and readouts", "story1: gateway still row one with telemetry joined (DDR 0095 untouched)": "frameRestingList unchanged; test 'keeps the gateway as row one with its telemetry joined' asserts karaka row one + 22/41/37", "story3: non-reporting row shows — (data-status=none), never 0% nor frozen bar": "cellPct(row,key) passes null unless telemetryState==='reporting'; tests 'shows — in every cell of a non-reporting row' and 'never a frozen bar: stale readings still render —'", "story3: asleep-expected + connected-not-set-up both render — while health chips keep their truth": "kauri/matai non-reporting in fake; test asserts — in all three cells and non-empty health-chip text", "story4: readings below 60 / >=60<80 / >=80 grade ok/warn/bad; bad from --oc-status-warning, readout bold; no red token in rendered CSS": "gradeResource via OcResourceBar + GRADE_TOKEN; test '59/60/80 as ok/warn/bad' and 'bad paints from the warning tier ... no red token' asserting fill style + .oc-resource-bar__pc--bad + FleetScreen style has no red token", "story5: device name (device-detail-<id>) opens P9-S1 in place; change/set up open P4-S1, health chip opens P5-S3 unchanged": "deviceDetailRoute + FleetSurface owner device-telemetry in-place mount; test 'activating the device name opens P9-S1 in place' and 'change / set up still open provisioning, health chip opens monitoring'", "story5: clicking outside the three named controls opens nothing": "no whole-row handler; test 'clicking outside the three named controls opens nothing' asserts no route + no drill-in on a role-cell click", "story6: readouts >=0.8rem mono, headers >=0.75rem, no temperature column, one line per row": "OcResourceBar readout 0.8rem mono; FleetScreen th 0.75rem mono; tests 'no temperature column and headers at the honest scale' and 'every device ... occupies exactly one row' (7 cells)" }, "summary": "DF's resting Fleet list gains three graded CPU/MEM/DISK telemetry columns (honesty rule enforced structurally) and the device-name look-at affordance opening P9-S1 in place, per DDR 0202.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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#802
No description provided.