Skip to content
Adrian Mircea Nenu computo, ergo sum
← Blog
ai agents distributed systems

Could Actor Systems Be All We Need for Agentic AI Workflows?

It seems to me that agentic AI is converging on a set of principles that distributed systems engineers formalised decades ago in the actor model. Born from Carl Hewitt’s 1973 paper, A Universal Modular ACTOR Formalism for Artificial Intelligence, it was even proposed for AI use over 50 years ago. The model has been battle-tested through Erlang, Akka and others, and already answers most questions that multi-agent AI frameworks are tackling from first principles:

These are also some of the backbone fundamentals of the telecom switches that reached five-nines availability decades ago. The theoretical research and success stories of actor systems could serve as a strong framework for the agentic AI space. For my own benefit, I want to go through a thought experiment of the overlap in requirements between agentic systems and actor systems, the advantages and disadvantages.

print("Let me unpack that.")

Agentic AI

Firstly, here are a few candidates for creating an agentic workflow programmatically, listed in no particular order. They all tackle our points above in one way or another:

  • The Agent Development Kit (ADK) from Google offers LLM agents for dynamic routing and workflow agents for predictable pipelines: sequential, loop, and parallel. Agents communicate through delegation in a hierarchy.
  • Microsoft’s Agents SDK provides a container framework with state, storage, and event management.
  • AWS introduced Strands Agents, another SDK for building tool-using autonomous agents.
  • Anthropic’s team published in 2024 a taxonomy distinguishing workflows (LLMs orchestrated through predefined code paths) from agents (LLMs that dynamically direct their own processes and tool usage), identifying patterns such as prompt chaining, routing, parallelisation, orchestrator-workers, and evaluator-optimiser loops.
  • OpenAI Agents SDK.
  • OpenClaw, an open-source assistant that runs on your own machine, takes its instructions from chat apps, and grows through skills and plugins.
  • LangChain and LangGraph.
  • Hugging Face 🤗 Agents SDK.
  • And many, many more.

Each of these frameworks has arrived at a similar set of abstractions for multi-agent orchestration and sub-agent supervision, prompt chaining, pipelines, routing, evaluations, and cross-agent communication.

The IBM Research paper Agentic AI Needs a Systems Theory by Miehling et al. (2025) also highlights this from first principles, defining agency through three conditions: 1) action generation, 2) an outcome model, and 3) adaptation. They push for a systems-theoretic perspective to encapsulate all these concepts:

We emphasize that a systems-level perspective is essential for better understanding, and purposefully shaping, agentic AI systems.

Erlang Was First to Market

Erlang, designed at Ericsson in the 1980s, and the design principles of its Open Telecom Platform (OTP), released in the 1990s, encode the separation of infrastructure from application-specific logic through behaviours, separating client-server patterns, state machines, event handling, and supervisors for fault tolerance.

The supervision tree is perhaps the most transferable concept. In Erlang, worker processes do the computation, and a supervisor monitors them, restarting them according to a strategy when they fail. The restart strategies (one_for_one, one_for_all, rest_for_one), for example, map well to what agentic systems need when an LLM call times out, a tool returns an error, or an agent hallucinates and needs to be reset.

As the Elixir community (based on Erlang) puts it, there is no actor keyword in Erlang or Elixir. Actors are referred to as spawned processes, sending messages, and receiving them with continuous loops that receive messages, execute corresponding code paths, update internal state, and repeat. Three interaction methods surface in the Elixir framework: calls (synchronous), casts (fire-and-forget), and raw message passing. To push our analogy to agentic systems: an agent calling a tool and waiting for a response is a call, an agent dispatching a task to a worker and moving on is a cast, and an agent broadcasting its state update to peers is raw message passing.

Maybe there is a chance for isomorphism between agentic AI and actor systems.

What Is an Actor?

An actor is the fundamental unit of computation in the actor model. It is a concurrent entity that encapsulates state, communicates exclusively through asynchronous messages, and can, upon receiving a message, do exactly three things: send a finite number of messages to other actors, create a finite number of new actors, and designate the behaviour to be used for the next message it receives. There is no shared memory and there are no locks, by design, so there are no data races. Messages can still arrive in different orders, though, so races between messages, and deadlocks between actors waiting on each other, remain possible.

Formally, an actor configuration \mathcal{C}^t at time t is a pair of the set of actors \mathcal{A}^t and the messages \mathcal{M}^t still waiting to be processed:

\mathcal{C}^t = \langle \mathcal{A}^t, \mathcal{M}^t \rangle

When actor a_i processes a message m from its mailbox, the transition yields its new state s_i^{t+1}, a finite set of outgoing messages, and possibly new actors:

