village-builder

VB-192: Work counters in VB.count, asserted at tiny scale

Status: done Priority: 1 Size: S Arch: yardstick Phase: implement Design ref: none (measurement). docs/roadmap.md, section 6 (work counters; how counters stay out of the state); AGENTS.md, Rules for cost, rule 10 (Decided, Kim, 3 November). Goal: Timing is noisy and needs long runs. A count of the work a loop does is exact, needs no reference machine and never flakes. Count the work of the loops that grow with history or with pairs, outside st, and assert the counts at tiny scale in npm test, so a change that makes a loop do more work fails when it lands, not when the late game freezes. Every later check of slice 0 reads these counters. Acceptance criteria:

Implementation notes (4 November 2026, revised after PR #51 review):