backups: coverage-map-and-first-run — overview shows every dataset, honest from day one #82
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#82
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: #20 (backups).
What to build
The Backups tab's coverage map, mounted in shell's dashboard frame, and its never-empty first visit. On the overview (P7-S1) each dataset is a row showing its verified copies count, whether it has an offsite copy, and its last good moment — counting verified snapshot copies only, never a live service replica and never a copy sitting on a target that is known gone (CONTEXT: Coverage). Gaps are named proactively as a state on the row — single copy, no offsite, or stale — never a dated "last good: 9 days ago" timestamp standing in for a fault. The
backupcontrol-plane orchestrator computes this projection (ADR 0079); the Vue tab is thin UI over it.Datasets appear by themselves. Every dataset the fleet holds is listed the first time Backups is opened (P7-S1x, DDR 0085) — Identity present from the moment founding ends (its built-in backup contract ships in the control plane, ADR 0080), each catalogue service's declared dataset(s) as provisioning deploys them (the port's dataset contract, ADR 0080) — with no operator action to register or add one. Before any policy is confirmed each dataset reads honestly not backed up yet, and the drafted recommended policy is offered to review and confirm (the confirm itself is the next slice's screen). On a just-founded single-node fleet the honest floor is stated plainly: no on-fleet target can give real coverage until a second device joins — an offsite target is the only real coverage — shown beside an "Add a device" cross-link (into device-add's flow), and no same-node copy is ever counted as coverage.
Coverage reads per-service health from the shared fleet-state provider: a service that failed its health check contributes no coverage anywhere, consistent with provisioning's "a failed service claims no coverage" invariant (ADR 0079/0061) — hence this slice's edge to provisioning's active-and-partial health. Notes: the Identity dataset (kanidm store) is a founding-seeded runtime coupling — present because founding created it, not because of a build edge.
Acceptance criteria
Blocked by
Task manifest
Done in
70427a5(on main).What was built — the first backups slice: the
backupcontrol-plane orchestrator (ADR 0079,internal/backup/) and the Backups tab mounted over it at the ADR 0094backupsmount.Overview()projects each dataset row: verified-copies count, offsite present, last good — counting verified snapshot copies only: never a live replica (a fleet-state home is excluded), never a copy on a gone target (a node no longer in the fleet), never a same-node copy.single copy/no offsite/stale(DDR 0083 missed-cycle rule on the seam fake clock); a stale pill leads with the state (● stale — due 02:00, no run completed · last good 2 nights ago), never a dated timestamp standing in for a fault; the ⚠ banner words each gap.Nightly at 02:00 · keep 30 days · Encrypted — always(stated, never offered) with Review & confirm leading (the confirm screen is policy-confirm-and-edit's).Portsface: a provisioned service's declared dataset(s) appear as rows automatically, no operator action (seam test provisions a helper mid-test and the rows appear in catalogue order).add-a-devicecross-link (routes ownerdevice-add), and no same-node copy is ever counted — even verified and health-passed.Healthy): failed check, ungated service, unknown device all contribute no coverage.Evidence —
internal/backup/coverage_test.go: 6 seam tests over fake port contracts, fake fleet-state provider (per-service health + topology) and a fake clock, one per acceptance story.dashboard/tests/unit/backupsOverview.test.ts: 11 component tests overBackupsSurface+BackupsOverviewScreen(P7-S1) +BackupsFirstRunScreen(P7-S1x), built to the wireframes'data-field/data-action/data-statuscontract. Full Go + pnpm suites and lint green.ConfirmPolicy/RecordVerifiedare the minimal state verbs the policy-confirm and scheduled-runs slices drive next. STATUS.md updated in the same commit.deploy-files' switch stopsidss-control-plane, whose cgroup holds theclanCLI, andswitch-to-configurationdies at 101 before it ever restarts anything #858