VB-1524: A field’s site is chosen by its estimated yield: no order of land use
Status: done (2026-11-23)
Priority: 2
Size: M
Design ref: design.md, Goods and the farming year (Making a field); Kim, 23 Nov: no rule mandates the order of land use
Goal: A head breaks the land it judges best, by estimated yield against distance and work, whatever its ground.
Acceptance criteria:
Kim, 23 November 2026: no rule mandates the order of land use. chooseTile (src/sim/fieldplans.js) loses the term that puts open meadow before any other ground (w.biome[t] === B.MEADOW ? 0 : 2); design.md, Making a field, is already rewritten to this (the orchestrator’s commit of 23 Nov): do not edit it.
The head prefers the tile with the best estimated yield for what it costs: a score the head could reckon (principle 14: the head’s own estimate, as harvestEstimate and sim/yields’ estimate are), from the field’s expected grain a year (fertility, the soil it would start at, fresh ground’s bonus), the hours to make it (clearHours with its ground’s term, VB-1522, and BREAK_HOURS) spread over a named horizon of years, and the walk to it over the year’s trips (distance in steps today; hours when VB-781 lands). Named tunables, in sim/fieldplans or beside the rules they join (docs/architecture/modules.md, Adding things); no magic numbers in the score.
The block stands (Decided, 30 Oct): a farm’s fields lie together within REACH steps of the house, and a tile touching the block is preferred as before; fieldBar’s checks are unchanged. pickField’s second pass over contestable stakes follows the same score.
The search allocates nothing new a tile, and adds no loop: it is the one BFS within REACH it was. If the score reads the household’s yield estimate, it is read once a search, not a tile.
A check on a small constructed state: with a far stony meadow and a near clean hill tile, the head takes the one whose score is higher, and the test states both scores; with equal distance and stones, meadow (1) beats hills (0.7).
Numbers before and after, founders and populous, small, seeds 7 and 42, 10 years: fields made by ground, their mean distance from the house, grain a field, hungry days a household (the distribution), growth. Whether households were better off.
node tests/counters.js --update if a counter moves, named; docs/review-balance.md is history and is not edited.
Notes:
siteScore (sim/fieldplans): barley’s grain a year (fertility x mean soil over SITE.years from SOIL.start or SOIL.fresh, worn to the floor) over its hours a year (its stage hours, weeds counted, + (clearHours + BREAK_HOURS) / SITE.years + 2 x SITE.trips x steps / SPEED); SITE = {years 5, trips 10, together 2}; touching the block multiplies the score by together (the old +1 on a score near 1). Terms computed once a search (siteTerms); nothing allocated a tile.
For VB-1525: a ground’s extra hours enter through GROUND.clear (clearHours); a one-off gain enters as grain / SITE.years in the numerator.
The household’s yield memory is not read: it would scale every tile alike (a ratio), so it changes nothing until a one-off gain is weighed against it.
Close call: the walk now weighs less than FIELD_NEAR 0.3 a step did (4 steps cost ~10% of the score, not 1.2 of ~1); fresh hills (0.7 x 1.24) now beat meadow farmed before (1 x 0.85).
Before -> after (small, 10 years; fields made meadow/hills/heath; mean steps; grain a field; hungry days mean/p90/max; people at year 10): founders 7: 24/1/1 -> 22/3/4, 1.92 -> 2.24, 55.8 -> 48, 0/0/0 -> 4.2/21/21, 11 -> 20; founders 42: 24/0/0 -> 20/6/1, 1.83 -> 2.26, 35 -> 41.6, 0.8/4/4 -> 0.4/2/2, 22 -> 22; populous 7: 59/143/65 -> 48/181/49, 2.41 -> 2.45, 45.3 -> 49.3, 6.4/3/143 -> 5.6/14/123, 360 -> 354; populous 42: 84/131/65 -> 57/155/71, 2.28 -> 2.49, 40.5 -> 41.8, 2.1/11/34 -> 2.5/3/75, 394 -> 386. Households not clearly better off: mixed, within one seed’s noise. No counter moved.