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: The twelve traits and the rules each changes; Chemistry); Balance loops and targets (Like seeks like); backlog/VB-186.md Goal: A trait earns its place by changing at least two rules, as a contribution neutral at 0.5 and never a choice made for the player. Wire each trait to the rules that exist today, and make the pair’s compatibility what target-v2 sketched: likeness in values and sociability, temper as friction, the customs between two pawns (Like seeks like, Decided 12 Nov and not yet built), beside the seeded term. Acceptance criteria:
design.md’s table (People, The twelve traits and the rules each changes), linear in the trait and neutral at 0.5: as a contribution to a rule of sim/registry where the rule is declared there, and as a named weight (TRAITS.acts.<trait>.<rule>: the value at 0 and at 1) where a pawn chooses. This task builds those whose rule exists today:
FEAST.share, if VB-458 has landed (else a line in VB-458’s notes); (VB-484 had not landed: built here, and VB-484 is met; VB-458 has not landed: its line is below, for the orchestrator to write)culture’s daily step, 0.5 to 1.5 times (the rite’s attendance is VB-522’s);claim, border, refusedMatch, crop and stayedAway is written at, 0.5 to 1.5 times (the lie’s judgement is the lies task’s);SOCIAL.seek, 0.25 to 0.75 (telling a story is VB-523’s);SOCIAL.talk.quarrel 0.05 × the two tempers’ sum; both remember it (quarrel: -0.1, to -0.3, a year) and it is an event of the record (quarrel, with its kind, both pawns and the place), so a story kind for VB-523;IDLE.wait 4 to 2 hours;attitude.malleability, 0.5 to 1.5 times, and the chance to take up a cause, 0 to 2 times;tools/rules.js lists the contributions. Where a rule is explained to the player (the allowance, why a household does or does not feast), the trait’s label is named.design.md, Chemistry): compat becomes C.personal 0.7 × the seeded term + C.likeness 0.5 × likeness − C.friction 0.3 × (the two tempers’ sum − 1) − C.customs 0.3 × the customs between them, less the age gap as today, within -1..1. Likeness is (0.17 − the mean absolute difference over the four values and sociability) / 0.17, within -1..1. The customs between them is the share of customs on which the two lean to different options, each custom weighed by 1 − its malleability; a pawn’s leaning (its strongest option a custom) is compiled as a byte a custom where culture writes its attitudes (rule 6), owned by culture. Nothing is stored per pair; compat allocates nothing.design.md, Balance loops and targets; Decided, 12 Nov): a test shows that two pawns alike but for their customs think less of each other, and that two who agree gain nothing. A line in VB-294’s and VB-296’s notes that the hours for differing customs in a village’s choice of gathering are gone in favour of this, as that row says. (The lines for VB-294’s and VB-296’s notes are below, for the orchestrator to write: a sub-agent edits only its own task file.)--report relations): the four weights, so that the shares of close friends, friends, dislikes and enemies among relations stay within a fifth of before (2.8%, 7.2%, 6.7% and 0.2% on 15 November) and friends across villages do not fall by more than a third (0.35 a pawn); the values tried and what each gave, in the task file. What is left goes to docs/tuning.md by a tuning note.fix: each contribution at 0, 0.5 and 1 (0.5 gives today’s value); chemistry’s four terms; a quarrel’s memory and event. tests/commands.js, tests/record.js and the registry’s checks pass.compat is read today (talkWeighed, companyWeighed: about 11 a pawn-day), a dozen subtractions and a byte compared a custom; no new loop. node tests/counters.js before and after.Notes:
design.md, People, Traits, talk and stories.src/sim/relations.js (over the line: VB-430 splits it; new code that is not chemistry or talk goes with its rule’s owner), src/culture.js, src/sim/plans.js, src/sim/help.js: one at a time with VB-521, VB-430 and VB-484.compat moves once, when its values set at 15; the bands are checked when the pair is next touched.Noted by VB-186, 15 November 2026.
TRAITS.acts.<trait>.<rule> in src/sim/rules.js, [the value at 0, at 1],
read through one function, Traits.act(st, id, trait, rule) (src/sim/traits.js: linear in the trait, its midpoint the rule’s value
before traits, so a pawn at 0.5 acts as every pawn did; allocates nothing). Where each is read:
reserve [40, 0] days beyond HELP.floorDays: Traits.bufferOf(st, id) (the floor and the reserve; a household without
a holder keeps the most) replaces pawn.buffer in sim/help (allowance’s term reserve, whose tunables now name the act, and help’s
surplus), sim/hunger (need’s term food), sim/farmclaims and sim/settle (provisions). HELP.bufferDays and pawn.buffer go
(VB-484’s goal, met here); an old save’s buffer is dropped at load (seedTraits); the invariants check no pawn has one. The draw
that made it, of the stream people, is kept and discarded in sim/records, so seeded states are as before (decision note).anchor [0.5, 1.5]: times the pull of what was learned young in culture’s drift; openness, malleability [0.5, 1.5]: times
a custom’s malleability in the drift (company, interest, noise and a cause argued near), and cause [0, 2]: times the chance to
take up a cause (Culture.entrepreneurs). culture stays trait-blind: it reads them through a new hook, act(p, trait, rule),
which sim/society’s hooks give (1 without it, as in tests/calibrate.js). sim/leanings, the customs panel’s view of the pulls,
takes the same two factors (Sim.traitAct), so the voice note weighs the pulls as the drift does.settle [1.5, 0.5]: the pressure (rounds waited) a pawn needs before it wishes to leave a crowded village; sim/settle’s
leaveChance(rounds waited / act) reads SETTLE.chance in a line between its rounds (from none at 0), so integer rounds at 0.5 give
the old table exactly. A farm claim has no wish or pressure to scale today (every eligible pawn claims in the custom’s order).breach [0.5, 1.5]: sim/relations’ remember writes a memory of the kinds TRAITS.breach (claim, border, refusedMatch,
crop, stayedAway) at the rememberer’s honour times its value and its cap.talk [0.5, 1.5]: the chance to start a talk at its turn, min(1, SOCIAL.talk.chance × act) (with chance 1, min(1,
0.5 + sociability)); seek [0.5, 1.5]: times SOCIAL.seek in companyFor (0.25 to 0.75). The same draws as before.talk, cross words become a quarrel at SOCIAL.talk.quarrel 0.05 × the
two tempers’ sum (quarrelMaybe, one more draw of the talk stream, only after cross words); both remember it
(SOCIAL.memories.quarrel, -0.1 to -0.3, a year) and it is an event of the record, kind quarrel (kept SHORT, told in the pawn’s
own voice, sim/notable), the first speaker as pawn, the other as other, the village as place.idleWait [4/3, 2/3]: times the idle pawn’s wait (sim/jobs), today’s 4 to 8 hours at 0.5 (the design’s 4 to 2 hours
about its 3; the absolute hours are a tuning note); the planning day is VB-249’s, re-pointed by VB-519.recover [2.5/3, 3.5/3]: times HEALTH.recover on a fed, warm day (sim/hunger’s updateHealth): 2.5 to 3.5. The skills’
rate and cap wait for VB-360 (neither it nor VB-475 has landed).sim/relations’ compat): SOCIAL.chemistry.personal × the seeded term (today’s, unchanged) + likeness × likeness −
friction × (the two tempers’ sum − 1) − customs × the customs between them, less the age gap as before, within -1..1. Likeness is
(span 0.17 − the mean absolute difference over the four values and sociability) / 0.17 within -1..1, the traits read by index. The
customs between them: the share, each custom weighed by 1 − its malleability (a constant array, over its sum), on which the two pawns’
pawn.leans differ. pawn.leans (new, owned by culture, @state in src/culture.js, src/owners.json): a Uint8Array, one byte a
custom, the option the attitude favours most, compiled where culture writes the attitude (initPerson, advocate, each custom of
the daily drift after it is normalised) and at every load (sim/saves, from the attitude as saved); invariants: every pawn with an
attitude has it, of the customs’ length, each its strongest option. Nothing per pair; compat allocates nothing.explainAllowance (sim/exchange) gives the reserve’s part as “Own
reserve: open-handed” (or tight-fisted), through Traits.wordOf. Why a household feasts waits for VB-458.tools/rules.js lists, after the rules, each act with its value at 0 and at 1 and the contributions whose tunables name it
(generosity.reserve: allowance.reserve, need.food); --json --traits gives them as data.| Trait | Rules it moves | Built by |
|---|---|---|
| generosity | own reserve (allowance, help, need, provisions); a host’s share at a feast | VB-520; VB-458 (to build: 0.5 to 1.5 times FEAST.share, by Traits.act) |
| piety | the anchor’s pull; going to the season’s rite | VB-520; VB-522 |
| ambition | the wish to leave at the moving round; calling an ale evening; inventing a story (with low honour) | VB-520; VB-522; VB-554 |
| honour | how a breach is felt; how a lie is judged, and its own lies | VB-520; VB-554 |
| sociability | starting a talk; seeking company; going to an ale evening; passing a story on | VB-520; VB-520; VB-522; VB-523 |
| temper | friction in chemistry; the quarrel | VB-520; VB-520 |
| diligence | a head’s planning day; the idle wait | VB-249 (VB-519); VB-520 |
| openness | malleability; taking up a cause | VB-520; VB-520 |
| body | health regained on a fed day; heavy work’s skills, rate and cap | VB-520; VB-360 |
| hands | the crafts’ skills, rate and cap | VB-360 (two rules: rate and cap) |
| husbandry | a head’s skill; field and herd skills, rate and cap | VB-254; VB-360 |
| wits | a head’s skill; how long a story is remembered | VB-254; VB-523 |
FEAST.share, a new act TRAITS.acts.generosity.feast read through Traits.act;
why a household does or does not feast names the label (Traits.wordOf)”. VB-294 and VB-296, “16 Nov (VB-520): Like seeks like is
built as chemistry’s customs term (pawns whose customs differ think less of each other); the hours added for differing customs in a
village’s choice of gathering are gone in favour of it (design.md, The balance review’s row)”. VB-484: met by VB-520 (pawn.buffer is
generosity’s, through Traits.bufferOf); close it with VB-520.--report relations’ “all” row, taken by a script that
runs the same measure; before = the run’s branch at 4bdda83, the same day): before, close friends 2.99%, friends 7.05%, dislikes
7.37%, enemies 0.32%, friends across villages 0.559 an adult (15 Nov’s 2.8, 7.2, 6.7, 0.2 and 0.35 are the criterion’s; both are
checked). Weights personal, likeness, friction, customs:| run | weights | close | friend | dislikes | enemy | across | within a fifth of today’s? |
|---|---|---|---|---|---|---|---|
| 1 | 0.7, 0.5, 0.3, 0.3 (design) | 1.64 | 6.45 | 5.42 | 0.11 | 0.288 | no: close −45%, dislikes −26%, enemy −66%, across −48% |
| 2 | 1.0, 0.5, 0.3, 0.3 | 3.64 | 7.26 | 7.83 | 0.37 | 0.461 | close +22% |
| 3 | 0.9, 0.5, 0.3, 0.3 | 2.76 | 7.03 | 6.84 | 0.19 | 0.526 | enemy −41% (in against 15 Nov’s 0.2) |
| 4 | 0.95, 0.5, 0.3, 0.3 | 3.30 | 7.11 | 7.18 | 0.17 | 0.447 | enemy −47% |
| 5 | 0.9, 0.5, 0.4, 0.3 (kept) | 2.74 | 7.16 | 6.85 | 0.27 | 0.510 | yes: −8%, +2%, −7%, −16%; across −9% |
The design’s 0.7 shrinks the spread of compatibility (the seeded term’s sd falls from 0.41 to 0.29, and likeness and friction add
back less) and the customs term costs pairs across villages most; personal 0.9 restores the spread and friction 0.4 the tail of
enemies. Run 5 is also within a fifth of 15 Nov’s numbers. Nothing is left for the tuning run from these; the idle wait’s absolute
hours are a tuning note (IDLE.wait).
quarrel, cause and custom events; shares of relations at the end):| run | living start → end, growth a year | hungry household-days | marriages | close / friend / dislikes / enemy % | across | quarrels a 1,000 pawn-years | causes | customs changed | talks |
|---|---|---|---|---|---|---|---|---|---|
| populous 3, before | 333 → 591, 1.93% | 23 | 181 | 2.95 / 7.34 / 9.16 / 0.52 | 0.886 | 0 | 123 | 23 | 1,435,744 |
| populous 3, after | 333 → 569, 1.80% | 62 | 173 | 3.15 / 7.54 / 9.12 / 0.46 | 0.823 | 459 | 101 | 30 | 1,317,959 |
| populous 7, before | 350 → 619, 1.92% | 25 | 168 | 2.67 / 7.63 / 9.29 / 0.63 | 1.126 | 0 | 121 | 17 | 1,475,458 |
| populous 7, after | 350 → 643, 2.05% | 43 | 180 | 2.39 / 6.69 / 7.62 / 0.46 | 1.003 | 491 | 121 | 15 | 1,406,703 |
| populous 11, before | 324 → 575, 1.93% | 34 | 186 | 2.10 / 5.93 / 8.04 / 0.59 | 1.076 | 0 | 136 | 32 | 1,442,069 |
| populous 11, after | 324 → 584, 1.98% | 45 | 182 | 2.38 / 6.77 / 7.85 / 0.58 | 1.064 | 464 | 130 | 25 | 1,337,045 |
| founders 7, before | 10 → 9, −0.21% | 1 | 4 | 7.14 / 9.52 / 14.29 / 0 | 0.111 | 0 | 5 | 6 | 62,098 |
| founders 7, after | 10 → 9, −0.21% | 0 | 4 | 2.56 / 12.82 / 10.26 / 0 | 0.111 | 343 | 5 | 3 | 59,453 |
| founders 42, before | 10 → 42, 2.91% | 14 | 11 | 3.50 / 9.14 / 12.24 / 0.19 | 0.40 | 0 | 11 | 10 | 113,477 |
| founders 42, after | 10 → 42, 2.91% | 4 | 11 | 4.31 / 8.52 / 11.66 / 0.59 | 0.55 | 433 | 8 | 8 | 105,760 |
Growth stays within 0.13 points of before (one seed lower, two higher; founders identical in their living); marriages within 8%. The shares at 30 years stay within a fifth but for enemies at seed 7 (−27%); across villages falls 1% to 11%. Talks fall 5% to 9%: the design’s min(1, 0.5 + sociability) lowers the chance below 0.5 and cannot raise it above (the mean of max(0, 0.5 − s) is 0.06). About one quarrel a year for every two pawns. Causes taken up move with openness’s 0 to 2 (−18%, 0, −4%); customs changed at meetings move both ways. Hungry household-days rose at the three populous seeds (82 against 150 in all, under 0.04% of household-days) and fell at founders 42: a description (the run’s note (b): this count swings 20% to 50% between near-identical versions).
| run | generosity low | mid | high | diligence low | mid | high |
|---|---|---|---|---|---|---|
| populous 3 | 15/45,990 → 12/48,769 | 7/52,981 → 0/55,836 | 1/43,692 → 50/37,926 | 3/45,682 → 7/44,179 | 5/46,395 → 42/49,000 | 15/50,586 → 13/49,352 |
| populous 7 | 4/49,584 → 13/52,026 | 4/42,561 → 1/44,843 | 17/50,710 → 29/45,717 | 18/43,002 → 29/47,451 | 7/54,151 → 4/52,966 | 0/45,702 → 10/42,169 |
| populous 11 | 0/33,668 → 10/39,437 | 11/50,290 → 29/54,181 | 23/57,136 → 6/46,865 | 4/49,284 → 2/51,881 | 3/50,621 → 37/47,361 | 27/41,189 → 6/41,241 |
| founders 42 | 8/1,599 → 0/1,599 | 0/2,433 → 0/2,432 | 6/11,232 → 4/11,232 | 2/4,800 → 0/4,799 | 4/5,289 → 4/5,289 | 8/5,175 → 0/5,175 |
(founders 7: 1 hungry day before, none after.) The open-handed third (a reserve of a few days) holds the most hungry days at seeds 3 and 7 after, as one would expect of holders who give down to their floor, but not at 11; by diligence no third stands out. A few households carry these counts; households are not measurably better or worse off.
compat was (talkWeighed, companyWeighed, the affinity of an opinion): twelve trait reads,
ten subtractions and a byte compared a custom (the customs’ 15), no allocation; pawn.leans is written in the drift’s existing loop over
each custom (an argmax of 2 to 4 options) and at load. Every act is one trait read where its rule is already computed (the idle wait,
the talk turn, the fed day, the drift, the moving round, a memory written); no new loop, no new counter. node tests/counters.js
before and after (30 days, two villages): talkWeighed 4.759 → 4.531 a pawn-day (fewer talks started), companyWeighed 2.223 →
2.376, idleStroll 1.754 → 1.744, walkPlace 0.537 → 0.592, the route counters within 5%; the same two counters out as on the run’s
branch (counters/heirRank, counters/roundRank). Save: one byte a custom a pawn for leans (15 bytes, a tagged base64 string), less buffer’s
number.npm test 55/55, npm run verify 116/116 after merging the run’s branch (at 0a9dac5), 8 targets out, the same eight as on the branch
(counters/heirRank, counters/roundRank, scaling.roundPairs, scaling.roundWalk, scaling.heirRank, scaling.takeInWeighed,
scaling.frontTile, scaling.roundRank); none moved by this task. node tests/browser.js passes (the customs panel’s voice note);
node tests/smoke.js fails on its clock checks (the clock shows 5 to 6 minutes ahead of the simulation) on this tree and on 4bdda83
alike, with the machine shared. The page’s only change is the allowance’s hover text and the voice note’s weighing: no screenshot.tests/traitacts.js (integration tier, beside tests/traits.js), on the tiny constructed village with traits set by hand and
fix on the talk stream: every act at 0, 0.5 and 1 (1, or the old mean, at 0.5); the allowance’s reserve 40, 20 and 0 days and its
label; health regained 2.5, 3 and 3.5; a claim’s memory and its cap 0.5, 1 and 1.5 times, and a memory that is no breach unchanged;
the leaving chance by rounds felt; seeking company at a draw of 0.6 at sociability 0.5 and 1; the drift’s step faster with openness and
piety and the same without the hook as at 0.5; a cause at openness 0, 0.4 (0.8 times) and 1; the leanings compiled for every pawn and
moved by a cause; chemistry’s four terms one at a time (likeness 1, 0 and −1; friction −0.7 for two hot tempers; customs 0 when they
agree, one custom apart costing its weight), their sum and the age gap; Like seeks like (differing customs less, agreeing the same as
without the term); a quarrel at 0.0499 and none at 0.0501 for two tempers of 0.5, at 0.089 for two of 0.9, both memories to −0.3, its
event’s kind, pawns and village. Tests whose numbers a pawn’s traits now move set the trait to 0.5 or read the act (cold, health,
relations, stakes, workdays, help, exchange, goods, goodwill); tests/registry.js checks tools/rules.js lists the acts.
tests/commands.js, tests/record.js and the registry’s checks pass.tests/herding.js (“the holder’s memory {crop}”) and tests/offers.js (the head’s opinion “falls by 0.2”) still asserted a breach’s memory at its bare value; remember now writes it at the rememberer’s honour (TRAITS.acts.honour.breach), as intended. Both tests now expect the value times Traits.act(st, holder, 'honour', 'breach'), as tests/stakes.js and tests/workdays.js already did.