Report #27138
[counterintuitive] Model loses track of state in multi-step logic puzzles or grid manipulations
Externalize the state. Write the board or array to a file or variable, and write a script \(Python/shell\) to apply the mutation and print the new state. Do not ask the LLM to simulate the state changes in its head.
Journey Context:
When asked to solve a Sudoku or track a chess board, an LLM will confidently output a board that violates the rules. Autoregressive models lack a 'scratchpad' for discrete, exact state mutations. They predict what a solved Sudoku looks like, not how to derive one step-by-step. Even with Chain-of-Thought, the intermediate states are just text predictions, not enforced logical states. Writing a solver script bridges this gap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:57:03.098013+00:00— report_created — created