backups: "Identity is not backed up yet" is a standing Overview warning with no counterpart in Backups' own alerting — it must be the Backups tab's first, loudest item #1725

Closed
opened 2026-09-22 05:54:33 +00:00 by ben · 4 comments
Owner

What Ben saw (Whakatōhea Demo 2026-09-22)

Overview → SYSTEM ALERT: ⚠ Identity is not backed up yet · drill in. Ben: it "should be an alert on backups". The monitor's /status carries only backups: {label: "Backups — 1 dataset needs attention", ok: false}; the Backups tab (P7) shows coverage but does not raise the identity dataset as an alert with a way forward.

Why it matters

On an IDIP community the identity dataset (KERIA keystore + witness + roster, ADR 0198/0222) IS the community: lose it and nobody can sign in, ever, and no recovery phrase brings it back (the phrase recovers a PERSON's keys, not the community's). It is the one dataset whose loss is unrecoverable, and today its warning is a soft ⚠ line on the Overview that reads like housekeeping.

Fix (DDR-level, P7 wireframes — needs-design)

  • Backups tab: the identity dataset is pinned at the top while unprotected, severity critical (not ⚠), copy that says what is at stake in the operator's words, and the one action that fixes it (set up the first backup target → run the first verified backup), never just a status.
  • The Overview line is the SAME alert (one source, #1724's list), drill-in lands ON that Backups row.
  • The founding hand-off / Operator home say it once too ("your community's identity is not yet backed up — do this first") — decide in the DDR whether it belongs at hand-off.
  • Clears only on a VERIFIED backup (P7 story: coverage + verified run), not on "a target exists".
  • Same treatment for the Kanidm path's identity dataset.

Design contract: DDR 0260 (backups set up from the policy screen, offsite targets) + P7 wireframes. Found on the hand re-founding of Whakatōhea Demo.

## What Ben saw (Whakatōhea Demo 2026-09-22) Overview → SYSTEM ALERT: **⚠ Identity is not backed up yet** · drill in. Ben: it "should be an alert on backups". The monitor's `/status` carries only `backups: {label: "Backups — 1 dataset needs attention", ok: false}`; the Backups tab (P7) shows coverage but does not raise the identity dataset as an alert with a way forward. ## Why it matters On an IDIP community the identity dataset (KERIA keystore + witness + roster, ADR 0198/0222) IS the community: lose it and nobody can sign in, ever, and no recovery phrase brings it back (the phrase recovers a PERSON's keys, not the community's). It is the one dataset whose loss is unrecoverable, and today its warning is a soft ⚠ line on the Overview that reads like housekeeping. ## Fix (DDR-level, P7 wireframes — `needs-design`) - Backups tab: the identity dataset is pinned at the top while unprotected, severity **critical** (not ⚠), copy that says what is at stake in the operator's words, and the one action that fixes it (set up the first backup target → run the first verified backup), never just a status. - The Overview line is the SAME alert (one source, #1724's list), drill-in lands ON that Backups row. - The founding hand-off / Operator home say it once too ("your community's identity is not yet backed up — do this first") — decide in the DDR whether it belongs at hand-off. - Clears only on a VERIFIED backup (P7 story: coverage + verified run), not on "a target exists". - Same treatment for the Kanidm path's identity dataset. Design contract: DDR 0260 (backups set up from the policy screen, offsite targets) + P7 wireframes. Found on the hand re-founding of Whakatōhea Demo.
Author
Owner

Ben's ruling 2026-09-22 (adds to this ticket): the identity-backup alert lives on the Backups tab, and the tabs carry a badge (count / severity dot on the BACKUPS nav item) instead of the same alert repeating on Overview and Services. Same shape for monitoring alerts: the SERVICES / FLEET nav badge points at where the problem is; Overview keeps ONE compact system line ("2 things need attention → Backups · Services"), not a copy of every alert. This revisits DDR 0099's "honest pending count in the section, never a tab badge" — record the reversal in the DDR and #1724's list feeds the badge counts. Design pass covers both tickets together.

**Ben's ruling 2026-09-22 (adds to this ticket):** the identity-backup alert lives on the **Backups tab**, and the tabs carry a **badge** (count / severity dot on the BACKUPS nav item) instead of the same alert repeating on Overview and Services. Same shape for monitoring alerts: the SERVICES / FLEET nav badge points at where the problem is; Overview keeps ONE compact system line ("2 things need attention → Backups · Services"), not a copy of every alert. This revisits DDR 0099's "honest pending count in the section, never a tab badge" — record the reversal in the DDR and #1724's list feeds the badge counts. Design pass covers both tickets together.
Author
Owner

FLOW GATE PASSED 2026-09-22 — Ben approved the frames; DDR 0265 accepted (6f193f7f)

Build brief. Contract = DDR 0265 + wireframes shell/shell-dn2-nav-chrome-tab-badges.html, shell/shell-do2-overview-one-attention-line.html, p7-backups/p7-s1b-identity-unprotected.html; flow nodes DN2/DO2 (flows/shell.mermaid), P7-S1b (flows/p7-backups.mermaid). Source of every count = #1724's GET /api/v1/monitor/alerts (landed).

  1. Tab badges (packages/ui-kit nav / DashboardShell.vue): per tab, data-field="tab-badge-<tab>" with data-severity, count = alerts whose tab is that tab, colour = worst severity; NO element at zero. Retire the chrome's raised-alert-count chip (DDR 0155) — remove, don't hide. Standing-indicator stack untouched.
  2. Overview (shell-do2): one attention-line (count = sum of badges, each tab name a drill-in that selects the tab); remove the SYSTEM ALERT card and the "raised alert" needs-attention row; the needs-attention queue keeps decisions only; HEALTH / BACKUPS coverage rows unchanged.
  3. Backups P7-S1b: while the identity dataset has no VERIFIED copy, pin alert-identity-unprotected (critical, data-subject="dataset:identity") above the coverage table with the wireframe's copy; protect-identity-now → P7-S2 with identity preselected when no target is confirmed, else run the first identity backup now and land on P7-S3 watching it verify. Clears ONLY on a verified copy. Identity row red; other datasets stay amber. Kanidm path's identity dataset gets the same row. The monitor's alert list must carry this alert with tab: backups (add it to #1724's projection if absent).
  4. Badged tab opens with its alerted rows pinned (Services: the P5-S1 rows; Fleet: the device row; Backups: S1b).
  5. Tests: badge count == owned rows; attention count == sum of badges; identity alert present ⇔ no verified copy; Protect it now lands on S2 vs S3 by target state; harness scenarios for DN2/DO2/S1b on :5198; a drive leg (brand-reach or IDIP prove-it) reads a badge on a live gateway.
  6. DDR 0099 §2 and DDR 0155 carry a one-line "amended by DDR 0265" note; STATUS.md in the same commit.

