Status: done (2026-11-16)
Priority: 2
Size: M
Arch: between
Phase: implement
Design ref: Customs and culture (Meetings, culture and splits: A village’s meeting, Decided, 10 Nov). Survey and cost: backlog/VB-242.md.
Goal: The year’s meetings (meetingStage, src/sim/lifecycle.js:60-89) run in four stages for the whole island from noon of autumn day 10 (VB-206). Stage 0 refreshes everyone’s roles, prestige and interests, stage 1 every settlement’s tie, stage 2 the entrepreneurs, every settlement’s meeting and every culture’s year, and stage 3 is the land meeting. Kim decided on 10 November that each village holds its own meeting in its own step, in the order of village id, and a lone farm is a village. VB-206’s stages become the stages of one village; then come the cultures’ reckoning and the land meeting, which are not any one village’s.
Acceptance criteria:
meetingStage(st, n) stays the entry point for each step, so tools/perf.js and tools/bench.js (“Meetings, its call”) read the longest step. In VB-241’s calendar the meetings are one entry for the day, whose run reads the step of the day. holdMeetings(st) (the drawer, the tests) runs every village and then the cultures’ years, without the land meeting, as today.villageMeeting(st, v), in this order:
refreshInterests for the village’s living, plus the living of no settlement at the first village’s step, as nightCulture does. Each household is ranked once a step (a memo by household), not once per pawn. The clearing of the dead’s interests (refreshInterests, society.js:97, a walk of st.pawns, Rules for cost, 1) moves to the death.updateTies for one settlement, whose kin count reads the near kin of its people who live in the centre.st.rng.culture in st.living order within the village.Culture.meeting) and its log lines, put at the head of st.meetingLog at its step.
Roles and prestige are refreshed for the whole island at the first village’s step (0.3 ms; every meeting reads them, and deaths refresh them anyway).callMeetings (src/sim/occasions.js:86-97, at midnight of autumn day 10, clock.js:53) holds every village’s meeting occasion from 10:00 to 12:30 (OCCASIONS.meeting, occasions.js:18-21, “until its four steps are done”), which a village whose step falls after 12:30 would miss. tests/occasions.js (the voices on the green at 11:00, each occasion ending at 12:30, nobody held at 13:00) follows.Culture.cultureYear), its log lines, and “The meetings changed nothing this year.” when no line of this year was written, which the step reads from st.meetingLog[0].year. Then st.lastMeeting. At 18:06, the land meeting, unchanged.tests/spread.js checks that each village’s step, the cultures’ step and the land meeting each run exactly once, with uneven advances. A run saved between villages 0 and 1, in the middle of the window, and between the last village and 18:00 goes on as the unbroken run. tests/saves.js passes. No progress is saved.npm run calibrate (natural 12 200), the median first flip of each custom against the bands of design.md (Pace); customs over 20 populous small years at seeds 7 and 42 (node tools/sim.js --report customs): the customs in force, the mean support of the options in force, and the least of them. tests/counters.json re-recorded if it moves, with the changed counters listed. Note in the PR that the meeting log now lists the villages’ lines newest village first.medium-ref and small-y40, against 60 ms. Expected under 15 ms: the largest village holds 111 of 1,005 living at medium-ref and 69 of 636 at small-y40, and the island-wide stages took 33, 52 and 16 ms (medium-ref) and 45, 15 and 10 ms (small-y40), cold, one call each. The cultures’ and the land meeting’s steps are as VB-206 measured them (under 5 ms, and 6 to 14 ms). Walks: the village’s living once a step, so the island’s living once a year in all, against three walks of the living and one of every pawn ever today. Unmet in part (VB-278): the fixtures medium-ref and small-y40 are not built in a task (they are night work, and none is cached on this machine), so the longest village step there is not measured; the nightly bench reads it (“Meetings, its call”). Measured instead, as a description (populous medium, seed 7, year 2’s meetings, 860 living, 22 villages; the machine shared): every village step under 5 ms, the cultures’ step under 5 ms, the land meeting 49 ms (before: the island stages 25, under 5 and 6 ms, the land meeting 49 ms). Walks and rankings, counted: heirRanking calls on the meetings’ day 635 before, 180 after (tiny map seed 7: 87 to 20); meetingWalk 2 × living a year (the villages’ living once, and the walk of the living for the households of none at the first village’s step); no walk of st.pawns.@sys lines, docs/architecture/modules.md and ownership.md follow.
Notes:sim/clock.js and sim/lifecycle.js. This task also edits sim/occasions.js (the meeting’s occasion). It does not need VB-279. A village’s interests rank its households with heirRanking(st, hh) and a memo, without ownFirstSet; measured, that ranks every household of medium-ref in 2.6 to 4.3 ms.updateTies, step 2 of a village’s meeting) read those hours in place of its own search of 160 steps. One at a time with VB-290 (both edit the tie in sim/society.js).sim/lifecycle (the meetings: meetingStage now the step from noon, 62 steps; villageMeeting and culturesYear inside it; villagesOfStep shared with the moving round; killPawn clears pawn.interest), sim/society (refreshInterests(st, people) for a list of pawns, a memo of each household’s first heir, no ownFirstOf; updateTie(st, sid, people) for one settlement, updateTies built on it), sim/occasions (the villages’ turns, VILLAGE_STEPS and villageTurn; each meeting’s occasion shifted by its village’s turn), sim/clock (one calendar entry for the meetings’ day), vb (the counter meetingWalk). State: no new field; st.meetingLog, st.lastMeeting, settlement.tie, pawn.interest and the occasions as before, written at other steps. No new coupling: lifecycle already read occasions and society.nightCulture drifts them at its first step. (3) The villages’ turns live in sim/occasions (villageTurn), which loads before sim/lifecycle and needs them for the occasions: sim/rules is at its length baseline and sim/lifecycle at its width (20 exports, no split task open), so lifecycle exports nothing new and villageMeeting stays internal. (4) As the task’s notes say, the households are ranked with heirRanking(st, hh) (no ownFirstSet), once each a step.npm test, npm run verify (109/109; 7 targets out, advisory), tests/spread.js (each village’s meeting once on its step, each culture’s year at 18:00, the land meeting at 18:06, with uneven advances; saves between villages 0 and 1, after the last village, in the middle of the window and between the cultures and the land meeting go on unchanged), tests/occasions.js (each meeting’s start and end follow its village’s turn; its people on the green at its step; nobody held after the last), tests/saves.js.npm run calibrate (natural 12 200) reads only culture, which this task does not change, so it is unchanged: easiest custom 4.7 generations (claims, newLand, handover; band about 3, residual +1.7), middle customs 5.1 to 5.5 (daughterShare, dispute, ownHeir; band 4.6–5.7, in), hardest none within 200 years (in band). Customs at year 20, populous small: seed 7, the customs in force the same 15 (claims kin, newLand village, handover marriage, daughterShare half, heirCount buyout, widow life, heirSex sonsFirst, voice landholders, birthOrder eldest, residence land, kinLimit first, feedOrder equal, ownHeir behind, dispute first, commons fair), mean support of the options in force 0.642 before, 0.637 after, least 0.510 before, 0.492 after (claims kin); seed 42, the same customs, mean 0.647 before, 0.645 after, least 0.477 before, 0.512 after (claims kin). Population at year 20: seed 7 480 before, 488 after; seed 42 550 and 552; hungry days 0 and 0, 1 and 0. Households are no worse off; the change reorders draws only. tests/counters.json: only the new counter meetingWalk (0 on the probe, whose 30 days hold no meeting); no counter moved.