Implement the periodic file integrity checker #47
Loading…
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?
Context
Storage is content-addressed by SHA-256, so every stored file's hash is already known.
Bit rot, a failing disk, or a bad sync can corrupt a scan silently, and the corruption
would only be discovered at export — possibly after the physical original has been
discarded. Periodic verification turns silent corruption into a detected event.
Scope
A background job that periodically re-verifies stored file hashes.
Implementation notes
with a persisted cursor, so a large collection is covered over time without saturating
disk I/O and making the app unusable while it runs.
system, and mark the photo so it cannot be silently exported as if intact.
different remedies.
Done when
References
backend/app/services/storage.py(content-addressed by SHA-256)docs/circa-spec.mdPhase 4Depends on: #2 (worker runtime), #27 (notifications).