Returns whether an aggregate’s partial state can be merged without
changing the current local SQL result. Floating-point, DISTINCT, and
order-sensitive aggregates must instead be replayed from ordered inputs.
A FILTER predicate does not affect this proof: it applies per input row
before the accumulator, so it commutes with Partial/Final splitting —
but the distributed catalog still classifies filtered aggregates as
local-only before any state reaches this kernel.
Merge only aggregate states whose merge rule is proven to preserve the
current local SQL result. This is the coordinator-side kernel used by the
distributed result assembler after every worker has acknowledged cleanup.
Return true when aggregate execution must remain Single for correctness.
FILTER is applied per input row and therefore commutes with Partial/Final
splitting; ordered aggregates (aggregate-local ORDER BY and ordered-set
aggregates such as PERCENTILE_DISC) buffer whole groups and stay Single
(issue #148, D11).