Eight Design Axioms for Multi-Agent Systems
This article distills the design choices that independent multi-agent systems tend to converge on into eight axioms, and presents a reusable harness reference architecture built around five layers. It explains why a model only makes a single judgment while the harness combines N judgments into a deliverable system, and argues that the real engineering barrier lies in prefix stability, state machine rigor, and evidence chain integrity rather than prompt tricks. Each axiom is paired with the failure mode it prevents, followed by guidance on what to copy and what to avoid when building your own system.
1. The Problem: A Model Makes One Judgment, a System Makes N
In intelligent coding and automated operations, the community often summarizes system composition with a minimal formula: an agent equals a model plus the shell that carries it. This can sound like a correct but empty statement, since anyone can see that a model needs an engineering layer around it. But when you put the source code of two independently developed systems side by side, a more valuable fact emerges: two teams with no shared code lineage made identical trade-offs in a batch of places that look counterintuitive at first glance.
This article abstracts those trade-offs into eight design axioms and provides a reusable harness reference architecture. A harness is the engineering layer wrapped around the model that turns a single inference result into a deliverable artifact. It typically includes context assembly, tool exposure, a state machine, settlement, and budget control.
Three conclusions up front:
- The model is responsible for one judgment; the harness is responsible for combining N judgments into a deliverable system. Context, the tool surface, settlement semantics, resource budgets, and result verification are the model’s five external organs.
- The eight axioms are essentially a checklist of eight high-frequency failure modes. The design order should be to enumerate failure modes first and then design the corresponding mechanisms, rather than writing prompts first.
- The real engineering barrier lies not in prompt techniques but in three unglamorous things: prefix stability, state machine rigor, and evidence chain integrity.
2. Reference Architecture: Confining the Model to a Five-Layer Pipeline
Most people imagine a harness as a main loop plus a few tool functions. A more mature implementation splits it into five layers, each with a clear error-prevention responsibility.
- Human-machine interaction layer: task lists, execution panels, and resume-from-breakpoint entry points, responsible for making long tasks observable, interruptible, and recoverable.
- Orchestration layer: a workflow engine that lets the upper layer perform fan-out and aggregation in a scripted way, instead of relying on the model to serialize work manually in a conversation.
- Tool layer: the small set of delegation and operation tools the model can actually see, with a deliberately narrow interface surface.
- Managed services layer: the sub-agent manager, responsible for lifecycle, concurrency capacity, recursion depth, and settlement semantics.
- Provider layer: a set of named backends. In-process spawning and cloning, out-of-process standard protocol integration, and external command-line coding tools are all registered as providers, and the delegation tool routes by name.
The most noteworthy thing in this structure is not the number of layers but the abstraction at the very bottom: the system treats its own sub-agents and external heterogeneous executors as the same kind of object. A quick test of whether a harness is mature is whether it dares to hand its core execution loop to an external implementation and only handle registration, routing, and settlement itself.
3. The Eight Axioms Explained
Axiom 1: A spawned sub-agent must not switch models
The failure mode is model drift: the parent plans based on the capability boundaries of one model, but the child is switched to another, so tool call formats, context length, and instruction adherence all become misaligned, and errors cannot be attributed. Writing the model binding into the spawn contract is the prerequisite for making debugging and reproduction possible.
Axiom 2: A failure must not be washed into a cancellation
The failure mode is error swallowing. To keep the task going, the upper layer marks timeouts, crashes, and privilege violations all as user cancellations, so the dashboard is a uniform calm gray and the real failure rate drops to zero. The correct approach is to distinguish three terminal states: user-initiated termination, internal system error, and unavailable external dependency, while preserving the original error code and a stack summary.
Axiom 3: A dispatched task describes only the goal and acceptance criteria, not the implementation path
The failure mode is path contamination. Once the parent writes “continue based on your findings,” the child starts guessing what the parent saw and treats unverified assumptions as established facts. The dispatch content should contain four parts: goal, constraints, available information, and completion criteria, without carrying the reasoning process.
Axiom 4: A sub-agent must not fabricate the results of sibling branches
The failure mode is phantom collaboration. Parallel branches cannot see each other, but the model tends to invent a sibling conclusion to keep the narrative coherent. Mechanically, cross-branch references should be prohibited; when merging is needed, only the parent may read the structured artifacts of each branch.
Axiom 5: Settlement is based on the executor’s own logs
The failure mode is self-endorsement. If the dispatcher decides “this round is done,” it gives the model the power to declare its own success. Using the raw event stream produced by the executor as the sole basis for settlement is what makes the completion state auditable.
Axiom 6: Context is reused by stable prefix
The failure mode is cache breakdown and attention dilution. Reordering the system prompt, tool list, and history fragments every time both invalidates the prefix cache and buries key constraints in a long text. A stable prefix plus segmented appending optimizes cost and adherence at the same time.
Axiom 7: Minimize the tool surface
The failure mode is choice overload. Exposing fifty overlapping tools makes the model waver between near-synonymous tools. The number of tools, the distinctiveness of their names, and required parameters should all be trimmed to the standard of “can be selected correctly and consistently.”
Axiom 8: Resource budgets are hard constraints
The failure mode is infinite recursion and cost overrun. Depth limits, concurrency limits, and per-task token and duration limits must be enforced in the managed services layer, not written into prompts and left to model self-discipline.
An illustrative dispatch contract structure:
{"goal": "Locate the root cause of the build failure and provide a minimal fix","constraints": ["Do not change dependency versions", "A single run must not exceed 10 minutes"],"evidence": ["Snippet of the failure log", "List of relevant modules"],"acceptance": ["Reproduction steps", "Build passes after the fix", "Root cause explanation"],"model": "fixed-by-parent","depth": 2}
4. What These Commonalities Tell Us
Two independent implementations arriving at the same set of conclusions shows that these constraints are not style preferences but physical constraints of distributed multi-agent systems: reproducibility requires enumerable state, auditability requires traceable evidence, and cost control requires upfront budgets. In other words, the axiom list can be used directly as an acceptance checklist.
When deploying on the cloud, these mechanisms usually map to general capability categories: a logging service carries the executor event stream, a message queue handles branch dispatch and result collection, a container platform provides isolation and concurrency capacity, monitoring and alerting handle terminal-state distribution and budget-ceiling alerts, and object storage holds structured artifacts and the evidence chain.
5. Building Your Own: What to Copy and What Not to Copy
What should be copied directly: layered responsibilities, settlement semantics, terminal-state classification, the prefix stability strategy, and hard budget constraints. What should not be copied: specific tool names, prompt wording, and interface details, which are tightly coupled to the scenario. The recommended implementation order: first write the failure mode list, then define terminal states and settlement, then lock down the prefix and tool surface, and finally add orchestration and visualization. In this order, the system’s debuggability is established before feature richness, which is also the dividing line for whether a multi-agent project can be maintained in the long run.
