Finding what matters

Spec · File revision First recorded spec · 23 November 2026
  • Hypothesis: H-003
  • Date: 2026-11-23

Question #

DOORMAX learned the 8-puzzle in 28 to 36 presses, but only after a person told it what the objects were. Can an agent of ours learn every rule when it is told almost nothing: that what it sees is a row of separate slots, and that it can tell whether two contents are the same or different?

This is the first experiment with our own agent, and the first with a core/ folder: the part we carry forward (see docs/experiments.md, "The core").

Setup #

World, puzzles, budget. Unchanged from 001-02 and 001-03: world.py is a byte-identical copy. 100 runs. Run r draws the same 300 puzzles from seed r, 150 solvable and 150 impossible, and gives them to a fresh agent that keeps what it has learned for the whole run. Each puzzle allows 3,000,000 presses. The anchors and DOORMAX are not rerun; their numbers are 001-02's and 001-03's, measured on the same puzzles.

What the agent is handed. This is the whole list.

  1. What it sees is a row of separate slots.
  2. It can tell whether two contents are the same or different.
  3. It can read a board two ways: what a given slot holds, or which slot holds a given symbol.
  4. One assumption about buttons: what a button does is decided by one such thing.
  5. Two ways to describe a change: "this slot now holds what that slot held", or "this slot now holds this symbol".

It is not told that there are tiles, a gap, a tray, rows, columns or walls, which symbol matters, or what any button does. Symbols have no order: 3 is not after 2.

How it learns. For each button it starts with every guess the list allows: "what this button does is decided by what slot 1 holds", ..., "by where the symbol 0 is", ..., each with both ways of describing a change. After each press it writes the change it saw into every guess, under whatever that guess was looking at. A guess is thrown away when the same thing it looks at has now gone with two different changes.

How it predicts. It answers only when every guess still standing for that button has seen this situation before and they all say the same. Otherwise it says "don't know". This is the cautious rule, the same one as DOORMAX following the proof. A bold agent, which would guess sooner and sometimes be wrong, is left for a later experiment.

How it plays. The same rule as the Elephant and DOORMAX in 001-03. If its rules predict a route to the target, it follows the shortest one. Otherwise it goes to the nearest board where it cannot predict some button, and presses the lowest-numbered such button. If it can predict everything it can reach and no route exists, it says "impossible". It stores only its guesses and thinks each puzzle through from scratch.

Metric #

The run is the unit. For each quantity: the median, a 95% confidence interval for the median from order statistics, and the smallest and largest run.

  • Presses it could not predict: how many, and when the last one was. This is the headline number.
  • Wrong predictions: on real presses while playing, and at the end of each run over all 1,451,520 board-and-button pairs (right, wrong, don't know).
  • What it ended up believing: the guesses still standing for each button, and how many were thrown away.
  • The anchors' measures: presses on its first solvable and first impossible puzzle, on a typical solvable puzzle, presses per shortest-route press over its last 50 solvable puzzles, puzzles solved and called, total presses.
  • What it stores: the number of entries in the guesses still standing.
  • Thinking: boards examined in its head, per puzzle.

What we expect, written before any run: a median of 40 to 60 presses it could not predict; no wrong predictions; one guess left per button, "where the symbol 0 is decides it"; every final prediction right.

Success is a median of 100 presses or fewer that it could not predict, with no wrong or missing prediction in any run.

Falsification #

  • Refuted: the median is above 1,000; or any run ends with a wrong or missing prediction; or the renamed runs (below) give different numbers.
  • Revised: the median is between 100 and 1,000.

Checks that the harness is sound #

  • It is not using the symbols' names. Runs 0 to 9 are repeated with every symbol replaced by a random letter, so the gap is no longer "0". Every counted number must be identical.
  • The fast way changes nothing. Once its guesses have settled, the code searches with arrays of numbered boards (NumPy) and not one board at a time. Runs 0 to 9 are repeated the plain way, under PyPy, and must give identical numbers. This also checks the interpreter.
  • It is never wrong. A wrong prediction means a bug or a broken assumption, and is reported as such.
  • The ruler is separate. Shortest routes come from a search under the true rules, which no agent sees.
  • The core knows no world. A test checks that nothing in core/ imports the world or names anything in it.

Speed #

Built to be fast from the start (docs/experiments.md, "Speed"): the main run uses the array search on 8 processes and prints its progress. The plain search is kept as the reference and checked on runs 0 to 9.

Delivery order #

  1. The core: guesses, the plain search, the agent, with tests on a hand-made world.
  2. The array search, checked against the plain one.
  3. The run script, the renamed world, and one timed run.
  4. The full run, the checks, and RESULT.md.

Amendments #

2026-11-23, after the run and the independent review. Nothing about the question, the measure or the pass mark changes. This corrects one statement.

The plan says its list of five is everything the agent is handed. It is not. The agent is also given:

  • that every symbol appears exactly once on a board;
  • that the first board it sees shows every symbol there will ever be;
  • that the same press always has the same result, and nothing is hidden;
  • the buttons, and the order they are numbered in;
  • the target board;
  • the rule it plays by: go to the target if it can predict a route, otherwise to the nearest thing it cannot predict.

The reviewer found these by reading the code. Every result was already known when this note was written.