Archive Copy Verification Misses Same-Size Corruption
Level 2 · node · Reliability · Content comparison missing from file copy integrity check
Scenario
A fictional records archive copies result files into long-term storage and verifies the copies against their originals. Corruption that changes file length is detected, but replacing bytes without changing the total length is incorrectly reported as successful storage. Inspect the verification module and the service that assigns archive status.
Requirements
Return verified=true only when the original and copy match byte for byte. Different contents of equal length must fail. Empty files are valid only when both sides are empty. The archive status must reflect the verification result.
Acceptance criteria
- An identical copy passes verification.
- An equal-length copy with different contents fails.
- A copy with a different length fails.
- Two empty files pass verification.