backups: per-target-honesty-and-staleness — per-target outcomes, stale runs, gone targets #90
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#90
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 honesty layer over runs: a run outcome is per target, staleness is a failure not an absence, and a gone target drops its coverage at once — all surfaced through monitoring, because
backuppublishes fault and coverage state and never grows its own alert channel (ADR 0081). When a run replicates to several targets and one fails mid-run (P7-S3 → S3x), the copies that verified are kept and counted, the failed target is named and its outcome retryable (per-target steps and outcome shown), and a copy that has not passed its sampled restore test counts nowhere (DDR 0083). A failed run or failed verification publishes the fault as control-plane state with plain-language evidence; monitoring classifies it critical and notifies — backups never set a severity or touch the notifier (ADR 0081). A dataset whose scheduled run has not completed by the time the next is due is stale — nightly means stale by the second 02:00, one missed cycle with no grace (DDR 0083) — shown as a loud state on the coverage map and publishing a critical fault, computed from policy and clock against the target inventories, not from the scheduler's belief that it ran.A target that becomes known gone — a node removed in provisioning, or an offsite endpoint whose credentials died — has every copy it held leave the coverage map immediately (down to single copy → warning, or no copies → critical when it was the last), with a fault alerting through monitoring (P7-S1 → P5-S2, DDR 0083). Acting on a monitoring diagnosis lands the operator where they can fix it: a general gap lands on the policy screen (P5-S2 → S2) to close or retry; a diagnosis naming a gone target lands on the policy's gone-target state (P5-S2 → S2x) with the dead target named and a replace affordance. Picking a replacement target has the next scheduled run rebuild the lost copies onto it, and coverage recovers (P7-S2x → S3). Every target replace is audit-logged, attributed to the operator, drillable from the overview (ADR 0027).
Notes: this slice publishes the fault state monitoring's classifier raises — hence the edge to monitoring's status-surface classifier; the classifier must exist to classify.
Acceptance criteria
Blocked by
Task manifest
Done in
8d75f81(onorigin/main).Per-target honesty over runs (DDR 0083 §1–3, ADR 0081). Backups publish fault + coverage state with plain-language evidence; monitoring classifies severity and notifies — backups set no severity and touch no notifier (classification/delivery stays monitoring's).
Replicateport verb (accept/refuse/vanish per target); a run whose snapshot verified but a target failed to write isRunPartial: good copies kept & counted, the failed target named and retryable (per-target steps + outcome,RunFailedView/RetryTarget), an unverified copy counts nowhere.run-failedfault and averification-failedfault publish with evidence; theFaultcarries no severity.stalefault computed from policy + clock vs the target inventories (one missed cycle, no grace — nightly by the second 02:00), same state the coverage map shows.coverage-gapfault; its copies leave coverage at once;LastCopyset when it was the last (critical vs warning is monitoring's call).HasGoneTarget/GoneTargetView(P7-S2x) vs the general-gap policy screen (P7-S2); surface routes accordingly.ReplaceTargetswaps the gone target so the next scheduled run rebuilds the lost copies onto the replacement; coverage recovers.Screens shipped:
BackupRunFailedScreen.vue(P7-S3x) andBackupPolicyTargetGoneScreen.vue(P7-S2x), built to the wireframes'data-field/data-action/data-statuscontract, composed underBackupsSurface(S3→S3x drill, P5-S2→S2x routing).Seams:
internal/backup/pertarget_test.go(9 Go tests, every acceptance clause) anddashboard/tests/unit/backupPerTargetHonesty.test.ts(7 component tests). Verified:go build/vet/test+gofmtclean; dashboardvue-tscbuild + 389 tests +eslintclean.Monitor-side consumption of
backup.Faults()remains a future monitoring slice (out of scope here — backups only publish state).idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745idss-broker-installis a hand-placed copy that nothing re-places or checks #872idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745workflow_runevent here, and all 4 broker-deploy runs in history were manual #874waiting, oldest 23h; ci, healer, triage, resume-asks and broker-deploy are all starved #878workflow_runevent here, and all 4 broker-deploy runs in history were manual #874waiting, oldest 23h; ci, healer, triage, resume-asks and broker-deploy are all starved #878workflow_runevent here, and all 4 broker-deploy runs in history were manual #874idss-broker-installis a hand-placed copy that nothing re-places or checks #872idss-broker-installis a hand-placed copy that nothing re-places or checks #872