monitor + backups: a dataset's redundancy gap is ONE alert on Backups, named there — never two on Services (#1976) #1980

Merged
ben merged 2 commits from session/redundancy-alerts-live-on-backups into main 2026-09-28 23:34:13 +00:00
Owner

Fixes #1976.

What Ben saw (Whakatōhea Demo, 2026-09-28): Overview and the Services badge said Services · 8 warning while the Services tab said every service was healthy.

Cause: the eight were backup facts. Four datasets each raised a no-backup and a single-copy alert, and the alert list filed all of them under Services because a gap carries the service that homes its dataset. #1750's comment of 2026-09-22 named both faults; the worker closed #1750 on its body and never built them.

Changes

Control plane (internal/monitor)

  • One standing alert per dataset (redundancy/<dataset>), its needs told together. A need that closes re-words the held alert: first raise kept, no new notification.
  • The alert list files it under backups; subject = the dataset, target = the service slug.
  • A gap no longer breaks the Services all-healthy claim.
  • State persisted under the old per-kind keys resumes as the dataset's one alert, so an update does not resolve and re-notify every gap.

Control panel (Ben's ruling: lines in the Backups box)

  • Backups pins the gaps in one amber box under the identity alert, one line per dataset, so the badge counts rows the page names.
  • Overview's attention line counts each severity by itself: Backups · 1 critical · 4 warning (it read 5 critical).

The demo after this: Services wears no badge; Backups wears ▲ 5 and names all five.

Verified

  • go test ./internal/monitor ./internal/controlapi ./control-plane/... green; three new monitor tests, each red before the change.
  • Dashboard: 2085 unit tests green, vue-tsc and eslint clean; six new tests, red before.
  • Harness drives datasetGaps, alertLivesOnce, deviceOffline green. The first test of a harness run rides Vite's cold start close to its 30 s limit and can time out; a re-run passes.
  • The Backups render was read in the harness (?scenario=dataset-gaps&tab=backups).

Known limit (not changed here)

Production wires emptyCatalogue as the backups DatasetPort, so the coverage table lists Identity only. A service dataset's no backup yet is true, and nothing the operator does today clears it.

Docs: DDR 0265 amendment, P7-S1b and DO2 frames, STATUS.

🤖 Generated with Claude Code

Fixes #1976. **What Ben saw (Whakatōhea Demo, 2026-09-28):** Overview and the Services badge said *Services · 8 warning* while the Services tab said every service was healthy. **Cause:** the eight were backup facts. Four datasets each raised a `no-backup` and a `single-copy` alert, and the alert list filed all of them under Services because a gap carries the service that homes its dataset. #1750's comment of 2026-09-22 named both faults; the worker closed #1750 on its body and never built them. ## Changes **Control plane (`internal/monitor`)** - One standing alert per dataset (`redundancy/<dataset>`), its needs told together. A need that closes re-words the held alert: first raise kept, no new notification. - The alert list files it under `backups`; subject = the dataset, target = the service slug. - A gap no longer breaks the Services all-healthy claim. - State persisted under the old per-kind keys resumes as the dataset's one alert, so an update does not resolve and re-notify every gap. **Control panel (Ben's ruling: lines in the Backups box)** - Backups pins the gaps in one amber box under the identity alert, one line per dataset, so the badge counts rows the page names. - Overview's attention line counts each severity by itself: *Backups · 1 critical · 4 warning* (it read *5 critical*). The demo after this: Services wears no badge; Backups wears `▲ 5` and names all five. ## Verified - `go test ./internal/monitor ./internal/controlapi ./control-plane/...` green; three new monitor tests, each red before the change. - Dashboard: 2085 unit tests green, `vue-tsc` and eslint clean; six new tests, red before. - Harness drives `datasetGaps`, `alertLivesOnce`, `deviceOffline` green. The first test of a harness run rides Vite's cold start close to its 30 s limit and can time out; a re-run passes. - The Backups render was read in the harness (`?scenario=dataset-gaps&tab=backups`). ## Known limit (not changed here) Production wires `emptyCatalogue` as the backups `DatasetPort`, so the coverage table lists Identity only. A service dataset's *no backup yet* is true, and nothing the operator does today clears it. Docs: DDR 0265 amendment, P7-S1b and DO2 frames, STATUS. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Whakatōhea Demo wore "Services · 8 warning" over six healthy services:
four datasets, each raised as a no-backup and a single-copy alert, all
filed under Services. DDR 0265 rules 1 and 4, named on #1750's comment
and never built.

- one standing alert per dataset (redundancy/<dataset>), needs told together
- the alert list files it under backups, subject = the dataset
- a gap no longer breaks the Services all-healthy claim
- state persisted under the per-kind keys resumes as the one alert

Open on #1976: how the Backups tab shows the rows it now owns.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
backups: the tab names each dataset gap its badge counts; Overview counts each severity by itself (#1976)
All checks were successful
ci / seam (pull_request) Successful in 11m22s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
d6943db4e5
Ben's ruling (2026-09-28): lines in the Backups box.

- DatasetGapsAlert: one amber box under the identity alert, one line per
  dataset in the need's own words, read from the alert list the badges use
- the attention line reads "Backups · 1 critical · 4 warning", where it
  told every alert at the tab's worst severity
- harness scenario dataset-gaps + drive datasetGaps.spec.ts model the demo
- DDR 0265 amendment, P7-S1b and DO2 frames, STATUS

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ben merged commit 1766c49efa into main 2026-09-28 23:34:13 +00:00
Sign in to join this conversation.
No reviewers
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!1980
No description provided.