The sealed test

Spec · File revision First recorded spec · 24 November 2026
  • Hypothesis: exploration
  • Tier: the test for checkpoint 3. The agent is frozen at 001-25; a practice run on practice worlds checks the harness first
  • Date: 2026-11-24

Question #

Does the agent frozen at 001-25, unchanged, learn most worlds that nobody has looked at, including worlds made so that each of its newer rules is wrong? And what does each of those rules cost where it is wrong, and give where it is right?

Why now #

Every rule from 001-14 to 001-25 was added because it helped Taxi or the 8-puzzle. On 2026-11-24 Manny asked whether we were changing the agent to make it pass. We agreed to freeze it, and to make checkpoint 3 a sealed test with worlds where each rule is wrong, before adding anything more (ROADMAP.md, "Planned"). 001-09's pilot had 60 ordinary worlds; Manny asked for several hundred.

Setup #

World-generator version 1 (code/sealed_worlds.py). 18 cells in four families; 30 worlds a cell, 540 in all. Every world is a row of slots and a few unnamed buttons, closed and fully visible, with exact answers by listing its boards.

Family Cell A world Why it is here
Ordinary Version 0's seven cells As in 001-09: step, wrap, together, swap, copy, set, with 0 to 2 conditions; the hard cell's odd count The worlds the agent was already run on, from fresh seeds
Where a rule is wrong Rings Sliding: a gap swapping with a neighbour, on a ring of 4 to 7 slots, or a 2 by 3 or 3 by 2 grid whose columns or rows wrap Closing the map (001-23) says a button does nothing where its line ends; on a ring the line goes on
One-way doors The walker and parcel below, with 1 to 3 doors that open one way only. The walker can still get everywhere and back Undoing (001-14) takes a reverse for granted; blocked both ways (001-18) says a way blocked one way is blocked the other
Buttons whose order matters Sliding tiles on a grid with one or two steps rewired to a far slot, and the reverse step with it Lines of slots (001-22) fills in a step from squares that close; through a rewired step they do not
Successes by coincidence Version 0's effects; each button needs three things, or nothing; in 80% of starts one or two slots hold a home symbol, so successes share things by chance Coincidence at success (001-17) lines slots up from what holds when a button works; two successes (001-25) trusts two; the check looks one size up
False simplest explanations Version 0's effects; each button does its thing unless two things both hold, a rare exception Compact first (001-15) takes the explanation that needed the fewest cases
Beyond our menu Whole-row moves Rotate the row, reverse it, or shift it along with a symbol coming in; 0 or 1 condition Neither our worlds nor version 0 have them
Arithmetic Add one slot's place in the order to another; step back; a counter with a carry Order and counting, which the agent is not given
Comparisons Conditions "earlier in the order than"; "take the later of two"; "put two in order" The same
Toggles 2 symbols, 3 to 6 slots; each button flips 1 to 3 slots; 0 or 1 condition Several slots changing at once, going round
Cousins of our worlds Sliding tiles A gap on a grid of 1 by 4, 1 by 5, 1 by 6, 2 by 2, 2 by 3 or 3 by 2 The 8-puzzle's kind, other sizes
Walker and parcel Taxi's kind: 3 or 4 by 3 or 4 squares, walls (both ways) at random, 2 or 3 spots, seven slots as in Taxi, pick up and drop off Taxi's kind, other sizes and walls
  • Presentation. Sliding worlds: tiles all different, or of 2 or 3 kinds, half and half; the slots and buttons listed in a random order. Walker worlds: marks shared, as in Taxi as built, or each slot its own, half and half; slots and buttons in a random order. Rule worlds list slots as drawn, as version 0 does.
  • Sizes. Rule worlds as version 0: 3 to 5 slots (toggles 3 to 6), 2 to 4 symbols (toggles 2), 2 to 4 buttons, at most 1,024 boards. Sliding and walker worlds at most 5,040 boards.
  • Filters, version 0's, and also: a button's conditions together always or never true; an exception that never matters; no button that needs three things; a walker that cannot get everywhere and back; tiles all alike.
  • Duplicates are removed by behaviour, as in version 0. Sliding worlds have only six shapes a cell, so two that differ only in names count as one, but the order the slots are listed in counts. Walker worlds that differ only in names or orders count as one.
  • Problems, as 001-09: 30 per world, even ones reachable, odd ones any board, so some are impossible. Starts come from the world (with the home bias in coincidence worlds). After the 30, more follow until every prediction is right, or 300 problems, or 100,000 presses. A budget of 20,000 presses a problem.

