8 Design Axioms for Multi-Agent Systems: Consensus Found in the Source Code of Two Mainstream Architectures

    "Agent = Model + Harness" sounds like an obvious truism, but when you compare the source code of two independently developed multi-agent systems, strikingly consistent engineering choices emerge. This article examines two real architectures—a five-layer open-source framework and the multi-agent subsystem of a mainstream AI coding tool—and distills eight design axioms they share, from immutable fork model bindings to strict failure/cancel semantics. Learn why these rules are not style preferences but hard-won defenses against deterministic model failure modes, and how to apply them in your own agent orchestration projects.

    8 Design Axioms for Multi-Agent Systems: Consensus Found in the Source Code of Two Mainstream Architectures

    Introduction: The Engineering Truth Behind an “Obvious Truism”

    “Agent = Model + Harness” — this phrase gets quoted constantly in technical communities. At first glance, it’s an obvious truism: of course the model needs a shell around it.

    But things got interesting when I placed the source code of two completely independently developed multi-agent subsystems side by side and compared them line by line. One comes from a recently open-sourced model vendor’s companion framework; the other comes from several thousand source files reconstructed from the release package of a mainstream AI coding tool. The two teams had no possibility of copying each other, yet they made nearly identical choices in the same batch of places that “look strange.”

    These “strange” places include: forked subagents are not allowed to switch models mid-run, failed tasks cannot be rewritten as “cancelled,” parent agents are forbidden from using suggestive prompts like “based on your findings” when delegating, and subagents are not allowed to fabricate the results of sibling agents.

    These are not style preferences. They are axioms — self-evident engineering laws that, when violated, reliably cause failures.

    This article unfolds in five parts: how the first architecture is built, how the second is built, the eight axioms that emerged from two independent paths, what these commonalities actually mean, and what I copied — and didn’t copy — in my own multi-agent orchestration project.

    Three core conclusions up front:

    • First, the model is only responsible for “a single judgment”; the Harness turns N judgments into a deliverable system. Context management, tool surface design, settlement semantics, resource budgets, and result verification are five external organs attached to the model.
    • Second, the 8 axioms are essentially a checklist of 8 model failure modes. The correct order for building a Harness is to enumerate failure modes first, then design defenses — not the other way around.
    • Third, the real moat isn’t in prompts. It’s in three “unsexy” things: prefix cache design, state machine rigor, and evidence chain traceability.

    1. The First Architecture: Five Layers That Keep the Model Inside the Process

    Most people imagine a Harness as “a while loop plus a bunch of tool calls.” This open-source framework’s answer is a five-layer structure, and every layer exists to keep the model from making mistakes.

    1.1 Overview of the Five-Layer Structure

    From top to bottom:

    1. Human interaction layer: session recovery, task list display, and UI panels, handling scenarios where humans intervene at any time.
    2. Orchestration layer: a workflow engine that lets the model write its own scripts to fan out parallel tasks, rather than hard-coding all orchestration logic in the host code.
    3. Tool layer: the few delegation tools the model can see — the only entry point into the world of subagents.
    4. Managed service layer: the subagent manager, responsible for lifecycle, capacity limits, nesting depth, and completion settlement.
    5. Provider layer: a set of named backends unified through a registry.

    1.2 The Most Worthwhile Design: The Named Backend Registry

    The most critical part of this architecture isn’t the number of layers — it’s the design philosophy at the bottom.

    The subagent manager is essentially a “named backend registry”: in-process spawn and fork, external systems接入 via standard protocols, third-party command-line tools — all registered as “providers,” with delegation tools routing by name.

    What does this mean? At the architectural level, it treats its own subagents and external tools as the same class of thing. It can even orchestrate someone else’s agent as its own external subagent.

    The first test of whether a Harness is mature: does it dare to abstract its core execution loop into a replaceable interface? A system that treats its own first-party agents and external programs identically has clearly thought hard about its abstraction boundaries.

    1.3 Settlement Semantics: Who Gets to Say “This Round Is Done”

    This is the part that best illustrates what a Harness is actually engineering.

    This framework’s answer is strict: the subagent’s own execution log is the source of truth. A parent agent has no right to unilaterally declare a subtask “completed,” and even less right to rewrite the status to “cancelled” after the subagent reports an error.

    Why so strict? Because settlement semantics determine the credibility of the entire system. If a parent agent can freely rewrite a subtask’s result status:

    • Failures get silently swallowed, and errors stop propagating within the system;
    • Retry logic loses its trigger basis, and transient faults become permanent data loss;
    • Auditing and replay become impossible, because what you see is no longer the actual execution history.

    Settlement authority is delegated to the executor; the parent agent only “accepts or challenges” the result. This is the distributed systems principle of “whoever produces the data is responsible for it,” transplanted into the agent domain.

    2. The Second Architecture: The Multi-Agent Subsystem of an AI Coding Tool

    Now the second implementation. Its overall layering differs from the first, but it converges on the same conclusions at several key decision points.

    2.1 Context as an Asset: Prefix Design

    This tool splits the system prompt into “stable prefix + dynamic suffix.” The stable prefix contains tool definitions, behavioral guidelines, and output contracts, and rarely changes within a session; the dynamic suffix carries the current task state.

    The direct benefit is inference cost: the stable prefix can hit the inference service’s cache, so each subsequent call only pays for — and pays latency for — the changed portion. The deeper benefit is behavioral stability: the model doesn’t suffer “personality drift” over long sessions, because the context constraining it never changes.

    2.2 Tool Surface Restraint: Less Is More

    Both systems independently compress the delegation tools exposed to the model to single digits. This is counterintuitive — many developers believe more tools means more capability.

    In reality, tool count is positively correlated with the model’s selection error rate. When the tool surface bloats, the model wastes reasoning budget on “which tool should I use” instead of “how to do the job well.” Both systems take the same approach: few, orthogonal tools with non-overlapping responsibilities and strictly constrained parameter schemas.

    2.3 A State Machine, Not a Chat Log

    In the second implementation, subtask state transitions are modeled as an explicit state machine: pending, running, awaiting input, completed, failed, cancelled. Every state has clearly defined legal transition edges; illegal transitions throw errors immediately.

    This is fundamentally different from “appending a message to a chat log saying the task is done.” A chat log is a falsifiable narrative; a state machine is an unfalsifiable fact. When the system needs to recover after a crash, the state machine can precisely answer “which tasks are at which step,” while a chat log can only be re-interpreted by the model — which is like having the eyewitness to an accident write the incident report themselves.

    3. Eight Axioms That Emerged from Two Independent Paths

    Placing the “strange choices” from both codebases side by side yields eight axioms. Each one corresponds to a deterministic model failure mode.

    Axiom 1: Forked Subagents Must Not Switch Models

    A subagent inherits its parent’s model configuration when forked, and switching mid-run is forbidden.

    Failure mode: if mid-run model switching were allowed, the historical reasoning trajectory in the context was produced by the “predecessor,” and the “successor” would systematically misinterpret that trajectory — treating someone else’s reasoning as its own memory. It’s like swapping the lead surgeon mid-operation, with the new surgeon only allowed to read the chart, not ask the patient.

    Axiom 2: Failures Must Not Be Laundered Into Cancellations

    “Failed” and “cancelled” are two terminal states with completely different semantics: failure means “attempted but didn’t succeed”; cancellation means “actively gave up.” Both systems enforce this distinction in code and prohibit any upper-layer logic from rewriting a failure as a cancellation.

    Failure mode: failures carry error information and are the basis for retries, alerts, and attribution; cancellations carry nothing. Once you allow the confusion, observability develops a black hole — you can never tell whether the task itself is broken or someone hit the stop button.

    Axiom 3: Delegation Must Not Say “Based on Your Findings”

    When a parent agent delegates a task to a subagent, the task description must be self-contained, and referential phrasing like “based on your earlier findings” or “continue your analysis” is forbidden.

    Failure mode: the subagent doesn’t have the parent agent’s context. A phrase like “based on your findings” secretly injects the parent’s implicit assumptions into the task; the subagent will either fabricate “findings” to comply, or drift further and further on a false premise. This is the most insidious source of context pollution in context engineering. The correct approach: copy all required background into the task description when delegating, even if redundant.

    Axiom 4: Subagents Must Not Fabricate Siblings’ Results

    When a task is fanned out to multiple parallel subagents, each subagent may only report results it executed itself; citing or speculating about sibling agents’ outputs is strictly forbidden.

    Failure mode: models have a strong tendency to “complete the narrative.” If subagents may cite each other, hallucinations cascade along the reference chain — one subagent’s guess gets cited as fact by another, and by the third round it becomes “a conclusion confirmed by multiple sources.” Only by enforcing the executor-witnessed principle can evidence chains be traceable.

    Axiom 5: The Context Window Is a Budget, Not a Warehouse

    Both systems impose hard budgets on the context length carried by a single delegation; anything over the limit must be summarized or trimmed, not blindly stuffed in.

    Failure mode: long context doesn’t mean good context. Irrelevant information dilutes attention, and instruction-following rates decline as context grows. The engineering conclusion: every piece of context given to a subagent should answer the question “would the task fail without it?” If not, delete it.

    Axiom 6: Tool Results Must Carry Structured Evidence

    When a subagent returns results, it cannot return only conclusive text; it must attach structured evidence: which files were modified, which commands were executed, what the verification step output.

    Failure mode: pure text conclusions cannot be verified. Requiring evidence is equivalent to requiring “recomputability” — the parent agent or a human can independently verify the evidence chain, rather than choosing whether to “trust this subagent.”

    Axiom 7: Capacity and Depth Must Have Hard Limits

    Subagent concurrency and nesting depth both have hard quotas; exceeding them results in immediate rejection, not queuing.

    Failure mode: models don’t self-regulate. A decision like “let’s split into 10 subtasks first,” meeting an equally unguarded subagent, produces exponential fan-out — burning through quotas within minutes and generating piles of unverified half-finished work. Resource governance must be enforced at the Harness layer; you cannot count on model self-discipline.

    Axiom 8: Human Interruption Is a First-Class Citizen

    Both systems allow humans to interrupt, take over, and modify any subtask at any time, and the interruption operation itself is recorded in the execution log.

    Failure mode: an agent system that excludes humans from the loop can only watch itself crash into a wall once it enters an error path. Interruption rights are not a UX feature — they are a safety mechanism: the last transition edge outside the state machine.

    4. What Do These Commonalities Actually Mean?

    Two teams with no contact converging on the same conclusions can only mean one thing: these axioms weren’t designed — they were forced into existence by failure modes.

    This reveals the correct methodology for building agent systems:

    1. First, enumerate the failure mode checklist: hallucination, unbounded fan-out, context pollution, unverifiable results, unrecoverable state — every item comes from a real incident.
    2. Then design one mechanism per failure mode: lock the model to prevent memory corruption, delegate settlement to prevent failure laundering, make tasks self-contained to prevent context pollution, require evidence chains to prevent untrustworthy results.
    3. Prompts come last: prompts are the finishing touches on top of the axioms, not the foundation.

    This also explains where the moat lies. Prompts can be copied overnight, but prefix cache hit rates, state machine transition completeness, and the cost of verifying evidence chains — these “unsexy” engineering details require long-term refinement and are the real barrier. Teams building such systems in the cloud can leverage generic infrastructure — logging services, monitoring and alerting, message queues, container platforms — for state persistence and scheduling, but the core axiom layer must be implemented yourself. You can’t buy it.

    5. Lessons from My Own Orchestration Project: What I Copied, What I Didn’t

    Finally, here’s how these axioms landed in my own multi-agent orchestration project.

    What I copied:

    • Fully implemented the “named backend registry,” unifying local subprocesses and remote executors under one abstraction. This was the highest-value borrow — the cost of onboarding new execution environments is now close to zero.
    • Adopted delegated settlement with strict failure/cancellation separation, combined with structured logging. Root-cause analysis time for production issues dropped from hours to minutes.
    • Enforced task self-containment and evidence chain requirements. It felt tedious at first, but it eliminated an entire class of failure: “the subagent confidently talking nonsense.”

    What I didn’t copy, and why:

    • I didn’t adopt “model writes scripts to fan out autonomously” orchestration. It’s extremely expressive, but it demands too much of the model’s code generation quality. In our scenario we switched to a predefined DAG with restricted dynamic branching, trading flexibility for predictability.
    • We set our nesting depth limit more conservatively than both reference implementations. Because our business tasks require human review for acceptance, each additional layer of depth doubles human comprehension cost — axioms must serve the reality of your organization’s capabilities.

    Conclusion

    Competition among agent systems is shifting from “whose model is smarter” to “whose Harness is more rigorous.” The common thread behind the 8 axioms is a single sentence: never assume the model will do the right thing — block every way it can do the wrong thing, then give it exactly one correct path.

    Enumerate failure modes first, design mechanisms second, write prompts last — that ordering is the distance between a working demo and a deliverable system.