Status: done (2026-11-25)
Priority: 3
Size: S
Design ref: AGENTS.md, Conventions (a module over 700 formatted lines; VB-414) and Finding things (tunables beside the tables several domains read, VB-419); docs/architecture/modules.md
Goal: sim/rules holds the clock’s constants (DAY, SEASON_DAYS, YEAR_DAYS, YEAR, TICKS, the workday, cal), the names, and the tunable tables. VB-419 moved the tables one domain reads into that domain; since then some tables’ readers have narrowed (by a grep of 23 Nov: TESTBED is read by sim/scenarios and sim/byhand, ILLNESS by sim/deaths and sim/hunger, HANDOVER by sim/relations and sim/marriage, DEER by sim/deer and sim/fields). The split follows the readers: a table one domain reads moves to it with its @tunable line (and joins LEFT_RULES in tests/lint.js); the shared tables are grouped by the concern that shares them (the household’s economy, ECON and FOODS; the social tables, MARRIAGE, GOODWILL, HELP, SHARES), not by the line count.
Acceptance criteria:
@sys, src/manifest.json, src/layers.json and docs/architecture/modules.md follow; the tunables are still found by grep -rn "@tunable" src.node tools/same.js --base REF prints same; npm run verify passes.
Notes:BUILD.quarryOn (the biomes stone is quarried on: hills, mountains and heath) took sim/rules to 701 lines.