Diagrid

The Evolution of Agentic Execution

Seven stages, from the 1950s to now. Each stage added one thing the stage before it could not do — and only the last one survives the process running it.

Mark Fussell

By Mark Fussell, co-founder and CEO of Diagrid.

Pixel-art scene reading left to right: a lumbering robotic dinosaur among mountains, a man walking while reading an open laptop, and an autonomous drone above a city skyline.

These are stages, not eras. The decades overlap: Unix event loops were maturing while Windows GUIs shipped, and games stayed stateful throughout. The sequence is architectural, not chronological — each stage adds a capability the one before it lacked.

What each stage added

  • reactive
  • stateful
  • asynchronous
  • goal-oriented
  • probabilistic
  • durable

The seven stages

(Go to chapters)
  1. STAGE 1 · 1950s–1970s

    The procedural program

    The developer owns the control flow

    A deterministic, readable order of operations

    Could not react to anything it did not schedule itself

    Read chapter 1
  2. STAGE 2 · 1980s–1990s

    The Windows message loop

    The operating system owns the control flow

    Long-lived, reactive processes

    Could not advance without an incoming message

    Read chapter 2
  3. STAGE 3 · 1990s

    The game loop

    The application owns the control flow, continuously

    Continuously evolving state, carried forward

    Could not survive the process — the world lived in memory

    Read chapter 3
  4. STAGE 4 · 1980s–2000s

    The Unix & Linux event loop

    The kernel owns readiness — select, poll, epoll

    Efficient waiting across many sources of work

    Could not wait longer than the process lived

    Read chapter 4
  5. STAGE 5 · 2010s–2020s

    The Kubernetes control loop

    The controller owns it, driven by declared intent

    Continuous reconciliation toward an outcome

    Could not choose a novel next action — the logic is written by a developer

    Read chapter 5
  6. STAGE 6 · 2020s

    The agent loop

    The model owns it, one decision at a time

    A dynamic, probabilistic next action

    Could not survive the process running it

    Read chapter 6
  7. STAGE 7 · 2020s onward

    Agentic durable execution

    The durable agent loop

    A durable runtime owns it, independent of any process

    Logical execution that outlives process, container and machine

    The question changes: not how do I keep this loop alive, but how does this task continue correctly wherever it runs next

    Read chapter 7

Definitions

Software loop
A program structure that keeps running, repeatedly checking for new input or new state and deciding what to do next, instead of executing a fixed sequence once and exiting.
Message loop (message pump)
The `while (GetMessage(...))` cycle at the heart of a classic Windows GUI application. It keeps the application alive while the operating system delivers mouse clicks, key presses, resize events, repaint requests, timers and shutdown notifications, and dispatches each into a handler.
Game loop
A continuous cycle - process input, update the world, render - that advances on every iteration whether or not the player acts, and carries a model of the world forward from one iteration to the next.
Event loop
A cycle in which a process waits for the runtime to report which sources of work are ready, handles those, and returns to waiting. Unix provided `select` then `poll`; Linux added `epoll` in the early 2000s.
Control loop (reconciliation loop)
A loop that continuously compares desired state with actual state and acts to close the gap. It has no final step: it is outcome-oriented rather than path-oriented.
Agent loop
The cycle at the core of most AI agent frameworks: observe the current context, reason about what to do next, choose an action, execute it, observe the result, update the context, repeat until the goal is judged complete. It is the layer of an AI agent architecture where control actually lives, and it is what people are asking about when they ask how do AI agents work.
Stateful AI agents
Agents whose behaviour depends on context accumulated across iterations rather than on a single prompt. AI agent state management is the operational half of that: deciding where the accumulated context lives, and whether it survives the process holding it.
Durable execution
An execution model in which the logical progress of a task is persisted outside the process running it, so the task can be suspended, recovered and continued - correctly, without repeating completed side effects - after a crash, restart or redeployment. A durable execution engine is the runtime that provides it, and the AI agent execution guarantees it offers - deterministic replay, exactly-once handling of side effects, crash recovery that resumes rather than restarts - are what distinguish it from persistence alone.
Agentic durable execution
Durable execution applied to the dynamic, probabilistic execution model of AI agents, where the path through the work emerges as the agent reasons, acts, waits, retries and changes direction.
Checkpointing
Periodically persisting state so it can be reloaded. Necessary but not sufficient: checkpointing alone does not provide failure detection, and does not guarantee correct recovery around external side effects or ambiguous failure boundaries.

Frequently asked questions

  • See also: What is the difference between checkpointing and durable execution? · Is checkpointing enough for production AI agents?

All seven chapters

Stage 7 isn't a prediction. Diagrid Catalyst runs it today for applications, agents and MCP servers — and the free tier costs nothing to prove it to yourself.