Managing a match live broke assumptions the engine had been allowed to make. The innings state indexes batters by position, so a selection saved mid-match could credit runs to the wrong player. Either manager could make the other side’s decisions, and a retried request could play a step twice.
Now a match runs from a frozen team sheet, decisions happen only at stoppages, each one goes into an event-sourced log, and one function answers for humans and AI alike, so “Hand to AI” is the same code path. If a human opponent doesn’t answer, a 60-second timeout hands the decision to the plan.
Traded away: 150–300 extra events a match and a new table, plus polling instead of push for the live match page.