village-builder

VB-473: Walks and waits as blocks: one queue of legs, and no awake list

Status: done (2026-11-16) Priority: 1 Size: M Design ref: docs/review-blocks.md; design.md section 7 (A leg, and its end, to The timetable); docs/mocks/blocks/README.md Goal: A step of the simulation touches only the pawns whose leg is due. Acceptance criteria:

Implementation notes (agent run, 16 Nov 2026)

Decisions (Deciding without Kim)

Validation

Numbers before and after (before: the run’s branch at 066671f; after: this change)

populous small, 3 years; founders small, 10 years; --report hours; scratch measures of talk, ties and wear:

Run Living (end) Hungry household-days Mean grain (end) Idle share of workers’ hours
populous 7 374 -> 374 15 -> 25 (0/15/0 -> 5/20/0) 564.2 -> 566.3 51.8% -> 51.9%
populous 42 369 -> 364 2 -> 3 484.2 -> 484.9 49.5% -> 50.0%
founders 7 19 -> 19 0 -> 0 693.5 -> 699.1 23.1% -> 22.7%

Hours a household-year by kind (work and walking, mean over the groups by household-years): every kind within 1 to 3 hours; the most moved hunt 32 -> 29 (populous 7), wood 85 -> 83 and plow 84 -> 82 (42), mow 69 -> 71 and wood 58 -> 56 (founders). Households: no household-level change the summary shows beyond the runs’ drift; the hungry days of populous 7 rose by 10 (years 1 and 2), those of 42 by one, a description (VB-472’s change moved the same count by 7 the other way).

Talk and ties (criterion 4, within a twentieth): talks a pawn-day 6.989 -> 6.963 (populous 7), 7.026 -> 7.023 (42), 4.74 -> 4.73 (founders 7), 6.642 -> 6.633 (the late save, populous 7 at year 20, one year on); ties held among the living 14,474 -> 14,426, 17,098 -> 16,324 (a tie a pawn 46.3 -> 44.9, -3.2%, with 5 fewer living), 156 -> 158, 24,727 -> 24,731.

Wear over a day (criterion 1, within a hundredth): populous 7 from its start, the sum of w.wear 76,627.7 -> 76,648.4 (+0.03%), worn tiles 726 -> 726 (stages 286 -> 286); from a save at year 1, 158,046.5 -> 158,095.8, 1,281 -> 1,281; populous 42, 101,489.8 -> 101,578.5, 707 -> 711 (+0.6%). The day’s own wear is 1.5% (populous 7) to 7% (42) higher: the runs part from the first step (a pawn freed looks for work sooner), and the points trodden a day are within 2% (walkPoint). Founders 7 over 10 years: 9,889 -> 8,501 at year 10, within a few percent either way in years 1 to 9.

Counters a living pawn-day (scratch runs, the whole run): walkStep 51.8 -> 6.82 (populous 7), 54.4 -> 6.90 (42), 52.1 -> 8.17 (founders 7), 54.1 -> 7.13 (the late save); walkAwake 24.0 -> 1.0 in all; walkPlace (new) 1.19, 1.53, 0.91, 1.36; walkPoint within 2%; helpBid 0.688 -> 0.707, 1.158 -> 1.116; pastureTiles 1.71 -> 1.68 (populous 7); the others within 2%. tests/counters.js probe: walkStep 52.8 -> 7.05, walkAwake 24.0 -> 1.0, walkPlace 0.58; every other counter the base’s to three digits. --report perf (a description: the machine was shared, the after runs under twice the load): “agents: walking and working” 18.3% -> 16.5% of simulation time at populous small year 3, 20.1% -> 16.3% on the late save; the times are left to the nightly bench.

Targets

After review (16 Nov 2026)

Repair (16 Nov 2026, after the extended tier)