village-builder

VB-181: Plan: the yardstick, cheap measurement of cost (slice 0)

Status: done Priority: 1 Size: S Arch: yardstick Phase: plan Design ref: none (code structure and measurement). docs/roadmap.md, sections 3.0, 5 and 6; docs/architecture/target-v2.md, sections 4.1 (the rules registry) and 6.2 (bands); Kim’s decision 9 (target-v2, section 8). Goal: Every later slice must be measured at its own cost, early and late in a run, without long timing runs. Measured on 3 November: one year from a year-40 save of populous small costs 227 ms a game day, its moving round 899 ms in one call, and the save 2.7 s to write; none of it shows at year 2, where tests/perf.js looks. Write slice 0’s implement tasks and its wrap-up. Questions: QUESTIONS.md, Priority 1, “Roadmap”, questions 3 (the budget), 5 (counters in VB.count) and 6 (the ten rules). Acceptance criteria: