Start simple, check before giving up
- Hypothesis: H-004
- Date: 2026-11-23
Question #
001e found two ways the 001d agent fails on Taxi: a button runs out of guesses, or the agent keeps a false belief and says "impossible". Do two general changes to the core fix both, with the same code in both worlds, and what do they cost on the 8-puzzle, where nothing was broken?
Setup #
The two changes. Neither names a world.
- Grow when forced. A guess used to say "one thing decides this button". Now a guess may combine several things. Each button starts at one. When every guess at that size has been contradicted, the agent moves to the next size and rebuilds its guesses from a log of the presses it has seen. It never moves up while a simpler guess still stands.
- Check before giving up. Beside its working guesses the agent keeps the guesses one size up. A prediction counts as checked when every one of those also has an answer for that situation, and the same answer. Unchecked predictions are good enough to try a route, because a wrong one shows itself. They are not good enough to say "there is no way".
How it plays. As in 001d, with one new step, the third.
- If its predictions give a route to the target, follow the shortest.
- Otherwise go to the nearest board where it cannot predict some button, and press the lowest-numbered such button.
- Otherwise go to the nearest board where some prediction is unchecked, and press that button.
- Otherwise say "there is no way".
Everything else is 001d's: the two ways to read a board, the two ways to describe a change, and predicting only when every working guess has an answer and they agree.
What the agent is given. The same as 001d, listed in full in that plan's amendment. One thing is new: it keeps a log of every different press it has made.
Worlds. Both unchanged, and tests check their files byte for byte.
- 8-puzzle, as in 001b to 001d: 100 runs, each the same 300 puzzles from seed r, 150 solvable and 150 impossible, 3,000,000 presses allowed per puzzle.
- Taxi, as in 001c and 001e: 100 runs, seeds 0 to 99. A run is episodes from random starts, drawn as before, until the agent plays the paper's six probe starts in the fewest steps, or 1,000 episodes, or 100,000 steps. This is the measure the DOORMAX paper uses, and 001c's.
Agents compared.
| Agent | Grows | Checks | Where |
|---|---|---|---|
| The 001f agent | yes | yes | both worlds, 100 runs |
| Growing only | yes | no | Taxi, 100 runs |
| Checking only | no | yes | Taxi, 100 runs |
| Neither (the 001d agent) | no | no | Taxi, 100 runs; puzzle, runs 0 to 9 |
| Plain memoriser | n/a | n/a | Taxi, 100 runs |
On the puzzle no button is ever forced to grow, so only checking can matter there. The memoriser is the baseline for Taxi: it stores what each press did on each board and nothing else, plays by steps 1, 2 and 4, and sees the same starts. It lives in the experiment, not in the core. DOORMAX's 432 steps (our build) and 529 (the paper) are quoted from 001c; DOORMAX is told what the objects are.
Metric #
The run is the unit: median, 95% confidence interval from order statistics, range.
- 8-puzzle. Presses it could not predict. Presses made to check a belief, and on which puzzles. Wrong predictions. Puzzles solved and called. How many things each button's guesses combine at the end. All 1,451,520 final predictions. What it stores: working entries, checking entries, and the log. Boards examined.
- Taxi. Steps to learn the six probes, and runs that learn them. Episodes that end in a wrong "impossible" (every Taxi delivery is possible). Wrong predictions. Runs in which a button runs out of guesses. How many things each button's guesses combine at the end.
What we expect, written before any run.
- 8-puzzle: 40 presses it could not predict in every run, as before. No wrong prediction. Every button stays at one thing. A median of 500 to 3,000 checking presses, all on the first impossible puzzle. Every puzzle solved or called.
- Taxi, the 001f agent: every run learns. A median of 1,000 to 10,000 steps. A wrong "impossible" in at most 5 runs. Some wrong predictions in every run, fewer than 30. We do not know whether it beats the memoriser.
- Taxi, growing only: no button runs out. Fewer than 20 runs learn.
- Taxi, checking only: a button runs out in at least 90 runs. None learn.
- Neither: the same numbers as 001d and 001e.
Success is in the hypothesis: both worlds learned, fewer Taxi steps than the memoriser, at most 5 runs with a wrong "impossible", and at most 5,000 checking presses on the puzzle.
Falsification #
- Refuted: fewer than 95 of 100 Taxi runs learn the six probes; or on the puzzle any run makes a wrong prediction or a wrong call, or the median number of presses it could not predict is above 100.
- Revised: both worlds are learned, but the median Taxi run takes at least as many steps as the memoriser; or more than 5 Taxi runs contain a wrong "impossible"; or the median number of checking presses on the puzzle is above 5,000.
Checks that the harness is sound #
- Switched off, it is the old agent. With both changes off, puzzle runs 0 to 9 must equal 001d's stored runs, and the first 20 Taxi episodes of every run must equal 001e's stored runs. One difference is expected: 001d's code listed the same question twice when a symbol appeared twice on the first board. That is fixed, so counts of guesses on Taxi will differ; what the agent does must not.
- The fast way changes nothing. Puzzle runs 0 to 9 are repeated with the plain search under PyPy and must give identical numbers.
- It is not using the symbols' names or the slots' places. Puzzle runs 0 to 9 are repeated with every symbol renamed, and again with the slots shown in a shuffled order. The second check is new; 001d's review asked for it.
- The worlds and the ruler are separate. Shortest routes come from searches
under the true rules, which no agent sees. Nothing in
core/names a world.
Speed #
The puzzle runs use the array search on 8 processes and print their progress. The array search learns to answer "is this checked?" for a whole layer of boards at once. Its three known faults are fixed: it no longer hangs when asked to plan from the target to itself, it stands aside for a change that copies a slot, and it stands aside for boards too big to number. Taxi has 400 boards and uses the plain search under PyPy.
The core #
This changes the core, so the result must say what happens to the last headline numbers: 001d's 40 presses on the puzzle, and 001e's no deliveries on Taxi.
Delivery order #
- The core: guesses of any size, the log, growing, checking; tests on hand-made worlds.
- The play rule's new step in the plain search, then in the array search, each checked against the other.
- The run script: puzzle parts, Taxi parts, the memoriser, and one timed run of each.
- The full runs, the checks, and
RESULT.md.
Amendments #
2026-11-23. A speed-up, made after the first puzzle run and before the Taxi run; this note was written after every result was in. No change to the question, the measure, the pass mark or what the agent does.
The plain search's test "is this prediction checked?" was made cheaper in two ways: it no longer rebuilds the board for every checking guess, and it remembers a prediction it has already found checked, which stays checked until the button grows. The reference runs were heading for 40 minutes and now take 11. Every part was then run again with the final code. The puzzle summary numbers looked at from the first run (checking presses 1,561, range 976 to 1,646; 40 presses it could not predict) are the same in the second. The first run's files were not kept.
2026-11-23, after the results and the independent review. Two statements above are wrong. Nothing about the question, the measure or the pass mark changes.
- "This is the measure the DOORMAX paper uses, and 001c's" (under Worlds) is half wrong. The six probes are the paper's. But 001c's player tried everything it could not predict before heading for the goal, and a probe also failed if anything reachable from it was unpredictable. This plan's agents go for the goal first and are judged only on their route. So the comparison with DOORMAX's 432 is not like for like. A run made the 001c way is reported apart in the result.
- "What the agent is given: the same as 001d" is not right for Taxi. Two of 001d's items are false there: every symbol appearing once, and the first board showing every symbol. What the agent is given in their place: a symbol that appears in several slots is found at the first of them, in the order shown; a symbol that is absent is found "nowhere"; "where is this symbol?" is asked only about symbols on the first board it sees; the same mark in different slots counts as the same symbol; and a wrong "there is no way" ends the episode and the next one starts somewhere new.