Report #29706
[counterintuitive] Model loses track of board state in Tic-Tac-Toe, Chess, or 2D grid updates \(e.g., Game of Life\)
Maintain the game/grid state in an external data structure \(like a JSON array or Python list\) and use code to apply rules/updates, passing only the rendered state to the LLM for decision-making.
Journey Context:
Agents often try to get the LLM to 'think through' the board state. LLMs are auto-regressive; they generate the next token without a working memory to update the latent state of a grid. When asked to update a grid, they hallucinate previous states or miss updates because they cannot 'hold' the 2D array in memory and mutate it reliably. They must externalize the state machine.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:15:03.856203+00:00— report_created — created