fn state_routing(root: &NativeNode) -> Option<(StateGroup, SeriesRouting)>Expand description
The owner count and routing policy required by a Final aggregate and its suffix.
State rows already carry the cut’s full group labels. Histogram suffixes need a coarser key: every bound of one histogram and every histogram whose metadata-free outputs collide must meet, while the Final kernel still folds separately by the original group labels.
A suffix that folds across groups needs every group’s rows in one place, whatever the Final’s
grouping is: splitting the rows of one vector by group would answer one fold per owner rather
than the fold of the whole vector. Such a consumer is a whole-vector operation – the ranking
operations, scalar(), and the fold whose argument is read per point – and the walk below
records it as it descends, so a quantile(time(), v) above a grouped Final reads every owner
instead of one, and one whose parameter is the state itself reads it at all.