Status: done (2026-11-26) Priority: 2 Size: M Arch: plans Phase: implement Design ref: design.md section 15, Decision points; The API by pawn and body; docs/plans/four-scales/README.md, 3.6 (Decision points) and section 4 Q13; docs/review-jobs-2026-11-25/README.md, section 6 points 6 and 7 Touches: sim/controller (command); new src/sim/points.js; sim/player (queue, unqueue, setAuto, wish, answer, head); sim/meetings (MEETING); sim/clock (CALENDAR); sim (command, decisions, replay); new tests/decisionpoints.js Goal: An external agent driving a pawn is asked at the moments the pawn’s own rule would act, never polls, and a run it drove can be replayed Acceptance criteria:
Sim.decisions(st, pawn) lists the points open to that pawn’s controller, computed when asked and nothing stored for a pawn with none: the year’s, the season’s and the days-ahead reviews of a body it is agent of; the morning’s and the 14:00 allotment; a leg’s end with its automatic behaviour off; a step at risk (VB-1755); an ask to answer. Each with its deadline; past it the default author answers, as today. The levy’s points are added to the same list by VB-1763 and VB-1769.Sim.command(st, cmd) is the one door a controller issues through, keyed by its pawn. A run is replayed from a save and the commands recorded since it (the record before a save may be pruned); tests/decisionpoints.js replays a scripted controller on a constructed state to the same state.npm run verify passes.
Notes:sim/points (Sim.decisions; a new module of the derived layer, as it reads sim/plandays and sim/meetings, which load after sim/controller); nothing stored, no rule reads them.st.commanded, {tick, cmd}), the debug drawer’s too, and the facades Sim.queue, unqueue, setAuto, wish, answer, head and plan go through it, so a played run is replayable; Sim.replay gives a save’s later commands again. Not pruned: the record before a save may be dropped later.