m@berryhill: ~/berryhill.dev/posts/a-world-model-is-an-executable-hypothesis.md
~ homeposts/about.md
m@berryhill in ~/posts$ cat a-world-model-is-an-executable-hypothesis.md
---
title:  A World Model Is an Executable Hypothesis
date:   2026-08-17
topic:  AI Agents
read:   7 min
words:  1,631
slug:   a-world-model-is-an-executable-hypothesis
views:  live post
tags:   [AI Agents, World Models, Agent Architecture, Evaluation, Operator Notes]
---
essay · long read

A World Model Is an Executable Hypothesis

A test-time world model should earn authority through replay, bounded action, and immediate revocation when reality produces a counterexample.

table of contents
  1. The world model is not the world
  2. Replay is an authority gate
  3. What I would test in production agents
  4. The hard part may be the goal

A simulator is useful only if reality gets to reject it.

That is the part of agent planning we keep skipping.

We ask a model to predict what a tool call will do. We ask it to imagine a workflow, estimate the next state, or write a plan. Then we treat the fluent prediction as if it were a tested model of the environment.

It is not. It is a hypothesis.

A recent preprint, Twin: Playing an Unknown Game with a Test-Time Digital Twin, makes that distinction concrete. The system uses a coding agent to write an executable model of an unfamiliar game while it is playing. Before the harness allows another real action, the model must reproduce every transition the agent has already observed.

If one prediction is wrong, the twin is rejected and repaired.

That gives us a stronger operator rule than “simulate before acting”:

Build an executable hypothesis. Force it to explain the evidence. Let every mismatch revoke its authority.

The world model is not the world

Twin operates on ARC-AGI-3 grid games. The controls and win condition are hidden. The agent has to learn both how the game changes and what counts as success through interaction.

The paper's loop has a useful asymmetry:

  • Environment dynamics can be checked against every observed transition.
  • The hidden goal often cannot be confirmed until the system actually reaches it.

So the agent maintains two different kinds of claims.

The transition function is a testable program: given this state and this action, predict the next state. The goal is a hypothesis: this reachable state might count as winning.

Those claims should not receive the same authority. One can accumulate replay evidence. The other may still require exploration.

The falsifiable world-model loopObserve, write, replay, plan, execute, and repair form a closed loop. The validation gate blocks action whenever the model cannot reproduce the accumulated transition log.A world model earns authority by surviving replay1 · OBSERVELog state → action→ result2 · WRITEEncode rulesas a program3 · REPLAYReproducethe whole log4 · PLANSearch insidethe model5 · EXECUTECommit onechecked action6 · REPAIRTurn mismatchinto evidencemismatch revokes the model and sends it back for repairNO CLEAN REPLAY · NO AUTHORITY TO PLAN
Planning is downstream of validation. A counterexample is not an inconvenient result; it is a reason to revoke the current model.

This diagram abstracts the control principle rather than reproducing the paper's full algorithm. Twin's actual harness also has an Explore routine that either ranks dynamics-repair targets or proposes reachable goal candidates before Plan runs.

Replay is an authority gate

The important design choice is not that Twin has a simulator. Plenty of systems simulate.

The important choice is that the harness—not the language model—enforces the condition for acting. The paper requires the twin to match the complete observed transition history before a real move is submitted. Planning runs inside the validated program. Execution then proceeds one action at a time, comparing prediction with observation.

That separation matters.

The model can propose code. It cannot declare its own code trustworthy. Trust comes from a mechanical replay test over external evidence.

The authors report that 92.9% of Twin's scored actions followed routes already tested in its simulator. On the preprint's 25-game, 183-level ARC-AGI-3 public-set evaluation, the direct base model scored 7.8, the same model in the harness-disabled Codex configuration scored 61.1, and the full Twin harness scored 93.3 out of 100. Twin cleared 179 of 183 levels across 23 of the 25 games.

These are author-reported preprint results from one scored run per game, not evidence from a production deployment or a repeated-trials estimate. The hosted model exposed no random seed, so the paper says its exact token sequences are not reproducible, although it publishes the action histories and hash-committed predictions. Across the 25 runs, Twin consumed 2.60 billion processed tokens and 91.4 hours of wall-clock inference. The benchmark environments are small discrete grid worlds with four to six available actions and dynamics that the method assumes are deterministic and program-representable.

The practical lesson is architectural, not “put a digital twin in every agent.”

What I would test in production agents

The preprint does not evaluate coding agents, workflow agents, APIs, deployments, human intervention, or irreversible actions. The following is an operational extrapolation, not a result established by the benchmark.

Production environments can include changing APIs, variable permissions, human intervention, hidden state, stochastic transitions, and irreversible actions—the conditions Twin largely excludes. My proposed transferable principle is therefore narrower: make the agent's operating assumptions explicit, executable where possible, and continuously falsifiable.

For a coding agent, the model might predict:

  • which tests should fail before a patch;
  • which files and interfaces the patch should affect;
  • which observable state should change after deployment;
  • which rollback should restore the prior state.

For a workflow agent, it might predict:

  • the next allowed state transition;
  • the expected API response and side effects;
  • which fields should remain invariant;
  • what evidence would prove the action failed.

The point is not perfect foresight. The point is to make wrong expectations inspectable before they compound.

The following authority ladder is my proposed operating policy; it was not evaluated in the Twin experiments.

World-model authority ladderAuthority increases from narrative prediction to executable model to replay-validated model. Any live mismatch immediately revokes authority and routes the system to repair.Give the model only the authority its evidence supports1Narrative predictionMay suggest what to inspect. Cannot authorize an external action.2Executable modelMay support local search. Still untrusted until checked against evidence.3Replay-validated modelMay authorize one bounded, observable, reversible action.!Live mismatchHalt. Record the counterexample. Revoke authority. Repair and replay.AUTHORITY IS TEMPORARY · COUNTEREVIDENCE WINS
A model should not graduate from plausible to operational because it sounds complete. Authority comes from evidence and disappears when the evidence stops matching.

The hard part may be the goal

Twin's most interesting result is not only that the full validate–explore–plan harness outscored its harness-disabled ablation. The authors argue that, within these games, learning how the world behaves was easier than inferring what winning meant.

That should sound familiar.

In production work, a useful failure mode to check is objective error rather than transition error. The agent can call the API, modify the record, or complete the workflow exactly as modeled. It still optimizes the wrong objective.

A reliable world model cannot rescue an unverified goal.

That leaves two separate acceptance questions:

  1. Dynamics: Does the model predict what this action will do?
  2. Objective: Is the target state actually the outcome we want?

The first can often be tested with replay, dry runs, fixtures, or shadow traffic. The second needs an acceptance contract: who defines success, which evidence counts, what side effects are forbidden, and when the system must abstain.

This is where “agent planning” becomes an operating discipline.

Before a consequential action, I want the agent to show me four things:

  • the executable assumptions behind its prediction;
  • the observations those assumptions already explain;
  • the bounded action it wants to take next;
  • the exact counterevidence that will stop the plan.

If it cannot name evidence that would change or revoke the plan, then—under this operating policy—it has not earned production authority. It still has a hypothesis, but not one the harness can mechanically challenge.

And stories should not get production authority.

m@berryhill in ~/posts$
$ cd ../ · back to posts/