village-builder

VB-281: Plan: reaching another village: distance governs the mixing, and the pawn travels

Status: done (2026-11-10) Priority: 2 Size: S Arch: life Phase: plan Design ref: Inheritance, expansion and other bodies (Leaving home: A village’s round); Kim, 10 Nov 2026 (QUESTION_ARCHIVE.md, VB-242, question 2); backlog/VB-242.md (survey) Goal: VB-242’s survey found that the matcher’s women, claims on empty farms, settlement and service reach between villages with no cost of distance beyond a fixed reach, and nobody walks. Kim decided on 10 November that distance between villages governs this mixing: easy between close villages, costly to prepare for a long trip, and made by a pawn that physically travels. Settle the details so implement tasks can be written. Acceptance criteria:

Survey (10 Nov 2026, at b14f8a4): every act that reaches another village. “Walks” means a pawn’s agent goes there on the map; “placed” means moveTo (src/sim/heirs.js:150-157) changes its household and placeAtHome puts it at the new home in the same step.

Act Where Distance read today Does anyone walk
The matcher’s choice of a woman marriageRound, src/sim/lifecycle.js (the pool, the score) None between the two: the pool is every unmarried woman of the island; the score adds 2 for the same village, else 2 × the lesser of the two villages’ ties to their culture’s centre (a distance to the centre, not between them) No: the spouse who moves is placed (wed, lifecycle.js:127-139)
Kin pressure kinPressure, lifecycle.js:90-119 None: free partners anywhere on the island No one moves
The player’s wish for a partner (VB-274) not built None planned No
A farm a married holder leaves handOn, heirs.js:323-348 None: to its heir or a landless adult of its own village The heir is placed
Claims on empty farms claimants, src/sim/farmclaims.js:64-80; moveIn, :184 CLAIMS.farmReach: 15 hex steps between village centres, as the crow flies (under the customs that let outsiders claim) The claimant’s household walks daily to the restoration jobs, as to any job (job bids subtract hexSteps × MATCH.distanceWeight, src/sim/jobs.js:98); when the roof is mended it is placed
Plots src/sim/expansion.js Its own village: a site within about 6 steps of the green, in its own or a neighbouring region Workers walk to the jobs; the new household is placed
Settlement: a new village settleRound, src/sim/settle.js:205-250; candidates, :121 A breadth-first search of walking steps from the green, SETTLE.reach 10 to 30, and centreApart 12 hex steps from every centre No: the party is placed at its booth (foundHousehold, src/sim/membership.js:9-25)
Settlement: a small village to join smallVillage, settle.js:159-177 The same search, SETTLE.join 30 steps No: placed
Service for a lone holder takeServants, src/sim/service.js:86-110 SERVICE.reach: 15 hex steps between centres No: placed (enterService)
A guardian for orphans careForOrphans, service.js:37-60 None: the nearest kin by kinship among st.demand, anywhere No: the guardian’s family is placed
An orphan’s kin home or service home kinHomeFor, heirs.js:220; serviceHome, heirs.js:202-217 Kin home: none. Service home: the nearest village by hex steps when its own has no household No: placed
Kin help in hunger shareFood and kinHouseholds, src/sim/help.js:21-72; settleGift, src/sim/exchange.js:68 None: kin households anywhere, closest kin first No: grain moves between the stores at once
The village store fillStores, help.js:74-81 Its own village No
The tie to the culture’s centre updateTies, src/sim/society.js:52-72 An unweighted search of up to 160 steps between the two greens; over the sea, 1.6 × hex steps No one moves; it weights the matcher’s score and the culture’s drift
Company for the idle companyFor, src/sim/relations.js:282 Its own village only Walks, within the village
Visits none No act exists: no pawn goes to another village to see anyone No
Bulls for breeding (animals) src/sim/herds.js:70-82 HERD.reach 12 hex steps between houses No pawn; out of this plan

What moved between villages in a year (from each fixture, one year run on, by the walking hours between the village before and after): at medium-ref, 26 pawns, 12 of them by marriage (the moving spouses 4.7 to 63.8 hours away, and 2 over the sea), the others children and spouses following, one servant, kin; at small-y40, 10 pawns, 5 by marriage (14.9 and 47.0 hours, and 3 over the sea). Nobody walked: every one was placed.

Marriages in the fixtures’ histories, by the walking hours between the villages the two lived in before (each spouse’s last event with a village before the union; st.unions):

  Same village Up to 6 h 6 to 12 12 to 24 24 to 48 Over 48 Over the sea
medium-ref, all 275 192 8 11 11 6 19 28
medium-ref, last 10 years (118) 47 8 9 10 6 18 22
small-y40, all 292 131 3 23 26 71 3 35
small-y40, last 10 years (70) 19 1 9 5 28 0 8

The score does not see the distance, so a woman two days away is chosen as readily as one next door when both villages lie near their culture’s centre: 56 of 118 recent marriages at medium-ref and 41 of 70 at small-y40 joined villages more than a day’s walk apart or over the sea.

