monitoring: silence-classifier — silence judged against a node's own pattern #83
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
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#83
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
Feature spec: #18 (monitoring).
What to build
The rule that a machine we've stopped hearing from is never shown as healthy
(P5-S1x, DDR 0071). When a device's heartbeats stop, the aggregation loop
classifies the silence rather than ignoring it, judging it against that
node's own pattern read from the heartbeat history the
enrollseam alreadycarries. An always-on node (no intermittent tag, no observed quiet window) gone
dark past its threshold is critical and raises an alert (edge P5-S1x → P5-S2).
An intermittent-tagged node quiet within its known pattern (e.g. asleep
22:00–06:00) is info, raises nothing, and the surface keeps watching (edge
P5-S1x → P5-S1). A device is never shown healthy on the strength of an absent
signal.
This is a rule inside the
monitorclassifier (ADR 0069/0070) — no new seam,no new store. The P5-S1x state names which device, how long it has been silent
(last-heartbeat time and duration) and the pattern the silence was judged
against. For a not-yet-patterned intermittent node (newly added) the first
silence leans to a warning rather than to silence — the single agent-judgement
value in the spec, kept by Ben at sign-off; acknowledging it later can tune the
device's expected pattern (fed back by the respond ladder) so a repeated
expected silence stops warning.
Acceptance criteria
Blocked by
Task manifest
Done in
65cda37(on main). The P5-S1x silence classifier landed as a rule inside themonitorclassifier (DDR 0071, ADRs 0069/0070) — no new seam, no new store.What shipped
internal/monitor/silence.go: a device whose heartbeats stop has the silence classified, never ignored — judged against the node's own pattern (intermittent tag + observed quiet windows the fleet-state face carries onfleetstate.Uptime.Quiet+ any acknowledge-tunedExpectedPatternfrom #87). Always-on dark pastStaleAfter→ critical, alert raised (P5-S1x → S2), delivered diagnosis-only to both channels (no one-click fix is manufactured for a dark node). Intermittent quiet on its own known window → info, no alert, watching continues (P5-S1x → S1; the all-healthy resting state holds around it). No established pattern yet (or silent outside the known window) → warning, never silence — the learning-window judgement Ben kept — and acknowledging with the tune makes a repeated expected silence stop warning (asserted end-to-end at the seam). A never-reported device has not "stopped": it keeps #80's conservative warning row, no raise, until a heartbeat history exists.StatusView.Silencesnames which device, how long silent (last-heartbeat time and duration vs the threshold) and the pattern judged against; a silence alert escalates device-scoped with the judgement's own words and adevice/<id>log handle.DeviceGoneSilentScreen(P5-S1x) to the wireframe's element contract (silent-device-*,judged-pattern-*,silence-detail-*withlast-heartbeat/silence-duration/node-pattern,data-statussilent-critical/-info/-warning,notify-*/tune-pattern-*actions), mounted byServicesSurfaceabove the still-watching S1 whenever a raised silence stands; both actions open the silence alert's device-scoped respond ladder, where acknowledge's tune lives (the tune button rides a raised, tunable silence — the tune write-back needs a standing alert to acknowledge).Evidence: 6 Go seam tests in
internal/monitor/silence_test.go(fake heartbeat gaps, fake fleet-state observed pattern, fake clock, fake Notifier — per the manifest's seam) + 6 Vue tests indashboard/tests/unit/monitoringSilence.test.ts; full Go suite and dashboard vitest (331/331), vue-tsc and eslint green.Out of scope honoured: notify content/channel machinery reused from #84 unchanged; the pattern write-back reused from #87 unchanged; the summoning mechanism for a physical-only critical silence untouched (deferred per spec).