Status: ready
Priority: 3
Size: S
Design ref: docs/architecture/ownership.md; docs/architecture/target-v2.md 4.3
Touches: sim/forest; new sim/ground; sim/spread; sim/layout; sim/fields; sim/meadows; sim/expansion; gen/cover (set); src/owners.json
Goal: w.biome, w.trees, w.treesMax and w.stones are written by about ten sim modules (forest, spread, layout, fields, meadows, expansion and others) and by the editor, and src/owners.json gives them no owner, so tests/ownership.js does not hold their writes. Found by the terrain review of 23 November; the split (VB-1501 to VB-1504) does not give them one.
Acceptance criteria:
sim/forest owns w.trees, w.treesMax and a wood’s w.biome: felling, regrowth, spread and clearing write them through it. A new sim/ground (its @sys, src/manifest.json, src/layers.json) owns w.stones and a field’s or yard’s w.biome. Where src/owners.json holds one owner a field, w.biome’s is the one the more writes go through and the other calls it; the choice and its reason in the notes.node tools/writes.js) goes through its owner; tests/ownership.js holds their writes, and its baseline does not rise.gen/cover.set before a run is seeded, never into a running state.node tools/same.js --base REF prints same; npm run verify passes.
Notes:sim/forest owns trees, treesMax and a wood’s biome; a new sim/ground owns stones and a field’s or yard’s biome; the editor writes through gen/cover.set before seeding.