Status: done (2026-11-19)
Priority: 2
Size: M
Arch: debt
Phase: implement
Design ref: Customs and culture, Meetings, culture and splits; Exchange, Loans, obligations and cases (Cases at the meeting); docs/architecture/target-v2.md, section 4.5 (Decisions)
Goal: Slice 5 adds questions with several voices: a case, the alderman’s election. Today two such questions exist: a custom’s change at the meeting, voted inside Culture.meeting (src/culture.js), and VB-293’s marriage offers (st.offers in sim/lifecycle, answered through answer in sim/commands, which its comment calls “the first question asked through Decisions.answer, which slice 5’s Decisions module takes over”). Make one module that poses a question to a body, runs its procedure and keeps the ballots, and move the custom votes into it unchanged, so the case and the office are new kinds of question, not new voting code.
Acceptance criteria:
sim/decisions with ask(st, question): a question names its body (a village), its kind, its options and the kind’s evaluation, found by kind in a registry the posing module fills at load (a pending question is plain data); procedureFor(st, body, kind) returns the procedure from the body’s practices, with the kind’s default.vote (voices weighted as today’s meeting weighs them, under “Who speaks at the meeting”; a margin) and agent (one pawn decides); a tie escalates to the body’s presiding pawn when it has one (VB-314), else the question’s fallback.node tools/same.js --base REF prints same.st.meetingLog), so VB-082 can show them.npm run verify passes, no renames of Culture’s API; the PR says what fell or moved.
Cost: unchanged: the same votes, now through one call.
Order: beside VB-310 and VB-311. Runs one at a time with VB-257 (the meeting’s routines, a decision of the meeting) and VB-278 (the meetings a village a step), which edits the same lines of src/sim/lifecycle.js; whichever lands second follows the other. VB-314, VB-315 and VB-082 build on it.
Notes:docs/slices.md 3.5 (“Decisions as a module, absorbing the meeting”).src/culture.js, sim/commands’ answer); VB-417 (split culture) waits for this task.sim/decisions (kernel layer, before every domain): defineKind, ask, procedureFor, setPresider; vote and agent. The custom kind is registered by sim/meetings; Culture.meeting builds the question (each option’s support and the margin it must pass the practice by) and asks it through hooks.ask, so the voices, weights and margins stay Culture’s. node tools/same.js --base origin/main --years 3: only the new decisionLog differs. Decided: only a contested question (an option other than the practice put to it) keeps its ballots, so the 30 kept are votes that mattered. Left undone: VB-293’s offers stay in sim/offers (answer); moving them is a follow-up, behaviour unchanged either way.