village-builder

VB-1006: Occasions’ ends as a table of kinds

Status: done (2026-11-19) Priority: 3 Size: S Design ref: backlog/VB-522.md; AGENTS.md, Working rules (the third special case) Goal: An occasion’s kind says how it ends, so a new kind adds a row, not a branch Acceptance criteria:

Noted by VB-522, 17 November 2026.

Decisions (19 Nov): the table is onEnd’s (ENDS, src/sim/occasions.js), now with a row for every kind of OCCASIONS, and onEnd refuses a kind not in it; OCCASIONS stays plain data (times and labels), so the end functions live beside it rather than in it. The wedding and the funeral ale share farmEnd(tell) (pour, feast, the line of who came), each giving only its log line. finish has no branch on the kind: three fell (the meeting and call’s return, if (end), wedding or funeral). Lines: +40 −26, by Prettier’s layout of the two log calls. A kind’s call stays its own function (the wedding’s, the funeral’s, venues’ asking): their arguments differ, and no caller branches on the kind. tools/same.js --base c057d9a: same.