Kin gifts in a year, by the walking hours between giver and receiver (one year run on from each fixture): medium-ref, of 116 with a giving holder: 53 within the village, 13 up to 6 h, 16 at 6 to 12, 21 beyond 12, 13 over the sea; small-y40, of 80: 21, 3, 7, 35, 14.

Walking hours between villages (the route search’s cost between the two greens, over 3 tiles an hour; scratch scripts against the fixtures, not committed):

  medium-ref small-y40
Villages; pairs 29; 406 23; 253
Pairs by land; over the sea (no route by land) 268; 138 193; 60
Hours by land: least, 10th, 25th, median, 75th, 90th percentile, most 3.6, 8.1, 14.5, 41.1, 57.3, 65.4, 79.8 3.6, 7.8, 14.9, 27.4, 35.3, 41.6, 53.8
Pairs by hours: up to 4, 6, 8, 12, 16, 24, more 3, 11, 11, 27, 21, 29, 166 1, 5, 15, 17, 17, 30, 108
A village’s nearest neighbour by land: least, median, most 3.6, 5.2, 16.0 3.6, 6.2, 9.6
Neighbours within 12 h: median a village; villages with none 4; 3 3; 0
Pairs within 15 hex steps (today’s reach of claims and service), their hours 13: 3.6 to 6.9 15: 3.6 to 10.8
Route cost over hex steps: median, 90th percentile, most 1.27, 1.89, 4.70 1.44, 2.35, 3.62
Pairs within 67 h (ROUTE.reach) 247 193
Unmarried men of 20 or more at the fixture; with no free woman of 18 to 45 in the village, within 6 h, within 12 h 27; 7, 2, 1 11; 3, 3, 3 (and 3 with none anywhere by land)

What a trip costs in the game’s goods (design, Provisions and the season): a day’s walk is 12 hours (6:00 to 18:00); a move of h hours takes ceil(h / 12) days on the road and as many rations from the household left. A visit takes 2 × ceil(h / 12) + 1 days away, a ration and 12 working hours a day: the nearest neighbour (median 5.2 h at medium-ref) is within a day’s walk and needs no visit; a village 13 to 24 hours away costs 5 days (a ration and 60 hours of work), the median pair at medium-ref (41 h) 9 days, and the furthest within reach (67 h) 13 days, more than a season of 12 days.

Plan (10 Nov 2026). Tasks:

Task Size Waits for What
VB-286 S VB-241 Walking hours between villages: reachCosts (a bounded Dijkstra from a green), st.villageHours, hoursBetween, a row a village a step on autumn day 9; no behaviour change
VB-287 M VB-286 Journeys: a pawn who moves to another village walks there, a leg a day, on carried food; st.journeys
VB-288 M VB-286, VB-277 The round’s pool within walking reach; the score’s village term 2 × exp(-h / 8); kin pressure within reach
VB-289 M Kim, VB-287, VB-288 The suitor’s visit: women beyond a day’s walk only of a village visited; a winter journey for the unmatched
VB-290 M VB-286 Claims within 6 h, service within 12 h, orphans’ homes and guardians by hours, the tie on the table
VB-291 S Kim, VB-287 Kin help over distance: far kin asked after the store, their gift carried on a journey
VB-292 S Kim, VB-289 The player’s visit (slice 2, arch life)

Cost (Rules for cost, 2, 4, 7 and 9), measured on the fixtures with a prototype (scratch, not committed):

Design (10 Nov 2026), design.md: section 5 gains Between villages: distance and journeys (10 November), with Kim’s sentence as the Decided principle and twelve rows Proposed (distance, near and far, ease of mixing, the suitor’s visit, a journey, provisions and the season, who travels, the round’s other acts, kin help, over the sea, the player’s journey, cost). Leaving home: A village’s round records the turn by the year as Decided (Kim, 10 Nov; VB-280) and points the island-wide phases to Between villages; Marriage and Service point to it. Marriage as a negotiation, The offer: the spouse who moves walks there. Empty farms (Claims), Households short of people (a servant for a lone holder) and Moving to new land (Where) point to it. Goods and the farming year: Meals, butter’s source is milk (dairy one source), Decided, Kim, 10 Nov; Seed, a hungry household eats its seed as the last step and its fields go unsown, Decided, Kim, 10 Nov (VB-282). Change log: one row. docs/roadmap.md, section 3.2: one bullet naming the tasks.

Validation (10 Nov 2026): no game code changed, so index.html and the golden file are unchanged. The numbers above come from scratch scripts run against the fixtures copied into this worktree (stale golden hash, usable), not committed. npm test passes (90 scripts), with two targets out that nothing here touches, as on main (scaling.routeRefresh +0.11, scaling.roundPairs +0.85); python3 build.py --check passes; tests/backlog.js passes with the seven new tasks.