monitoring: absent-signal-honesty — a never-reported intermittent device leans warning, never silence (#83) #119

Closed
opened 2026-07-26 19:41:09 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #18 (monitoring). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over 6596977..9e946b7). Should-fix: internal/monitor/status.go:173 classifies a never-reported intermittent device as asleep · info · "expected", which does not break all-green — contradicting #83's "leans to a warning, never to silence / never shown healthy on an absent signal". The branch is untested. (If laptops are meant to be exempt, that is a spec change to make explicitly, not a silent default.)

Acceptance criteria

  • Given an intermittent device that has never reported, then it classifies as a warning that breaks all-green, with the absence itself as evidence.
  • Given a device with an absent signal, it is never shown healthy — tested on the never-reported branch.

Blocked by

None.

Task manifest

task: monitoring:absent-signal-honesty
implements_flow: p5-monitoring
implements_edge: "never-reported intermittent → warning on S1"
wireframe: docs/ux/wireframes/p5-monitoring/p5-s1-fleet-and-services-status.html
interface: "classification fix in internal/monitor status for never-reported intermittent devices"
seam: "Go test on the never-reported branch asserting warning + all-green broken"
acceptance: "#83's never-to-silence clauses hold (see Acceptance criteria above)"
depends_on: []
out_of_scope: [expected-silence tuning UI (separate ruling), notifier transport]
needs_human_decision: []
## Parent Feature spec: #18 (monitoring). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over `6596977..9e946b7`). Should-fix: `internal/monitor/status.go:173` classifies a never-reported intermittent device as `asleep · info · "expected"`, which does not break all-green — contradicting #83's "leans to a warning, never to silence / never shown healthy on an absent signal". The branch is untested. (If laptops are meant to be exempt, that is a spec change to make explicitly, not a silent default.) ## Acceptance criteria - [ ] Given an intermittent device that has never reported, then it classifies as a warning that breaks all-green, with the absence itself as evidence. - [ ] Given a device with an absent signal, it is never shown healthy — tested on the never-reported branch. ## Blocked by None. ## Task manifest ```yaml task: monitoring:absent-signal-honesty implements_flow: p5-monitoring implements_edge: "never-reported intermittent → warning on S1" wireframe: docs/ux/wireframes/p5-monitoring/p5-s1-fleet-and-services-status.html interface: "classification fix in internal/monitor status for never-reported intermittent devices" seam: "Go test on the never-reported branch asserting warning + all-green broken" acceptance: "#83's never-to-silence clauses hold (see Acceptance criteria above)" depends_on: [] out_of_scope: [expected-silence tuning UI (separate ruling), notifier transport] needs_human_decision: [] ```
Author
Owner

Done in 4b69706 (on origin/main).

Fix — internal/monitor/status.go never-reported branch: a device tagged INTERMITTENT that has never reported no longer reads asleep · info · "expected". An INTERMITTENT tag is not an observed pattern, so with no heartbeat history to be judged expected against, the absence itself is the evidence — the row now reads no recent signal · silent · warning, which breaks all-green, note "tagged intermittent, but no signal yet — no pattern to expect it against". No alert raises (nothing has stopped until a history exists). The honest asleep-on-pattern case (reported, then quiet inside its own known window) still reads asleep · info via the silence classifier.

Acceptance:

  • Never-reported intermittent → warning that breaks all-green, absence as evidence — new seam test TestNeverReported_Intermittent_LeansWarning_NeverHealthy.
  • Absent signal never shown healthy — asserted on the never-reported branch (Go seam) + P5-S1 component test (silent · warning row, no all-healthy banner).

Updated the two tests that encoded the old asleep-info reading, and gave the harness kauri a real observed quiet window so the all-green tests beat it once and read it asleep-on-pattern honestly. Verified: go test ./internal/monitor + go vet; all 43 dashboard suites (398 tests) pass. STATUS.md updated in the same commit.

Done in `4b69706` (on `origin/main`). **Fix** — `internal/monitor/status.go` never-reported branch: a device tagged INTERMITTENT that has never reported no longer reads `asleep · info · "expected"`. An INTERMITTENT tag is not an observed pattern, so with no heartbeat history to be judged expected against, the absence itself is the evidence — the row now reads `no recent signal` · `silent` · warning, which breaks all-green, note "tagged intermittent, but no signal yet — no pattern to expect it against". No alert raises (nothing has stopped until a history exists). The honest asleep-on-pattern case (reported, then quiet inside its own known window) still reads `asleep · info` via the silence classifier. **Acceptance:** - [x] Never-reported intermittent → warning that breaks all-green, absence as evidence — new seam test `TestNeverReported_Intermittent_LeansWarning_NeverHealthy`. - [x] Absent signal never shown healthy — asserted on the never-reported branch (Go seam) + P5-S1 component test (silent · warning row, no all-healthy banner). Updated the two tests that encoded the old asleep-info reading, and gave the harness kauri a real observed quiet window so the all-green tests beat it once and read it asleep-on-pattern honestly. Verified: `go test ./internal/monitor` + `go vet`; all 43 dashboard suites (398 tests) pass. STATUS.md updated in the same commit.
ben closed this issue 2026-07-26 20:26:09 +00:00
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.

Dependencies

No dependencies set.

Reference
Matou/idss#119
No description provided.