Status: ready
Priority: 3
Size: M
Arch: town
Phase: implement
Design ref: design.md, Settlements, Towns and regions (The walk to a door); Exchange (The fair); docs/plans/VB-189.md, section 5.3
Goal: Between gatherings, a pawn who lacks a thing walks to someone who has it (Kim, 16 Nov: on other days a pawn may walk to a named household to deal; the hard rule).
Acceptance criteria:
A household remembers, for each good, at most DEAL.known 4 households it has dealt with or seen dealing (on a green, at a door), the least recent dropped (rule 2); plain data with an owner, in the save, with invariants. It is the household’s knowledge: a household it has never met is not known, whatever it holds.
On its planning day a head that is under its target of a good it cannot make (VB-698), and knows such a household within a day there and back (6 walking hours, design.md, Between villages, Near and far), plans a walk when its estimate of the gain exceeds the walk at DEAL.hour (VB-769’s, or defined here if this lands first): a journey of VB-287, a pawn carrying what the household means to give. Nothing teleports: the goods go and come on the pawn’s back.
At the door: an offer by VB-690, then a swap by VB-302’s command, or a refusal that both remember (the refused does not walk there again for that good for DEAL.sulk 1 year). The verb is any pawn’s (src/sim/commands.js), and the played pawn’s: an opportunity “Walk to for ", with the reason when it is not possible.
Nothing here is counted for a place’s label (the label reads greens). Events: the walk and the deal, by log with kind, pawn and place; folded into yearly counts.
Reported, populous small, seeds 7 and 42, 30 years, before and after: walks a household a year, the customary worth dealt at doors and its share of all dealing (the mock: 60% to 77%, a toy’s figure), refusals, hours walked to deal (the hours report); hungry household-days and growth; which households walk.
Tests on a constructed state: a head lacking iron who knows a smith 2 hours away walks and deals; one who knows none does not walk; a refusal is remembered; a walk longer than a day there and back is not planned.
Cost (rule 9): about 1.8 walks a household a year (the first mock): 300 journeys a year at medium-ref; the weighing at the planning day over at most 4 known households a good under target. A counter for the weighing, before and after.
Noted by VB-189, 16 November 2026.
18 Nov 2026, amended to agree with VB-1123 (plan mode; Kim’s decisions of 18 Nov): the stepping of targets leaves the game: no head, played or not, sets a target by hand, and the Plan tab’s steppers go with the tab. “The head’s target” in this task is the level the head reckons for itself, never one that is set. The level stays (Kim, 18 Nov): the player reckons it in their head, and a head not played reckons it as a margin it prefers over what survival needs, by its traits and skill, 1.5 times the baseline to start with. Nothing else in this task changes by it.