engine-adapters: backup-engine-exec — port-declared verbs run on the owning node; Identity's contract ships #168
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#168
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 execution half of the backup engine (ADR 0104): run each dataset's port-declared snapshot / verify-sample / restore / quiesce / resume verbs on the owning node over the fleet's established SSH trust — the reconciler channel AttachService already admits, reached through the clan adapter's connection. Identity's built-in contract (kanidm's consistent snapshot) ships here and is the proving dataset.
Acceptance criteria
Blocked by
Task manifest
Done in commit
90f7927(on origin/main).ADR 0104's execution half lands as the new package
internal/backupengine: the port-declared verbs (Snapshot / VerifySample / Restore / RestoreInPlace / Quiesce / Resume) run on the owning node over aConn— the reconciler channelAttachServiceadmits, reached through the clan adapter's connection, never a second transport (ADR 0080). The transport is aLauncher(SSHLauncherin production, a local one for the contract test), so the engine and port contracts are identical either way. A composed engine adapter compile-time-asserts asbackup.Ports(contracts unchanged).Identity's built-in contract ships here (
IdentityContract): kanidm's owndatabase backup(consistent point-in-time artifact), a sampled-restoreverifythat restores aside into a scratch store and lets kanidm's own integrity check be the "checks out" verdict, an in-placedatabase restorerun only while quiesced, and quiesce/resume as the unit's stop/start. A clean non-zero from verify is an honestok=false(typedExitError), never an engine failure masquerading as a verdict.Acceptance (contract tests over a disposable kanidm store,
internal/backupengine/backupengine_test.go):Scope: sealing (age) / movement / TargetInventory / headroom / retention are the engine's own parts and land in backup-engine-targets (#169); the family close wires it into main.go at backup-engine-schedule (#170). Not in main.go yet (ADR 0100). The real-remote-SSH proof is the family-3 clan-lab smoke (#177).
go build/vet/golangci-lint/tests clean; STATUS.md updated.