pub fn summarize(days: u64, path: Option<&Path>) -> Result<HistorySummary>
Summarizes scan growth and cleanup outcomes over a rolling window.
Returns an error when the database cannot be opened or queried.