Expected group facts are assertions only; compiler output is the source of truth.
highlighted = computed this step
Honest by construction
Each lesson compiles raw rows and aggregate specs, turns recomputed facts into expected assertions, then compiles again.
expected is assertion only
Show the guarded grouping
The guarded check has 3 groups and 2 aggregate specs.
groups=3
Grouping examples are tiny finite table transforms; SQL dialects, NULLs, AVG/rounding, planner behavior, indexes, performance, and product behavior are out of scope.
Try to tamper
Wrong expected facts, derived sidecars, duplicate columns, missing group columns, non-integer sums, and bad HAVING aliases fail closed.
fail closed before render
Summary
Book twenty-three stays inside finite GROUP BY, COUNT, SUM, and group filtering.