Status: done (2026-11-12) Priority: 2 Size: S Design ref: Kim, session of 12 November 2026 (customs pane review); backlog/VB-396.md Goal: Kim: a face first shows a small note on why the person leans as they do, and a percentage: how much the player needs to convince them. Acceptance criteria:
att); and the strongest pull towards the way they favour. Chosen again, or another phrase opened, the note goes.driftPerson, weighed as it weighs them, for the favoured way: their own cause (“Argues this cause”), what they learned young (“Raised to it”), the people they deal with (“Close to Culture gives the pulls (not enumerable, as the wiring operations); it writes nothing, draws no randomness and is called only when a face is chosen. tests/golden.json unchanged.tests/smoke.js and tests/browser.js: a face chosen shows the note with two percentages and a reason, its name opens the person’s card. The hard checks of verify pass but for tests/hunger.js (VB-396’s flag); index.html rebuilt.src/sim/leanings.js (new, derived layer, no state): pulls(p, d, j, byId, mean, kind), each pull as driftPerson weighs it, with the tie that weighs most among those who favour the way and who argues it with most weight. It is a module of its own, not a function of Culture as the third criterion said, because src/culture.js stands at 389 of its 400 lines; the golden file’s apiKeys is untouched either way. src/page/customs.js: a face is a button (data-voice), voiceNote reads the pulls and words the strongest; the played pawn is addressed as “you”, also as another’s friend or arguer.tests/pulls.js (new, in npm test): upbringing alone, company and its friend, the settlement’s mean mixed in, a cause and its arguer, one’s own cause, interest, nothing written. tests/smoke.js: a note reads “Björn Ivarsson leans 66% to “Kin of the old family first” and 18% to “Villagers first”. Close to Gunhild, who favours it.”; the face is marked; chosen again the note goes; the name opens the person’s card. tests/browser.js: a face chosen shows its note. npm run verify: every script but tests/hunger.js (VB-396’s flag: it fails on main too); golden file unchanged. Seen in Chromium, desktop, phone and dark (populous, seed 7, tiny, year 21, Bredsäter, who eats first): “Cecilia Hansdotter leans 46% to “Equal shares” and 44% to “Children first”. Raised to it.”