Status: done (2026-11-22) Priority: 3 Size: M Design ref: none (code structure). backlog/VB-413.md, VB-414 Goal: sim/rules holds the calendar, the economy, roles, names and other constants in one module of 821 lines (VB-348 took it from its baseline of 804 by the rows of rye and fallow). Split it by concern (the crops and soil, the roles and their work, the names, the demography’s tables are candidates), each move checked with tools/same.js; before giving any of them an owner, find it in target-v2 section 4. Acceptance criteria:
sim/rules is under 700 lines, or what is left is one concern and the task says why it stays whole; each new module has its @sys line, its place in src/manifest.json and its owners in src/owners.json.node tools/same.js --base REF prints same for each move; its line is in the PR.sim/rules exports no more names than before (59 in tests/width-baseline.json), and the baseline falls with it.ECON, CROPS, FOODS, HERD) stays or is split by concern as above.// @tunable NAME: meaning line beside each table, as @sys and @state (grep -rn "@tunable" src), checked by the lint for every table that leaves sim/rules; AGENTS.md (Finding things) and docs/architecture/modules.md (Adding things, Tunables) name the grep in place of the list of names.
Notes / questions:13 Nov 2026: opened by VB-348 (winter rye and fallow), which took the module over the line (AGENTS.md, Conventions: the task that takes a module over the line opens one).
src/ on this day, 13 of the module’s 64 exports are read by one module (RIVER, CHILD, workRate, PLOT_PRIO, DIRNAME, BIRTH, IDLE, TERRAIN, SLOPE, TIE, COMMONS, houseTarred, houseTerm) and more by the modules of one domain (ROUTE and PATHS with the routes; MARRIAGE; SERVICE; CLAIMS; GRAZE; DEER; FORAGE). Moving those needs no new module and takes the count down. The @tunable line is what keeps a tuning run of Kim’s able to list them (Deciding without Kim, 3). A table read by an earlier module than its domain’s stays in sim/rules, since a module is loaded after what it reads.sim/walking. Move TERRAIN and SLOPE there with the walking-cost configuration.