Seeds. Sealed: 30 worlds a cell from seed 100,000, in every cell. Version 0's cells use version 0's own generator, which has only ever been drawn below seed 4,100. Practice: from seed 1,000 (for version 0's cells, 001-09's pilot worlds). Nobody opens a sealed world before the run: this plan, the generator and the pass mark are committed first, and no world from seed 100,000 up is drawn until then.

Agents, each a fresh copy per world, on the same problems:

Agent What it is
The agent Frozen at 001-25: Agent(fast=False), as in every generated-world pilot
Without each rule The same with one rule from 001-14 to 001-25 switched off: undoing (001-14), compact first (001-15), coincidence at success (001-17), blocked both ways (001-18), doubt what blocks (001-19), undo after 2 (001-21, back to 3), lines of slots (001-22), closing the map (001-23), the map first (001-24), two successes (001-25). A rule another needs takes it with it, as the core sets out
None of the rules All ten off: in effect 001-13's agent
Memoriser As in 001-09
Floors An agent handed the rules; random pressing

Metric #

Per world, as 001-09: whether it is learned (every prediction right, for every button on every board the problems can reach, within the limits); presses to learn; wrong predictions, and how many came from compact first and from the map; wrong "impossible"s, judged from where the agent stood; stranded; problems right; the share of predictions right at the end; seconds.

Checkpoint 3's pass mark, frozen now: the frozen agent learns at least 80% of the 540 sealed worlds (432), and more than half of the worlds in each of the four families. "Most" is read as 80%, the bar 001-09 set for ordinary worlds. Reported beside it, not part of the mark: wrong "impossible"s, wrong predictions, and the memoriser and "none of the rules" on the same worlds.

What each rule costs where it is wrong: the frozen agent against the agent without that rule, in the cell made for it to be wrong and over every other cell: worlds learned, wrong predictions, wrong "impossible"s, and the median ratio of presses to learn where both learned.

What we expect, written before any run, practice included:

Expected
Ordinary At least 90% learned, as 69 of 70 in the last pilot
Rings Closing the map wrong in most ring worlds; 50% to 90% learned; without closing, more learned
One-way doors Blocked both ways wrongly says "impossible" in some worlds, 3 to 15 of 30; without it, fewer
Buttons whose order matters The map wrong in some worlds; at least 80% learned
Successes by coincidence 70% to 95% learned; a wrong "impossible" in a few; without two successes, more
False simplest explanations Compact first wrong in most worlds; at least 80% learned
Beyond our menu Toggles at least 90%; whole-row moves, arithmetic and comparisons 60% to 90%
Cousins Sliding tiles at least 95%; walker and parcel at least 90%
Overall 80% to 90% learned: checkpoint 3 passes, narrowly. A wrong "impossible" in at least one world, most likely with one-way doors
The memoriser Fewer worlds learned than the agent in every family
None of the rules Fewer presses than the agent nowhere much; more worlds learned in rings and one-way doors

Known in advance #

  • The menu is still ours. The second and third families widen it and were chosen to hurt, but what hurts is our guess. This tests generality within a menu we wrote, wider than 001-09's.
  • Few shapes for sliding worlds. Many are the same shape with other names, tiles and slot orders. The result reports by shape as well.
  • The rules were chosen on Taxi and the 8-puzzle, so the cousins are where they should do best. That family is reported apart for that reason.
  • The agent here is the slow version (fast=False), as in every generated-world pilot; the fast arrays change thinking time, not what is counted.
  • A crash of the harness on a sealed world is fixed as a bug, by dated amendment, and the world rerun. A crash in the core is a finding, and counts as not learned.

Checks that the harness is sound #

In code/tests/test_sealed.py, run before this plan was committed (208 tests with the core's, all passing):

  • the core, version 0 and the memoriser are 001-25's, byte for byte; the core never sees the generator;
  • every new effect and condition, by hand; rings go round; rewired grids keep their lines and reverses but break a square; a one-way door opens one way and a wall blocks both; the walker carries the parcel as Taxi's taxi does;
  • the same seed gives the same world and problems; practice worlds pass every filter and stay small; the exact answers agree with stepping through the rules;
  • each agent without a rule differs from the frozen one only in that rule's switches; "impossible" is judged from where the agent stood; a run is the same twice.

Delivery order #

  1. The generator, the harness and their tests (done before this plan is committed).
  2. This plan, committed: the seal.
  3. A practice run, 3 worlds a cell from seed 1,000, to check the harness and time it. Its numbers go in PILOT.md and are not evidence. After it, only bugs in the harness may be fixed, by dated amendment.
  4. The sealed run: pypy3 sealed_run.py, from code/.
  5. An independent review.
  6. RESULT.md.

What fails here guides the next experiments. They are built on practice worlds, Taxi and the 8-puzzle's pilot seeds, and checked on a second sealed set, from seed 200,000, which this plan reserves.