observability: shell-device-detail-drill-in — P9-S1 / S1x / S2 / S3 / S3x — the observing drill-in, mounted in place on Fleet #804

Closed
opened 2026-08-25 10:58:20 +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-device-detail-drill-in of docs/slices/observability.yaml; covers spec #769 stories 7–29.

What to build

The observing counterpart to P4: looking at a device becomes its own surface, and it changes
nothing
. P9-S1 mounts over the Fleet list the way P4-S1 and device-add already do (DDR 0101 §1 /
DDR 0109) with ← Fleet back — no seventh tab (ADR 0094), no route of its own, no modal, and the
URL stays /fleet. Back closes and re-reads, so a device whose state changed while the
drill-in was open shows its new row.

All five object states land here, and each is honest in its own way: reporting (three gauges with
the sample age named every single time), stale (gauges mute, the exact age and last-sample
wall-clock named — no stale-green, and an 83% disk carries no bad emphasis while it is 26
minutes old), last-known (a dated record, monitoring's silence verdict verbatim plus the door to
P5-S1x, Refresh not offered), none (track-only rings with —, the reason named, set-up as the
prominent act) and unavailable (a rendered, retryable state where the chip, heartbeat and
services keep rendering — a partial failure stays partial).

The surface offers no act that alters the fleet. Its one changing door is the hand-off to
P4-S1 (ADR 0063); its service chips drill into P5-S3; and open-logs / download-logs are emitted
as routed intents scoped to this device (the logs surface itself is #791's). The two cross-feature
edges here are route targets that must already exist: monitoring's drill-in and provisioning's
assess surface.

Acceptance criteria

  • (story 7) Given P9-S1 open, then it is mounted over the Fleet tab's list, the URL stays /fleet, no seventh tab appears and no modal is used; and when back-to-fleet is activated, then the resting list returns and is re-read.
  • (story 8) Given any P9 frame, then the only fleet-affecting control is the hand-off to provisioning (change-device-<id> on an active device, set-up-<id> on a not-yet-set-up one) — no assess, role, service or threshold act exists.
  • (stories 10–11) Given reporting, then telemetry-gauges renders gauge-cpu / gauge-mem / gauge-disk with grades from the shared constants, and the label names the sample age — the age is present in every P9 frame.
  • (story 12) Given any reading graded bad, then a callout names the condition in plain words including the percentage and its only door routes to provisioning.
  • (stories 13–14) Given P9-S1, then device-facts, last-heartbeat and temperature render as stated facts (a device with no sensor reads "not reported"), and services-on-device lists each service with an OcStatusDot, monitoring's chip verbatim, and service-detail-<service> opening P5-S3.
  • (story 17) Given a sample age past 2× cadence, then stale-callout names it with the exact age and the last sample's wall-clock time, every gauge renders data-status="stale" muted, and no gauge renders a healthy grade.
  • (story 18) Given stale while heartbeats are current, then the health chip, last-heartbeat and the service chips keep rendering their own current truth beside the stale telemetry.
  • (stories 20–22) Given last-known, then the gauges' label reads as a dated record, silent-callout names how long heartbeats have been absent and states that everything below is the last-known record, it carries monitoring's verdict verbatim with open-silence-classification into P5-S1x, logs stay offered, Refresh is not offered, and each service dot renders muted.
  • (stories 24–26) Given none, then no-telemetry-callout names the absence and its reason and states nothing is wrong, gauges render bare tracks with — (never 0%), device-facts states the consented install mode / pairing date / probed specs, services-on-device states "none yet", and the prominent act is set-up-<id> into P4-S1 with no Change this device control.
  • (stories 27–28) Given unavailable, then unavailable-callout names the failure and the honest boundary and offers retry-telemetry plus the footer retry, the gauges render — (no last value re-shown as current), and the chip, heartbeat and services keep rendering from their own reads.
  • (stories 19/23/26/28) Given stale / last-known / none / unavailable, when the next read returns reporting, then the surface renders P9-S1 with live grades and the new age with no operator act required (the recovery edges).
  • (story 29) Given the P9 read itself failing at transport, then the shared error state with a retry renders — never a blank pane; and stale and unavailable are never conflated.
  • (stories 15–16, 30) Given any P9 frame, then open-logs / download-logs are offered as routed intents scoped to this device; refresh-telemetry re-reads through the injected client behind the shared async guard; and the surface re-reads on the mount registry's supplied cadence (30 s) with the timer cleared on unmount and no component-invented interval.

Design contract

  • Flow: docs/ux/flows/p9-device-telemetry.mermaid
  • Edges implemented: DF→P9-S1, DF→P9-S3, P9-S1→DF, P9-S1→P9-S1x, P9-S1x→P9-S1, P9-S1→P9-S2, P9-S2→P9-S1, P9-S2→P5-S1x, P9-S1→P9-S3x, P9-S3x→P9-S1, P9-S3→P9-S1, P9-S1→P4-S1, P9-S3→P4-S1, P9-S1→P5-S3
  • Wireframes (the element-ID contract):
    • docs/ux/wireframes/p9-device-telemetry/p9-s1-device-detail.html
    • docs/ux/wireframes/p9-device-telemetry/p9-s1x-readings-gone-stale.html
    • docs/ux/wireframes/p9-device-telemetry/p9-s2-device-silent-last-known.html
    • docs/ux/wireframes/p9-device-telemetry/p9-s3-no-telemetry-yet.html
    • docs/ux/wireframes/p9-device-telemetry/p9-s3x-telemetry-unavailable.html

Blocked by

  • #799 — observability:ui-kit-telemetry-primitives
  • #802 — observability:shell-fleet-telemetry-columns
  • #803 — observability:transport-device-telemetry-detail
  • monitoring:notify-and-drill (#84 — done, satisfied)
  • provisioning:provision-assess-recommend (#41 — done, satisfied)

Task manifest

task: observability:shell-device-detail-drill-in
implements_flow: p9-device-telemetry
implements_edge: DF→P9-S1, DF→P9-S3, P9-S1→DF, P9-S1→P9-S1x, P9-S1x→P9-S1, P9-S1→P9-S2, P9-S2→P9-S1, P9-S2→P5-S1x,
  P9-S1→P9-S3x, P9-S3x→P9-S1, P9-S3→P9-S1, P9-S1→P4-S1, P9-S3→P4-S1, P9-S1→P5-S3
wireframe:
- docs/ux/wireframes/p9-device-telemetry/p9-s1-device-detail.html
- docs/ux/wireframes/p9-device-telemetry/p9-s1x-readings-gone-stale.html
- docs/ux/wireframes/p9-device-telemetry/p9-s2-device-silent-last-known.html
- docs/ux/wireframes/p9-device-telemetry/p9-s3-no-telemetry-yet.html
- docs/ux/wireframes/p9-device-telemetry/p9-s3x-telemetry-unavailable.html
interface: a device-detail screen mounted in place by `FleetSurface`, over the injected Fleet seam's per-device
  read, rendering all five telemetry object-states and emitting `change-device-<id>` / `set-up-<id>` /
  `service-detail-<service>` / `open-silence-classification` / `open-logs` / `download-logs` as routed
  intents
seam: 'dashboard component tests against the hand-written fake of the grown Fleet seam (prior art `fleet.test.ts`,
  `monitoringDrillIn.test.ts`, `monitoringSilence.test.ts`, `surfaceFaultFrame.test.ts`), asserting the
  five wireframes'' `data-field` / `data-action` / `data-status` contract: every object-state, the no-stale-green
  rule, the `—` honesty rule, each action routing to its owning feature, back-closes-and-re-reads, and
  the shared error frame'
acceptance:
- given: P9-S1 open
  when: '`back-to-fleet` is activated'
  then: the resting list returns and is re-read; the URL never changed and no seventh tab appeared
- given: a device whose sample age exceeds 2× cadence
  when: the drill-in renders
  then: the stale callout names the exact age and last-sample time and every gauge is muted — no healthy
    grade anywhere
- given: a silent device
  when: the drill-in renders
  then: the gauges read as a dated record, monitoring's verdict is carried verbatim with the P5-S1x door,
    and Refresh is not offered
- given: a device that has never reported
  when: the drill-in renders
  then: gauges are bare tracks reading `—`, the reason is named, and `set-up-<id>` is the prominent act
- given: an online device whose collector faulted
  when: the drill-in renders
  then: the unavailable callout and its retries render while the chip, heartbeat and services keep rendering
- given: any of stale / last-known / none / unavailable
  when: a later read returns `reporting`
  then: P9-S1 renders with live grades and the new age, with no operator act
depends_on:
- ui-kit-telemetry-primitives
- shell-fleet-telemetry-columns
- transport-device-telemetry-detail
- monitoring:notify-and-drill
- provisioning:provision-assess-recommend
out_of_scope:
- any act that changes a device — assess, role, services, storage and remediation stay provisioning's
  (ADR 0063)
- the logs surface that receives `open-logs` / `download-logs` (#791's `ui-kit-logs-screen` / `shell-logs-intent-mount`)
- history charts / time series
- temperature grading or alerting
- a seventh tab or a `/fleet/<id>` route — the mount is in place
- 're-judging silence: DDR 0071''s verdict is monitoring''s and is carried verbatim'
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-device-detail-drill-in` of `docs/slices/observability.yaml`; covers spec #769 stories 7–29. ## What to build The observing counterpart to P4: looking at a device becomes its own surface, and it **changes nothing**. P9-S1 mounts over the Fleet list the way P4-S1 and device-add already do (DDR 0101 §1 / DDR 0109) with `← Fleet` back — no seventh tab (ADR 0094), no route of its own, no modal, and the URL stays `/fleet`. Back closes and **re-reads**, so a device whose state changed while the drill-in was open shows its new row. All five object states land here, and each is honest in its own way: *reporting* (three gauges with the sample age named every single time), *stale* (gauges mute, the exact age and last-sample wall-clock named — **no stale-green**, and an 83% disk carries no bad emphasis while it is 26 minutes old), *last-known* (a dated record, monitoring's silence verdict verbatim plus the door to P5-S1x, Refresh not offered), *none* (track-only rings with `—`, the reason named, set-up as the prominent act) and *unavailable* (a rendered, retryable state where the chip, heartbeat and services keep rendering — a partial failure stays partial). The surface offers **no act that alters the fleet**. Its one changing door is the hand-off to P4-S1 (ADR 0063); its service chips drill into P5-S3; and `open-logs` / `download-logs` are emitted as routed intents scoped to this device (the logs surface itself is #791's). The two cross-feature edges here are route targets that must already exist: monitoring's drill-in and provisioning's assess surface. ## Acceptance criteria - [ ] (story 7) Given P9-S1 open, then it is mounted over the Fleet tab's list, the URL stays `/fleet`, no seventh tab appears and no modal is used; and when `back-to-fleet` is activated, then the resting list returns **and is re-read**. - [ ] (story 8) Given any P9 frame, then the only fleet-affecting control is the hand-off to provisioning (`change-device-<id>` on an active device, `set-up-<id>` on a not-yet-set-up one) — no assess, role, service or threshold act exists. - [ ] (stories 10–11) Given *reporting*, then `telemetry-gauges` renders `gauge-cpu` / `gauge-mem` / `gauge-disk` with grades from the shared constants, and the label names the sample age — **the age is present in every P9 frame**. - [ ] (story 12) Given any reading graded *bad*, then a callout names the condition in plain words including the percentage and its only door routes to provisioning. - [ ] (stories 13–14) Given P9-S1, then `device-facts`, `last-heartbeat` and `temperature` render as stated facts (a device with no sensor reads "not reported"), and `services-on-device` lists each service with an `OcStatusDot`, monitoring's chip verbatim, and `service-detail-<service>` opening P5-S3. - [ ] (story 17) Given a sample age past 2× cadence, then `stale-callout` names it with the exact age and the last sample's wall-clock time, every gauge renders `data-status="stale"` muted, and **no gauge renders a healthy grade**. - [ ] (story 18) Given *stale* while heartbeats are current, then the health chip, `last-heartbeat` and the service chips keep rendering their own current truth beside the stale telemetry. - [ ] (stories 20–22) Given *last-known*, then the gauges' label reads as a dated record, `silent-callout` names how long heartbeats have been absent and states that everything below is the last-known record, it carries monitoring's verdict verbatim with `open-silence-classification` into P5-S1x, logs stay offered, Refresh is **not** offered, and each service dot renders muted. - [ ] (stories 24–26) Given *none*, then `no-telemetry-callout` names the absence **and its reason** and states nothing is wrong, gauges render bare tracks with `—` (never `0%`), `device-facts` states the consented install mode / pairing date / probed specs, `services-on-device` states "none yet", and the prominent act is `set-up-<id>` into P4-S1 with no *Change this device* control. - [ ] (stories 27–28) Given *unavailable*, then `unavailable-callout` names the failure and the honest boundary and offers `retry-telemetry` plus the footer retry, the gauges render `—` (no last value re-shown as current), and the chip, heartbeat and services keep rendering from their own reads. - [ ] (stories 19/23/26/28) Given *stale* / *last-known* / *none* / *unavailable*, when the next read returns *reporting*, then the surface renders P9-S1 with live grades and the new age with **no operator act required** (the recovery edges). - [ ] (story 29) Given the P9 read itself failing at transport, then the shared error state with a retry renders — never a blank pane; and *stale* and *unavailable* are never conflated. - [ ] (stories 15–16, 30) Given any P9 frame, then `open-logs` / `download-logs` are offered as routed intents scoped to this device; `refresh-telemetry` re-reads through the injected client behind the shared async guard; and the surface re-reads on the mount registry's supplied cadence (30 s) with the timer cleared on unmount and no component-invented interval. ## Design contract - **Flow:** `docs/ux/flows/p9-device-telemetry.mermaid` - **Edges implemented:** `DF→P9-S1, DF→P9-S3, P9-S1→DF, P9-S1→P9-S1x, P9-S1x→P9-S1, P9-S1→P9-S2, P9-S2→P9-S1, P9-S2→P5-S1x, P9-S1→P9-S3x, P9-S3x→P9-S1, P9-S3→P9-S1, P9-S1→P4-S1, P9-S3→P4-S1, P9-S1→P5-S3` - **Wireframes (the element-ID contract):** - `docs/ux/wireframes/p9-device-telemetry/p9-s1-device-detail.html` - `docs/ux/wireframes/p9-device-telemetry/p9-s1x-readings-gone-stale.html` - `docs/ux/wireframes/p9-device-telemetry/p9-s2-device-silent-last-known.html` - `docs/ux/wireframes/p9-device-telemetry/p9-s3-no-telemetry-yet.html` - `docs/ux/wireframes/p9-device-telemetry/p9-s3x-telemetry-unavailable.html` ## Blocked by - #799 — `observability:ui-kit-telemetry-primitives` - #802 — `observability:shell-fleet-telemetry-columns` - #803 — `observability:transport-device-telemetry-detail` - `monitoring:notify-and-drill` (#84 — done, satisfied) - `provisioning:provision-assess-recommend` (#41 — done, satisfied) ## Task manifest ```yaml task: observability:shell-device-detail-drill-in implements_flow: p9-device-telemetry implements_edge: DF→P9-S1, DF→P9-S3, P9-S1→DF, P9-S1→P9-S1x, P9-S1x→P9-S1, P9-S1→P9-S2, P9-S2→P9-S1, P9-S2→P5-S1x, P9-S1→P9-S3x, P9-S3x→P9-S1, P9-S3→P9-S1, P9-S1→P4-S1, P9-S3→P4-S1, P9-S1→P5-S3 wireframe: - docs/ux/wireframes/p9-device-telemetry/p9-s1-device-detail.html - docs/ux/wireframes/p9-device-telemetry/p9-s1x-readings-gone-stale.html - docs/ux/wireframes/p9-device-telemetry/p9-s2-device-silent-last-known.html - docs/ux/wireframes/p9-device-telemetry/p9-s3-no-telemetry-yet.html - docs/ux/wireframes/p9-device-telemetry/p9-s3x-telemetry-unavailable.html interface: a device-detail screen mounted in place by `FleetSurface`, over the injected Fleet seam's per-device read, rendering all five telemetry object-states and emitting `change-device-<id>` / `set-up-<id>` / `service-detail-<service>` / `open-silence-classification` / `open-logs` / `download-logs` as routed intents seam: 'dashboard component tests against the hand-written fake of the grown Fleet seam (prior art `fleet.test.ts`, `monitoringDrillIn.test.ts`, `monitoringSilence.test.ts`, `surfaceFaultFrame.test.ts`), asserting the five wireframes'' `data-field` / `data-action` / `data-status` contract: every object-state, the no-stale-green rule, the `—` honesty rule, each action routing to its owning feature, back-closes-and-re-reads, and the shared error frame' acceptance: - given: P9-S1 open when: '`back-to-fleet` is activated' then: the resting list returns and is re-read; the URL never changed and no seventh tab appeared - given: a device whose sample age exceeds 2× cadence when: the drill-in renders then: the stale callout names the exact age and last-sample time and every gauge is muted — no healthy grade anywhere - given: a silent device when: the drill-in renders then: the gauges read as a dated record, monitoring's verdict is carried verbatim with the P5-S1x door, and Refresh is not offered - given: a device that has never reported when: the drill-in renders then: gauges are bare tracks reading `—`, the reason is named, and `set-up-<id>` is the prominent act - given: an online device whose collector faulted when: the drill-in renders then: the unavailable callout and its retries render while the chip, heartbeat and services keep rendering - given: any of stale / last-known / none / unavailable when: a later read returns `reporting` then: P9-S1 renders with live grades and the new age, with no operator act depends_on: - ui-kit-telemetry-primitives - shell-fleet-telemetry-columns - transport-device-telemetry-detail - monitoring:notify-and-drill - provisioning:provision-assess-recommend out_of_scope: - any act that changes a device — assess, role, services, storage and remediation stay provisioning's (ADR 0063) - the logs surface that receives `open-logs` / `download-logs` (#791's `ui-kit-logs-screen` / `shell-logs-intent-mount`) - history charts / time series - temperature grading or alerting - a seventh tab or a `/fleet/<id>` route — the mount is in place - 're-judging silence: DDR 0071''s verdict is monitoring''s and is carried verbatim' 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 #804 — status success

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

envelope
{
  "issue": 804,
  "status": "success",
  "commits": [
    "85ad0b5f943d15b6380749a2e02010dcfd11b3f2"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/observability/DeviceDetailSurface.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/lib/deviceTelemetry.ts",
    "dashboard/src/lib/fleet.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/tests/fakes/deviceTelemetry.ts",
    "dashboard/tests/support/defaultDashboardDeps.ts",
    "dashboard/tests/unit/deviceDetailDrillIn.test.ts",
    "packages/ui-kit/src/components/OcGaugeRing.vue",
    "packages/ui-kit/tests/unit/ocTelemetryPrimitives.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm vitest run (dashboard)",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run (packages/ui-kit)",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (ui-kit)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story7: back-to-fleet returns the re-read list, URL stays /fleet, no seventh tab, no modal": "FleetSurface mounts DeviceDetailSurface in place under data-field=device-detail-drill-in with a ← Fleet control (no route emitted, no tab change); closeDeviceDetail() re-reads the list — deviceDetailDrillIn.test.ts 'mounts the drill-in over the Fleet list without emitting a route' + 'back-to-fleet returns the list and re-reads it' (load called twice)",
    "story8: only fleet-affecting control is the provisioning hand-off (change-device-<id> active / set-up-<id> not-set-up)": "DeviceDetailSurface renders change (provisioned) or set-up (not) only; no assess/role/service/threshold act — test 'the only fleet-affecting control is the P4-S1 hand-off' + 'makes set-up the prominent act with no Change control'",
    "stories10-11: reporting renders gauge-cpu/mem/disk graded from shared constants, age in every frame": "OcGaugeRing per key with statusGrades; label names the sample age — test 'renders cpu/mem/disk with grades ... and the sample age in the label'",
    "story12: a bad reading is called out in plain words with the percentage, only door to provisioning": "disk-bad-callout names '83%' and routes change-device-rimu (provisioning) — test 'names a bad reading in plain words with the percentage'",
    "stories13-14: device-facts/last-heartbeat/temperature stated (no sensor = not reported); services each OcStatusDot + monitoring chip verbatim + service-detail-<svc> to P5-S3": "tests 'states the device facts, heartbeat and temperature, and lists each service with monitoring's chip' + 'reads temperature as not reported for a device with no sensor'",
    "story17: stale names exact age + last-sample wall-clock, gauges data-status=stale muted, no healthy grade": "gaugeState maps stale; label carries 14:02 + 26 min ago — test 'mutes every gauge and renders no healthy grade, naming the exact age and wall-clock'",
    "story18: stale while heartbeats current — chip/heartbeat/service chips keep their own current truth": "test 'keeps the heartbeat and service chips rendering their own current truth'",
    "stories20-22: last-known dated record, monitoring verdict verbatim + open-silence-classification to P5-S1x, logs offered, Refresh NOT offered, dots muted": "tests 'reads the gauges as a dated record and carries the silence verdict with the P5-S1x door' + 'does not offer Refresh, mutes each service dot, and keeps logs offered'",
    "stories24-26: none names absence + reason, gauges — never 0%, device-facts install mode/pairing date/probed specs, services 'none yet', set-up prominent no Change": "test 'names the absence and its reason, renders bare — tracks and states the probed specs' + 'makes set-up the prominent act with no Change control'",
    "stories27-28: unavailable names failure + boundary, retry-telemetry + footer retry, gauges —, chip/heartbeat/services keep rendering": "test 'names the failure with both retries and renders — gauges, the other facts still rendering'",
    "stories19/23/26/28: next read returning reporting renders P9-S1 live grades + new age, no operator act": "FakeDeviceTelemetrySource.recovering; reload (cadence tick) turns stale→reporting — test 'renders P9-S1 with live grades and the new age on the next read, no operator act'",
    "story29: transport read failure renders the shared error frame with retry (never blank); stale/unavailable never conflated": "OcErrorState via async guard on a thrown error; each gauge state stamps its own data-status — test 'renders the shared error frame with a retry when the read fails at transport'",
    "stories15-16,30: open-logs/download-logs routed intents scoped to this device; refresh re-reads behind the async guard; 30 s cadence cleared on unmount, no invented interval": "FleetSurface forwards open-logs/download-logs (scope=deviceId); refreshMs default 30_000 timer cleared onUnmounted — tests 'forwards open-logs / download-logs scoped to this device' + 'the cadence: a 30 s re-read cleared on unmount'"
  },
  "summary": "The observing P9 device-detail drill-in mounts in place on Fleet, renders all five telemetry object-states honestly, and changes nothing — its one door hands off to provisioning.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #804 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 804, "status": "success", "commits": [ "85ad0b5f943d15b6380749a2e02010dcfd11b3f2" ], "changed_files": [ "STATUS.md", "dashboard/src/components/observability/DeviceDetailSurface.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/lib/deviceTelemetry.ts", "dashboard/src/lib/fleet.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/tests/fakes/deviceTelemetry.ts", "dashboard/tests/support/defaultDashboardDeps.ts", "dashboard/tests/unit/deviceDetailDrillIn.test.ts", "packages/ui-kit/src/components/OcGaugeRing.vue", "packages/ui-kit/tests/unit/ocTelemetryPrimitives.test.ts" ], "tests": [ { "command": "CI=true pnpm vitest run (dashboard)", "exit_code": 0 }, { "command": "CI=true pnpm vitest run (packages/ui-kit)", "exit_code": 0 }, { "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "CI=true pnpm exec vue-tsc -p tsconfig.json --noEmit (ui-kit)", "exit_code": 0 } ], "criteria": { "story7: back-to-fleet returns the re-read list, URL stays /fleet, no seventh tab, no modal": "FleetSurface mounts DeviceDetailSurface in place under data-field=device-detail-drill-in with a ← Fleet control (no route emitted, no tab change); closeDeviceDetail() re-reads the list — deviceDetailDrillIn.test.ts 'mounts the drill-in over the Fleet list without emitting a route' + 'back-to-fleet returns the list and re-reads it' (load called twice)", "story8: only fleet-affecting control is the provisioning hand-off (change-device-<id> active / set-up-<id> not-set-up)": "DeviceDetailSurface renders change (provisioned) or set-up (not) only; no assess/role/service/threshold act — test 'the only fleet-affecting control is the P4-S1 hand-off' + 'makes set-up the prominent act with no Change control'", "stories10-11: reporting renders gauge-cpu/mem/disk graded from shared constants, age in every frame": "OcGaugeRing per key with statusGrades; label names the sample age — test 'renders cpu/mem/disk with grades ... and the sample age in the label'", "story12: a bad reading is called out in plain words with the percentage, only door to provisioning": "disk-bad-callout names '83%' and routes change-device-rimu (provisioning) — test 'names a bad reading in plain words with the percentage'", "stories13-14: device-facts/last-heartbeat/temperature stated (no sensor = not reported); services each OcStatusDot + monitoring chip verbatim + service-detail-<svc> to P5-S3": "tests 'states the device facts, heartbeat and temperature, and lists each service with monitoring's chip' + 'reads temperature as not reported for a device with no sensor'", "story17: stale names exact age + last-sample wall-clock, gauges data-status=stale muted, no healthy grade": "gaugeState maps stale; label carries 14:02 + 26 min ago — test 'mutes every gauge and renders no healthy grade, naming the exact age and wall-clock'", "story18: stale while heartbeats current — chip/heartbeat/service chips keep their own current truth": "test 'keeps the heartbeat and service chips rendering their own current truth'", "stories20-22: last-known dated record, monitoring verdict verbatim + open-silence-classification to P5-S1x, logs offered, Refresh NOT offered, dots muted": "tests 'reads the gauges as a dated record and carries the silence verdict with the P5-S1x door' + 'does not offer Refresh, mutes each service dot, and keeps logs offered'", "stories24-26: none names absence + reason, gauges — never 0%, device-facts install mode/pairing date/probed specs, services 'none yet', set-up prominent no Change": "test 'names the absence and its reason, renders bare — tracks and states the probed specs' + 'makes set-up the prominent act with no Change control'", "stories27-28: unavailable names failure + boundary, retry-telemetry + footer retry, gauges —, chip/heartbeat/services keep rendering": "test 'names the failure with both retries and renders — gauges, the other facts still rendering'", "stories19/23/26/28: next read returning reporting renders P9-S1 live grades + new age, no operator act": "FakeDeviceTelemetrySource.recovering; reload (cadence tick) turns stale→reporting — test 'renders P9-S1 with live grades and the new age on the next read, no operator act'", "story29: transport read failure renders the shared error frame with retry (never blank); stale/unavailable never conflated": "OcErrorState via async guard on a thrown error; each gauge state stamps its own data-status — test 'renders the shared error frame with a retry when the read fails at transport'", "stories15-16,30: open-logs/download-logs routed intents scoped to this device; refresh re-reads behind the async guard; 30 s cadence cleared on unmount, no invented interval": "FleetSurface forwards open-logs/download-logs (scope=deviceId); refreshMs default 30_000 timer cleared onUnmounted — tests 'forwards open-logs / download-logs scoped to this device' + 'the cadence: a 30 s re-read cleared on unmount'" }, "summary": "The observing P9 device-detail drill-in mounts in place on Fleet, renders all five telemetry object-states honestly, and changes nothing — its one door hands off to provisioning.", "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#804
No description provided.