Status: done (2026-10-31)
Priority: 2
Size: S
Arch: tooling
Phase: implement
Design ref: Vision and scope (up to about 1,000 pawns); docs/review-relationships.md, findings F4 and proposal A.
Goal: Contact hours (noteContacts) and the daily tie step (dailyLife) took about 55 of the 87 ms of a populous medium game day: every pair of outdoor pawns was compared each hour, pairs were kept under string keys "i:j" that dailyLife split again, and the ties were walked twice a day to decay and to prune them.
Acceptance criteria:
st.contacts keys are numbers, pairKey(i, j) = i × 2^21 + j with i < j (pairKey, pairOf in sim/society); @state updated.tests/golden.json changes only in contacts, whose keys are now numbers: decoded back to "i:j", the 12 changed dumps match the old ones line for line, in order.tests/perf.js, populous medium at seed 7 after 2 years (845 alive): 87.2 ms per game day before, 65.7 after (−25%); moving round 165 → 133 ms, meetings 62 → 47 ms.
Notes / questions:docs/review-relationships.md, proposal B) remove that.