Multi-Agent Consultation (MoA) and Global Routing: A Practical Guide

    This guide explains how to fix the structural weaknesses of single-model AI pipelines using Mixture of Agents (MoA) and global routing. You will learn how to split reasoning from execution across a reference layer and an aggregator layer, how to route requests across L0/L1/L2 tiers based on intent, blast radius, and historical success rates, and how to manage context, cost, latency, observability, and evaluation. It also covers common anti-patterns and a pre-launch checklist for running consultation workflows that are measurable, rollback-safe, and operable.

    1. Background: Three Structural Flaws in Single-Model Pipelines

    When building AI assistant systems, the most common problem is not that the model is not strong enough. It is the structural flaws of a single-model, single-pass inference pipeline. There are three of them.

    First, fixed thinking. A single forward pass follows only one line of reasoning and lacks lateral perspectives, so it can go off track as early as the requirement-understanding stage.

    Second, no cross-checking. Without a second opinion to challenge intermediate conclusions, errors get treated as established facts by later steps and are amplified.

    Third, permissions and responsibilities are coupled. The same model both diverges to brainstorm and executes, both reads context and calls tools. Once its judgment is wrong, the side effects land directly in the real environment.

    Multi-agent consultation (Mixture of Agents, or MoA) is an engineering answer to these three points: separate “thinking” from “doing”, separate “divergence” from “convergence”, and insert a layer of deterministic scheduling and routing between them.

    2. Core MoA Structure: The Reference Layer and the Aggregation Layer

    2.1 Reference model layer (the think tank)

    The reference layer consists of two or three models with different specialties. It only performs analysis and is granted no tool permissions. Its input is the user question plus a necessary context summary, and its output is structured opinions: problem decomposition, potential risks, overlooked boundary conditions, and candidate options with the rationale for trade-offs.

    Three design constraints are critical:

    • No side effects: the reference layer cannot write files, execute commands, or make network requests.
    • Structured output: a fixed four-part format of “conclusion - rationale - risk - suggested verification” makes mechanical alignment and deduplication easier for the aggregation layer.
    • Orthogonal perspectives: the prompts for each reference model should explicitly specify a different focus (for example, correctness review, engineering feasibility, or operations and cost), so the three do not return highly duplicated content and waste budget.

    2.2 Aggregation model layer (the decision maker and executor)

    The aggregation layer is the only core model that holds full permissions. It can read the full context, call the terminal and file system, and access the browser and internal APIs. Its job is to summarize the reference layer’s opinions, arbitrate conflicts, fill gaps, then produce the single final answer and carry it out.

    The “single executor” principle must be emphasized here: concurrent write operations are one of the hardest classes of failures to troubleshoot in distributed systems. Letting multiple agents with write permissions operate on the same workspace at the same time causes overwrites, inconsistent state, and non-reproducible intermediate states. The aggregation layer should therefore be the only role holding write permissions.

    An illustrative responsibility and permission matrix:

    1. Role Tool permissions Context scope Output form
    2. Reference A none question + summary structured opinion
    3. Reference B none question + summary structured opinion
    4. Reference C none question + summary structured opinion
    5. Aggregator read/write/exec full context + all opinions final answer + actions

    3. Global Routing: Sending Each Request to the Right Layer

    If MoA addresses the quality of a single task, global routing addresses the overall efficiency and stability of all requests. The routing layer sits between the entry point and the execution layer. It decides which roles a request should pass through, which model tier to use, and how much budget is allowed.

    3.1 Tiered routing strategy

    A three-tier routing scheme is recommended.

    L0 direct response: tasks with clear intent, no side effects, and idempotent replay (format conversion, copy polishing, single-point Q&A) go straight to a single model and skip consultation.

    L1 light consultation: tasks with some uncertainty but reversible changes enable one or two reference models plus the aggregator.

    L2 full consultation: high-risk tasks involving multi-file changes, production configuration, or data migration enable the full reference layer, and the aggregator must output a reviewable execution plan before acting.

    Routing decisions should not rely on keywords alone. A more robust approach combines three signals: the intent classification result, a blast radius assessment (does it touch production, is it irreversible, how wide is the impact), and historical success rate (the rework rate of similar tasks in the past). The weighted result falls into a tier.

    3.2 Routing configuration skeleton

    1. routing:
    2. default_tier: L1
    3. signals:
    4. intent_classifier: {model: small, threshold: 0.6}
    5. blast_radius: {prod_deny_by_default: true, irreversible_requires_approval: true}
    6. history: {window_days: 14, retry_rate_threshold: 0.3}
    7. tiers:
    8. L0: {references: 0, aggregator: standard, tools: [readonly]}
    9. L1: {references: 2, aggregator: standard, tools: [readonly, workspace_write]}
    10. L2: {references: 3, aggregator: strong, tools: [readonly, workspace_write, exec], plan_first: true}
    11. fallback:
    12. on_reference_timeout: degrade_to_L1
    13. on_aggregator_failure: retry_once_then_hold

    blast_radius.prod_deny_by_default and plan_first are the two highest-value switches: the former denies high-risk actions by default and requires explicit approval, and the latter enforces “plan before execute” so humans can intervene before side effects occur.

    4. Context Governance: The Real Bottleneck for Consultation

    The most common failure in multi-agent consultation is not that the models are not smart. It is that the context gets flooded with noise. If the reference layer sees the full history, it is easily led astray by irrelevant details. If the aggregation layer sees only a compressed summary, it may lose critical constraints. A workable approach is three-part context:

    • Task contract: goals, acceptance criteria, and prohibited actions. It stays unchanged throughout and has the highest priority.
    • Facts: objective information read by tools (directory structure, configuration snippets, log summaries), annotated with source and timestamp.
    • Opinions: reference layer output, explicitly marked as “to be verified” and forbidden from being cited as fact by later steps.

    At the prompt level, use explicit labels to distinguish the three types of content, and require the aggregation layer to produce a verification action before adopting any opinion. In engineering terms, set a length limit and deduplication rules for the opinion section so reference output does not crowd out the space for facts.

    5. Cost and Latency Control

    Consultation naturally increases the number of calls, so it must be kept within budget. Four practical measures:

    • Use lightweight model tiers for the reference layer, and upgrade only in L2 scenarios.
    • Call the reference layer in parallel, compressing serial latency into a single concurrent delay.
    • Set an opinion budget (a total token cap) and a timeout degradation path that skips the remaining reference models on timeout.
    • Cache and reuse historical opinions for identical or highly similar requests, but always re-collect the facts section to prevent decisions based on stale state.

    Note that any “percentage improvement in accuracy” depends heavily on the task distribution and evaluation set, and numbers detached from a specific scenario have no engineering meaning. Teams are advised to build a small regression set and compare the single-model pipeline against the MoA pipeline on the same cases for accuracy, rework rate, and cost per task, using self-tested data instead of external claims.

    6. Observability and Evaluation

    The consultation pipeline requires higher observability than a single model. At minimum, record: the routing tier and the basis for the decision, each reference model’s input summary and output, the aggregator’s reasons for adoption and rejection, the parameters and result summary of every tool call, and a diff comparison of the final artifacts. With these fields, you can answer questions like “why did this task fail”.

    Evaluation is recommended in three layers: an offline regression set for accuracy and hallucination rate; canary traffic for rework rate and human takeover rate; and a cost dashboard for tokens and call counts per task. All three layers should be included in release gates to avoid piling up models indefinitely for the sake of quality.

    7. Common Anti-Patterns

    • Giving the reference models write permissions, leaving workspace state uncontrollable.
    • Reference models with identical perspectives, paying the cost but getting only one opinion.
    • Concatenating reference opinions directly into the final answer, with no arbitration step.
    • Routing on keywords only, so high-risk requests are misclassified as L0.
    • No degradation path, so any reference model timeout fails the whole run.
    • Reusing the facts section from cache and performing irreversible operations based on stale state.

    8. Pre-Launch Checklist

    Confirm each item before going live: whether the role permission matrix is fixed and enforced in code; whether routing signals include blast radius and historical success rate; whether L2 enforces plan-first and human confirmation; whether context is isolated in three parts with opinions marked as to-be-verified; whether timeout degradation and failure hold are in place; whether observability fields are complete; and whether the regression set covers high-risk scenarios. Folding this checklist into the review process turns MoA and global routing from “looking smarter” into an engineering capability that is measurable, rollback-safe, and operable, steadily reducing the probability of hallucinations and incomplete solutions on complex tasks.