village-builder

VB-461: Help is carried: grain from near kin and from the village store does not arrive at once

Status: done (2026-11-16) Priority: 1 Size: M Arch: physical Phase: implement Design ref: AGENTS.md, Deciding without Kim (the hard rule); design.md, Goods and the farming year (Help in hunger); backlog/VB-291.md Goal: src/sim/help.js (the season’s asks, about line 92): kin within TRAVEL.dayWalk give at once and so does the village store, so grain moves between farmsteads with no one carrying it; only far kin send a carrier (VB-291). By the hard rule a gift changes owner where it lies and waits there until someone fetches it. Acceptance criteria:

Implementation (16 Nov 2026):

Decisions (Deciding without Kim; inbox notes):

  1. Near kin and the village store are fetched by the hungry household, not brought by the giver’s carrier: the hard rule says the gift waits where it lies until someone fetches it, and the store has no household to send one. Far kin’s gift is still brought (VB-291). A fetch has no upper age (a walk within a day is not VB-291’s multi-day journey); one fetcher collects all of the day’s gifts.
  2. The rule is the verb’s, so the player’s gift is fetched as well (enforcing is not asking; every act is a pawn’s).
  3. A fetched gift is booked at the ask and its grain at each arrival; a far carried gift still books at arrival (left as VB-291 built).
  4. fillStores left at once: VB-849 opened (the filling carried to the green).

Numbers (30 years, small map; before at 8eae904 (the run’s branch as this task began), after this change; scratch script hooking issue and Stores.put): hungry household-days (sum of hungryDays); the days from an ask to its grain coming in, grain-weighted mean; fetch journeys a year (trips a year); growth a year; help gifts. | run | hungry hh-days | ask to grain, days | journeys (trips) a year | growth | gifts | |—|—|—|—|—|—| | populous 3 | 15 / 59 | 0 / 0.78 | 0 / 17.0 (31.4) | 1.90% / 1.96% | 507 / 532 | | populous 7 | 27 / 31 | 0 / 0.93 | 0 / 11.4 (20.4) | 2.08% / 2.08% | 291 / 362 | | populous 11 | 38 / 64 | 0 / 1.94 | 0 / 19.6 (39.2) | 2.08% / 2.00% | 576 / 617 | | populous 42 | 24 / 12 | 0 / 0.78 | 0 / 14.7 (27.1) | 2.36% / 2.41% | 436 / 464 | | founders 7 | 1 / 0 | 0 / 0.28 | 0 / 0.6 (0.7) | 3.24% / 2.96% | 14 / 20 | | founders 42 | 2 / 2 | 0 / 0.52 | 0 / 0.4 (0.8) | 1.98% / 1.98% | 36 / 17 | Grain gone back to its giver (fetcher dead or gone): 0, 24, 121, 0, 0, 0. Grain settled at once between two places: 0 in every run. Before, no help journey at all on the small map (no kin beyond a day’s walk asked). Hungry household-days rise over the four populous seeds from 104 to 166, out of over a million household-days: the asking household now waits most of a day, up to two, for its grain, and a few more gifts are made (the grain coming later, more households fall below the ask’s line; not traced further). Growth holds: populous median 2.08% before, 2.04% after, every seed above its start; founders 7’s fall is a 10-pawn run’s noise. Households: the ones that lose are the asking ones in a long ask (a large gift is several trips); a household with no member of 14 or more free to go gets nothing from near kin or the store now, and goes on to far kin and, short of people, to sim/service’s takeIn. Targets (node tests/run.js verify --verbose, against the run’s branch): one moved out, scaling.helpBid 1.098 to 1.196 (target 1.15, residual +0.0455): the 30-day probe at two and four villages now has fetchers on the road, which changes who is free for the help round; no new pair loop. The other 8 out as on the branch (counters/heirRank, counters/roundRank, scaling.roundPairs, roundWalk, heirRank, takeInWeighed, frontTile, roundRank). tests/counters.js: unchanged (the tiny probe has no help). Cost: one fetch journey per household’s ask-day (11 to 20 a year at populous small; 2 to 4 households a village-year), each a few trips of a short walk; fetcherOf walks the open journeys and the household’s members once a gift; no new loop over a growing collection.

Merge with VB-690 (offer and answer), 16 Nov 2026: give makes a gift offer; its yes reaches the verb deliver, which now has a gift to a household from another farmstead or a village store with no carrier set aside where it lies and fetched (sim/commands fetched, fetchWhy; give’s check refuses it when no one can fetch, so help’s ask goes on). The ask basis is carried by carryGift as VB-690 built it. tests/commands.js and tests/exchange.js wait for the fetch. Rerun after the merge (populous small 3, 7, 11, 42, 30 years): identical to the table above; giftUncarried 0; scaling.helpBid 1.196, as before. VB-861 is met only in part (the gift is set aside and fetched; the ask is still taken up at the start by its carrier, and its balance numbers are not taken), so it stays open.