Status: done (2026-11-11)
Priority: 2
Size: S
Arch: life
Phase: implement
Design ref: Inheritance, expansion and other bodies (Marriage as a negotiation: Consent, The offer); Traits, talk and stories (Opinion, VB-240). QUESTIONS.md, “VB-275”.
Goal: Kim (10 Nov, code review): marriage is where opinion first changes a decision; until now it chooses only whom a pawn talks and walks to. In VB-293’s first version every unplayed side says yes, and only the player can refuse. Here opinion, as VB-240 derives it (kin standing, compatibility shown with familiarity, memories of what happened), enters in two places: between the two young, and between the two households’ spokesmen. The criteria below are the proposed answer to the question under “VB-275” in QUESTIONS.md, which this task waits for.
Acceptance criteria:
MARRIAGE.liking (1.0) × the mean of the two young’s opinions of each other. Opinion is 0 between strangers, since affinity grows with familiarity, so liking moves a pair by at most 1, against the same-village bonus of 2 and the noise of 1.5. An unplayed young pawn answers no to an offer when its opinion of the other is at or below SOCIAL.enemy (-0.5).SOCIAL.enemy. A young pawn who speaks for itself is the other side’s spokesman here.refusedMatch), now for unplayed pawns too.medium-ref and small-y40 after 4 years each, and populous small at seeds 3, 7, 11 and 42 for 15 years. Report marriages a year; offers refused a year, by whom (young, spokesman); the share of marriages whose two young like each other (mutual opinion of SOCIAL.friend, 0.25, or more) and dislike each other (dislike, -0.2, or less); the mean age at first marriage; living and households; and whether the households of refused matches are worse off (unmarried adults at 30). tests/golden.json and tests/counters.json are re-recorded, with the changed entries listed.opinionOf calls for each pair the matcher scores (1,455 pairs a year at medium-ref, VB.count.roundPairs), and four for each match. opinionOf reads the pawn’s record of the other and their tie, without allocating. Measure the round’s step at medium-ref against 60 ms (node tools/sim.js --load medium-ref --years 1 --report perf).
Notes:QUESTIONS.md (raised by VB-233). The opinion it reads is VB-240’s.medium-ref, not 1,455, spread over the villages’ steps; the cost criterion measures the longest village step against 60 ms.MARRIAGE.liking 1 in src/sim/rules.js; liking x mean of the two opinions (opinionOf both ways, 2 calls a pair) is in
matchScore (src/sim/matching.js), so the round and the wishes share it. unplayedNo (src/sim/lifecycle.js) answers each unplayed side no at
SOCIAL.enemy or below (young: the other young; spokesman: the other side’s spokesman, the young one where it speaks for itself). A match with a no closes
at once through closeOffer (never kept in st.offers), which now also pays refusedMatch for every young pawn’s no (the player’s too, moved from
answerOffer). A wish is still the played pawn’s own yes.npm test passes after merging the integration branch (targets out: scaling.routeRefresh, scaling.roundPairs, as on main). Golden and counters
not re-recorded (night run): expect golden entries with marriages and what follows to move; counters (roundPairs etc.) should not change.small-y40 after 4 years (save of the first version; later edits are reorderings): 10, 7, 7, 10 marriages, 691-696 living, 80 ms a day at year 44.
medium-ref after 1 year: the moving round’s longest step 36.3 ms against 60 ms. Not run: medium-ref for 4 years, and the before figures of the
fixtures (machine shared by 5 agents). These numbers were taken before the merges of VB-273, VB-299, VB-266 and VB-274.tests/golden.json and tests/counters.json are unchanged by this task, against the expectation above. Probed at populous small, seed 7: of the 4,731 pairs the matcher scores in 3 years, 330 (7%) have a non-zero opinion either way, and none of them changes which pair is best, even with MARRIAGE.liking at 6 (the year lines to year 5 are identical). The term is live but small where the young of two farms hardly know each other; the 15-year figures above are where it shows. No test fixes an opinion to show the term or a refusal at enmity: a follow-up for the slice’s wrap-up (VB-078).