L2 · L3 Survey · Benchmark · Agent Method →

Make the world executable.

Program World Model is an open research program studying worlds written as code — where rules can be inspected, state persists out of view, and every action leaves a trace another system can test.

Core research pillars

⌘ Executable Rules ◈ Persistent State ⇄ Counterfactual Twin Pairs ◎ Engine-Verified Readout ⬡ Code × Neural Hybrid { } Agent World Synthesis

Program World Model

Exploring executable world modeling across three workstreams — a comprehensive field survey (live), plus an evaluation benchmark and modeling method currently in progress.

01 · Live

The Survey & Catalogue

A structured field map organized around the locus of world dynamics: hand-written, predicted, programmatic, hybrid, or learned.

02 · In Progress

Evaluation Benchmark

Benchmarking executable world models. Currently in progress — task suite and evaluation details will be shared upon release.

03 · In Progress

Modeling Method

Methodology for building and verifying program world models. Currently in progress — technical details and code will be shared upon release.

A model becomes a world model
when its consequences can run again

Trigger actions against an explicit world state, compare rule interventions, or inspect how programmatic state separates dynamics from pixel rendering.

world_program.py Ready · Deterministic
def step(state, action):
    s = state.clone()
    if action == "pickup(brass_key)":
        s.has_key, s.key_on_floor = True, False
    elif action == "activate(iron_door)":
        # Gate rule: door only opens when key is held
        if s.has_key:
            s.door_open = not s.door_open
    elif action == "toggle(redstone_lamp)":
        s.lamp_on = not s.lamp_on
    elif action == "camera.pan(away)":
        s.camera_occluded = not s.camera_occluded
    s.tick += 1
    return s, render(s)
Latest call: s_0 = world.init()
t=00 Initialized explicit state s_0; iron_door locked.
State & Render st + render(st)
camera: room_view
🔑 Key: floor
🚪 Door: closed
💡 Lamp: off
{
  "tick": 0,
  "has_key": false,
  "door_open": false,
  "lamp_on": false,
  "camera": "room_view"
}

Find the authority
before naming the model

L0–L4 are not capability ranks or a chronological timeline — they locate who decides s_t+1. Our center of gravity sits at L2 (Code) and L3 (Hybrid).

L2 · Center of Gravity

Code World Model

Inspect L2 in 01 · Survey Atlas →
TRANSITION AUTHORITY

Executable world program (generated or maintained by an agent, executed deterministically by a runtime).

STATE & REPRESENTATIVE FAMILIES

Explicit world state + executable rules, procedures, and events.

WorldCoder Code World Model Programmable WM
STRENGTHS & TRADE-OFFS

✓ Interpretable, inspectable, persistent state, verifiable planning & counterfactuals.

✕ Inducing complex open-world dynamics purely from raw pixels remains challenging.

What does code
actually own in a world?

A rendered frame can look plausible while the next action starts from the wrong place. Drag the divider to compare pixel-only continuation with an executable program world.

Executable Program World (L2 / L3) State Persisted ✓
t = 04 Place 3 emeralds in chest chest.items = 3
t = 05..22 Turn 180° & explore hallway obs = occluded · state intact
t = 23 Return & open chest → 3 emeralds world.step() verified exact count
Plausible Pixels without Executable State State Drift ✕
t = 04 Place 3 emeralds in chest frame looks crisp (FVD low)
t = 05..22 Turn 180° & explore hallway context leaves attention window
t = 23 Return & open chest → empty / mutated no program ever stored consequence

Built around three
operational invariants

Rules that run

World laws are written as executable code rather than hidden exclusively inside black-box weights — inspectable, editable, and unit-testable.

State that persists

Objects, inventories, and scheduled timers continue evolving coherently even when the camera looks away for dozens of steps.

Observations that align

Visual rendering is grounded in authoritative program state so what an agent sees matches the world it can act upon next.

NEXT STATE = TEST

Build worlds that can answer back.

Start with our 265-paper Survey & L0–L4 System Matrix, or follow the open-source bibliography on GitHub.

git clone https://github.com/FreedomIntelligence/Awesome-Code-World-Model.git