Status: done (2026-11-13)
Priority: 2
Size: M
Arch: between
Phase: implement
Design ref: Inheritance, expansion and other bodies (Between villages: Near and far, The round’s other acts; Empty farms: Claims; Leaving home: Service; Households short of people). QUESTIONS.md, VB-281, question 2
Goal: The round’s acts after the marriages reach other villages by hex steps as the crow flies between village centres, or by nothing: claims on empty farms within CLAIMS.farmReach 15 (claimants, src/sim/farmclaims.js:64-91), service within SERVICE.reach 15 (reachSteps, src/sim/service.js:96, read by takeServants, :111, serveWhereShort, :140, and takeIn, :173), an orphan’s service home in the nearest village by hex steps (serviceHome, src/sim/heirs.js:203-217), a guardian and an orphan’s kin home from anywhere (careForOrphans, service.js:38-59; kinHomeFor, heirs.js:220), and the tie to the culture’s centre by an unweighted search of 160 steps, or 1.6 times the hex steps over the sea (updateTies, src/sim/society.js:53-73). A mountain ridge or a fjord between two villages 10 hex steps apart does not count. Read the walking hours of VB-286 instead, with the design’s two reaches: there and back in a day (6 h) for what a pawn works at from home, and a day’s walk (12 h) for a move.
Acceptance criteria:
CLAIMS.farmHours 6, replacing farmReach), since the claimant’s household mends the farm from home before it moves in. VB-281 measured the pairs of villages within 15 hex steps today: 13 at medium-ref, 3.6 to 6.9 hours apart, and 15 at small-y40, 3.6 to 10.8 hours; within 6 hours: 14 and 6.SERVICE.hours 12, replacing reach), nearest first by hours; the servant moves, so it walks (VB-287). Within 12 hours: 52 pairs at medium-ref, 38 at small-y40. Every reader of reachSteps reads the hours: takeServants (through servantFor), serveWhereShort (VB-090, service.js:153) and takeIn (VB-308, service.js:185, and its servant through servantFor).hoursBetween finite); none within reach: as today.exp(-h / 8) for h walking hours from the table, in place of exp(-d / 25) for d unweighted steps (25 steps are about 8 hours at 3 tiles an hour); over the sea or beyond reach, today’s 1.6 times the hex steps, in hours (/ SPEED). The kin term is unchanged. s.distance keeps its meaning for the panel, in steps, or becomes hours with the panel’s label changed; say which in the PR. The search per settlement a year (stepsTo, 160 steps) goes.SETTLE.reach, 10 to 30 walking steps) and the small village it may join (SETTLE.join, 30 steps) are tile searches from the green (reachOf), not distances between villages; the party walks there (VB-287).QUESTIONS.md, “VB-281”, question 2); only the distance they read changes.medium-ref and small-y40: claims made, by the hours between the two villages; servants taken, by hours; orphans placed; ties’ mean and spread, and customs over 20 years (--report customs), since the tie drives the culture’s drift and splits; npm run calibrate (natural 12 200), the median first flip of each custom against the bands of Pace. The golden file re-recorded, with the changed entries listed; tests/counters.json if it moves.medium-ref) goes. Name it measured: --report perf on both fixtures before and after.
Notes:SERVICE.reach (VB-090’s serveWhereShort, VB-308’s takeIn) added to the service criterion, and VB-090 (done) dropped from the order note.sim/society.js).CLAIMS.farmHours 6, SERVICE.hours 12, the tie’s scale TIE.hours 8, a new block in
sim/rules with TIE.sea 1.6, the old inline factor). They were set when walking was 3 tiles an hour; since 12 November it is 12
(SPEED), so they now reach four times as far as the plan meant (design.md, Distance: “to be set again when VB-286 to VB-290 are
built”). Setting them again moves a Decided point, so it is left to Kim, as a row of docs/tuning.md (a quarter of each: 1.5, 3, 2 h).s.distance becomes hours (no panel reads it; tests/heirs.js prints it as walking hours).kinHomeFor, the first of a pawn’s near kin (kinNear, in extinct) is chosen among those within walking reach
first, as the guardians and kinHomeFor are; none within reach: as today.moveTo, which walks it there (VB-287); nothing new is needed for the journey.farmclaims.claimants reads hoursBetween (one table entry); service.reachHours replaces stepsBetween/reachSteps
for servantFor (takeServants, takeIn’s servant), serveWhereShort and takeIn; careForOrphans keeps the best kin within walking
reach and the best overall, and takes the first; heirs.serviceHome picks the nearest village by hours, by hex steps only when none is
in reach; heirs.kinHomeFor as the guardians; society.updateTies reads the table, else TIE.sea x hex steps / SPEED, and the yearly
stepsTo of 160 steps a settlement is gone. Settlement (SETTLE.reach, SETTLE.join, reachOf) and the phases (18:00, 18:06, 18:12)
are untouched.tests/roundreach.js (integration tier, tiny world): service home by hours and by hex steps with none in reach; a guardian within
reach first; service at 12 h and none at 12.5 h; the tie from the table and beyond reach. tests/farmclaims.js: C moved across a sound
(it lay 22 hex steps from B, under 2 walking hours), and a case of claims by hours (in at 6 h, out at 7). tests/labour.js reads hours.0 is the same village):
| Seed | Living at 30 y | Claims | Servants | Orphans: service, guardians | Ties (not centres): mean, sd |
| — | — | — | — | — | — |
| 7 before | 599 | 11 (10 same, 1 under 3 h) | 50 (21 same, 29 under 3 h; max 1.7 h) | 2, 1 | 0.390, 0.310 |
| 7 after | 618 | 12 (10, 2 at 3-6 h) | 67 (6 same, 17 under 3 h, 19 at 3-6, 25 at 6-12; max 11.7 h) | 1, 0 | 0.673, 0.245 |
| 42 before | 552 | 11 (10, 1) | 34 (31, 3; max 1.5 h) | 2, 5 (3 out of walking reach, 2 at 12-16 h) | 0.209, 0.268 |
| 42 after | 447 | 23 (12, 5, 6 at 3-6 h) | 42 (12, 9, 15 at 3-6, 6 at 6-12) | 0, 2 (both in the village) | 0.428, 0.162 |
| 3 before | 500 | 13 | 39 (max 1.9 h) | 1, 2 (1 out of reach) | 0.189, 0.205 |
| 3 after | 421 | 30 (3 at 3-6 h) | 46 (max 6.0 h) | 1, 5 (3 out of reach: none within) | 0.342, 0.246 |
| 11 before | 317 | 20 | 41 (max 1.7 h) | 4, 2 | 0.178, 0.239 |
| 11 after | 389 | 13 | 60 (max 6.3 h) | 5, 2 | 0.429, 0.228 |
Growth a year (start 333, 350, 324, 347): before 1.36, 1.81, -0.07, 1.56%, median 1.46%, 3 of 4 above their start; after 0.78, 1.91,
0.61, 0.85%, median 0.82%, 4 of 4 above. Target (median at least 1%) out after the change, by 0.18 points; not a collapse. The cause is
likely the reaches four times as wide as planned (servants walk up to 12 hours, with provisions, VB-287), within one run a seed: left for
the tuning row. No household-level judgement: the spread of growth narrowed (no seed below its start).
One year from the fixtures (made from this branch’s start, b7a76eda): medium-ref claims 0 -> 2 (under 3 h), servants 5 (max 1.5 h)
-> 8 (max 8.8 h), ties 0.268 +- 0.243 -> 0.536 +- 0.315; small-y40 claims 0 -> 1, servants 0 -> 2 (under 3 h), ties 0.384 +- 0.286 ->
0.677 +- 0.252. Pairs of villages within 6 h: 252 of 39 villages at medium-ref, 87 of 22 at small-y40; within 12 h: 403 and 196.
Customs over 20 years (--report customs, seeds 7 and 42): one culture, no split, its customs unchanged, before and after alike.
npm run calibrate reads no tie of the simulation (its own environment sets them), so this change cannot move it; not re-run. No golden
file (VB-408). tests/counters.json unchanged (no counter added; 7 out, as before).--report perf, one year from each fixture, the four runs side by side on four cores, so noisy): the meetings, whose second stage
runs updateTies, 2.87 -> 3.04 ms a day at small-y40 and 1.85 -> 1.98 at medium-ref, within the noise: the search of 160 steps per
settlement a year (39 at medium-ref) was cheap, and it is gone. The moving round 21.8 -> 14.5 and 12.8 -> 6.1 ms a day; whole runs
1452 -> 1430 and 1640 -> 1609 ms a day. Every read is one table entry; no new loop.