a_i.\text{receive}(m) \longrightarrow \langle s_i^{t+1}, \; \{m'_1, m'_2, \ldots\}, \; \{a_{n+1}, \ldots\} \rangle

The actor model has no global clock, so t is best read as counting each actor’s own steps.

Every agentic AI framework we see today implements, at its core, a variation of this. But is it necessary to approach it as a novel problem that requires rediscovery of these techniques?

The Actor/Agent Parallel

We can define an agentic system akin to an actor configuration. An agent \alpha_i at step t maintains the state s_i^t (its context window, memory, and cumulative reasoning). It receives a message m^t (a user prompt, a tool result, or output from another agent). It produces:

\alpha_i.\text{step}(s_i^t, m^t) = \langle s_i^{t+1}, \; \mathcal{O}_i^t, \; \mathcal{T}_i^t \rangle

Where s_i^{t+1} is the updated state (new context), \mathcal{O}_i^t is the set of output messages (responses to users, messages to other agents), and \mathcal{T}_i^t is the set of tool invocations, which are messages to tool-actors that will return results as new messages. An agent that spawns sub-agents adds the last thing an actor can do, creating new actors.

A multi-agent orchestrator is then a supervisor \sigma whose behaviour is:

\sigma.\text{receive}(\text{task}) = \text{decompose}(\text{task}) \rightarrow \{(\alpha_j, \text{subtask}_j)\}_{j=1}^{k}

Followed by monitoring each agent for completion, failure, or timeout, applying a restart strategy \rho when needed:

\rho(\alpha_j, \text{failure}) \in \{\text{restart}, \; \text{escalate}, \; \text{skip}, \; \text{replace}\}

The decomposition is almost one-to-one with Anthropic’s orchestrator-workers pattern. The restart strategy is what the actor world adds: an Akka supervisor chooses to resume, restart, stop or escalate, and skipping a subtask or replacing the agent (with another model or another prompt) are the agentic additions.

Graph Neural Networks

This might seem out of the blue, but hear me out.

Consider Graph Neural Networks (GNNs), which have seen significant adoption for relational reasoning. The message-passing formulation of a GNN is:

h_v^{(l+1)} = \phi\left(h_v^{(l)}, \; \bigoplus_{u \in \mathcal{N}(v)} \psi\left(h_v^{(l)}, h_u^{(l)}, e_{uv}\right)\right)

Where h_v^{(l)} is the hidden state (memory) of node v at layer l, \mathcal{N}(v) is the set of its neighbours, \psi is the message function, \bigoplus is a permutation-invariant aggregation (sum, mean, max), and \phi is the update function.

Let’s have each node be an actor, with the actor’s state being the hidden state. It receives messages from neighbouring actors. It aggregates and updates its state. The GNN layer is one synchronous round of actor communication. Stack L layers, and you have L rounds of message passing. Google’s Pregel made this explicit for graph processing back in 2010: every vertex is a small program that receives messages, updates its value and sends messages on, in synchronous supersteps.

One difference to keep in mind is that a GNN applies the same learned \psi and \phi at every node and trains them end to end, while the agents in a system each run their own prompt and model, and nothing is trained across them.

When we extend this GNN analogy to agents, a multi-agent system is a dynamic graph where agents are nodes, communication channels are edges, and each layer is a reasoning step. The global readout of a GNN:

\hat{y} = R\left(\{h_v^{(L)} \mid v \in V\}\right)

Corresponds to the final aggregated output of the multi-agent system: the answer, the plan, the completed task.

Supervision Trees

To formalise this with math, consider n agents, each completing its task correctly with probability R_i, and assume for now that failures are independent and that a supervisor notices every failure.

If the agents are redundant, all attempting the same task, and any one success is enough (and we can tell which one succeeded), the probability that at least one of them succeeds is:

R_{\text{pool}} = 1 - \prod_{i=1}^{n}(1 - R_i)

A workflow is usually the opposite, though: a chain of different agents, where every step has to succeed:

R_{\text{chain}} = \prod_{i=1}^{n} R_i

Ten steps at R_i = 0.99 each already bring the chain down to about 0.90.

With supervision, where the supervisor restarts a failed agent up to k times, each step gets k + 1 attempts:

R_{\text{supervised}, i} = 1 - (1 - R_i)^{k+1}

An agent that succeeds 90% of the time, restarted up to twice, gets to 1 - 0.1^3 = 0.999.

In a hierarchical supervision tree of depth d, a supervisor that runs out of restarts fails in turn, and the supervisor above restarts it, which gives its whole subtree a fresh round of attempts. With k_l restarts allowed at level l, the worker gets \prod_{l=1}^{d}(k_l + 1) attempts in total:

