village-builder

VB-474: The page draws pawns from their legs

Status: done (2026-11-16) Priority: 1 Size: S Design ref: docs/review-blocks.md; design.md section 7 (A leg, and its end, to The timetable); docs/mocks/blocks/README.md Goal: The page interpolates from the leg (Rules for cost 7), and no simulation state exists only to be drawn. Acceptance criteria:

Implementation notes (agent run, 16 Nov 2026)

Repair, 16 November: node tests/smoke.js failed four clock lines (shown 515/520/525/540 against 510/516/522/534). The clock was drawn at st.tick + stepShare, so it led the simulation (the smoke test measured lag only upward, and at 30x the share 0.99999999999997 rounded tick + share to 90 and showed 540 at tick 89). Mended the clock, not the test: updateClock (src/page/animate.js) shows st.tick floored to 5 minutes, never ahead of the simulation (principle 14); pawns are still drawn at the fractional tick. The three checks now agree: smoke.js allows 0 to 5 minutes behind, browser-speed.js no lead (was 6 minutes) and at most 5 behind. browser.js asserts nothing of the clock. Passed: verify, smoke (twice), browser, browser-speed.