Status: done (2026-11-13) Priority: 3 Size: M Arch: mill Phase: implement Design ref: Economy and jobs, Long work and processing (Milling at home: Decided). Kim, 2026-10-29: milling makes more food from grain; a household job turns grain or flour into rations; flour needs less input than grain. Goal: Food stops being eaten straight from grain. Households grind grain to flour on a hand quern, and a household job turns flour or grain into rations; flour goes further. Acceptance criteria (rewritten by slice 6’s plan, VB-185, 11 Nov):
grain, flour and meals. Harvests, seed, starting stores and inheritance shares stay in grain.hh.quern, { rock, made } or null. Households of the scenarios’ start have one (of their village’s bedrock where that is sandstone or granite, else granite). A quern wears out QUERN.years (20) after it was made, read from made (rule 3); a household without one eats its grain unground (1.25 grain a ration, as today’s cooking from grain).hewQuern, 12 work hours at home from a load of sandstone or granite on the heap (VB-332’s heap by kind), winter work, skill building; wanted from 2 years before the old one ends, or at once with none. The worth table gains a quern at 25 rations (Proposed), so a household on limestone or slate gets one at the fair.grind (at home): 1 work hour for 4 units of grain on sandstone, 20% slower on granite (QUERN.granite 0.8), 1 grain to 1 flour; posted while grain exceeds the seed reserve and flour is below 10 days of the household’s need. Priorities: mistress of the house and maid 7, daughter 6, retired 3, others 1.cook turns flour into meals at 1:1, or, when flour runs short, grain at 1.25 a ration; daily food is eaten from meals. The household panel shows grain, flour, meals and the quern with its stone and years left.hh.meals since VB-259 (src/sim/saves.js, format 3; a ration is now only the unit), so the criteria say meals where they mean that store (the title’s and goal’s “rations” mean it too); the cook already makes meals from grain (cook, src/sim/kinds.js) and feedHousehold (src/sim/hunger.js) eats meals, then grain, so the block of 29 Oct (its cause fixed by VB-022, done) no longer holds; flour becomes a row of FOODS (src/sim/rules.js); VB-119 (needs-review) eats raw grain at 1.25 a ration (ECON.rawGrain), which overlaps the grain at 1.25 of the third criterion.cook job is often not done in the first days of spring (even before this task, cookDay stays -1 for days 0-4 in the founders runs, because everyone is busy with the sowing work). With grain eaten directly this was invisible; with rations it is a hungry day each time the cook job is missed. Each such day also counts, so hunger recurs all year (about every second day in year 1 even when plow is 4 h).cook be able to interrupt other work, or have a higher priority for the wife, so that it is done every day? (3) is the daily cook meant to make food for the same night’s meal (as implemented) or for the next day?ready and adds the rations store and reliable cooking from grain; this task adds the quern and flour on top. Depends on VB-022; if it is not done, mark this blocked.docs/roadmap.md, section 3.6; the slices Decided by Kim): moved to slice 6, arch mill (from food). blocked until the slice’s plan (VB-185) confirms, rewrites or closes it.
Implementation (13 Nov 2026):sim/quern (material layer, after sim/hunger): QUERN (years 20, renewYears 2, granite 0.8, perHour 4, grindHours 2,
flourDays 10, hewHours 12, startAge 16), hh.quern {rock, made} or null (owner sim/quern), quernOf (wear read from made),
yearsLeft, the kinds grind and hewQuern, and the good quern (wares, keeping; Culture’s worth table quern: 25).household.flour is a store of sim/stores (reasons grind, routine, and quern, the load off the heap); FOODS.flour (worth 1,
source grain); grain’s worth in the pot is 1 / ECON.unground (1.25 grain a ration). The cook (sim/pot) puts flour in after dried fish
and before grain; with no meals, flour is eaten uncooked as grain is (sim/hunger); flour counts in foodHeld, sourceHeld('grain'),
spareFood and the seed the meal would eat (seedForMeal now returns grain, cooked unground).grind 7 for the mistress and the maid, 6 the daughter, 3 the retired, 1 farmer, son and farmhand.Sim.quernYears).herds[i]: herder): a pawn that moves to another household mid-day leaves its old
household’s herds by the farm (moved, sim/agents); the timing of this task’s jobs exposed it.
Decisions (Deciding without Kim):hh.stone): a load on the heap is taken as of the village’s bedrock (the rock under its
green), the same rock the start’s querns are of. Rule 4 (extending a system); a heap by kind is a follow-up.upkeep work until then.(id * 7) % 16): no draw, since the seeding stream is shared.tests/quern.js (fast, 1 s, probe state): numbers, kinds, roles, the good; start querns; grinding (8 grain to 8 flour a job, 2.5 h on
granite, not posted at 10 days’ flour, without grain above the reserve or without a quern); 300 grain feed a household 25% longer with a
quern than without (ratio between 1.2 and 1.3); flour cooked first, then grain at 1.25; wear and want; hewing in winter or at once, the load
through the ledger, none on limestone, sandstone on sandstone; invariants; 6 days’ run with flour cooked. tests/pot.js, tests/meals.js,
tests/goods.js updated for grain cooked unground and the new good; invariants know flour and hh.quern.