Component 1 of 8
Play it yourself
Nobody will tell you the rules. Press keys, watch what changes, and win the level. Then see how many moves the agent needed.
- Game
- —
- Level
- 1 of 3
- Your moves
- 0
Keys: arrows, space for act, R for reset.
Component 2 of 8
The rulebook that writes itself
The agent starts with an empty rulebook. Every time the game surprises it, it rewrites the rules, compiles them into code, and keeps the new version only if the code replays every move so far. Pick a game and watch.
- Move
- 0
- Level
- 1
- Surprises
- 0
- Rulebook
- revision 0
The compiled world model
Component 3 of 8
Errata sheet
Every change to the rulebook during the game above, with the move that caused it and the lines it changed.
Component 4 of 8
House rules kit
Edit the rulebook yourself. Your version is compiled into code and checked against every move of the agent's game. One wrong rule and the gate shows the move it gets wrong.
Component 5 of 8
Score pad and race track
All eight games, played to the end by the same agent with notes and without them, against the shortest solutions and a random presser. Your browser plays them now.
Shuffling the decks.
| Game | With notes | No notes | Shortest | Random |
|---|---|---|---|---|
| Total | … | … | … |
Component 6 of 8
Designer's notes
rulebook working paper 1 · October 2026
Same Model, Better Notes: Learning Unseen Grid Games by Rewriting a Compiled Rulebook
The rulebook contributors
1 Object of the game
An agent that never changes learns eight grid games it has never seen by keeping a rulebook in Markdown. Each revision is compiled into a world model and accepted only if it replays every move seen so far, cell for cell. Kept from level to level, the rulebook lets the same agent clear all … levels in … of the actions it needs when it starts every level with a blank one (… against …), and in … of the planning turns. Every number on this page is computed in your browser.
2 Where the idea comes from
On 8 October 2026 Haoyu Zhao, Zhengxu Yu, Zhiyuan He, Meng Fang, Rasul Tutunov, Haitham Bou-Ammar, Weilin Luo and Jun Wang posted “Memento 3: Model-Based Recursive Self-Improvement through Reflective Rulebooks” [1]. Their agent keeps a frozen language model and learns only through external memory: a natural-language rulebook of revisable hypotheses about a game, compiled into executable code for prediction and planning. Prediction errors drive revisions, and new code is accepted only if it is judged faithful to the rulebook and an exact replay reproduces the observed transitions. They report that it clears every level of all 25 public games of ARC-AGI-3 [2], and a news summary reports it used 7,518 actions, 44% of a 17,135-action human baseline. This site and its library are not connected with that work or its authors, use no language model, and do not reproduce their results.
3 Components
The rulebook has one rule per line in fixed plain-English sentences: the player's color, what each of five actions does, whether the player slides, what each color does when the player walks into it (wall, floor, picked up, pushed), which colors open when another is gone, and how a level is won. Anything untested is written as unknown, and the compiled code states what it assumes instead. The compiler writes one line of JavaScript per rule.
4 A turn
After every move the compiled rulebook predicts the next grid. A wrong prediction starts a revision: the smallest change of one, two or three rules that replays every move seen. A rule is also written when it is the only one that fits (a deduction) or after repeated evidence (an induction). The planner then tests the nearest open question, or plans the shortest win when the rules say how. Following [3], the candidate rules are a version space; following [4, 5], the rulebook is a world model the agent reflects on in words.
5 Scoring
| Game | With notes | No notes | Shortest |
|---|---|---|---|
| Waiting for the score pad. | |||
From level 2 on the agent with notes is within … actions of the shortest solutions in total. The random presser, given 3,000 presses per level, clears … of the 24 levels.
6 Variant: a language model writes the revisions
A reviser can rewrite the rulebook at every surprise. Its text must pass the same gate, and only what the evidence demands is kept; a written rule that the moves so far would replay just as well without returns to the open questions, so an untested guess cannot stop the agent from testing it. A stand-in writer that calls every untested color a wall has most of its rulebooks turned down, and the agent still clears the game.
7 Questions
- Is this ARC-AGI-3?
- No. The eight games are the library's own, small and fully visible, and their rules come from the same family the agent can express. The games and the agent were written together.
- Then what does it show?
- That the notes do the learning. The agent's code is the same with and without them; only the rulebook carried from level to level changes the result.
8 Credits
- Zhao, H., Yu, Z., He, Z., Fang, M., Tutunov, R., Bou-Ammar, H., Luo, W. & Wang, J. Memento 3: Model-Based Recursive Self-Improvement through Reflective Rulebooks. arXiv:2610.11794 (2026).
- ARC Prize Foundation. ARC-AGI-3, an interactive reasoning benchmark (2026).
- Mitchell, T. M. Generalization as search. Artificial Intelligence 18 (1982).
- Ha, D. & Schmidhuber, J. World models. arXiv:1803.10122 (2018).
- Shinn, N. et al. Reflexion: language agents with verbal reinforcement learning. NeurIPS (2023).
Component 7 of 8
Punchboard: $RULES
Contract address
—
- Price
- —
- Market value
- —
- Traded, 24 h
- —
- Change, 24 h
- —
- Liquidity
- —
Counting the counters.
Setting up the board.
Component 8 of 8
Instruction manual
The library behind every component: rulebook 0.1.0, one file, no dependencies, MIT licence.