The Trinity Is a Stress Test for Systems Thinking
A centuries-old argument about one being and three persons offers a sharp lens for how software represents identity, roles and authority.
The Trinity’s distinctions make a useful test for software models that confuse shared identity with separate roles. In production, define who shares state, who acts, and which authority each component actually holds.
A Hacker News question asks, “Into which trinitarian heresy hath ye fallen?” It is playful phrasing, but it points to a serious design habit: when a system has several distinct roles, people often reach for a simple story about what those roles are. The story can quietly dictate the architecture.
The classical Christian doctrine says one divine being exists as three persons. Historical labels such as modalism, tritheism and subordinationism mark different ways of mishandling that distinction. They are not interchangeable, and mapping them onto software is an analogy, not a theological argument. Yet the distinctions make a useful test for systems that must represent a whole and its parts without confusing identity, function and authority.
The trap in a tidy model
Software design repeatedly faces a similar question: when are several things different actors, and when are they different views of one actor? A customer support assistant may have a planner, a retrieval component and a response generator. Are these three agents, three functions in one agent, or three interfaces over shared state? The answer affects permissions, memory, evaluation and failure recovery.
The easy move is to choose a metaphor first. Call the parts “agents,” and teams may give each one independent goals and memory. Call them “modes” of a single assistant, and they may share state without clearly separating authority. Either choice can be valid. Trouble begins when a metaphor hides the operational facts.
A useful mathematical lens comes from disentangled representation learning. A model maps observations into latent variables, then uses those variables to explain or generate the observations. In a simplified form, we might write x = g(z₁, z₂, z₃), where x is an observed output and each z represents a factor such as intent, user context or tool state.
The hoped-for result is that each latent variable captures a distinct factor. But the representation is not automatically identifiable: many different internal arrangements can produce the same observed data. Locatello and colleagues showed that unsupervised disentanglement cannot be guaranteed without assumptions or inductive biases. In plain terms, examples alone do not tell a model which distinctions matter. Designers have to supply some of that structure.
That finding is more useful than a tidy analogy. If a team wants distinct roles, it must define what makes them distinct. Different names in a prompt do not establish separate state, permissions or accountability.
Three failure patterns
The theological labels can act as prompts for three architectural questions. A modalist design, in this loose analogy, treats distinct roles as names for one undifferentiated actor. A planner “checks” its own work, but has the same context, incentives and tool access it had while producing the answer. The review step exists in the interface, not in the control structure.
A tritheist design makes the opposite mistake. It treats every component as independent, even when they share state, dependencies or a single accountability boundary. That can lead to conflicting memories, duplicated work and unclear ownership when something goes wrong. Calling three model calls three agents does not grant them three reliable perspectives.
A subordinationist design builds a hierarchy that the system’s actual authority does not justify. A component described as a “reviewer” may be unable to block a tool call. A human approver may be nominally in charge while the workflow routes around them. The architectural question is not which role sounds senior, but which operation it can initiate, prevent or reverse.
| Design question | Collapsed roles | Independent components | Explicitly bounded roles |
|---|---|---|---|
| State | Implicitly shared | Duplicated or drifting | Shared where specified |
| Authority | Hard to distinguish | Split without clear ownership | Named and enforced |
| Review | Same actor checks itself | Components disagree | Reviewer can block or escalate |
| Failure trace | Ambiguous | Scattered | Linked to action and owner |
From metaphor to production boundary
In production, distinctions need to survive contact with retries, tool failures and partial completion. A role should have a contract: the inputs it receives, the state it can read, the actions it can take and the evidence it must return. A reviewer that cannot veto is a commentator. A planner that can alter its own evaluation record is not cleanly separated from its evaluator.
This is also why multi-agent systems do not become safer merely by adding more model calls. Each additional component introduces coordination costs and new failure paths. If two components share the same model, prompt assumptions and source material, their agreement may be correlated evidence rather than independent confirmation. A system diagram should show those dependencies, not just draw separate boxes.
The practical test is to ask what would happen if one role were compromised, unavailable or wrong. Could it change the shared record? Could it call an external tool? Could another role detect the change using independent evidence? These questions turn a philosophical distinction into a threat model, an evaluation plan and an ownership decision.
The lesson is not that software should imitate theology. It is that words such as “one,” “many,” “agent” and “reviewer” compress assumptions that should instead be made inspectable. The hard part is not choosing a label. It is preserving the
Discussion (4)
This framework assumes identifiable latent variables exist. In production ML systems, factors like user intent and tool state are often hopelessly entangled. We optimize for predictive performance, not theological purity. The clean separation you want is frequently unidentifiable from observational data alone.
When your disentangled latent variables z₁, z₂, z₃ are not identifiable, you can still have a functioning system. But when failure occurs, how do you attribute blame? The 'persons' can be conflated, making debugging a theological debate about which heresy your error traces represent.
Non-identifiability just means your Jacobian has a null space. If the latent basis vectors span the same subspace, fault isolation is mathematically impossible because the error projection maps onto shared state. Which kernel or node actually threw the fault?
Modalism shows up when you merge kernel and user space threads for simplicity. Latency spikes under load because the shared scheduler lock becomes contended. Distinguish the roles, give each its own queue.