Status: done (2026-11-22) Priority: 3 Size: M Design ref: AGENTS.md, Conventions (VB-414, VB-415) Goal: Each concern in its own module: new ground beside sim/fieldplans or its own, the course beside sim/rotations, soil and manure in sim/soil; the crop year stays. Acceptance criteria:
finishClear, clearStones, finishBreak, broken), beside sim/fieldplans or a module of its own; a field’s course in its rotation (nextStep, restagger, placeField, takeRotation, outOfTurn), beside sim/rotations; soil and manure (wearSoil, surplusOf, manureWanted, manureDone, tilthOf), a sim/soil; the crop year (hoed, sown, standing, reaped, carried, the frost, the day) stays in sim/fields. The task says which goes where, and why, before moving any.tests/width-baseline.json’s line for sim/fields falls to 15 or less, or is gone; its readers import from the new homes.node tools/same.js --base REF prints same.
Notes:standing (the crop as it stands, for the reaping’s hours) and took sim/fields to 23 exports, over its baseline of 22 (AGENTS.md, Conventions: width, VB-415).sim/newground, not sim/fieldplans (fieldplans plans and estimates; this changes the world: stones, w.dev, the field made). The course is its own sim/courses, beside sim/rotations, not in it: rotations is the choosing (which rotation, why), courses the applying, and rotations would have gone to 18 exports. failed (farmstead.failed, the crop last lost) goes with the course: it is the memory fieldsChoice reads. Fallow’s credit to the soil (rested) goes to sim/soil.src/owners.json now takes farmstead.fields[].<part> (tools/writes.js, tools/owner-policy.js): courses owns rotation, step, crop, turn; soil owns soil, tilth, tilthAt, surplus, surplusYear; the rest stays with sim/fields. Three lint-allow: owner lines: courses’ lies and unweeded (a change of course leaves a hoed fallow field in stubble, a field with no crop no weeding) and newground’s push of a new field. Close call: the alternative, one owner for the whole record, would keep the split nominal.same: founders, heirs, seeds 7, 42, tiny, 2 years; populous, founders, seeds 3, 11, small, 4 years.tools/agent-usage.js, to the PR): 49 model calls in about 8 minutes before the PR, no sub-agents; context 54.8k at the first call, 167.9k at its peak; fresh input 93, cache writes 150.7k, cache reads 6.54M, output 24.9k tokens; weighted cost 966.6k.