R_{\text{system}} = 1 - (1 - R_i)^{\prod_{l=1}^{d}(k_l + 1)}

Those two assumptions carry most of the weight, and for LLM agents neither holds. First, a supervisor only restarts the failures it notices. If it notices a failed attempt with probability \delta, a wrong answer slips through the rest of the time, and with q = (1 - R_i)\,\delta:

R_{\text{supervised}, i} = R_i \, \frac{1 - q^{k+1}}{1 - q}

However many restarts we allow, this never goes past R_i / (1 - q). With R_i = 0.9 and a supervisor that catches 80% of failures, that ceiling is about 0.978, so the judge, not the retry budget, sets the limit.

Second, retries of the same agent aren’t independent. Jim Gray drew this line for computers in 1985, in Why Do Computers Stop and What Can Be Done About It?: restarting fixes the transient faults he called Heisenbugs, and does nothing for deterministic ones, which come back every time. Erlang’s supervisors lean on the same idea, and give up and escalate after too many restarts in a short time. An LLM agent has both kinds. A failure that comes from sampling may not repeat; one that comes from the prompt or from the limits of the model will.

Erlang systems are known for availability of five nines and beyond (Ericsson’s AXD301 switch is often quoted at nine). That is uptime, the share of time the service answers, rather than the chance that each answer is right, but if we want agentic AI systems handling workflows in enterprise, as Deloitte’s Agentic Design considerations report proposes, we will need guarantees in the same spirit.

Is the Wheel Being Reinvented?

Somewhat yes, in the sense that every agentic framework re-derives, from first principles, the abstractions that actor systems have: stateful nodes communicating via messages, hierarchical supervision, routing, and fault recovery strategies. The code book is different: agent instead of actor, tool call instead of message send, or guardrail instead of supervisor strategy.

Derouiche et al. (2025), in their survey of agentic AI frameworks, draw a similar line from the other direction. They compare agent protocols such as MCP (Model Context Protocol), A2A (Agent-to-Agent) and ANP (Agent Network Protocol), which exchange typed, discoverable messages over JSON-RPC or REST, and map the frameworks onto web-service standards: WSDL to JSON-schema function registration, BPEL to multi-agent orchestration workflows, and WS-Coordination to session management. To me, that reads like an actor messaging layer, built on standards about two decades old. (The survey calls them W3C standards; WSDL is one, while BPEL and WS-Coordination come from OASIS.)

The actor inside an agentic system is somewhat different from a traditional actor. For example, an Erlang process runs deterministic code. An LLM-based agent is stochastic, creative up to hallucination, and fallible in ways that deterministic actors are not. The message an LLM produces for the same input can differ each time: sampling at a temperature above zero makes it vary on purpose, and even at zero, the way requests are batched on a server can change it. The state transition function is a neural network with billions of parameters, not a pattern-matched function clause (rules). An effect of this is that a restart means something different. Restarting an Erlang process puts it back in a known, clean state, which clears transient faults; retrying an LLM agent draws a new sample, which may succeed, or fail the same way again. You need to reason about prompt engineering, temperature, context window management, and whether the failure was due to hallucination, tool misuse, or cognitive limitations of the model.

With stochasticity acknowledged, actor systems give us an architecture where the supervisor does not need to understand the internals of the worker to restart it. It only needs to understand the contract, the message types, the expected outputs, and the failure modes. This is the point of behaviour abstraction in actor systems. Define the contract, let the callback module handle the specifics, and allow the system to live, possibly indefinitely and self-sufficiently, in a self-healing manner.

What is additionally interesting about an actor system of LLMs is that the notion of failure might need to be reworked. In Erlang, failure would mean an actual crash, an error the actor cannot recover from, something technical, mechanistic. But for a chain of LLM agents, the failure can also be cognitive. Reasoning could collapse, and the way supervisors detect problems would need to account for such scenarios, perhaps through additional actors that do a health-check assessment of the progress being made.

What Should We Build?

Akka has already made the pivot, describing itself as a platform for building, running, and evaluating agentic systems.

If you are building agentic AI systems and you have not looked closely at the actor model, supervision trees, and OTP design principles, you might be missing out on a stable foundation to build upon. Stand on the shoulders of giants.

The architecture seems transferable to a T, and the reliability math carries over too, as long as we account for retries that aren’t independent and supervisors that don’t catch every failure. Only the actor behaviour inside the system has changed. And that is exactly the part we should be innovating on, the intelligence within the actor, the reasoning within the node, the LLM inside the machine, while allowing the battle-tested infrastructure to handle the rest.

Latest videos

YouTube