control-panel observability child spec: device telemetry (P9) — Fleet drill-in + resource telemetry #769
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#769
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #759 — control-panel observability: Fleet device drill-in + resource telemetry (the arc was filed from the 2026-08-24
matou-distributed-serverscomparison rather than charted on the map; the map's v1 scope is what it lands inside).Design tier this spec is written against (all present, all
accepted):docs/adr/0202-design-device-telemetry-observing-drill-in.md— the ruling DDR; also mints the shared telemetry kit primitives and grading constants the sibling observability DDRs 0203–0206 reference.docs/ux/flows/p9-device-telemetry.mermaid(+ the one newshell.mermaidedge DF → P9-S1).docs/ux/wireframes/p9-device-telemetry/—p9-df-fleet-telemetry-columns,p9-s1-device-detail,p9-s1x-readings-gone-stale,p9-s2-device-silent-last-known,p9-s3-no-telemetry-yet,p9-s3x-telemetry-unavailable. Theirdata-field/data-action/data-statusattributes are the stable element-ID contract every acceptance criterion below is written against.CONTEXT.md— Telemetry (Language) and Device telemetry (P9) object-states (Design nouns), merged with the arc.Siblings in the same observability arc (each specs separately, then all fan in at one
/slice-map): #760 logs, #761 network, #762 replication matrix, #763 activity feed, #764 topology map (deferred).Problem Statement
An operator can act on a device but cannot look at one. The Fleet tab's resting list gives each device exactly two doors — the health chip into monitoring's service drill-in (P5-S3) and change / set up into provisioning's standing surface (P4-S1) — and there is no third: no per-device surface, and no CPU, memory, disk or temperature reading anywhere in the control panel.
So the questions an operator actually asks when something feels wrong have no answer in the panel. Is this device running out of disk? Is chat slow because the box is loaded, or because chat is broken? This device has been quiet — what was it doing before it went quiet? Today the honest answer is "SSH in", which is exactly the operator this product is built for (low-skill, low-time) not doing it. The panel is strong on verbs and thin on truth: it tells the operator what they may change, never how the fleet is doing.
The absence also costs honesty. Because there is no telemetry surface, there is nowhere for the fleet's most common quiet failure — a reading that stopped arriving — to be named. A number that silently stops updating is worse than no number, and the panel currently has neither.
Solution
Looking at a device becomes its own surface, and it changes nothing. ADR 0063 rules P4 the standing surface for changing a node; P9 is the observing counterpart, and the split stays clean in both directions — P9 offers no act that alters the fleet, and its one changing door is a hand-off into P4.
Two things land:
The Fleet resting list gains telemetry at a glance. DF grows three columns — CPU / MEM / DISK — each a graded resource bar, joined into the same aggregating read that already fills the health chip, so a row and a drill-in can never disagree (DDR 0155 §3). Grading is shared kit constants: ≥60% warn, ≥80% bad. A non-reporting row shows an honest —, never
0%and never a frozen bar. Temperature stays drill-in-only so the row stays one line at product type scale (ADR 0122 amendment).The device name opens an observing drill-in, in place on Fleet. P9-S1 mounts over the list the way P4-S1 and device-add already do (DDR 0101 §1 / DDR 0109), with "← Fleet" back — never a new tab (ADR 0094's six are closed) and never a route of its own. It shows three gauge rings with the sample age always named, temperature and heartbeat as plain facts, the services this device runs wearing monitoring's own chips (each detail → P5-S3), Open / Download logs (the standing ADR 0027 rule), an explicit Refresh, and one act — Change this device → P4-S1.
Telemetry is monitoring's truth, and its freshness is a verdict, not a timestamp comparison. The control plane's monitoring loop already aggregates health, heartbeats and checks over the mesh; resource readings become a fourth thing it collects and classifies. The classification travels on the wire as a named state; the surface renders it and computes nothing (ADR 0097). That is what makes the five object-states honest:
Three kit primitives are minted here and consumed by the whole observability arc:
OcGaugeRing,OcResourceBar,OcStatusDot, plus one status-grading constants module (RESOURCE_WARN_PCT/RESOURCE_BAD_PCT,CERT_WARN_DAYS/CERT_BAD_DAYS, and the grade→token map). The kit compiles no red: grade bad paints from--oc-status-warningand is told apart by a bold readout and named copy, never a third colour.User Stories
A — The Fleet resting list gains telemetry (DF, amended by DDR 0202)
As an operator, I want CPU, memory and disk shown per device on the Fleet list, so that I can see which device is under pressure without opening anything.
data-field="fleet-list") carries the columnsDEVICE,ROLE,HEALTH,CPU,MEM,DISKand a trailing action column, and every reporting row renders a resource bar per telemetry cell (data-field="cpu-<id>" / "mem-<id>" / "disk-<id>") with a monoNN%readout.As an operator, I want a device's row and its detail to agree always, so that I never have to decide which number to believe.
As an operator, I want a device that isn't reporting to say so rather than show a stale or invented number, so that the glance surface is never a lie.
—(data-status="none", the.rbbar in its.nonevariant) — never0%, never a frozen bar at the last value.kauri) and a connected-not-set-up device (mātai), Then both render—in all three telemetry cells while their health chips keep rendering their own verbatim truth.As an operator, I want the pressure grading to be consistent and never alarming in the wrong colour, so that I learn one visual language across the whole panel.
ok(data-status="ok").warn(data-status="warn").bad(data-status="bad"), painted from--oc-status-warningwith the readout bolded — no red token is emitted anywhere in the rendered CSS.As an operator, I want the device's name to be the thing I click to look at it, so that the row's grammar states what each control does.
data-action="device-detail-<id>"), Then P9-S1 opens for that device in place on the Fleet tab.data-action="change-node-<id>" / "set-up-<id>") still opens provisioning's P4-S1 and the health chip still opens monitoring's P5-S3 — unchanged owners, unchanged actions.As an operator on a narrow window, I want the list to stay one line per device, so that the fleet stays scannable.
B — Opening and closing the observing drill-in (edges DF → P9-S1 / P9-S3, P9-S1 → DF)
As an operator, I want looking at a device to keep me on Fleet, so that I never lose my place in the panel.
/fleet, no seventh tab appears (ADR 0094), and no modal is used.data-action="back-to-fleet", Then the resting list returns and is re-read, so a device whose state changed while the drill-in was open shows its new row.As an operator, I want the drill-in to be honestly read-only, so that I can look at a struggling device without fear of changing it.
data-action="change-device-<id>"on an active device,data-action="set-up-<id>"on a not-yet-set-up one); no assess, role, service or threshold act exists on the surface.As an operator, I want opening a device that has never reported to land somewhere sensible, so that a fresh device is not a dead end.
C — Telemetry reporting (P9-S1)
As an operator, I want the three readings shown as gauges with their grade, so that I can read pressure at a glance.
data-field="telemetry-gauges"renders three rings —gauge-cpu,gauge-mem,gauge-disk— each carrying its percentage as a mono value and its grade asdata-status="ok" | "warn" | "bad"under the same constants as story 4.As an operator, I want to know how old the numbers are every single time, so that I am never guessing at freshness.
TELEMETRY · SAMPLED 18 S AGO) — the age is present in every P9 frame, never omitted because the reading looks current.As an operator, I want a nearly-full disk called out in words, so that colour alone never has to carry the warning.
data-field="disk-bad-callout"for disk) names the condition in plain words including the percentage, and its only door routes to provisioning (data-action="change-device-<id>-from-callout") — the observing surface offers no fix of its own.As an operator, I want the device's plain facts beside its readings, so that I have the context to interpret them.
data-field="device-facts"(always-on/intermittent, install mode, joined date),data-field="last-heartbeat"anddata-field="temperature"render as stated facts.data-field="temperature"reads "not reported" — never a fabricated value, and never graded or alerted on (v1 rules temperature ungraded).As an operator, I want the services this device runs listed with monitoring's own chips, so that "the box is fine, chat isn't" is one glance.
data-field="services-on-device"lists each service this device runs with anOcStatusDot, monitoring's chip verbatim, anddata-action="service-detail-<service>"opening monitoring's P5-S3 (edge P9-S1 → P5-S3).As an operator, I want logs reachable from the device I am looking at, so that the standing rule holds here too.
data-action="open-logs"anddata-action="download-logs"are offered (ADR 0027), emitted as routed intents scoped to this device — the logs surface itself is DDR 0203's (#760) and is not built by this spec.As an operator, I want to force a fresh read when I am watching something, so that I am not waiting on a cadence.
data-action="refresh-telemetry", Then the surface re-reads through its injected client behind the shared async guard and re-renders the returned state and sample age.D — Readings gone stale (P9-S1x; edges P9-S1 → P9-S1x → P9-S1)
As an operator, I want a reading that stopped arriving to be named as a failure, not shown as if current, so that I am never reassured by an old number.
data-field="stale-callout"(data-status="stale") names it in plain words with the exact age and the wall-clock time of the last sample.data-status="stale"with its stroke muted to--oc-lineand its value in--oc-ink-soft— an 83% disk carries no bad emphasis while it is 26 minutes old, and no gauge renders a healthy grade (no stale-green).As an operator, I want stale readings and a healthy device to be stated as two separate facts, so that neither is blended into a dishonest summary.
data-field="last-heartbeat"keep rendering their own current truth ("the device is answering") beside the stale telemetry, and the service chips stay live because they ride monitoring's separate classification.As an operator, I want the surface to recover on its own when samples resume, so that I don't have to reload to learn things are fine.
E — Device silent, last-known record (P9-S2; edges P9-S1 → P9-S2 → P5-S1x / P9-S1)
As an operator, I want a silent device's numbers presented as a dated record, so that nothing on the screen can be mistaken for liveness.
data-status="last-known"muted (DDR 0096).data-field="silent-callout"(data-status="device-silent") names how long heartbeats have been absent and states explicitly that everything below is the last-known record, not the device's state now.As an operator, I want the judgement about the silence to come from monitoring, so that two surfaces can never disagree about whether a quiet device is a problem.
data-action="open-silence-classification"into monitoring's P5-S1x — the P9 surface performs no classification of its own.As an operator, I want a gone-quiet device's logs still offered, so that I can look at its last lines during a rescue.
open-logs/download-logsremain offered; the Refresh control is not offered (there is nothing to refresh from a silent device).OcStatusDotin the muted tone with monitoring's own chip — absence is a fact rendered in soft ink, never in a fault colour; urgency belongs to monitoring's alert.As an operator, I want live readings to resume by themselves when the device comes back, so that recovery needs no ceremony.
F — No telemetry yet (P9-S3; edges DF → P9-S3, P9-S3 → P4-S1 / P9-S1)
As an operator, I want a brand-new device to explain itself rather than show an empty screen, so that "nothing here" is designed, not defaulted.
data-field="no-telemetry-callout"(data-status="no-telemetry-yet") names the absence and its reason ("connected but hasn't reported its first sample — readings appear once it's set up and serving"), and states that nothing is wrong.data-status="none"as a bare track with—as its value — never0%, which would read as an idle machine (DDR 0095 spirit).As an operator, I want the facts that are known about a fresh device shown, so that the screen still earns its place.
data-field="device-facts"states the consented install mode, pairing date and the pairing-time probed specs (CPU count, RAM, disk), anddata-field="last-heartbeat"states the agent is answering.data-field="services-on-device"states "none yet — services are chosen at set-up" rather than rendering an empty list.As an operator, I want set-up to be the obvious next step on a fresh device, so that the observing surface hands me off cleanly.
data-action="set-up-<id>"opening provisioning's P4-S1 (edge P9-S3 → P4-S1, ADR 0063), and no Change this device control is shown.G — Telemetry unavailable (P9-S3x; edge P9-S3x → P9-S1)
As an operator, I want a failed telemetry read to be a rendered, retryable state, so that failure is never silent and never a toast.
data-field="unavailable-callout"(data-status="telemetry-unavailable") names the failure in plain words, states the honest boundary ("the device itself is online and its services are serving"), and offersdata-action="retry-telemetry"plus a footerdata-action="retry-telemetry-footer".data-status="unavailable"with—— no last value is re-shown as if it were current.As an operator, I want one failed truth not to take down the others, so that a partial failure stays partial.
data-field="last-heartbeat"anddata-field="services-on-device"keep rendering from their own reads — the drill-in is never blanked by the telemetry fault.As an operator, I want a whole-surface read failure handled the same honest way the rest of the panel handles it, so that I get one behaviour to learn.
FleetSurfacealready does for the aggregating read) — never a blank pane.H — Freshness, cadence and where the judgement lives
As an operator, I want the surface to keep itself current without me, so that a device I am watching updates on its own.
As a maintainer, I want the freshness verdict computed once, server-side, so that no two surfaces can disagree about whether a reading is current.
reporting/stale/last-known/none/unavailable) computed by monitoring, plus the sample timestamp and its rendered age.As a maintainer, I want the staleness bar and the grading thresholds to be system-defined, so that no operator can tune the panel into dishonesty.
I — The shared telemetry kit primitives (minted here; the arc consumes them)
As a maintainer, I want one gauge-ring primitive, so that every observability surface draws pressure the same way.
OcGaugeRingwith{ pct, label, state }, Then it renders an SVG donut withviewBox="0 0 36 36",r="15.9",stroke-width="4",stroke-linecap="round", rotated −90°, andstroke-dasharray="<pct> 100"— the circumference ≈ 100 so the dasharray reads directly as a percentage.pct: null, Then it renders—over a bare track — never0.state: 'stale', Then the value stroke mutes to--oc-lineand the value text to--oc-ink-soft, regardless of what the percentage would otherwise grade.As a maintainer, I want one resource-bar primitive, so that dense surfaces grade identically to gauges.
OcResourceBarwith{ pct }, Then it renders a 48×7px track on--oc-fillat radius 4, filled from the grade map, with a monoNN%readout ≥0.8rem usingfont-variant-numeric: tabular-nums; a bad grade additionally bolds the readout in the warning ink.pct: null, Then it renders—alone.As a maintainer, I want one status-dot primitive whose off state is not a fault, so that presence and urgency stay different ideas.
OcStatusDotwith{ tone: 'healthy' | 'warning' | 'muted' }, Then it renders a 9px round dot: healthy--oc-status-healthy, warning--oc-status-warning, muted--oc-ink-softat reduced opacity.As a maintainer, I want the grading thresholds in exactly one module, so that the arc cannot drift into five different definitions of "high".
RESOURCE_WARN_PCT = 60,RESOURCE_BAD_PCT = 80,CERT_WARN_DAYS = 30,CERT_BAD_DAYS = 14and the grade→token map, and it is the single source every observability surface reads.ok → --oc-status-healthyand bothwarnandbad → --oc-status-warning(bad adds emphasis) — the no-red rule encoded in one place.As a sibling observability surface, I want to reference these primitives rather than mint my own, so that the arc stays one visual language.
OcGaugeRing/OcResourceBar/OcStatusDot/ the grading constants as specified here; a sibling needing a new grade tier amends DDR 0202 rather than minting beside it.J — Collecting the readings (monitoring's fourth signal)
As a maintainer, I want resource readings collected by the loop that already senses the fleet, so that no new telemetry substrate is invented.
As a maintainer, I want a node that reports nothing to be represented as nothing, so that absence never becomes zero anywhere in the stack.
nonestate is what reaches the surface; no layer substitutes0.As an operator, I want the whole list to keep working if telemetry collection is broken, so that one new signal cannot take the Fleet tab down.
—telemetry — the list is never refused because a reading is missing.Implementation Decisions
Seams — one dashboard seam, one control-plane seam, both grown not minted
FleetSource.load()in the dashboard,FleetServicebehindGET /fleetin the control plane) gains per-node telemetry, and the same seam gains a per-device read for the drill-in's fuller record. One owner, one injected client, one fake in the component tests. Rejected: a separateTelemetrySource— it would give the row and the drill-in two paths to the same truth, which is exactly what DDR 0155 §3 forbids.cpuPct/memPct/diskPct, asampledAttimestamp and the monitoring-computed telemetrystate. Nullable is load-bearing: it is what makes—structural rather than a rendering convention.state: unavailablewith the other facts populated — so the drill-in renders story 28's partial state. A transport-level failure of the read itself falls to the shared async guard's rendered error state, asFleetSurfacealready does. The two are deliberately different mechanisms for two different failures.Surface
← Fleetback control and the same "close and re-read" behaviour the setup drill-in already has. No router change, no new tab, no modal.refreshMs(30 s), timer cleared on unmount. Rejected with the prototype: Pinia stores and a component-inventedsetInterval.data-field/data-action/data-statusattributes are the built contract, carried verbatim from the wireframes sodesign-verifycan check the shipped UI against them.The kit
OcGaugeRing,OcResourceBar,OcStatusDot, and astatusGradesmodule. All visuals express as--oc-*tokens (ADR 0122); the prototype contributes only two mechanics — ther=15.9dasharray-as-percentage donut and the graded bar.baddiffers fromwarnby emphasis and copy, never by hue.Collection
short-name keyspace, hand-fed env topology, container chips as the service model, Pinia, naive polling, and IP-visibility gating.Testing Decisions
A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Four seams, all pre-existing — this spec adds no new seam class:
FleetSurface/ the new device-detail screen driven against the hand-written fake of the grown Fleet seam, asserting on the wireframes'data-field/data-action/data-statuscontract. This is where every object-state is proven: reporting, stale, last-known, none, unavailable, plus the DF columns, the—honesty rule, the no-stale-green rule, the routing of each action to its owning feature, and back-closes-and-re-reads. Prior art:fleet.test.ts,monitoringDrillIn.test.ts,monitoringSilence.test.ts,surfaceFaultFrame.test.ts; the fake grows from the existing Fleet fake so its default fleet stays the wireframes' fleet.0), an owner read that faults maps to the shared Problem body, and the generated client camelises the new fields. Prior art:fleet_integration_test.goandfleetLive.test.ts.monitor_test.go,silence_test.go,authenticated_stream_test.go.null → —(never0), the stale mute overriding the grade, the tabular-nums readout, the muted (non-fault) off dot, the threshold boundaries at exactly 60 and 80, and a rendered-CSS assertion that no red/destructive token is emitted by any grade. Prior art:ocPrimitives.test.ts,baseLayer.test.ts,themingContract.test.ts.Two cross-cutting checks ride existing harnesses rather than new ones: the theming contract tests (every new visual is an
--oc-*token, ADR 0122) and the callout-vocabulary test (the bad grade is named in copy, not carried by colour alone).Out of Scope
open-logs/download-logsscoped to the device; building the surface that receives them is DDR 0203 / #760.Further Notes
Vertical slices (named for the fan-in
/slice-map)ui-kit:telemetry-primitives—OcGaugeRing,OcResourceBar,OcStatusDot, the status-grading constants module. No dependencies; the whole observability arc depends on it, so it wants to be an early root.monitor:node-readings— the additive readings on the node report, the latest-sample store, and the telemetry state classifier. Depends on nothing new.transport:fleet-telemetry— the Fleet aggregating read grows per-node readings and state (OpenAPI + handler + generated client). Depends on 2.shell:fleet-telemetry-columns— DF's three columns and the device-name look-at affordance. Depends on 1 and 3.transport:device-telemetry-detail— the per-device read on the same seam (temperature, heartbeat, probed specs, services join, silence verdict). Depends on 2.shell:device-detail-drill-in— P9-S1 / S1x / S2 / S3 / S3x mounted in place on Fleet. Depends on 1, 4 and 5.Cross-arc note for the fan-in: slice 1 is a shared root for #760–#763, and slice 2 is where a resource-pressure alert (if monitoring ever raises one) would read the same constants. The activity feed (#763) and logs (#760) also consume
OcStatusDot.The DDR's two open gates (veto-open, not blocking)
DDR 0202 is
acceptedwith two decisions held open for Ben under the ADR 0174 posture — each has a proposed default that this spec is written against, and the veto is asynchronous:—for non-reporting rows). This is the density of the panel's most-seen resting surface — a taste call on a signed frame. A veto retires stories 1, 3, 4 and 6 and leaves the drill-in whole.Neither gate changes a seam, a state, a threshold or a primitive — which is why the rest of the spec can be sliced without waiting on them.
Implementation-time notes
docs/ux/wireframes/shell/shell-df-fleet.html) gains its✎telemetry-columns note in the commit that implements slice 4, per the ADR 0042 discipline;p9-df-fleet-telemetry-columns.htmlis the amendment depiction, not a second canonical frame.matou-distributed-servers,roles/admin_dashboard/) is a reference for widget mechanics only. Its styling is a drifted fork of the same Mātou visual language; nothing visual transfers.CONTEXT.md's Telemetry entry rules the copy: say readings or telemetry, never metrics, vitals, stats or resource usage as a noun; never "offline" for stale readings, "down" for a silent device, "0%" for an absent reading, or "live" for a last-known record.Produced by
/to-specin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #759.Closed in the 2026-08-27
other-state sweep (Ben's ruling) — child spec complete: all 14 derived tickets closed (#770, #797–#804, #816, #831).