backups: export-sovereignty-valve — take a dataset out of OurCloud, logged #93
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#93
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
Export (P7-S6, DDR 0084) — the sovereignty valve. The community can take its data and go, dataset by dataset, with no one's permission. Choosing Export for a dataset takes a fresh snapshot, packages it, and downloads it from the dashboard as an archive (P7-S1 → S6, S6 → S1). Export changes nothing on the fleet: it touches no service data and no service is confirmed or changed — but it is still logged and audit-visible like every operation, because a copy of community data is leaving the fleet (ADR 0027). The
backuporchestrator drives it through the port's snapshot verb; the packaged archive is the operator's to keep.Acceptance criteria
Blocked by
Task manifest
Done in
d5b9852(on origin/main).Export — the sovereignty valve (P7-S6, DDR 0084 §4).
Orchestrator.Export(actor, datasetID)(internal/backup/export.go) takes a fresh snapshot via the port's snapshot verb (ADR 0080), packages it through the newPackagerport into a portableArchive(name · size · download handle), and returns it for the dashboard to download (story 27).Changes nothing on the fleet (story 28): unlike a scheduled run it does not record the snapshot, verify it, promote to last good, count in coverage, arm a schedule, confirm a policy, or publish a fault — the seam proves
Overview()is byte-identical before/after and no verify verb runs. It still lands a structured audit entry attributed to the operator (not the scheduler), because a copy of community data is leaving the fleet (ADR 0027). Attribution is mandatory (ErrExportUnattributed); a failed packaging surfaces and logs nothing.UI:
BackupExportScreen.vue(P7-S6) composed underBackupsSurface(edge S1→S6, back S6→S1) — theLOGGED · AUDIT-VISIBLEchip, the dataset picker (export-dataset), the fresh-snapshot / packaged-archive stages (export-stages), the no-confirm note, and Download (download-export). NewBackupExportClient+FakeBackupExportClientindashboard/src/lib/backups.ts.Tests: 6 Go seam (
internal/backup/export_test.go) + 6 Vue (dashboard/tests/unit/backupExport.test.ts); full Go suite + 354 Vue tests green, vue-tsc + eslint clean. Out of scope (untouched): restore (stories 20–26), throttling/bandwidth shaping.seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871seamgate is toothless —set -eis suspended inside seam(), so every stage but the last is unable to fail a run #871