pub fn verify(log_path: &Path) -> Result<VerifyReport, VerifyError>Expand description
Read-only integrity check on a canonical log.
Checks:
- Every record decodes cleanly until a trailing-bytes boundary.
- Every memory record’s
SymbolIdreferences resolve against the symbol table reconstructed by replaying the log’sSYMBOL_*events.
The report distinguishes “clean log + trailing orphans” (a
recoverable state per write-protocol.md § 10) from “dangling
symbol reference in committed data” (a corruption signal).
§Errors
VerifyError::Logon filesystem read failure.