pub fn census(data_dir: &Path, window: Option<&str>) -> Result<(), DevError>Expand description
waratah geo census: read-only per-level census of the O-axis S2
posting store ({data_dir}/main/o). The diagnostic behind geo window
estimate over-counting: the level distribution the coverer actually
produced, the L9–L10 expansion mass (the only expanding levels since
the 2026-10 floor move — L8 and below ride the count-once coarse map),
the envelope-bearing population,
and cells-per-term multiplicity — all from the postings themselves, not
the rolled-up profile.
With window set (WKT), the walk additionally builds the
postings-exact histogram and the drain-truth candidate set for that
window, and reports the estimator’s ladder decomposition next to what
the storage scan would actually fetch.