Open, NOT in scope: hand-off / Operator home "back up your identity first" (DDR 0265 defers it to #1704's completion rule).

## FLOW GATE PASSED 2026-09-22 — Ben approved the frames; DDR 0265 accepted (`6f193f7f`) **Build brief.** Contract = DDR 0265 + wireframes `shell/shell-dn2-nav-chrome-tab-badges.html`, `shell/shell-do2-overview-one-attention-line.html`, `p7-backups/p7-s1b-identity-unprotected.html`; flow nodes DN2/DO2 (`flows/shell.mermaid`), P7-S1b (`flows/p7-backups.mermaid`). Source of every count = #1724's `GET /api/v1/monitor/alerts` (landed). 1. **Tab badges** (`packages/ui-kit` nav / `DashboardShell.vue`): per tab, `data-field="tab-badge-<tab>"` with `data-severity`, count = alerts whose `tab` is that tab, colour = worst severity; NO element at zero. Retire the chrome's `raised-alert-count` chip (DDR 0155) — remove, don't hide. Standing-indicator stack untouched. 2. **Overview** (`shell-do2`): one `attention-line` (count = sum of badges, each tab name a drill-in that selects the tab); remove the SYSTEM ALERT card and the "raised alert" needs-attention row; the needs-attention queue keeps decisions only; HEALTH / BACKUPS coverage rows unchanged. 3. **Backups P7-S1b**: while the identity dataset has no VERIFIED copy, pin `alert-identity-unprotected` (critical, `data-subject="dataset:identity"`) above the coverage table with the wireframe's copy; `protect-identity-now` → P7-S2 with identity preselected when no target is confirmed, else run the first identity backup now and land on P7-S3 watching it verify. Clears ONLY on a verified copy. Identity row red; other datasets stay amber. Kanidm path's identity dataset gets the same row. The monitor's alert list must carry this alert with `tab: backups` (add it to #1724's projection if absent). 4. **Badged tab opens with its alerted rows pinned** (Services: the P5-S1 rows; Fleet: the device row; Backups: S1b). 5. Tests: badge count == owned rows; attention count == sum of badges; identity alert present ⇔ no verified copy; `Protect it now` lands on S2 vs S3 by target state; harness scenarios for DN2/DO2/S1b on `:5198`; a drive leg (brand-reach or IDIP prove-it) reads a badge on a live gateway. 6. DDR 0099 §2 and DDR 0155 carry a one-line "amended by DDR 0265" note; STATUS.md in the same commit. Open, NOT in scope: hand-off / Operator home "back up your identity first" (DDR 0265 defers it to #1704's completion rule).

swarm-claim host=matou-dev-server-01 run=30128
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=30128 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1725 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1725,
  "status": "success",
  "commits": [
    "eaa054cdaa04b090fd2e545ed77ef73b94dccd79"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/aggregation_integration_test.go",
    "control-plane/cmd/control-plane/shell_surfaces.go",
    "control-plane/cmd/control-plane/whole_surfaces.go",
    "control-plane/cmd/smoke-fleet/main.go",
    "dashboard/src/components/backups/BackupsFirstRunScreen.vue",
    "dashboard/src/components/backups/BackupsOverviewScreen.vue",
    "dashboard/src/components/backups/BackupsSurface.vue",
    "dashboard/src/components/backups/IdentityUnprotectedAlert.vue",
    "dashboard/src/components/shell/OverviewScreen.vue",
    "dashboard/src/components/shell/OverviewSurface.vue",
    "dashboard/src/lib/backups.ts",
    "dashboard/src/lib/monitoring.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/src/lib/overview.ts",
    "dashboard/tests/e2e/preview-harness/panel.ts",
    "dashboard/tests/e2e/preview-harness/scenarios.ts",
    "dashboard/tests/unit/backupsOverview.test.ts",
    "dashboard/tests/unit/dashboardComposition.test.ts",
    "dashboard/tests/unit/dashboardShell.test.ts",
    "dashboard/tests/unit/monitoringStatus.test.ts",
    "dashboard/tests/unit/overview.test.ts",
    "dashboard/tests/unit/overviewActivityLine.test.ts",
    "dashboard/tests/unit/overviewCommunityApp.test.ts",
    "dashboard/tests/unit/overviewFirstRun.test.ts",
    "dashboard/tests/unit/overviewLive.test.ts",
    "docs/adr/0099-design-settings-v1-inventory.md",
    "docs/adr/0155-design-control-panel-qa-polish-batch.md",
    "internal/monitor/monitor_test.go",
    "internal/monitor/status.go",
    "packages/ui-kit/src/chrome.ts",
    "packages/ui-kit/src/components/NavChrome.vue",
    "packages/ui-kit/src/index.ts",
    "packages/ui-kit/tests/unit/navChrome.test.ts",
    "packages/ui-kit/tests/unit/navChromeSidebar.test.ts"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./... && go vet ./internal/monitor/...",
      "exit_code": 0
    },
    {
      "command": "cd packages/ui-kit && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "cd packages/ui-kit && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint .",
      "exit_code": 0
    }
  ],
  "criteria": {
    "DN2 tab badges: per tab data-field=tab-badge-<tab> with data-severity, count=alerts the tab owns, worst-severity colour, no element at zero; raised-alert-count chip removed": "packages/ui-kit/src/components/NavChrome.vue (badge per tab from alertSource.tabBadges(); chip block deleted), packages/ui-kit/src/chrome.ts (TabBadge + tabBadges()); tests packages/ui-kit/tests/unit/navChrome.test.ts + navChromeSidebar.test.ts",
    "DO2 one attention-line: count=sum of badges, each tab name a drill-in that selects the tab; SYSTEM ALERT card + raised-alert needs-attention row removed; needs-attention keeps decisions only; HEALTH/BACKUPS rows unchanged": "dashboard/src/components/shell/OverviewScreen.vue (attention-line, system-alert box removed, headlines kept) + OverviewSurface.vue (summarizeAlerts over the alerts list) + dashboard/src/lib/overview.ts (composeQueue drops raisedAlerts); tests dashboard/tests/unit/overview.test.ts (DO2 block), overviewLive/overviewActivityLine",
    "P7-S1b: pinned critical alert-identity-unprotected (data-subject=dataset:identity) above coverage table while identity unprotected; protect-identity-now -> P7-S2 (identity preselected, no target) else P7-S3; clears only on verified copy; identity row red, others amber; Kanidm path same": "dashboard/src/components/backups/IdentityUnprotectedAlert.vue + BackupsSurface.vue (protectIdentityNow S2/S3 by policy.confirmed) + BackupsOverviewScreen/BackupsFirstRunScreen (pinned in P7-S1 and P7-S1x, coveragePillTone reds identity); tests dashboard/tests/unit/backupsOverview.test.ts (P7-S1b block: present iff no verified copy, S2 vs S3 landing, red row)",
    "The monitor's alert list carries the identity alert with tab:backups (added to the projection)": "internal/monitor/status.go alertsViewLocked synthesises IDENTITY_UNPROTECTED (critical, subject dataset:identity, tab backups) from backups coverage while last-good is nil; test internal/monitor/monitor_test.go TestAlerts_IdentityUnprotectedIsACriticalBackupsAlert (present iff no verified copy, tab backups, per_tab counts it, clears on verified copy)",
    "Badged tab opens with its alerted rows pinned (Backups: S1b)": "Backups tab renders IdentityUnprotectedAlert pinned above the coverage table whenever identity is unprotected, regardless of entry path; DN2 badge + DO2 attention line both select the tab (dashboard/tests/unit/dashboardShell.test.ts + overview.test.ts drill-in)",
    "Tests: badge count == owned rows; attention count == sum of badges; identity alert present iff no verified copy; Protect it now S2 vs S3 by target state; harness scenarios for DN2/DO2/S1b on :5198": "ui-kit + dashboard vitest suites above; harness scenarios dashboard/tests/e2e/preview-harness/scenarios.ts (chat-down services badge; new identity-unprotected backups badge + attention line + S1b) wired via panel.ts",
    "DDR 0099 §2 and DDR 0155 carry an amended-by-DDR-0265 note; STATUS.md in the same commit": "docs/adr/0099-design-settings-v1-inventory.md (§2 note), docs/adr/0155-design-control-panel-qa-polish-batch.md (rule 6 note), STATUS.md milestone entry"
  },
  "summary": "DDR 0265 landed: DN2 per-tab alert badges (chip retired), DO2 one attention line, P7-S1b pinned critical identity-unprotected alert, and the monitor projects the identity alert onto the Backups tab.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1725 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1725, "status": "success", "commits": [ "eaa054cdaa04b090fd2e545ed77ef73b94dccd79" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/aggregation_integration_test.go", "control-plane/cmd/control-plane/shell_surfaces.go", "control-plane/cmd/control-plane/whole_surfaces.go", "control-plane/cmd/smoke-fleet/main.go", "dashboard/src/components/backups/BackupsFirstRunScreen.vue", "dashboard/src/components/backups/BackupsOverviewScreen.vue", "dashboard/src/components/backups/BackupsSurface.vue", "dashboard/src/components/backups/IdentityUnprotectedAlert.vue", "dashboard/src/components/shell/OverviewScreen.vue", "dashboard/src/components/shell/OverviewSurface.vue", "dashboard/src/lib/backups.ts", "dashboard/src/lib/monitoring.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/src/lib/overview.ts", "dashboard/tests/e2e/preview-harness/panel.ts", "dashboard/tests/e2e/preview-harness/scenarios.ts", "dashboard/tests/unit/backupsOverview.test.ts", "dashboard/tests/unit/dashboardComposition.test.ts", "dashboard/tests/unit/dashboardShell.test.ts", "dashboard/tests/unit/monitoringStatus.test.ts", "dashboard/tests/unit/overview.test.ts", "dashboard/tests/unit/overviewActivityLine.test.ts", "dashboard/tests/unit/overviewCommunityApp.test.ts", "dashboard/tests/unit/overviewFirstRun.test.ts", "dashboard/tests/unit/overviewLive.test.ts", "docs/adr/0099-design-settings-v1-inventory.md", "docs/adr/0155-design-control-panel-qa-polish-batch.md", "internal/monitor/monitor_test.go", "internal/monitor/status.go", "packages/ui-kit/src/chrome.ts", "packages/ui-kit/src/components/NavChrome.vue", "packages/ui-kit/src/index.ts", "packages/ui-kit/tests/unit/navChrome.test.ts", "packages/ui-kit/tests/unit/navChromeSidebar.test.ts" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./... && go vet ./internal/monitor/...", "exit_code": 0 }, { "command": "cd packages/ui-kit && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "cd packages/ui-kit && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint .", "exit_code": 0 } ], "criteria": { "DN2 tab badges: per tab data-field=tab-badge-<tab> with data-severity, count=alerts the tab owns, worst-severity colour, no element at zero; raised-alert-count chip removed": "packages/ui-kit/src/components/NavChrome.vue (badge per tab from alertSource.tabBadges(); chip block deleted), packages/ui-kit/src/chrome.ts (TabBadge + tabBadges()); tests packages/ui-kit/tests/unit/navChrome.test.ts + navChromeSidebar.test.ts", "DO2 one attention-line: count=sum of badges, each tab name a drill-in that selects the tab; SYSTEM ALERT card + raised-alert needs-attention row removed; needs-attention keeps decisions only; HEALTH/BACKUPS rows unchanged": "dashboard/src/components/shell/OverviewScreen.vue (attention-line, system-alert box removed, headlines kept) + OverviewSurface.vue (summarizeAlerts over the alerts list) + dashboard/src/lib/overview.ts (composeQueue drops raisedAlerts); tests dashboard/tests/unit/overview.test.ts (DO2 block), overviewLive/overviewActivityLine", "P7-S1b: pinned critical alert-identity-unprotected (data-subject=dataset:identity) above coverage table while identity unprotected; protect-identity-now -> P7-S2 (identity preselected, no target) else P7-S3; clears only on verified copy; identity row red, others amber; Kanidm path same": "dashboard/src/components/backups/IdentityUnprotectedAlert.vue + BackupsSurface.vue (protectIdentityNow S2/S3 by policy.confirmed) + BackupsOverviewScreen/BackupsFirstRunScreen (pinned in P7-S1 and P7-S1x, coveragePillTone reds identity); tests dashboard/tests/unit/backupsOverview.test.ts (P7-S1b block: present iff no verified copy, S2 vs S3 landing, red row)", "The monitor's alert list carries the identity alert with tab:backups (added to the projection)": "internal/monitor/status.go alertsViewLocked synthesises IDENTITY_UNPROTECTED (critical, subject dataset:identity, tab backups) from backups coverage while last-good is nil; test internal/monitor/monitor_test.go TestAlerts_IdentityUnprotectedIsACriticalBackupsAlert (present iff no verified copy, tab backups, per_tab counts it, clears on verified copy)", "Badged tab opens with its alerted rows pinned (Backups: S1b)": "Backups tab renders IdentityUnprotectedAlert pinned above the coverage table whenever identity is unprotected, regardless of entry path; DN2 badge + DO2 attention line both select the tab (dashboard/tests/unit/dashboardShell.test.ts + overview.test.ts drill-in)", "Tests: badge count == owned rows; attention count == sum of badges; identity alert present iff no verified copy; Protect it now S2 vs S3 by target state; harness scenarios for DN2/DO2/S1b on :5198": "ui-kit + dashboard vitest suites above; harness scenarios dashboard/tests/e2e/preview-harness/scenarios.ts (chat-down services badge; new identity-unprotected backups badge + attention line + S1b) wired via panel.ts", "DDR 0099 §2 and DDR 0155 carry an amended-by-DDR-0265 note; STATUS.md in the same commit": "docs/adr/0099-design-settings-v1-inventory.md (§2 note), docs/adr/0155-design-control-panel-qa-polish-batch.md (rule 6 note), STATUS.md milestone entry" }, "summary": "DDR 0265 landed: DN2 per-tab alert badges (chip retired), DO2 one attention line, P7-S1b pinned critical identity-unprotected alert, and the monitor projects the identity alert onto the Backups tab.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1725
No description provided.