monitoring: per-service memory and health on the device cards — the wire rests mem_mb: null with no chip because no per-service monitoring slice exists #1433
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#1433
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
Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit
078cd5b3onfounding-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
The Overview device card lists each service on a device with its memory and a health pill (
dashboard/src/components/shell/DeviceCard.vue:41-45). The wire (internal/controlapi/fleet.goFleetNodeService) sendsmem_mbandchipas pointers that REST NULL/omitted by their own comment: "the classifier holds no per-service reading yet". So live, every service row reads—and (after the 2026-09-12 fix that made the card guard the absent chip instead of throwing) shows no pill. Nothing is wrong on the wire — the monitoring slice behind it does not exist.Governing: DDR 0202 (device detail + cards), ADR 0100 (never a fabricated green), the monitoring classifier (
internal/monitor).What to do
internal/monitor: a per-service reading per node — memory from the service's cgroup (systemdMemoryCurrentvia the agent's telemetry) and a per-service health verdict (the unit's active state + the existing service probe) — classified by the same classifier that grades node chips, never a second rule.FleetNodeService.MemMB/.Chipin the fleet projection;DeviceTelemetryfor P9 gets the same rows.fleetLive.test.tsasserts a running service reports a number and anupchip; the harness scenariochat-downalready paints the down case.Acceptance criteria
mem_mb> 0 and a chip withstatus: up.downwith the classifier's label, and the device chip reflects it (one rule, DDR 0155 §3).—with no pill.dialogstate, the Overview's device/System/service/members rows, the sidebar chrome — unit debt from Ben's 2026-09-10/11 UI pass #1399swarm-claim host=matou-dev-server-01 run=22593
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision: this slice ships the per-service monitoring reading and its join end-to-end — the wire block, the monitor projection, and the fleet-projection join — but defers the agent sampler's real per-service cgroup collection (systemd
MemoryCurrentreads + the unit-discovery / slug↔unit mapping) to a follow-up SOURCE ticket.What landed:
internal/enrollResourceReadingsgains a nullableServices []ServiceReading{service, mem_bytes?, active?}block — additive on the SAME heartbeat, no new agent binary/port/ingest surface (DDR 0202).internal/monitorOrchestrator.NodeServiceReadings(id)grades each placed service by the SAME rule that grades the node chip: a standing critical alert names itdown(the same alertdeviceRowreflects — one rule, DDR 0155 §3), a fresh node whose unit reports active readsup, anything else no chip (never a fabricated green, ADR 0100); memory from the reportedmem_bytes.whole_surfaces.gojoins that ontoFleetNodeService.mem_mb/.chip.fleetLive.test.tsasserts AC1/2/3; the harnesssteady/chat-downscenarios already paint the up/down cases.Why two-way door: additive nullable wire block + a projection method + a projection join, all revertible by a later commit and proven by monitor/wire/dashboard seam tests. Not on the one-way list (no credentials, no security widening, no trust accept, no data destruction, no spend).
Deferred SOURCE: the agent (
internal/sampler+ theidss-agent reportunit) does not yet read per-service cgroup memory or know which systemd unit a catalogue slug maps to — that mapping is deployment-side and needs its own slice, exactly as node-readings shipped the ingest+monitor (#208) before the sampler source (#1221). Until it lands the block rests nil and the card honestly draws—with no pill (AC3). Recommend a follow-up ticket: "monitoring: agent sampler fills the per-service cgroup memory + unit-active block on the heartbeat."close-report for #1433 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope