backups: scheduled-runs-and-verification — unattended snapshot, replicate, verify #88
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
#90 backups: per-target-honesty-and-staleness — per-target outcomes, stale runs, gone targets
Matou/idss
Reference
Matou/idss#88
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 scheduled run engine (P7-S2 → S3, ADR 0079) that makes recoverability independent of the operator's laptop being awake. When a confirmed policy's scheduled run fires, the
backuporchestrator snapshots the dataset (through the port's snapshot verb), replicates to each target, and verifies by sampled restore test — running fleet-side, in the control plane, with every browser closed and the operator app off. Verification is what makes a copy count: when a run's snapshot passes its sampled restore test it is promoted to the dataset's last good and counted in coverage; when it fails verification it counts nowhere and the failure publishes a fault (CONTEXT: Sampled restore test, Last good). Retention never prunes a dataset's last good snapshot — the most recent verified snapshot is always kept until a newer one verifies, so however short the window a dataset is never left with nothing (DDR 0083). The runs-and-verification screen (P7-S3) shows the run progressing through its steps.Every scheduled run lands a structured entry in the standing logging pipeline, attributed to the scheduler for automatic runs and drillable from the overview (ADR 0027). The engine is driven by the fake clock in the seam so schedules, verification promotion, and retention windows are asserted headlessly; per-target partial outcomes and the fault-publishing details are the next slice's concern.
Acceptance criteria
Blocked by
Task manifest
Done in
6dd0b0b(onorigin/main). The P7-S2 → S3 scheduled run engine.What shipped
internal/backup/run.go—Tick()clock-driven scheduler fires each confirmed policy's due 02:00 run fleet-side (browser closed, operator app off, ADR 0079): snapshot → replicate to each target → verify by sampled restore test through the port's newSnapshot/VerifySampleverbs (ADR 0080).TestScheduledRunSnapshotsReplicatesVerifies).TestVerifiedRunPromotesToLastGoodAndCounts); a failed verification counts nowhere and publishes averification-failedFault with evidence for monitoring (TestFailedVerificationCountsNowhereAndPublishesFault, ADR 0081 — per-target/monitoring-edge detail is the next slice's).prunealways keeps the most recent verified snapshot until a newer one verifies, however short the window (TestRetentionAlwaysKeepsLastGood, DDR 0083 §4).AuditEntryattributed toActorScheduler, drillable from the overview via the audit trail (TestScheduledRunAuditsToTheScheduler, ADR 0027).BackupRunsScreen.vuerenders theRunsViewprojection to the wireframe'sdata-field/data-statuscontract, composed underBackupsSurface(edge S2 → S3 on confirm, back → S1).Evidence: 8 Go seam tests + 4 Vue tests;
go test ./internal/backupgreen, go vet + gofmt clean; dashboard vitest 348 tests green, vue-tsc + eslint clean.Out of scope (next slices): per-target partial outcomes / staleness / gone targets (S3x, DDR 0083 §1–3), the restore ladder, snapshot pinning.