Status: done (2026-11-16) Priority: 2 Size: S Design ref: design.md, Goods and the farming year (Help in hunger); backlog/VB-406.md; QUESTION_ARCHIVE.md, VB-406 (15 Nov) Goal: VB-406 measured the village store as a sink: 79 to 83% of what comes in rots and 1 to 3% is given out, because a quarter of every surplus goes in every year whatever the store holds. Decided by Deciding without Kim, 10 (a bound on a Decided rule): the filling stops at a named target, and the commons follow the same target. The mechanism (a quarter of the surplus, at the moving round) stays. Acceptance criteria:
HELP.storeTarget (0.5, years of its village’s need) is a named tunable in src/sim/rules.js; fillStores (src/sim/help.js) takes a household’s quarter only up to what the store lacks of the target, shared among the givers in proportion to what each would have given; the rest stays at home. design.md, Help in hunger, gains the bound in its Decided line (a design line edited by this task, by Deciding without Kim, 10).tests/tiny.js): a store at the target takes nothing and the household keeps its quarter; a store just under it takes only the difference; a common field is not sown with the store at the target and is sown the year after it falls under.node tools/store-flows.js, populous small seeds 3, 7, 11 and founders small seeds 7, 42, 50 years: rations in, given out (households helped), rotted, the store in years of need, the commons’ share of the inflow, hungry household-days; and growth (Deciding without Kim, 2). VB-406’s patch of the filling alone gave rot down 74% with hunger unchanged; the commons rule has not been run, and this task’s run is its first.docs/tuning.md (VB-406) is left to the orchestrator as a tuning note (a sub-agent does not edit it) with the value kept and the residual.QUESTION_ARCHIVE.md, VB-406, answer 3).
Notes:--rule target05 patch in tools/store-flows.js), after Kim accepted principle 10. Cost (rule 9): no new loop; one comparison a household at the moving round and one a common field a year. Where the kept surplus goes is VB-407’s (feasts and good-year gifts).HELP.storeTarget 0.5 in sim/rules; storeRoom(st, v) in sim/hunger (not sim/help: sim/commons reading sim/help is an upward call against the layers) is what the village’s store lacks of the target; fillStores collects each village’s gifts and scales them by room/total, so the givers share in proportion. The commons: village.commonSow {year, sow} (owner sim/commons, invariant added), written at the village’s first review in the crop’s sowing window (the review runs on its planning day or when the window opens; Commons.work posts the hoeing only when sow); a field already hoed or sown goes on and is harvested; one in stubble lies fallow. Design line: design.md, Help in hunger, gains the bound (edited by this task, Deciding without Kim, 10). The alderman’s keep is untouched. tools/store-flows.js gained --target X (1e9 is the old behaviour) and a living start->end and growth column. Test: end of tests/commons.js.--target 1e9; rations; seeds in order): populous 3, 7, 11. Inflow 153,932 / 166,584 / 155,685 -> 45,457 / 44,547 / 45,409 (commons’ harvest 29,296 / 25,732 / 28,240 -> 26,052 / 23,503 / 26,043: 19% of the inflow before, 57% after); rotted 108,780 / 120,408 / 110,501 -> 27,709 / 28,177 / 27,878 (-75%); given out 2,263 / 1,835 / 4,826 -> 2,082 / 1,220 / 2,177 (takers a year 2.4 / 1.9 / 3.1 -> 2.4 / 1.4 / 1.7); store at the end 1.83 / 1.98 / 1.81 -> 0.47 / 0.47 / 0.46 years of need; hungry household-days a year (first village) 1 / 3 / 1 -> 2 / 2 / 0; growth 1.97 / 1.53 / 1.84 -> 1.83 / 1.59 / 2.09 % a year (end/start 492/333.. -> 479/333..), the median is above 1% in both. Founders 7, 42, 50: inflow 9,179 / 6,437 / 9,190 -> 2,305 / 2,087 / 2,419; rotted 6,210 / 4,560 / 5,805 -> 1,202 / 1,202 / 1,151; given 493 / 178 / 596 -> 566 / 178 / 522; store 2.77 / 1.48 / 2.55 -> 0.40 / 0.48 / 0.43 years; hungry 0 / 0 / 1 -> 0 / 0 / 1; growth identical (2.98, 4.25, 4.47 %). Households, not only averages: given-out grain and takers a year are about as before (one seed lower, one higher), so no household is shown worse off; per-household hunger is not measured here.docs/tuning.md): rot is still 61% of the inflow, mostly the commons’ harvest going into a store that drains at 20% a year; fewer fields, or outlets (VB-407), would be the lever, not the target.npm test 55/55.village.commonSow for the year, rather than at an invented separate planning day.