The Agent That Imagines First

Inside the framework that lets AI agents imagine before they act.

World Models · AI Agents · Neurosymbolic AI · Software Engineering
World Models for Work: Every Project Is an Environment
The most important shift in AI research right now has nothing to do with bigger models. It has to do with how an agent understands where it is.
2026

For most of computing's history, software has been reactive. A program receives an input, processes it, and produces an output. When researchers began building systems that could learn rather than just execute, they kept that same structure: observe the current state, pick an action, receive a reward, adjust. The approach worked in narrow settings and collapsed in complex ones, for a reason that is almost embarrassingly simple. A reactive system has no way to consider consequences before it acts. It cannot ask what will happen if it takes a move before it takes it. It cannot distinguish between an action that looks good now and one that sets up a catastrophic outcome three steps later.

The solution is called a world model: a learned internal simulator that captures enough of an environment's structure to let an agent predict what its next state will look like given any candidate action. Rather than acting and observing, an agent with a world model imagines a sequence of moves, evaluates where each one leads, and selects the best path before committing to any of it. This is not an incremental improvement on reactive systems. It is a different cognitive architecture entirely, one that makes planning possible rather than merely fast.

The Dreamer architecture made the concept concrete. Its Recurrent State-Space Model splits a latent representation into a deterministic component carrying the agent's running memory and a stochastic component encoding uncertainty from the latest observation. Dreamer trains an actor-critic policy almost entirely on imagined rollouts generated inside that model, and its most recent version generalizes across continuous control, visual challenges, and sparse-reward environments including Minecraft diamond collection, without per-domain adjustment. The environment changes. The architecture holds.

01 Reactive agent vs. world model agent
A reactive agent collapses observation into action with no knowledge of what follows. A world model agent runs imagined simulations before committing to any move. The cognitive architecture differs entirely, not just in speed.
Reactive agent World model agent Observe Current state only Act immediately No lookahead Environment reacts Outcome unknown until after No foresight Observe Current state encoded Simulate candidates Imagined rollouts, latent space Select best action Highest predicted reward Planned action
I. Formalizing the workspace

The standard formalism for sequential decision-making is the Markov Decision Process: a structure of states, available actions, a transition function describing how actions move an agent between states, and a reward signal. When the agent cannot see the full state directly, the problem becomes a Partially Observable MDP, and the agent maintains a belief state, a running probabilistic estimate of where it actually is, updated continuously as new information arrives. This vocabulary is precise and general enough to describe almost any task that unfolds across steps where the current situation shapes what future steps are possible.

Applied to work, the MDP formalism stops being a metaphor and becomes a specification. A software repository is a state. Running a test suite is an action. A passing suite is a reward. The transition function is the interpreter. These are not analogies drawn after the fact. They are how modern software-agent research literally constructs its training problems, packaging real repository issues as executable environments with test suites as objective verifiers. The framing scales. A compliance workflow has states, permitted actions, hard constraints, and a verifiable endpoint. A customer resolution pipeline has the same structure. Wherever a task unfolds across steps and where one action changes the conditions for every subsequent one, the MDP vocabulary applies.

CRMArena-Pro makes the industrial version of this concrete. It models twenty-five interconnected Salesforce objects across more than eighty thousand records, with nineteen tasks spanning database queries, textual reasoning, workflow execution, and policy compliance. It is a benchmark, but more than that it is a demonstration that enterprise work is already being formalized as a navigable environment at production scale. The conceptual move from project management to environment design is not a distant aspiration. It is happening now, in production systems, with verifiable reward functions.

02 Every project as a formal environment
The same four-component MDP structure maps onto both a software repository and an enterprise workflow. The formalism is a precise specification for building agent environments, not a theoretical convenience.
MDP CONCEPT SOFTWARE ENTERPRISE State Where the agent is Repository snapshot Files, test results, open issues Case record Open fields, status, history Action What agent can do Edit file, run tests Read logs, submit a patch Update field Escalate, route, resolve Reward Signal for right outcome Test suite passes Verifiable, binary, honest Policy satisfied Constraint checked, logged Transition How actions change state Python interpreter Execution engine is the model Workflow engine Rules, approvals, triggers Any task with states, actions, and a verifiable outcome is a formal environment
II. Imagination as infrastructure

The payoff of a world model is foresight before commitment. In professional settings, real actions are expensive or irreversible. Shipping a patch, modifying a production database, sending a customer-facing message: each one changes the environment in ways that cannot always be undone. An agent that can simulate the downstream consequences of a proposed action before taking it is structurally safer to deploy than one that cannot, not because it is more careful but because it has access to information that a reactive system never sees.

The evidence that model-based planning outperforms reactive execution is now quantitative and consistent. A web-agent system that simulates candidate actions in natural language before selecting one lifted task success on VisualWebArena from a 17.6 percent reactive baseline to 23.6 percent, a 34 percent relative gain, and produced a 42 percent relative improvement on Online-Mind2Web. The agent's visible behavior was identical. The structural difference was a thinking step inserted before action, invisible from the outside and decisive in the results.

