engine-adapters: backup-engine-targets — age-sealed artifacts, movement, inventories, headroom, retention #169
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#169
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 movement half (ADR 0104): seal the port's snapshot artifact with the dataset's crown-jewel key (age), move it — cross-device over the mesh, offsite over the S3-compatible surface (a partner site speaks the same surface) — write the self-describing TargetInventory on every mutation, check headroom before a run claims space, prune whole snapshots per retention. No foreign repository format: a target reads back with the keys and
agealone (ADR 0082 §2).Acceptance criteria
Blocked by
Task manifest
Done in commit
1e8d8a7(pushed to main).ADR 0104 movement half. A verified snapshot is read off the owner, sealed under the dataset crown-jewel key, and moved to a target byte surface (mesh for cross-device, S3-compatible for offsite) where it lands as PLAIN FILES beside a self-describing JSON inventory. No foreign repository format: a target reads back COLD with the community keys + backup.Open + a JSON reader alone.
Acceptance:
TestReplicate_SealsAndMovesReadableWithKeysAndJSON,TestTarget_SealedArtifactsReadBackColdWithKeysAndJSONAlone.TestTarget_RebuildFromNothingWalksTheRawTarget(RebuildFromNothing over a raw directory target).TestReplicate_RefusedWithoutHeadroom,TestTarget_RefusesRunWithoutHeadroom.TestTarget_RetentionPrunesWholeSnapshotsAndInventoryReflectsIt.Files:
internal/backup/targets.go(TargetStore, WriteInventory/ReadInventory, CheckHeadroom, UpsertMoment);internal/backupengine/movement.go(Engine.Replicate/Headroom, TargetResolver); Contract.Headroom + Identity impl; tests; STATUS.md. The engine is now a full backup.Ports (only the catalogue DatasetPort stays external).ADR-interpretation note for post-hoc review: ADR 0104 says "(age)", but its operative clause "the engine adds no second [encryption story]" + the manifest "contracts unchanged" resolve to reusing the crown-jewel Seal/Open the orchestrator already carries (AES-GCM under a per-dataset key). Literal age would change the CrownJewelKeys/Ciphertext contracts; real age against real hardware is the family-3 clan-lab smoke (#177). Sealed files use a .sealed extension (honest, not literal age files).
Out of scope (per manifest): dedup/incremental transfer; the compose root (#181) wires the real mesh/S3 stores + crown-jewel store and the orchestrator authoritative inventory projection that stamps verified/name.