Files
photoanalyzer/delivery_backlog/stories/US06-02-archive-transfer.md

886 B

US06-02 — Transfer, Verify, and Remove Active Sources

Epic: E06

As a user, I want source files removed only after durable archive verification so reclaiming space cannot cause data loss.

Acceptance criteria

  • A journal records planned, transferring, verified, removing, and terminal item state.
  • Cross-filesystem flow copies to a temporary destination, closes, hashes, atomically publishes, records manifest, then removes the matching source.
  • Same-filesystem optimization is used only when proven safe and still verified.
  • Unexpected source/destination changes stop the item without overwrite or deletion.

Automated tests

  • Filesystem/process tests interrupt every transition before and after source removal.
  • Tests assert manifest/hash correctness, idempotent recovery, and zero verified loss.

Dependencies

  • US06-01, US02-03