Status: done (2026-11-16) Priority: 2 Size: M Arch: talk Phase: implement Design ref: design.md, People, households and family records (Traits, talk and stories: Where pawns meet; Cost); docs/architecture/target-v2.md, section 4.4 (Encounters); backlog/VB-186.md Goal: Talk and contacts are the game’s largest social cost (55.3 ms a game day at medium-ref against a share of 55), and half of it is asking every living pawn every waking hour. Give each pawn a talk turn every fourth hour, let a talk stand for a longer conversation, and make who meets whom one table of kinds that venues join: the slice’s saving, taken first so that stories and venues are built inside it. Acceptance criteria:
design.md, Where pawns meet): a pawn has a talk turn in the waking hours where (hour + id) % SOCIAL.talk.every is 0 (every 4, so four a day), and at its turn starts a talk at SOCIAL.talk.chance (1; VB-520 makes it sociability’s). The hourly round walks only the pawns whose turn it is (the living bucketed by id % every, a cache with one writer, or an equal walk: not a pass over all the living with a skip). A pawn may still be drawn as a partner in any hour, and talks at most once an hour.SOCIAL.ties.talk is 0.8 (it was 0.5): a talk stands for a longer conversation, and a day’s talk builds the tie it built (6.6 talks × 0.5 before; about 4.2 × 0.8). The waking hours at home are counted at the turn, every at a time, so the separate hourly pass for pawn.homeHours goes; its invariant holds.sim/encounters owns who meets whom (target-v2, section 4.4, Encounters; a module that sim/relations’ talk asks for partners): a table ENCOUNTERS of kinds, each { present, sample, mix, said }: house (the members inside) and outdoors (the cells of 30 units, moved here from sim/society’s outdoors and sim/relations’ partnersOf, verbatim where they move), as built; occasion: a pawn standing at an occasion (agent.occasion, arrived) draws up to 8 of those who came, indoors or out, weighed by familiarity and liking plus mix (0.2; a kind of occasion may name its own), so that strangers are drawn; pasture: a pawn at a herding job draws from the herders within ENCOUNTERS.pasture.reach 120 units, kept in a second grid of that cell, filled in the pass that fills the first.Encounters.present(st, occasionId) reads those who came; said(st, occasionId, by) is the one door by which something is made known to all present (VB-522’s rite and VB-523’s stories use it; nothing calls it in this task). Encounters read no plan and have only social effects.tests/record.js (seed 7, 3 years) reports gifts and close friends before and after (7 close friends before herding, 4 with it).talkTurn (the pawns asked, 4 a pawn-day, where it would have been 16) declared in VB.COUNTERS; talkWeighed reported; node tests/counters.js --update records the intended change, listed in the task file. No time is a result here: the nightly bench gives talk’s share (55.3 ms a game day at medium-ref on 10 November, share 55), and the profile’s share of the run in talkHour is reported as a description (7.7% on populous small, year 1; 5.2% in the plan’s trial).--report relations): every 4 against 2 and 8, and the tie a talk 0.7, 0.8 and 1, so that the shares of close friends, friends, dislikes and enemies and the friends across villages stay within a tenth of before (2.8%, 7.2%, 6.7%, 0.2%; 0.35 a pawn) at the fewest turns; the values tried and what each gave. The plan’s trial at every 4, chance 1 and 0.7 a talk gave 4.19 talks a pawn-day, 2.8%, 7.3%, 6.2%, 0.2% and 0.36, with marriages and births unchanged.Culture.dailyStep reads, so report the customs changed at meetings and the causes taken up over 30 populous years (small, seeds 3, 7, 11) and 50 founders years (small, seeds 7, 42), before and after, with growth, marriages and hungry household-days; a custom moving more than a generation faster or slower is a tuning note, not a retune here.mix lets two strangers at an occasion be drawn; a save made mid-day and loaded gives the same talks (tests/saves.js, tests/plaindata.js).Notes:
talkHour’s time, 27% is its own loop over the living and 22% partnersOf; talk 10%, put 7.5%, opinion about 10%.src/sim/relations.js, src/sim/society.js, src/sim/clock.js, src/sim/rules.js, a new src/sim/encounters.js (src/manifest.json, @sys): not beside VB-430 (the split of sim/relations), VB-468 or VB-520.Noted by VB-186, 15 November 2026.
sim/encounters (social layer, after sim/traits in the manifest),
no state of its own; it reads st.living, st.agents (inside, x, y, path, occasion, side), st.households[].members
and st.occasions (come, kind), and draws on the talk stream. sim/relations’ talk asks it for partners
(partners(st, a, near, busy, round, found), which returns the kind’s mix); sim/clock builds the hour’s grid with its
outdoors (moved verbatim from sim/society, which loses it, with the pasture grid filled in the same pass). New coupling: the
pasture kind reads a herder by agent.side.background.kind === 'herd' (sim/agents’ field, sim/grazing’s kind), as plain data.
SOCIAL.talk.every 4, chance 1 (was 0.5 every hour). The turns are the living bucketed by id % every,
a derived cache in sim/relations (one writer) rebuilt when st.living changes (its array, length or last id: ids only grow,
so these detect every change); the hour walks only its bucket. At its turn a pawn counts every hours at home if inside
(pawn.homeHours; the hourly pass over the living for it is gone; 16 waking hours / 4 = 4 turns, so the invariant’s bound holds).
Anyone may be drawn as a partner in any hour; busy still keeps one talk an hour.SOCIAL.ties.talk 0.8 (was 0.5). Kinds: house and outdoors as built (verbatim, the draw shared by a draw helper);
pasture (reach 120, Euclidean, up to 8 herders from a second grid of 120-unit cells) added to outdoors for a herder;
occasion (a pawn at an occasion it has arrived at: up to 8 of o.come standing there, indoors or out, mix 0.2, a kind of
occasion may name its own in ENCOUNTERS.occasion.kinds). The weight is max(0, talkWeight) + mix, so house, outdoors and
pasture (mix 0) weigh as before. A member standing at an occasion is no longer counted among its housemates inside.
present(st, id) (those who came and stand there) and said(st, id, by) (those who hear, everyone present but the speaker;
nothing calls it yet) are exported.decision): pasture added to outdoors rather than replacing it; the mix as an additive floor; 0.8 kept over
0.7 (both within a tenth); the turns as a closure cache keyed on st.living; occasion guests out of the house kind, and the
talk stream for all draws. A defect found and noted as VB-561: the house kind and homeHours read agent.inside, which does
not say which house (a pawn indoors at another farm counts as at home).tests/encounters.js (new, in npm test): turns (each waking hour, the pair alone outdoors talks exactly in
the hours of either’s turn; talkTurn counts the bucket; two pawns talking per talk), guests in a host’s house (not without the
occasion), present and said, herders at 100 and 150 units and non-herders at 100, the mix (a pawn at opinion -1 drawn at an
occasion 60 units off, not outdoors, not with the kind’s own mix 0), invariants. tests/saves.js gains a populous save at
10:30 (mid-day, between turns) run 3 days on: the same. tests/relations.js reads outdoors from sim/encounters.
npm run verify: 113/113; 11 targets out, as on the run’s branch (the same eleven; counters/helpBid residual +0.0005 to +0.006,
scaling.helpBid +0.080 to +0.074; not moved by this task’s intent).node tests/counters.js; talkWeighed, talkTurn and talkBucket recorded, the rest left as on the branch, where
heirRank, roundRank, helpBid and pastureTiles are out before and after): talkTurn 4.00 a pawn-day (16 at every hour);
talkWeighed 6.57 to 4.86 a pawn-day (on the branch after VB-472; 6.26 to 4.61 before it); talkBucket 0.066 a pawn-day.
Profile, a description (shared machine, populous small seed 7, year 1, --report perf): talk and contacts 10.7% of the run
(102.5 ms a game day) before, 8.9% (55.2 ms) after; the nightly bench gives the share.Parameterisation (populous small, seed 7, 3 years, --report relations; before: close 2.8%, friends 7.2%, dislikes 6.4%,
enemies 0.2%, friends across villages 0.40 a pawn, 6.63 talks a pawn-day; hungry household-days 6, 27, 0):
| every | tie a talk | close | friend | dislike | enemy | across | talks/pawn-day | within a tenth |
|---|---|---|---|---|---|---|---|---|
| 4 | 0.8 | 2.8 | 7.5 | 7.0 | 0.2 | 0.40 | 4.24 | yes (chosen) |
| 4 | 0.7 | 2.9 | 7.0 | 6.2 | 0.2 | 0.38 | 4.26 | yes |
| 4 | 1 | 2.9 | 7.9 | 8.4 | 0.3 | 0.28 | 4.21 | no (dislikes, across) |
| 2 | 0.8 | 3.1 | 8.2 | 10.2 | 0.6 | 0.43 | 7.09 | no (dislikes, enemies) |
| 8 | 0.8 | 2.4 | 7.3 | 4.1 | 0.2 | 0.36 | 2.32 | no (close, dislikes) |
Population, births, deaths and marriages the same each year in every run (374 at year 3); hungry household-days 6, 17, 0 at the chosen values. Every 4 is the fewest turns that keeps the shares; 0.8 is the design’s value.
tests/record.js (seed 7, medium, 3 years): close-friend events 20 before, 19 after;
close-friend bands held at year 3, 20 directed (10 pairs) before, 14 (7 pairs) after; gifts 21 before, 19 after; enemies 4 to 3;
talks 7,904 to 5,296; 19 living both. (The plan’s 7 and 4 were counted differently, before VB-468; the direction, fewer close
friends with herding and fewer, heavier talks, is the same.)Customs’ pace (small map; before is the run’s branch before VB-472, after this task on the same base; customs changed at meetings
are the record’s custom events, causes taken up its cause events; growth a year, marriages and hungry household-days over the run):
| run | customs changed | first change (year) | causes taken up | growth | marriages | hungry days |
|---|---|---|---|---|---|---|
| populous 3, 30 y | 24 → 30 | 3 → 3 | 145 → 122 | 1.84% → 1.78% | 183 → 174 | 25 → 57 |
| populous 7, 30 y | 23 → 16 | 3 → 3 | 131 → 130 | 1.78% → 1.91% | 172 → 167 | 28 → 27 |
| populous 11, 30 y | 36 → 11 | 5 → 11 | 119 → 123 | 1.77% → 1.98% | 168 → 174 | 21 → 31 |
| founders 7, 50 y | 9 → 6 | 25 → 25 | 7 → 7 | 0.68% → 0.68% | 6 → 6 | 3 → 1 |
| founders 42, 50 y | 9 → 9 | 2 → 2 | 12 → 12 | 2.91% → 2.86% | 11 → 10 | 18 → 9 |
Founders keep their customs’ changes, the same ones in nearly the same years (seed 7 loses one back-and-forth of claims on empty
farms after year 38). Populous changes fewer customs over three seeds, 83 to 57; seed 11 loses a burst of changes in years 7 to 9
(its first change comes 6 years later, less than a generation); the causes taken up are about the same (395 to 375). Growth,
marriages and the island’s hunger are within the seeds’ spread (hungry days 74 to 115 over the three, most of it seed 3). Left
for the tuning run as a tuning note (the ties’ weights, talk against home and work, as Culture.dailyStep reads them), not
retuned here. Households: the per-household hunger moves with the seed, not one way (a description, no target).
ENCOUNTERS (the pasture’s reach 120 and draws 8, the occasion’s draws 8, mix 0.2 and kinds, the
outdoors’ size 30) is in src/sim/encounters.js, outside SOCIAL in src/sim/rules.js, as the criterion names it
(ENCOUNTERS.pasture.reach): the table holds each kind’s functions (present, sample, said) beside its numbers, and functions
may not go into sim/rules’ plain tunables; sim/rules is over its length and width lines (VB-419 splits it), so a module that owns
a table keeps its own tunables there, as OCCASIONS in sim/occasions does. The talk round’s own numbers (every, chance,
sample, the ties) stay in SOCIAL.outdoors takes placeOf from the clock and
keeps each pawn’s place by id (near.x, near.y); the outdoors and pasture tests read those, not stored a.x, a.y; the occasion
reads only agent.path and agent.occasion; nothing uses st.awake, wake or sleep.--report relations): the run’s branch is now close friends 2.8%,
friends 7.3%, dislikes 6.6%, enemies 0.2%, friends across villages 0.38 a pawn, 6.68 talks a pawn-day; with this task 3.0%, 7.5%,
7.3%, 0.3%, 0.44 and 4.28 (before the merge 2.8, 7.5, 7.0, 0.2, 0.40 and 4.24). Dislikes (+11%) and friends across villages
(+16%) now sit just past a tenth of before, from one seed after VB-473 moved who stands where; the five runs are spent, so no
value is tried again here: the tuning note on the ties’ weights carries it. Population, births, deaths and marriages the same
each year; hungry household-days 3, 31, 0 on the branch, 0, 20, 0 with this task. npm run verify 113/113, 10 targets out (11 before
the merge; helpBid’s counter is no longer out after VB-473), none of them moved by this task’s intent.