pub type DurationProbe<'a> = &'a dyn Fn(&Path) -> Result<i64, String>;
Duration probe: path → milliseconds, or the Python exception name.