Status: done (2026-11-25)
Priority: 1
Size: M
Design ref: none (code structure). docs/architecture/target-v2.md, sections 3.1 and 4.1 (the record), 4.4 (Membership); backlog/VB-413.md, VB-414, VB-415
Goal: sim/records (752 lines, 52 exports, the widest module after sim/rules) holds two things that share a name: the record of events (record, log, personEvent, the yearly fold; about 230 lines) and the register of persons and households (person, marry, makeHousehold, membership, the live indexes, st.idx, the kin queries; about 450 lines). The seam is clean: the event half calls one function of the register (settlementIdOf), and the register calls nothing of the event half. Their readers differ too: log is plumbing that 34 modules call; the register is the social core. Move the event half to a new module, sim/eventlog (Kim chose the name, 15 November).
Acceptance criteria:
sim/eventlog (@sys and @state lines; kernel in src/layers.json; in src/manifest.json right after sim/records, whose settlementIdOf it reads) holds, moved verbatim: record, log, personEvent, lifeEvent, indexEvents, atHousehold, atFarm, startFold, foldHistory, HISTORY and what only they use (FIELDS, the fold’s tables). It owns st.record, st.recordYears, st.recordFold and pawn.events in src/owners.json.sim/eventlog: only dependency lines change. sim/records exports none of them, and nothing is exported twice to spare a caller.sim/records keeps the register and is under 700 lines, so it leaves tests/lint-baseline.json; tests/width-baseline.json falls for it (52 to about 40) and holds sim/eventlog at its count if over 15. Its @sys line says what it now is.practice and farmPractice (the custom lookups) and tieOf and scaleOf (familiarity, read) stay where they are: they are VB-231’s and VB-430’s to move.AGENTS.md (Conventions: events are written by log and personEvent, now of src/sim/eventlog.js), docs/architecture/modules.md, docs/architecture/ownership.md; tests/record.js and the tools that name the module.BACKLOG.md: node tools/same.js --base REF prints same, its line in the PR; the PR says what fell.
Notes / questions:src/ on that day: readers of log 34 modules, record 19, atFarm 16, personEvent and atHousehold 12 each; of the register, age 29, fullName 16, spouseOf 14.pawn.household, hh.members, pawn.role) one writer, Membership; VB-043 (one scope model) is where the register’s shape is next decided.sim/eventlog, not sim/chronicle (Sim.chronicle is a view of the record) nor sim/record (one letter from sim/records). The register is then renamed sim/register, a rename of its own (VB-456; Refactor rules, renames), not part of this move.pawn.role) and VB-395 (pawn.alive, pawn.age) wait for this task, so the register takes them at about 450 lines, not 750. It may run beside VB-231 and VB-430, which touch only the register half’s four lookups; whichever lands second rebases.docs/agents/worker.md).docs/plans/VB-455.md.