engine-adapters: backup-engine-schedule — runs per policy, deliberate restore, export; the family closes #170
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#170
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
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The family close (ADRs 0104/0107): the scheduler executes confirmed policy (a run that didn't happen is a failure — staleness per DDR 0083), in-place restore takes the pre-restore snapshot, brackets with quiesce/resume, verifies before done, falls back on mid-way failure (P7-S5x); export packages a fresh sealed snapshot via the same artifact path. Then
restingBackupPortsis replaced whole in main.go — the P7 write flows (confirm / retry / restore / export) go truthful end-to-end.Acceptance criteria
Blocked by
Task manifest
Done in
1649ad6(onorigin/main). Family 3 (the backup engine) closed.main.go'srestingBackupPorts— a blanket fail-loud port set — is replaced whole by the REAL*backupengine.Engine(control-plane/cmd/control-plane/backup_wiring.go:productionBackupPorts/backupEnginePorts/localOwnerDialer). The eight verb ports are the real engine; the catalogue's DatasetPort stays external (empty at founding — Identity is the built-in dataset, ADR 0080). No resting backup port remains (AC4); the fleet-state input still rests (its real read is the compose's, #180).Seam:
internal/backup/engine_integration_test.go(package backup_test, composing backup + backupengine without a cycle) drives both engine halves end to end over the real engine + orchestrator:The movement half's mesh/S3 target surfaces + SSH-behind-clan owner resolution ride the cross-orchestrator compose (#180, ADR 0104) and are proven on hardware by the family-3 smoke (#177); until then a replicate reaches the real engine and reports
ErrMovementNotWiredhonestly (ADR 0100), never a fake success — and no confirmed policy exists at a freshly-founded control plane, so no run fires against it yet. Existing internal/backup + internal/backupengine seam tests stay green;go build ./.../vet/ control-plane suite clean.