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:
TRAVEL.load a journey, or the giver’s carrier brings it, whichever VB-291’s carrier rule gives; it is eaten only once it has arrived. The same for a gift of the village store, fetched from where the store stands.fillStores): if a household’s quarter arrives with no journey, it is carried at the moving round, or a second task of this arch is opened for it and named here. Opened: VB-849.tests/lib/invariants.js: grain in transit is on a pawn; a count of grain moved between farmsteads with no carrier stays at 0.main into the head’s day and blocks branch): help that is asked for (VB-470) sizes a request in hours of hands; this task carries what is given in grain. Both leave the giver’s day: a carrier’s journey is a leg (VB-473).Implementation (16 Nov 2026):
give (sim/commands giftOf) has a gift to a household from another farmstead, or from a village store, fetched: it names
the fetcher (sim/agents fetcherOf: a member of the receiving household already fetching, else its youngest of 14 or more not on
the road nor carrying a load home), and refuses with “no one of the household can fetch it” when there is none (the ask goes on).
A gift between households of one farmstead still settles at once; a far gift with a named carrier is VB-291’s journey, unchanged.fetchGift: the grain leaves the giver’s store at the ask and lies, set aside, as a stop of the fetcher’s journey (why: 'fetch',
gift: {to, held, parts, stops: [{at, from, village, name, left, parts}]}): at the giver’s house, or on the green (v.center) for
the store. The gift’s records (events, tie, goodwill: sim/exchange booked, split out of receive) are booked at the ask, since rights
move at once. The fetcher walks to the stop, takes up TRAVEL.load at most (by crop), walks home and puts it in his household’s
store (ledger gift, from the giver), and goes again while any lies; a second gift the same day (the store after the kin) is a
further stop of the same journey. He takes a day’s meal at the start and before each further trip (a pawn working away carries it).VB.count.giftUncarried (src/vb.js, sim/exchange settleGift): grain settled at once between two farmsteads or from a store to a
household; tests/lib/invariants.js holds it at 0 and checks a fetch: its pawn of the receiving household, the grain held on him
bound for its house, none held on the way out to its first stop, each stop’s grain by crop. tools/stocks.js: a line giftGrain.describe).tests/fetch.js (new, fast tier): set aside at once, fetched in loads of 30 (three from kin, one from the store on the same
journey), all of it in, invariants each half hour; a fetcher who dies on his way out leaves the grain the giver’s. tests/grain.js:
the player’s gift is fetched before its crops are checked. tests/relations.js: the company check sets SOCIAL.seek past the
sociability trait (4, not 1), so it no longer rests on the draw of the run before it.Decisions (Deciding without Kim; inbox notes):
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.