Status: done (2026-11-13)
Priority: 2
Size: M
Arch: crops
Phase: implement
Design ref: Goods and the farming year, Crops and rotations (design.md, section 8)
Goal: Add the rows rye and the course fallow (The first crops) and make the field cycle carry them. No holder chooses them yet: tests force them, so runs are unchanged.
Acceptance criteria:
rye: sown autumn days 1 to 6 on a field that is free then; stands through the winter (snow drawn over it by the page is a later task); ripe 42 days after sowing, summer days 7 to 12; 100 rations, 25 of seed; soil −0.08; tilling 20, sowing 2, one round of weeding of 5, reaping 15, threshing 20. The autumn frost does not touch it; a ripe rye field not reaped by autumn day 1 is lost.fallow: not sown; one tilling of 10 hours in summer, an opportunity with that window; at the year’s end soil +0.08 to at most SOIL.start (1.0), only if tilled, else half. It is not grazed. A fallow field is not abandoned and does not go to meadow.tests/golden.json unchanged; the work counters’ structure unchanged.
Cost: none in a run that does not sow them; the rye field is one more field in the daily growth pass.
Notes / questions:QUESTION_ARCHIVE.md, VB-345): its numbers are design.md’s starting values, Agreed.CROPS (fallow: {fallow: true, sow: [summer], mend: 0.08, hours: {plow: 10}}), not a table of its own: a field’s course is
a key of one table, as the design’s rotation says (“a course is a crop of the table or fallow”), and every reader of CROPS[fd.crop] (the
window, the hours) reads it alike. A row without seed is a course, not a grain: sim/stores builds CROP_LIST from the rows with seed, so
there is no grain/fallow. The course fallow (fd.crop) is not the stage fallow (a field gone to grass on an empty farm, VB-033).fd.rest 0.5), tilling raises the mark to 1, and on the year’s last day
(winter day 12) the mark times 0.08 is added to the soil, to at most SOIL.start; a field manured above 1.0 keeps its soil. A field put to
fallow after the summer earns nothing until the next summer, so a course from one autumn to the next earns 0.08 once.plow job (stage stubble kept, fd.rest 1), posted once a summer; it is not grazed (fields are never in the pasture,
st.used) and nothing abandons it or makes it a meadow (no rule drops an unsown field); the test checks it stays in stubble.weeds: 1 on the row, counted in fd.weeds (absent for barley, which is weeded every weedEvery days as before);
the round falls when the field is growing (autumn days 4 to 9), and a round still open weedEvery days later counts as missed.winter: true); stooks of any crop are lost to it as before. A ripe rye field still standing on
autumn day 1 (lost: [2, 0]) is lost, logged as a lost crop (event kind frost, the kind of a crop lost in the field).sowWhy(hh, fd, c) (exported by sim/kinds): the course is not
sown, out of the window, not hoed, or less than a field’s seed of the crop (“the household holds 24 of the 25 rations of rye a field’s seed
takes”); the sow job is posted only when it is null. Seed is taken from the crop’s own grain (grain/rye).household.sheafCrops, absent while every barn entry is barley’s (so barley runs keep their state), else the crop of
each entry of unthreshed; threshing puts grain/<crop>.reaped multiplies every crop by st.weather, so rye reads the year it is reaped in (summer), as barley does.fd.crop (tests); VB-350 gives it its rule.src/sim/rules.js: rows rye (yield 100, seed 25, sow autumn days 1-6, ripe 42, wear 0.08, winter, lost autumn day 1, weeds 1, hours till 20,
sow 2, weed 5, reap 15, thresh 20) and fallow.src/sim/fields.js: hoed tills a fallow field; lostRipe, rest (summer mark, year’s-end credit) and the weeding rounds in fieldsDay;
the frost spares winter crops; weeds cleared at sowing and reaping. @state line: weeds, rest. No new export (the module is at 26).src/sim/kinds.js: fieldJob gives a field’s job its crop’s hours where they differ from barley’s (so barley jobs are unchanged); sowWhy;
the plow job not posted for a fallow field already tilled; the haul delivers sheaves with the field’s crop.src/sim/stores.js: CROP_LIST the rows with seed; weight asks no reservation of a crop not held; sheaf(..., crop), thresh by crop,
household.sheafCrops (owner sim/stores in src/owners.json).src/sim/hunger.js seedNeed: a fallow field needs no seed. src/sim/plans.js fieldsDue: a tilled fallow field is not due.tests/lib/invariants.js: grain keys are CROP_LIST; fallow never sown; a sown crop has seed; only a winter crop stands in winter on an
occupied farm; weeds within the row’s rounds; rest 0.5 or 1; sheafCrops one known crop an entry.tests/rye.js (fast tier): the three courses run by the simulation on a tiny farm at seed 7, and the constructed cases.docs/architecture/modules.md, Adding things: the new row keys and fallow.sim/rules (821 lines) and sim/kinds (795) went over their baselines: VB-419 and VB-420 opened to split them (AGENTS.md, Conventions).node tests/rye.js: fallow tilled on summer day 1 (a 10-hour job); rye sown autumn day 1, growing through the frost and the winter, ripe and
reaped summer day 7 (106 rations), threshed into rye; barley sown spring day 2 of year 3, reaped autumn day 5 (98); soil at the years’ ends
0.98, 0.90, 0.82 (from 0.9: fallow +0.08, rye -0.08, barley -0.08). Invariants pass every day of the three years. Rye’s weeding job 5 hours.node tools/same.js --base 32f7f33 --years 3 (founders and heirs, seeds 7 and 42, tiny): same; --scenario populous
--seeds 11 --years 4: same; --map small --seeds 7 --years 3: same. So households are as before; no numbers move.node tests/counters.js: 35 counters, structure unchanged, 7 out against the baseline as on main (the counts are the same runs).npm test: 46/46 passed, 7 targets out as before the change. npm run verify: 89/89 passed, 10 targets out (advisory); the runs are the
same as the base’s, so no target moved. No screenshot: the page is unchanged (src/page/ untouched; a rye field is drawn by VB-355).