The world generator
- Hypothesis: exploration
- Tier: pilot (docs/experiments.md, "Pilot and confirmation")
- Date: 2026-11-23
Question #
Every idea so far was chosen while looking at the 8-puzzle and Taxi. Can we make small worlds with hidden rules, at random, that nobody has looked at, with the exact answers known for each? And how does today's agent, 001-08's core unchanged, do on them, against a memoriser?
Setup #
What a world is. The same shape as our two worlds:
- a row of slots, each holding one symbol from the world's alphabet;
- a few unnamed buttons, each with one hidden rule;
- problems: a start board and a target board, which may be impossible to reach.
This is version 0: small, fully visible, and the same press always does the same thing. So every answer can be computed exactly.
A rule is an effect, and up to two conditions that must all hold for it to happen. If they don't hold, the press does nothing, like a wall in Taxi.
| Effect | What it does | Like |
|---|---|---|
| Step | One slot moves to the next symbol in a hidden order of the alphabet, and stays put at the end | A taxi move, with an edge |
| Wrap | The same, but from the last symbol back to the first | Beyond our two worlds |
| Together | Two slots both step | Riding |
| Swap | Two slots exchange what they hold | A tile move |
| Copy | One slot takes what another holds | Beyond our two worlds |
| Set | One slot becomes a fixed symbol | Pick up, drop off |
| Condition | Holds when | Like |
|---|---|---|
| Holds | A given slot holds a given symbol | A wall at one column |
| Same | Two given slots hold the same symbol | The taxi on the passenger |
| Odd | An odd number of slots hold a given symbol | Nothing in our worlds; hard for our agent, on purpose |
Knobs, crossed into cells. Effects come from one of two families:
- moves: step, wrap, together;
- rearrangements: swap, copy, set.
Each family is crossed with 0, 1 or 2 conditions per rule, drawn from "holds" and "same". That gives six cells. A seventh, hard, cell gives every rule one "odd" condition and an effect from either family. Within each world: 3 to 5 slots, an alphabet of 2 to 4 symbols, at most 1,024 boards, and 2 to 4 buttons. Every choice is drawn evenly, with a world's seed.
Filters. A drawn world is thrown away and drawn again if:
- a button changes nothing on any board;
- two buttons do the same on every board;
- a condition is true on every board, or on none;
- the problems can reach fewer than 8 boards.
Duplicates are removed by behaviour: two worlds that do the same on every board, up to the order of the buttons, count as one. Duplicates up to renaming slots or symbols are not removed in this pilot.
Problems. 30 per world. Each starts on a random board. Half the targets are reachable boards chosen at random; the other half are any board, so some are impossible. Exact answers come from search under the true rules.
Rule cards. Every world prints as a card a person can read, such as "Button 2: if slots 1 and 3 hold the same symbol, slot 4 steps to its next symbol".
Agents, each a fresh copy per world, on the same 30 problems in order:
| Agent | What it is |
|---|---|
| 001-08's agent | The core as it stands, unchanged |
| Memoriser | Remembers each press; explores first |
| Handed the rules | Plays the shortest route; the floor for solving |
| Random pressing | The floor for learning |
Size. Pilot: 10 worlds per cell, 70 worlds, from seeds 1000 up.
Metric #
Per world, then the median per cell:
- Presses to learn: presses until every prediction is right, for every button on every board the problems can reach. For random pressing, until it has pressed every button on every such board.
- The agent's cost against the memoriser's: the ratio of their presses to learn.
- Wrong predictions, and wrong "impossible"s.
- Problems solved or called correctly, out of 30.
- Worlds learned within the budget of 20,000 presses a problem.
What we expect, written before any run.
- The generator: 70 worlds, each kept world passing every filter, in under a minute. Every answer from search agrees with stepping through the rules.
- Our agent, the six ordinary cells: it learns at least 80% of the worlds. In the median it needs no more than half the memoriser's presses. It is never wrong in worlds without conditions, and rarely wrong with them.
- Our agent, the hard cell: it learns fewer than half the worlds, or costs as much as the memoriser.
- Where it is weakest, beyond the hard cell: copy and set together, because they put repeated symbols on the board, and our agent finds a repeated symbol only at its first slot.
Known in advance #
- The menu is ours. It tests generality within what we wrote, not beyond.
- Version 0 only: closed, fully visible, and the same press always does the same thing.
- The pilot does not remove duplicates up to renaming, and has no shortcut detector yet. Both are planned for the confirmation version.
- The core is not tuned here. If it does badly, that is the finding.
Checks that the harness is sound #
- The same seed gives the same world, compared by a hash of every rule.
- The exact answers are right: reachability from search agrees with stepping through the rules on random problems; hand-worked worlds in the tests.
- The filters work: hand-made degenerate worlds are rejected.
- The agent never sees the rules: nothing in
core/imports the generator. - The core is 001-08's, byte for byte.
Delivery order #
- The generator, rule cards, exact answers and filters, with tests on hand-made worlds.
- The baselines and the run script.
- The pilot, and
PILOT.md.
Amendments #
2026-11-23, before the pilot, after a try-out of one world per cell. Three fixes to the measures. Nothing about the question or the worlds changes.
- "Impossible" is judged from where the agent stood. Many generated worlds have one-way moves: "step" stops at the last symbol, and nothing steps back. Exploring can carry an agent to a board from which the target can no longer be reached. Saying "impossible" there is right from where it stands, so it is counted as stranded, apart from a wrong "impossible". The try-out had scored the memoriser, which cannot be wrong, as wrong seven times.
- Play goes on until learned. Thirty problems often never carry an agent to every board the problems can reach. So after the 30 scored problems, more follow from the world's seed, the same for every agent, until every prediction is right or 300 problems or 100,000 presses have been played.
- A second measure: the share of predictions right at the end. In a one-way world some presses can be tried only from a board that cannot be returned to, so a memoriser may never learn them. The ratio of presses to learn is reported only where both agents learned, and the share right at the end for every world.