village-builder

VB-383: Commands and holders typed

Status: blocked Waits for: VB-382 Priority: 3 Size: M Arch: yardstick Phase: implement Design ref: none (code structure). docs/typescript-plan.md (P11); the survey in backlog/VB-055.md. Goal: What the code review said types would have caught: type(holder) in sim/stores taking any object for a pawn, and the positional parameters of heirRanking (seven) and post (three optional). Give sim/stores a Holder as a union of three (pawn, household, village; VB-237 states the three) with a kind the functions narrow on; give issue(st, command) a Command that is a union over the verbs of src/sim/commands.ts (actor, verb, target, args, source), so a verb’s args are checked at every issue call; type heirRanking’s parameters and post’s optionals as they are (changing them to an options object is a refactor of its own and out of scope; the task may add it to the backlog). Acceptance criteria: