Status: done (2026-11-22) Priority: 2 Size: M Arch: crops Phase: implement Design ref: Goods and the farming year, Crops and rotations (design.md, section 8) Goal: Crops and the weather. The weather is being built on a parallel branch (Kim, 11 Nov; its first batch, rain from a per-seed wind, names “fronts, temperature, the harvest factor” as its next): this task takes the question a crop asks from there if it has landed, and builds the season’s draw only if it has not. Acceptance criteria:
weather, two years kept in st (plain data, in WORLD, with invariants), and nothing older.st.weather. Barley’s reading is tuned so its mean and spread over 1,000 drawn years are today’s factor’s (0.75 to 1.2, mean about 0.975): the test prints both.log with an event kind tests/record.js knows.node tools/bands.js once after.
Cost: 10 draws a year; a reading a field at its reaping. No daily pass. If the weather’s sums a region exist, a field reads a difference of two of them.
Notes / questions:QUESTION_ARCHIVE.md, VB-345): its numbers are design.md’s starting values, Agreed.docs/review-blocks.md): weather is named as a later cause of the time taken and of the estimate (design.md section 7): when it lands, rain cuts a haymaking leg (an event, with its reason in the record) and a head with the judgement reckons with it. This task need not build that; it should leave the season’s values readable by a leg’s start.sim/weather (world layer, target-v2 4.2’s climate) owns st.weather, saved with st (not a w array, so not WORLD); barley mean 0.973, deviation 0.130 over 1,000 years (tests/weather.js). Close calls: the frost’s mode is sday 11, the day it fell before (the design’s “11, where it is fixed today” read as the code’s sday); the harvest’s urgency reads days to the year’s frost.docs/tuning.md, the seasons’ timing); five runs used.node tools/bands.js in full (22 runs of 30 to 50 years) did not fit the session; populous cut to 15 years was run instead (the PR). Opened VB-1480 (sim/clock over the line).tools/bands.js --runs populous --years 15): 8 in, 8 out; invariants out on the fair’s ledger entries (VB-1471’s, before this) and twice “every adult lodged at the gathering” (VB-295’s); the farm’s failed kept past a fall back to one crop is fixed here.