Whakatōhea Demo wears "Services · 8 warning" over six healthy services — redundancy gaps are filed under Services, twice per dataset (the #1750 comment, never built) #1976

Closed
opened 2026-09-28 22:45:41 +00:00 by ben · 1 comment
Owner

Ben, on the live Whakatōhea Demo (2026-09-28, release 1bcd6615 seq 3016): Overview and the Services tab badge say Services · 8 warning, while the Services tab says every service is healthy.

What the gateway answers

GET /api/v1/monitor/alerts (loopback, 2026-09-28): 9 rows, per_tab: {backups: 1, services: 8}.

id severity tab
IDENTITY_UNPROTECTED critical backups
redundancy/no-backup/<dataset> × 4 (Community archive, Data collections, Files & documents, Surveys) warning services
redundancy/single-copy/<dataset> × 4 (the same four) warning services

GET /api/v1/monitor/status: all six services up: true. The cards tell the truth; the badge counts something else.

Cause

This is #1750's comment of 2026-09-22 ("D2 restated"), which was never built. #1750 was closed on its body's criteria; the comment's two corrections and its acceptance additions are in no commit. The demo had one dataset then (2 warnings). It has four now (8).

  1. Wrong owner. internal/monitor/status.go alertRowLocked files any alert that names a service under Services. A redundancy gap carries its dataset's service, so it lands there. DDR 0265 rule 1: a dataset or backup run → Backups.
  2. One cause, told twice. internal/monitor/monitor.go raises one alert per gap KIND (redundancy/<kind>/<dataset>). A dataset with no backup and one home is two rows. DDR 0265 rule 4: one cause is one alert.
  3. Latent, same root. Status().AllHealthy is false while any alert stands. The demo hides it today because backups are not ok. Once identity has a verified copy, a standing gap would turn the Services box red with "Something is raised that no line here names — open the alert from the top bar" (the top-bar chip was retired by DDR 0265).

Built in session (branch session/redundancy-alerts-live-on-backups)

  • One standing alert per dataset, key redundancy/<dataset>, the needs told together: "Files & documents live on one device only, and have no backup yet". When one need closes the same alert stands, re-worded, with its first raise kept and no new notification.
  • The alert list files it under backups: subject = the dataset's name, target = the service slug.
  • A gap no longer breaks the Services all-healthy claim.
  • State persisted under the per-kind keys resumes as the dataset's one alert with the earliest raise, so an update does not resolve and re-notify every gap.
  • Tests (red before, green after): TestAlerts_RedundancyGapLivesOnBackupsOncePerDataset, TestAllHealthy_ARedundancyGapIsNotAServicesFault, TestResume_LegacyPerKindGapsResumeAsOneAlertPerDataset.

With this the demo reads: Services — no badge, Backups ▲ 5 (1 critical, 4 warning), Overview "▲ 5 things need attention — Backups · 1 critical · 4 warning".

Open — how Backups shows the rows it now owns (Ben's ruling)

The Backups tab does not name these four datasets anywhere, so the badge would count 5 over a page that shows one box:

  • The pinned identity alert is the page's single box while no backup service is installed (#1750 D3).
  • The coverage table lists only Identity. Production wires emptyCatalogue as the backups DatasetPort (control-plane/cmd/control-plane/backup_wiring.go), so no catalogue service declares a dataset to back up. The gaps come from the fleet placement's datasets, a different read.
  • So "Files & documents have no backup yet" is true, and nothing the operator can do today clears it. Placing Backup copies would cover Identity only. "on one device only" on a one-device fleet is the single-node floor the page already states.

DDR 0265 rule 1 says the badged tab opens with its alerted rows pinned. The Backups relayout (2026-09-12) and #1750 D3 say one box. Those need composing by Ben before the rows are drawn.

**Ben, on the live Whakatōhea Demo (2026-09-28, release `1bcd6615` seq 3016):** Overview and the Services tab badge say *Services · 8 warning*, while the Services tab says every service is healthy. ## What the gateway answers `GET /api/v1/monitor/alerts` (loopback, 2026-09-28): 9 rows, `per_tab: {backups: 1, services: 8}`. | id | severity | tab | |---|---|---| | `IDENTITY_UNPROTECTED` | critical | backups | | `redundancy/no-backup/<dataset>` × 4 (Community archive, Data collections, Files & documents, Surveys) | warning | **services** | | `redundancy/single-copy/<dataset>` × 4 (the same four) | warning | **services** | `GET /api/v1/monitor/status`: all six services `up: true`. The cards tell the truth; the badge counts something else. ## Cause This is #1750's comment of 2026-09-22 (*"D2 restated"*), which was never built. #1750 was closed on its body's criteria; the comment's two corrections and its acceptance additions are in no commit. The demo had one dataset then (2 warnings). It has four now (8). 1. **Wrong owner.** `internal/monitor/status.go` `alertRowLocked` files any alert that names a service under Services. A redundancy gap carries its dataset's service, so it lands there. DDR 0265 rule 1: *a dataset or backup run → Backups*. 2. **One cause, told twice.** `internal/monitor/monitor.go` raises one alert per gap KIND (`redundancy/<kind>/<dataset>`). A dataset with no backup and one home is two rows. DDR 0265 rule 4: *one cause is one alert*. 3. **Latent, same root.** `Status().AllHealthy` is false while any alert stands. The demo hides it today because backups are not ok. Once identity has a verified copy, a standing gap would turn the Services box red with *"Something is raised that no line here names — open the alert from the top bar"* (the top-bar chip was retired by DDR 0265). ## Built in session (branch `session/redundancy-alerts-live-on-backups`) - One standing alert per dataset, key `redundancy/<dataset>`, the needs told together: *"Files & documents live on one device only, and have no backup yet"*. When one need closes the same alert stands, re-worded, with its first raise kept and no new notification. - The alert list files it under **backups**: subject = the dataset's name, target = the service slug. - A gap no longer breaks the Services all-healthy claim. - State persisted under the per-kind keys resumes as the dataset's one alert with the earliest raise, so an update does not resolve and re-notify every gap. - Tests (red before, green after): `TestAlerts_RedundancyGapLivesOnBackupsOncePerDataset`, `TestAllHealthy_ARedundancyGapIsNotAServicesFault`, `TestResume_LegacyPerKindGapsResumeAsOneAlertPerDataset`. With this the demo reads: **Services — no badge**, Backups `▲ 5` (1 critical, 4 warning), Overview *"▲ 5 things need attention — Backups · 1 critical · 4 warning"*. ## Open — how Backups shows the rows it now owns (Ben's ruling) The Backups tab does not name these four datasets anywhere, so the badge would count 5 over a page that shows one box: - The pinned identity alert is the page's single box while no backup service is installed (#1750 D3). - The coverage table lists only Identity. Production wires `emptyCatalogue` as the backups `DatasetPort` (`control-plane/cmd/control-plane/backup_wiring.go`), so no catalogue service declares a dataset to back up. The gaps come from the fleet placement's datasets, a different read. - So *"Files & documents have no backup yet"* is true, and nothing the operator can do today clears it. Placing Backup copies would cover Identity only. *"on one device only"* on a one-device fleet is the single-node floor the page already states. DDR 0265 rule 1 says the badged tab opens with its alerted rows pinned. The Backups relayout (2026-09-12) and #1750 D3 say one box. Those need composing by Ben before the rows are drawn.
ben self-assigned this 2026-09-28 22:45:42 +00:00
Author
Owner

Ruled by Ben in session (2026-09-28): the gap rows show as lines in the Backups box — one amber box under the identity alert, one line per dataset. Built with the backend half and pushed: PR #1980 (session/redundancy-alerts-live-on-backups).

Also fixed there, found while reading the render: Overview's attention line told every alert at the tab's worst severity (Backups · 5 critical). It now counts each severity by itself (Backups · 1 critical · 4 warning).

Still true after the PR, and not changed by it: production's backups DatasetPort is emptyCatalogue, so a service dataset's no backup yet cannot be cleared by anything the operator does.

**Ruled by Ben in session (2026-09-28):** the gap rows show as **lines in the Backups box** — one amber box under the identity alert, one line per dataset. Built with the backend half and pushed: **PR #1980** (`session/redundancy-alerts-live-on-backups`). Also fixed there, found while reading the render: Overview's attention line told every alert at the tab's worst severity (*Backups · 5 critical*). It now counts each severity by itself (*Backups · 1 critical · 4 warning*). Still true after the PR, and not changed by it: production's backups `DatasetPort` is `emptyCatalogue`, so a service dataset's *no backup yet* cannot be cleared by anything the operator does.
ben closed this issue 2026-09-28 23:34:15 +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#1976
No description provided.