pub fn verify_repository(
bones_dir: &Path,
regenerate_missing: bool,
) -> Result<VerifyReport, VerifyError>Expand description
Verify sealed shard manifests and parse-sanity-check the active shard.
Sealed shard policy:
- Every sealed shard (
all except latest) must have a manifest. - If missing and
regenerate_missingis true, regenerate from shard file. - Existing manifests must match computed
event_count,byte_len, andfile_hash.
Active shard policy:
- The active shard is not required to have a manifest.
- Active shard content is parsed for TSJSON sanity.
ยงErrors
Returns VerifyError on filesystem access failures.