Status: done (2026-11-11)
Priority: 2
Size: M
Arch: fair
Phase: implement
Design ref: Customs and culture (Meetings: the yearly bystämma); Systems overview (Pace: rare, legible events carry the game at 10×). Relationships review, 31 Oct 2026 (docs/review-relationships.md, findings F2 and proposal D3): villages are socially sealed (no pair from two villages ever meets), so courting, which needs ties and opinion, would keep marriages inside the village.
Goal: Gatherings that happen somewhere on the map, at which people from several households, and from other villages, meet and talk: the village meeting on the green, the wedding feast, the funeral ale.
Acceptance criteria (Kim answered both questions as proposed, 10 Nov; QUESTION_ARCHIVE.md, “VB-126”):
docs/roadmap.md, section 3.4; the slices Decided by Kim): moved to slice 4, arch fair (from social). blocked until the slice’s plan (VB-183) confirms, rewrites or closes it; its questions in QUESTIONS.md wait for that plan, which may reframe them.design.md, Settlements, The gathering) is the occasion slice 4 is built on; VB-295 sends households to it and waits for this task’s occasion. VB-183 rewrites this task’s list of occasions with that in mind.src/sim/occasions.js (after sim/commands), owns st.occasions,
st.occasionSeq and agent.occasion (src/owners.json), and draws from a new stream, st.rng.occasions. It reads the records (kin,
members, voices), the route search (a bounded search for a guest’s walking hours) and the player’s unplanned; it is called by
sim/lifecycle (wed calls the wedding, killPawn the funeral ale, before the dead leaves its household) and by sim/clock (the
meetings are called at midnight of autumn day 10; occasionsDue reads the head of the queue each six-minute step, after the hour’s
onHour). A guest acts through a new verb, attend (sim/commands): it leaves the work in hand, walks to a spot in a ring about the
occasion’s spot and idles there until the end, so the planner leaves it alone and talk (VB-061) finds it among the others outdoors. Two
readers outside the module: the end of work (sim/clock) does not send a pawn at an occasion home, and a talk does not halt a pawn on its
way to one (sim/agents, haltForTalk). Sim.describe says “At a wedding”, “Walking to a funeral ale” and so on. A wedding and a
funeral ale are told in the log at their end, with how many came and how many from other villages (kinds wedding and funeralAle,
routine: folded after a generation, beside the married and died events that are kept; in the Marriages and the Births and deaths
filters). Nothing new loops over a growing collection but the meeting’s call, once a year, over each village’s members (as the meeting
itself does), counted by a new counter, occasionAsked. Cost: about 20 weddings, 20 funeral ales and 6 meetings a year on small; at most
one bounded route search (12 hours’ reach) per guest household of another farm. tools/shot.js takes --hours H to catch a time of
day; tools/sim.js --report relations adds ties and friends across villages per adult.meetingStage), and they disperse once it is done. (2) Near kin are the parents,
children, siblings and spouse (kinNear); a wedding also asks the couple’s household. Children under 4 (talk’s minimum age) stay at
home. (3) A day’s walk is measured from the guest’s house to the farm by a route search bounded at 12 hours, until VB-286’s table of
walking hours between villages; a guest sets out its walking hours (whole hours) before the start, never before 6:00, and one who could
not arrive an hour before the end does not go. (4) A wedding takes those who are free when their time comes, and looks again each hour,
so those at work come when work ends at 18:00. (5) A pawn stands at one occasion at a time, the first it is sent to; the couple leaves
another for its own wedding. All of a round’s marriages fall on one day, so their weddings fall on the next, and kin asked to two go to
the first. (6) The played pawn is not sent: it goes by the player’s choice. (7) Two deaths of one farm on one day have one funeral ale.
(8) The meeting is not told in the log (one line a village a year would add nothing the custom lines do not say).tests/occasions.js (in npm test): populous seed 7 on a 120 by 85 world, a forced round: a wedding is
called for each marriage at the couple’s farm, asking the couple and the near kin of both within reach; those at work do not leave it
for a wedding; at 20:00 the couples stand at their weddings in a ring about the spot, 22 pawns there, 20 of them talking with another
guest; at 21:00 all are free and walking home, and each wedding is told with those who came; a save made at 15:00 plays on as the
unbroken run; a death calls the funeral ale for the next day, which takes those asked from their work at 16:00; on autumn day 10 at
11:00 each village’s voices stand on its green (6 meetings), and at 13:00 nobody is held. tests/lib/invariants.js checks the queue
(order, ids, kinds, the asked and those who came) and that a pawn at an occasion stands at one in the queue that lists it.
Probe, populous seed 7, generate(7, 'small'), 10 years: 125 weddings (981 came, 171 of them from other villages) and 205 funeral ales
(996 came, 29 from other villages); occasionAsked 13,645.
Reported (node tools/sim.js --scenario populous --map small --years 20 --report relations, the all row, per adult; before at
38b920d, after this change): ties to pawns of another village 15.48 to 15.82 (seed 7), 9.35 to 13.02 (11), 13.95 to 13.35 (3), 16.47
to 15.60 (42), mean 13.81 to 14.45; friends in another village 0.82 to 0.69, 0.61 to 0.67, 0.70 to 0.63, 0.78 to 0.80, mean 0.73 to
0.70. Within the noise of four seeds: the meeting gathers one village, and a wedding’s or funeral ale’s guests from other villages are
mostly kin already, so these occasions add about 20 meetings across villages a year on small and do not unseal the villages; the
gathering of villages (VB-294 to VB-296) is the occasion that should. Talk per pawn-day 6.74/6.61/6.16/6.37 before, 6.69/6.70/6.52/6.33
after. Households: the meeting takes the voices from the harvest for 2.5 hours a year and a funeral ale its kin for an evening; living
at year 20, 457/512/519/528 before and 462/508/477/525 after (seed 3’s fall is a different run, not a trend: the other three move by
about 1%).
Cost: populous seed 7 small, 5 years (--report perf), 95.67 ms a game day before and 96.11 after, on a shared machine.
Golden file: every entry moves (founders and heirs, seeds 7 and 42, the seed and years 1 to 3), with the new keys occasions and
occasionSeq, and agents (the field occasion) and rng (the stream) from the seed on. Counters: the new occasionAsked (the
baseline’s keys change; the tiny fixture need not hold an occasion in 30 spring days, so it and tests/scaling.js let it be 0). The
record anchor of tests/record.js (heirs 7 at 2.5 years) moves: the lives changed, not how they are read. All three are left to the
orchestrator to re-record. Screenshot: docs/img/vb126-meeting.jpg (populous seed 7, tiny, autumn day 10 at 11:10: the people of Ekinge
stand about the green and its well, talking).
npm run verify (11 Nov 2026, the machine shared by five agents): 4 failed: tests/golden.js, tests/counters.js and
tests/record.js as expected above, and tests/browser-saves.js (“Back to game changed the state”), which passes when run alone just
after (a timing flake under load); every other hard script passes, tests/occasions.js and the invariants among them.