Collection aggregates []

x[] counts members and x[].f sums a field: grammar, routing, exact sums, statuses and secret-scope behavior.

242 checks in 2 files. Run: cd Typescript && npm run test:aggregates. Source: Typescript/tests/

aggregate-path.test.ts165 checks

The grammar of [] and its renderer: accepted forms, rejected forms (x[][], x[].a b, a..b[]), the plain 4.1 route for selectors like x[c => c.f], quoted literals, and robots[i].batteries[] in a template. Kernel cases run in eager and lazy mode.

aggregate-eval.test.ts77 checks

Count and sum with their statuses (absent, incomplete, deferred, cycle), the exact sum rounded once (Object.is against two independent references), formula, me() and explain() agreeing, invalidation, reconstruction, and twin A/B cases showing protected entries change nothing a reader sees.

Last result: 242 passed, 0 failed. Run summary 2026-10-26