Status: done (2026-11-17) Priority: 2 Size: M Design ref: AGENTS.md, Conventions (a module over 700 lines, VB-414); BACKLOG.md, How this backlog works (the refactor rules) Goal: sim/lifecycle comes back under the lint’s 700 lines, each concern in a module of its own. Acceptance criteria:
src/sim/lifecycle.js (703 formatted lines after VB-062, over the lint’s 700) is split by concern: deaths and retirement, the village meetings, the moving round and its marriage offers, the daily life step; each new module with its @sys line, its layer in src/layers.json and its place in src/manifest.json.node tools/same.js --base REF prints same; the lint’s line for sim/lifecycle passes with no baseline entry.Noted by VB-062, 16 November 2026.
Started from 125c9d3. Code moved verbatim (line ranges sliced from the old file, then Prettier); no renames.
sim/lifecycle (118 lines, was 703): deaths and retirement (killPawn, retireHolder, dailyDeaths) and the daily life step (dailyLife).sim/meetings (184): the year’s meetings (villagesOfStep, meetingStage, villageMeeting, culturesYear, routinesMeeting,
holdMeetings) and the night’s culture drift (nightCulture, NIGHT_STEPS); owner of st.meetingLog and st.lastMeeting.sim/marriage (190): wed (the marry verb’s act), handover (the handover by custom), and the basis match of sim/offers.sim/round (236): the moving round (movingRound, roundPhase, villageRound, kinPressure), reading villagesOfStep from
sim/meetings and handover from sim/marriage.
Load order: lifecycle, marriage, meetings, round, before sim/births; all four in the agency layer.Decisions (Deciding without Kim, 12):
sim/round alone; VB-822 changes wed (its move) and VB-824 makes handover an offer, both in sim/marriage, beside the basis
match, which the asking will make offers of. Deaths and the day’s step, which none of them touches, keep the name sim/lifecycle.nightCulture goes with the meetings, not the daily step: it is the culture’s drift (Culture.settlementStep), as the meetings are its
yearly change, and shares their imports.villagesOfStep lives in sim/meetings and is exported for sim/round, rather than moving to sim/occasions (another module’s file).kinOk was re-exported by sim/lifecycle only for tests: the tests now read it from sim/matching, its owner.What fell: the 703-line module becomes four, the largest 236; sim/lifecycle’s imports fall from 29 modules to 14 (marriage 12,
meetings 10, round 20); six unused imports gone (DAY, dailyNeed, larderOf, reserved, kinDegree, heirFor) and the
kinOk re-export. 25 lines added in all (three module headers and import lists).
node tools/same.js --base 125c9d3: same (founders, heirs, seeds 7 and 42, tiny, 2 years); same with --scenario populous --seeds 7 --map small.npm test passes; npm run verify at the end.