pub fn sweep_at(
roots: &RetentionRoots,
policy: &RetentionPolicy,
now_ms: u64,
) -> Result<SweepOutcome, RetentionError>Expand description
Unified sweep at an explicit clock (tests inject now_ms; production
uses sweep). Applies max-age per domain, compacts memory files, then
enforces the disk budget oldest-first — never touching chain heads.