Status: done (2026-11-15)
Priority: 2
Size: S
Arch: between
Phase: implement
Design ref: Inheritance, expansion and other bodies (Between villages: Kin help); Goods and the farming year (Help in hunger). QUESTION_ARCHIVE.md, “VB-281”, question 5 (Kim, 10 Nov: yes)
Goal: A hungry household asks its kin first, then its village’s store (shareFood, src/sim/help.js:60-79; kinHouseholds, :21-34), and a gift from kin moves grain from one store to the other at once, wherever the two live. VB-281 counted one year’s kin gifts from the fixtures by the walking hours between giver and receiver: at medium-ref, of 116, 53 within the village, 13 within 6 h, 16 within 6 to 12 h, 21 further and 13 over the sea; at small-y40, of 80, 21, 3, 7, 35 and 14. Kim decided on 10 November that distance governs what passes between villages and the pawn travels. Decided (Kim, 10 Nov; QUESTION_ARCHIVE.md, “VB-281”, question 5): kin within a day’s walk give as today; kin further away are asked after the village store, and their gift is carried by one of their adults on a journey; kin over the sea are not asked until slice 10.
Acceptance criteria:
hoursBetween at most TRAVEL.dayWalk, 12 h), closest kin first as today; then the village store; then kin beyond a day’s walk and within reach, nearest first. Kin over the sea or beyond reach are not asked.give command and its allowance, as today) and carried: the giving household’s youngest adult of 14 to 59 who is not on a journey sets out (VB-287, why: 'carry'), with the grain and his own provisions taken from his household at the start; the receiving household books the gift when he arrives, and he walks home. If no adult can go, the gift is not made and the ask goes on to the next. The help’s goodwill and tie (sim/exchange, receive) are booked at arrival.TRAVEL.load (a tunable in VB-287’s TRAVEL, added by whichever of this task and VB-295 lands first; 30 rations: Kim, 10 Nov, one number with the fair’s back load; QUESTION_ARCHIVE.md, “VB-298”); a larger gift is cut to it, or takes a cart and two oxen where the household has them, 90.setOut and arrived (VB-287).tools/balance.js (populous, seeds 3, 7, 11, 42, small, 15 years): rations by source against need, and help received by the hours between giver and receiver; the hungry-households band (node tests/bands.js); gifts a year and carriers’ days on the road at medium-ref and small-y40. Say whether households, not only averages, are better or worse off: a household whose only kin live over the sea loses its first source of help. The golden file and tests/counters.json re-recorded, the changes listed.medium-ref and 35 at small-y40 by the counts above, each with a way back.
Notes:shareFood’s line refreshed, its short list for VB-308’s takeIn noted as changed by the new order of asking, TRAVEL.load given to whichever of this task and VB-295 lands first, and VB-282 and VB-284 (done) dropped from the order note.medium-ref, and 49 of 80 at small-y40, come from beyond a day’s walk or over the sea.shareFood returns the households short of people whose ask fell short, and takeIn (src/sim/service.js:173, at midnight after endOfDay, clock.js:52) takes them in the same day. Reordering the ask (the village store before far kin, kin over the sea not asked) and booking a far gift at its arrival change who is on that list, so this task changes who is taken in.Implementation (15 Nov 2026):
sim/help shareFood asks near kin (hoursBetween at most TRAVEL.dayWalk; closest kin first), the village store, then far kin with a finite walk, nearest first; kin over the sea or beyond reach are not asked. A far gift is give with args.carrier (the giving household’s youngest adult of 14 to 59 not on the road; none: the ask goes on), cut to TRAVEL.load (30).sim/commands give runs sim/agents carryGift for a carried gift: the grain is taken from the giver, a journey why: 'carry' (setOut, with provisions for there and back) opens, and delivered books it at the receiver (sim/exchange receive: grain, events, tie, goodwill) on arrival, after which the carrier walks home as a back leg (arrived twice in his record). A carrier whose household changes on the road still delivers first. A receiver dissolved by then: the grain goes to its village’s store. A carrier who dies on the road loses the gift (the grain was his load).carry allowed; the awake check no longer flags a pawn resting on the road with its route kept (it never could be awake at night).tests/journeys.js has a carried gift across two villages 14 hours apart.
Decisions: (1) the cart for loads above 30 is left out: TRAVEL.cart is 300 and carts are tied to jobs in sim/carts, so a carrier takes the back load only; (2) a gift is not made if the carrier’s provisions are short, he goes on what there is, as a mover does.
Numbers: tools/balance.js populous small seeds 3,7,11,42, 15 years (2-15), before / after: household-years 4457 / 4454; by weather hungry % good 1/1, ordinary 1/1, poor 1/0, hungry days 0 / 0; made/need 3.82, 2.29, 1.82 / 3.95, 2.37, 2.38 (the poor-year ratio is noise of the rations by source, the maps’ far villages being few). node tests/bands.js: 4 reduced runs, 0 targets out (the tiny map has one village: no far kin). tests/counters.js unchanged (no new counter: the far loop is over a household’s kin). Gifts a year and carriers’ days on the road at medium-ref and small-y40 not measured: the fixtures are not made in this worktree and a 15-year populous run polled daily did not finish in 30 minutes.
Households: the first to lose are those whose only kin live over the sea or beyond reach (not asked now); those with far kin wait for the carrier’s days and get at most 30 rations a gift.