Status: done (2026-11-19) Priority: 3 Size: S Arch: debt Phase: implement Design ref: design.md, Goods, production and animals: Animals, Customs of the animals; docs/plans/VB-141.md (section 4 and section 11, point 1); design.md, Grazing at low cost Goal: Overgrazing costs something (Kim, 16 Nov): a crowded pasture lowers the cows’ milk; forest spread is unchanged and the pasture does not wear to heath. It is the consequence every grazing custom rests on. Acceptance criteria:
sim/byre, the milk of VB-135) is multiplied by f = clamp(1 - bite * (pressure - downAt) / downAt, floor, 1), pressure being grazeOf(st, tile) of the tile her herd grazed that day (the closed form of w.graze); ewes’ milk likewise. Tunables in HERD.herding (src/sim/rules.js), each with its meaning in the comment: bite 0.3 (the share of milk lost at twice a herd’s week of pressure), floor 0.5 (no lower than an unherded herd’s milk, HERD.herding.milk); downAt (300) is the existing one. An unherded herd keeps its half and takes no bite (it did not graze the pasture).tests/herds.js, or a new script with its line in tests/suites.js, on tests/tiny.js): one herd alone on its pasture for keepDays gives the milk it gives today; two and four herds forced onto one tile give less, never under floor; an unherded herd is unchanged.node tools/sim.js --report herds shows, a household, the pressure of the tile grazed and the day’s factor; the yearly totals show the milk lost to the bite.f < 1 and the mean f on those days, hungry days a household (the distribution, not only the mean), deaths by hunger, at populous small seeds 3, 7, 11 and 42 (15 years) and founders tiny seed 7; and whether any household is worse off, and by how much.bite at 0.15, 0.3 and 0.6 at the least. The value kept is the smallest at which a crowded village’s herds lose over 5% of their summer milk while a lone farm loses none. If no value shows it, milk being a small share of food, report that and leave it as a row of docs/tuning.md (parameter HERD.herding.bite); do not enlarge the mechanism (wear to heath is Kim’s choice 2(b), not taken).tests/counters.js unchanged in structure; the targets of node tests/run.js verify --verbose reported as moved or not.medium-ref) × once a day × one read of w.graze and one division, inside the existing milk loop; no new loop, no new state, no counter. Stated in the PR; times are left to the nightly bench.f is derived each day. The @sys line of sim/byre and docs/architecture/modules.md are kept current if the call to sim/grazing’s pressure is new.Noted by VB-141, 16 November 2026.
sim/grazing (milkFactor, from hh.pasture.tile, the tile the herd grazed lately); byre applies it to herds not unherded; ewes alike. Yearly milk lost: a routine total milkbite in sim/stores (a total, no goods move); report herds shows pressure, milkFactor, milkLostYear. The test is on founders seed 7 (probe), not tiny.js: it needs herds.