A 32-billion-parameter code model trained on execution traces from Python interpreters and agentic Docker environments, learning what code does when it runs rather than what it looks like, reached 65.8 percent on SWE-bench Verified with test-time scaling. Probing experiments on such agents find that properties of a program's current and future state are linearly decodable from the model's hidden activations across dozens of editing steps. The world model is not an add-on. It is already present in the architecture, implicit in the representations the agent builds as it works.

World model agent planning in latent space

A world model agent planning in latent space before committing to action. The internal simulation runs thousands of imagined trajectories in milliseconds, evaluating consequences the real environment will never see until the best path is chosen. Daice Labs / 2026.

III. Where symbols come back in

Neural world models fail at exactly the things structured work demands most: logical consistency, rule compliance, formal guarantees. A network trained to predict code execution has no built-in concept of type safety. One trained to navigate a compliance workflow does not know that a particular action violates a specific clause in a specific document. It has learned statistical associations, and those associations can fail in ways that are both difficult to detect and impossible to audit. For work that touches real consequences, that is not a tolerable failure mode.

Neurosymbolic AI addresses it by pairing neural pattern recognition with symbolic reasoning engines. A frequently cited taxonomy in the research literature organizes integration strategies from simple lookup through co-training to full hybrid inference. The practical pattern that has emerged routes a neural system's output through a formal verifier before any action is taken. The neural component handles context and candidate generation. The symbolic component checks those candidates against hard constraints encoded in logic, schemas, or formal specifications. The system acts only when the verifier clears the proposal. This is the only known architecture that captures both the flexibility of learned representations and the reliability of formal reasoning in the same pipeline.

A commercial cloud guardrail built on automated reasoning reports exceeding 99 percent soundness with a near-zero false-positive rate on natural-language policy verification. The neural system identifies the relevant clause. The symbolic engine checks whether the proposed action satisfies it. The two components are doing categorically different kinds of work, and the boundary between them is not an implementation detail. It is the structural feature that makes the system auditable, correctable, and safe to run in environments where an error carries real cost.

IV. The architecture of navigable work

Three principles emerge consistently when the world-model framing is applied to real projects. The first is hierarchy. Long-horizon tasks become unmanageable if handled as a flat sequence of decisions. The solution, formalized as a Semi-Markov Decision Process, is to decompose a task into subtasks each with its own local state space, action set, and verifiable endpoint. The agent navigates a hierarchy rather than the raw task, and the cognitive load at each level stays tractable. A coding agent does not plan an entire refactor at once. It plans the next file, then the function, then the test, recursively, and the architecture makes that recursion natural rather than forced.

The second principle is modularity. If subtasks are defined with clean interfaces, the sub-policies that solve them become reusable across projects. An agent that has learned to navigate a class of repository, diagnose a class of error, or satisfy a class of constraint does not relearn those skills for each new task. The skill is extracted, stored, and retrieved, which is exactly what functions, modules, and libraries have always done in software engineering. The boundary between learned agent behavior and conventional software architecture is dissolving, and what remains is a shared design vocabulary.

The third principle is that the environment must be built before the agent can benefit from any of this. The Voyager agent, running inside Minecraft, accumulates an indexed library of executable skills across a long-horizon task, each stored with verifiable preconditions and effects and available to future instances. The agent compounds: each successful navigation makes the next cheaper. That is not a property of the model. It is a property of the environment design. And it points to where the real engineering work now sits, not in the model, not in the training procedure, but in the faithful construction of environments with honest verifiers, clean state representations, and reward signals that cannot be gamed. Get that right, and everything else follows.

03 Neurosymbolic planning loop
A neural world model generates and ranks candidate actions. A symbolic verifier checks each one before anything reaches the real environment. Outcomes feed back to update the model. The reject path is the system working correctly.
NEURAL LAYER Observe environment Encode state into latent space World model Simulate candidate actions Candidate actions Ranked by predicted reward SYMBOLIC LAYER Symbolic verifier Check against rules and schemas Reject Approve Act on environment Only verified actions execute Outcome updates model

Key references: Hafner, D. et al., "Mastering Diverse Domains through World Models" (DreamerV3), arXiv, 2023. Schrittwieser, J. et al., "Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model" (MuZero), Nature 588, 2020. LeCun, Y., "A Path Towards Autonomous Machine Intelligence," Meta AI, 2022. V-JEPA 2 Technical Report, Meta AI, 2025. Koh, J.Y. et al., "Is Your LLM Secretly a World Model of the Internet?", TMLR, 2024. CWM: "An Open-Weights LLM for Research on Code Generation with World Models," arXiv 2510.02387, 2025. SWE-bench: Jimenez, C. et al., arXiv 2310.06770, 2023. CRMArena-Pro benchmark documentation, 2025. Kambhampati, S. et al., neurosymbolic integration taxonomy, 2022. Garbervetsky, D. et al., automated reasoning for policy verification, AWS, 2023. Wang, G. et al., "Voyager: An Open-Ended Embodied Agent with Large Language Models," arXiv, 2023.