village-builder

VB-072: Random streams per system, with saveable state

Status: done (2026-11-02) Priority: 2 Size: M Arch: core Phase: implement Design ref: none (determinism and saves); REVIEW.md, Development, debugging and inspection. Goal: One random function, st.rand, feeds job matching, weather, births, deaths, fences and attitude drift. A change to one system reshuffles all the others, so a tuning comparison mixes the change with noise, and the closure’s state cannot be saved. Acceptance criteria:

founders small: population at years [1, 10, 20, 30]; totals of births, deaths, hunger deaths, marriages, hungry household-days seed 3: before 11/20/23/27 b27 d10 h0 m6 hd33 after 10/16/19/19 b21 d12 h0 m4 hd32 seed 7: before 10/16/20/25 b29 d14 h0 m6 hd86 after 12/21/26/26 b26 d10 h2 m4 hd233 seed 11: before 10/17/22/23 b29 d16 h2 m3 hd119 after 10/18/21/26 b30 d14 h1 m5 hd48 seed 42: before 10/17/25/23 b28 d15 h3 m4 hd134 after 10/20/14/15 b20 d15 h7 m6 hd45 ``` Founders at 8 more seeds (1, 2, 4, 5, 6, 8, 9, 10), year 30: before 16, 23, 27, 23, 22, 17, 20, 9 (sum 157; 7 hunger deaths; 675 hungry household-days), after 17, 23, 23, 18, 31, 17, 16, 20 (sum 165; 5; 614). Over all 12 founders seeds 255 before and 251 after; populous at year 15 1,883 before and 1,863 after (-1%), with fewer hungry household-days (1,591 to 1,321) and hunger deaths 4 to 7. The changes go both ways seed by seed and lie within the spread between seeds (founders 9 to 27 at year 30 before): a reshuffle, not a shift, for households as for totals. Founders at seed 42 falls to 15 (7 hunger deaths); a single founders village is fragile, which VB-163’s long-run test is meant to watch.