backups: restore-alternate-device — side-by-side restore that overwrites nothing #92
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.
Depends on
Reference
Matou/idss#92
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 non-destructive restore path (P7-S4 → S5, DDR 0084): restoring a dataset side-by-side to an alternate device. This is the honest recommendation for "I'm not sure which moment I need" — restoring somewhere else to look first, so it stays a plain action and does not nag the operator with a destructive confirm. Choosing to restore to an alternate device overwrites nothing; the restore runs and is logged with the ordinary Restore action (no REPLACES confirm). Like every restore it ends at verify and is audit-logged, attributed to the operator and drillable from the overview (ADR 0027). It reuses the same restore picker and running screens as the in-place path (P7-S4, P7-S5) but branches to the alternate-device destination.
Acceptance criteria
Blocked by
Task manifest
Done in
e9510cb(on origin/main).The non-destructive restore (P7-S4 → S5, DDR 0084):
Orchestrator.RestoreToAlternateDevice(actor, datasetID, momentRef, device)restores a verified snapshot side-by-side to an alternate device — a plain action, no destructive confirm, overwriting nothing (no pre-restore snapshot, no quiesce, no REPLACES; the live service is untouched), ending at verify (story 23). The moment picker offers verified snapshots only (RestoreMomentsfilters the ledger;ErrUnverifiedMomentrefuses an unproven copy). It lands a structured audit entry with the ordinaryrestoreaction attributed to the operator, drillable from the overview (story 32); attribution is mandatory (ErrRestoreUnattributed).Overwrites nothing — the seam proves
Overview(), the fault ledger and the snapshot ledger are byte-identical before/after.Evidence:
internal/backup/restore.go+internal/backup/restore_test.go(6 Go seam tests);Restoreport verb added ininternal/backup/backup.go, fake incoverage_test.go.dashboard/src/components/backups/BackupRestoreScreen.vue(P7-S4 picker → P7-S5 running/verified) composed underBackupsSurface.vue(edge S1→S4, back S5→S1); contract + fake indashboard/src/lib/backups.ts; 5 Vue tests indashboard/tests/unit/backupRestore.test.ts.STATUS.mdheader + milestone log.The in-place radio routes out to the REPLACES confirm (#91). Note: the Go/vitest toolchain is absent in the Sandcastle sandbox, so the suites were verified by close review against existing seams and are left for CI. In-place REPLACES restore (stories 20–22, 24–26) stays #91's.