Status: done (2026-11-19) Priority: 3 Size: S Arch: town Phase: implement Design ref: design.md, Goods and the farming year (Fields a household wants); docs/plans/VB-189.md, section 5.5 Goal: A head knows what each of its household’s sources of food has brought, in poor years and on average, so that an estimate of next year’s food is the head’s own (principle 14; Kim, 16 Nov). Acceptance criteria:
src/sim/stores.js already books a food operation with its reason (no new pass); a reason that fits no source is listed in the task file.FIELDS.memory 8 years a source and starts again. Plain data on the household with an owner in src/owners.json, in the save, with invariants: at most 8 x 7 numbers, none negative, the year’s tally equal to the booked operations of a constructed year. A new head keeps the household’s ring: the memory is the farm’s, told to the heir (a close call, said in the task file).expects(st, hh, source) returns { poor, mean, years }: the second lowest and the mean of the ring. With fewer than 3 years, poor is 0 and mean half the mean so far (a head does not lean on what it has barely seen).caution(st, hh): 0 bold to 1 cautious, from the head’s bias on fields (plan.head.bias.fields, VB-254), as 0.5 + (bias - 1) / (2 x Traits.HEAD.bias), within 0 and 1; VB-476’s lean replaces it when that exists. No new trait (the plan’s close call). The mapping is written in the task file with the spread it gives on populous small, seed 7.node tools/same.js --base REF prints same. No line in tools/stocks.js (no stored good). tools/balance.js (or a report of tools/sim.js) prints a household’s memory beside the food by source it measures from outside, and the two agree on a tiny run.medium-ref).Noted by VB-189, 16 November 2026.
sim/yields (material layer, before stores; stores.record calls Yields.book; ring closes on planReviewed, why ‘day’, winter). household.yields = {tally, ring, closed}; created lazily, so old saves load.deals has no reason of its own (a trade is booked as a gift: stays 0). Reasons fitting no source: meal, cooking, spoilage, thresh, away, provisions, handingOn, drying, raw, grind, feast, pour.same.js differs only by the new yields leaves (the field itself); balance prints memory against ledger: fields 310.1 and 310.1, animals 7.7 and 7.7 (tiny, founders).