Status: done (2026-11-18)
Priority: 1
Size: M
Arch: between
Phase: implement
Design ref: Inheritance, expansion and other bodies (Between villages: The suitor’s visit, Provisions and the season). QUESTION_ARCHIVE.md, “VB-281”, question 1 (Kim, 10 Nov: yes)
Goal: After VB-288 the round prefers near women but may still choose one two days’ walk away whenever no nearer woman is free: the round’s lowest accepted score (MARRIAGE.minScore, -1.5) lets any pair within about 8 years of the preferred age gap through, so the distance term ranks but does not cost. Kim decided on 10 November that preparing for a long trip is not cheap. Decided (Kim, 10 Nov; QUESTION_ARCHIVE.md, “VB-281”, question 1): a woman of a village beyond a day’s walk (more than 12 hours) can be chosen only by a man who has visited her village since the last round; the visit is a journey there and back in winter, the farm’s slack season, at his household’s cost in food and days.
Acceptance criteria:
hoursBetween at most TRAVEL.dayWalk, 12 h) and of the village he visited since the last round. VB-281 measured 52 pairs of villages within 12 h at medium-ref (each village has a median of 4 such neighbours; 3 villages have none) and 38 at small-y40 (median 3; none without).minScore), whose home has the means to marry (affords) and the visit’s food above them, is given a visit to the nearest village beyond a day’s walk and within reach that holds a free woman he could marry (the round’s rules: age, kin limit; the score with its noise at the mean reaching minScore). One visit a man a year. The round stores it as a journey (VB-287) with why: 'visit', village and a way back, due at 6:00 of winter day 1 + (his household id mod 6), so departures spread over six days (Rules for cost, 5).2 × ceil(h / 12) + 1, so 5 days for 13 to 24 hours, 9 for 41 hours (the median pair at medium-ref), 13 for 67. Provisions: one ration a day away, from his household’s food above its seed, at the start (VB-287’s provisions). His household does without his hands for those days. On arrival he records the visit: p.visited = {village, year} (one field a pawn, overwritten by the next visit, cleared at marriage or death), which the round reads.visited in his record when he arrives at the other village (notable: kept, as offered is), naming the village; the setting out and the return are VB-287’s setOut and arrived.medium-ref and small-y40 are owed to VB-662 by VB-1152: the machine was shared, load 15 to 38 on 4 cores, and no fixture is on it.) Behaviour changes, so report before and after (targets with residuals), as VB-288 does: the demography (populous small, 30 years, seeds 1 to 12), marriages by walking hours, customs at seeds 7 and 42, households with an unmarried adult over 30 at year 30. And visits a year, days away and rations spent, at medium-ref, small-y40 and the populous runs; the share of visits that end in a marriage at the next round. tests/counters.json re-recorded, the changes listed.tests/journeys.js): a man with no woman within a day’s walk sets out on his winter day, walks there, stays a day, walks home, and at the next round can choose a woman of that village and of no other village beyond a day’s walk; a household short of food keeps him home and logs it; a save during the visit plays as the unbroken run.medium-ref, 27 unmarried men of 20 or more at the fixture, of whom 1 had no free woman of 18 to 45 within 12 h and 2 none within 6 h. Each visit is two journeys’ legs (VB-287), one route search each way. The narrower pool lowers roundPairs again. Nothing is polled: the visits are due entries.
Notes:QUESTIONS.md, “VB-281”, question 1. If Kim answers no, this task closes and VB-288’s pool (every woman within reach) stands.TRAVEL (the tunables block VB-287 adds to sim/rules.js, with dayWalk 12) gains stay 1, the days a guest stays; VB-291 reads dayWalk too.docs/plans/VB-682.md, section 6): stands. When the round concludes offers (VB-692, VB-693), “found no woman he could ask at his village’s round” reads: his asking day found nobody to ask within a day’s walk, or his offer was refused at the round; and his arrival in the other village is an asking occasion, on which his spokesman’s offer may name a woman of that village. The pool this task narrows is the pool the spokesman weighs.src/sim/matching.js): courts(st, m, f, vm, vf), one village, or two within TRAVEL.dayWalk hours, or one of the two
visited the other’s village since the last round; read by the round’s matcher (sim/round), the asking (sim/asking askMatch)
and matchBar (the wish, the opportunities), whose reason is “lives beyond a day’s walk of …’s village, and neither has visited
the other’s”. poolFor(v) is the villages within a day’s walk and those v’s living visited. roundYear(t) is the year of the
last round over, so pawn.visited = {village, year} counts from the arrival until the next round’s last day has ended.src/sim/visits.js, new, agency layer): the verb visit(village) (src/sim/commands.js), checked by visitWhy for
any pawn (unmarried, of age to marry, not retired, not in service, of a household with a farm; the village beyond a day’s walk
and within walking reach; from the round’s first day on; no plan held and no visit made since the round; the household spares
the food above its seed and its means, spares). It stores {pawn, village, due, household} in the due-queue st.visits, due
6:00 of winter day 1 + (household id mod 6), or the next 6:00 if that is past. seekVisit is called by villageRound for each
man of the village who found no woman reaching minScore, or was refused and holds no offer after asking anew: one read of the
asking queue for the unmarried women beyond a day’s walk (visitWalk), nearest village first, the round’s rules (kin limit, a
home under the residence custom, the score with its noise at the mean). visitsDue (a daily rule at 6:00, run only while the
queue holds something) drops the plan of one dead, married, retired, in service, of another household or away, logs visitOff
for one whose household can no longer spare the food or who is hungry, and else sets him out.src/sim/away.js): visit(st, a, v) opens a journey why: 'visit' to the village’s green with a pack of
2 x ceil(hours / 12) + TRAVEL.stay rations from his household’s grain above its seed; on arrival it emits visited (sim/visits
writes pawn.visited and the event visited, kept for good, naming the village), he rests there, and each 6:00 while stay
is above 0 he stays a day more; then he walks home (arrived). A change of household on the way ends the visit and turns him
for the home he has. TRAVEL.stay 1 (src/sim/rules.js). The pawn panel says “On the road to visit X”, “A guest at X”.st.visits (owner sim/visits; [] in a save without it), pawn.visited (owner sim/visits; null at marriage and
death, by the events wed and died); invariants for both and for the visit’s journey in tests/lib/invariants.js. Events
visited (0: kept) and visitOff (a generation), both under Marriages in the History tabs. Counters visits, visitWalk.decision note in the inbox).
visit refuses a village within a day’s walk (“it needs no
visit”), and the visit opens the pool beyond it; the call is about coming to know someone near by, in any season.tools/marriage-demography.js 7 42, --source for the
baseline).
tuning note; none of it is
this task’s to tune). Deaths and health on a visit were not measured (VB-1151 asks for them).roundPairs 28.4 -> 24.3, 19.1 -> 12.0; roundWalk 6,488 -> 5,451, 4,167 -> 3,254;
visitWalk 0 -> 420, 0 -> 2,841 (a seeker reads the asking queue once, whether or not a village holds someone for him; 0.2
and 1 a year found one, and went or were kept home); askWalk 4,742 -> 5,050, 13,107 -> 20,124 (more men still seek, and
each asking reads the queue: the cost VB-823 named, not a new loop); asksWeighed 134 -> 117, 101 -> 79. Nothing is polled:
the daily rule runs only while st.visits holds a plan, and reads its head.tests/counters.json re-recorded (two villages, 30 days): new visits 0 and visitWalk 0.0214 a pawn-day; heirRank 0.0203
-> 0.0236 and roundRank 0.0203 -> 0.0225; the walking, talking and route counters moved in the third digit, the run’s drift
after its round (roundPairs and roundWalk as recorded).npm run verify 187 of 187; 9 targets out, the scaling.* nine that are out on the run’s branch at the same values
(8 at the commit this started from: scaling.asksMade came with the merge), none moved by this task.tests/journeys.js: three one-farm villages in a row (B 12.7 hours from A, C 15.8): in spring the verb is
refused; before the visit a woman of B is beyond his choosing and outside his village’s pool; at the round he plans a visit to B
(the nearest), due 6:00 of winter day 1; he sets out with 5 rations from his household’s grain, walks, is at the green of B for a
day, and is home within 5 days, with setOut, visited and arrived on his record; then courts holds for a woman of B and
not of C, and the pool holds B’s people and not C’s (the next round itself is not run: a year more of the state); a save made on
the road plays as a save of its load does; a household short of its means on his winter morning keeps him home and the log says
so, and one short at the round plans none and logs it once. Invariants hold at every quarter day of the visit.places[].fresh mark differs between load(save) and load(save(load(save))) while a cottage is
built, visit or none, and with it the builders’ jobs and strides: task VB-1150; the visit’s save test compares the visitor, the
stays, the pawns and the households, not every agent, until it is mended.medium-ref and small-y40.