pub fn tallies_from_metrics(
metrics: &BTreeMap<String, f64>,
) -> Option<BTreeMap<String, Tally>>Expand description
2026-09-26: Recovers per-subset tallies from a gate record’s metrics, the
subset.<name>.hits and subset.<name>.n keys that report.rs writes.
None when the record has no tallies, or a subset has hits but no n. A
caller treats None as “cannot be aggregated”, never as an empty
contribution, which would score the group over fewer samples than the draw.