Multi-Agent Orchestration Architecture and Communication Practices

    A practical guide to when multi-agent systems beat a single agent, how to route tasks, and how Planner–Executor–Critic roles, isolated context, messaging, state, cost control, and observability keep complex workflows stable.

    From Single Agents to Multi-Agent Orchestration

    In knowledge-base Q&A, data verification, contract comparison, operations analysis, and similar complex workflows, a single agent often hits bottlenecks in the middle or late stages of a task. The typical issue is not model capability but task organization that no longer fits the work.

    1. Context bloat dilutes critical instructions

    A single agent usually follows a reason–act–observe loop. Every tool result, retrieval snippet, and structured payload lands in the same context. As steps grow, low-information content piles up, and system constraints, output formats, and the current goal get buried.

    Two direct effects:

    • Tool selection accuracy drops; the model starts calling unrelated capabilities.
    • Output format becomes unstable; explicit constraints are forgotten.

    A larger context window only eases capacity. It does not fix attention scatter.

    2. Goal drift away from the original intent

    A single agent often lacks an explicit “current subgoal” anchor. Unexpected results can pull the model down a new path and away from the user’s request. For example, a user asks to compare terms between two objects, but the agent dives into one object and ignores the other.

    3. Self-critique has built-in confirmation bias

    Having the same agent that generated an output check that output usually yields a rephrasing, not a real review. Generation and checking share context and preferences, so the model rarely leaves its original line of thought. Production systems are more reliable with an independent critic role, a different context view, and different evaluation criteria.

    Route Before You Stack: Decide Whether Multi-Agent Is Needed

    Multi-agent is not the default. It fits fuzzy goals, uncertain steps, multi-source verification, and outputs that need cross-checks. For fixed-step tasks with clear inputs and outputs, a single agent or a chained pipeline is usually cheaper.

    Add a routing layer at the production entry:

    1. Simple Q&A, single-step lookup, fixed-format extraction: single agent or templated flow.
    2. Multi-step but predefined path: chained orchestration.
    3. Complex goals, dynamic decomposition, review of results: multi-agent collaboration.

    Routing keeps simple requests off the expensive path so overall multi-agent cost stays controllable.

    Planner–Executor–Critic: Separation of Duties

    The core is not “several models chatting.” It is clear roles, isolated context, and traceable artifacts. Production setups commonly use planner, executor, and critic.

    1. Planner: clarify goals and decompose work

    The planner does not call tools. It turns the user goal into a structured plan. Output should at least include:

    • Final goal
    • Constraints
    • Subtask list
    • Dependencies
    • Acceptance criteria per subtask

    Illustrative structure:

    1. Plan {
    2. goal: string
    3. constraints: string[]
    4. tasks: [
    5. {
    6. id: string
    7. objective: string
    8. inputs: string[]
    9. outputs: string[]
    10. dependsOn: string[]
    11. acceptance: string
    12. }
    13. ]
    14. }

    Plans must be executable and checkable, not vague descriptions.

    2. Executor: tools and intermediate results

    The executor handles only the assigned subtask and does not re-interpret the global goal. That limits context pollution. Each executor should get the minimum needed context:

    • Current subtask objective
    • Required inputs
    • Allowed tools
    • Output format
    • Degradation strategy on failure

    Artifacts should be stored in structured form, not dumped back into the main conversation.

    3. Critic: independent review and quality gates

    The critic should not share the executor’s full generation trace. It judges artifacts against acceptance criteria and necessary evidence. Review dimensions can include:

    • Whether the subtask goal is met
    • Whether key constraints were missed
    • Whether evidence is sufficient
    • Whether the output format complies
    • Whether there is conflict or duplication

    On failure, return actionable revision notes rather than a blind rewrite.

    Task Decomposition: From Vague Goals to Checkable Subtasks

    Decomposition is decisive. Too coarse, and executors still face heavy context. Too fine, and scheduling and state sync cost explode.

    1. Principles

    • One clear objective per subtask
    • A verifiable artifact per subtask
    • Clear dependencies
    • No cyclic dependencies
    • Independent review for high-risk subtasks

    2. Common patterns

    • By object: process subjects separately, then compare
    • By stage: retrieve, extract, verify, summarize
    • By evidence source: collect from each source, then cross-check
    • By risk: high-risk work goes through review; low-risk work can pass quickly

    3. Dynamic replanning

    When results fail acceptance, the planner can replan locally from the failure reason. Avoid tearing the whole plan down; adjust only affected nodes. If one evidence source is unavailable, swap in a backup rather than re-decompose everything.

    Agent Communication: Message Envelopes and Context Isolation

    Multi-agent communication is not one shared long chat. Production needs an explicit message protocol.

    1. Standard message envelope

    Each message should include:

    1. Message {
    2. messageId
    3. from
    4. to
    5. taskId
    6. type
    7. payload
    8. traceId
    9. timestamp
    10. retryable
    11. }

    traceId supports end-to-end tracing, taskId binds a subtask, and retryable indicates whether a retry is safe.

    2. Isolated context views

    Each role sees only what its job needs. The planner sees goals and constraints; the executor sees the subtask and inputs; the critic sees artifacts and acceptance criteria. Less noise, less goal drift.

    3. Sync vs. async

    • Strongly dependent subtasks: synchronous calls
    • Parallel evidence gathering: asynchronous execution
    • Long-running tools: timeouts, retries, and circuit breaking
    • Non-repeatable operations: idempotency

    State and Artifacts: Recoverable and Auditable

    Keep clear state boundaries. Three categories work well:

    1. Session state: user goal, current stage, routing result
    2. Task state: plan, dependencies, progress
    3. Artifact state: intermediates, evidence, review comments, final output

    In production, session and task metadata can live in cache; artifacts and audit logs in a relational database or object storage. The point is not a specific vendor choice but that state is traceable, replayable, and recoverable.

    Version artifacts. Each execution, review, and revision should produce a new version so later roles do not read overwritten results.

    Cost Control: Layered Strategies

    Multi-agent paths usually cost more than a single agent, but cost can be managed:

    • Route simple tasks away at the entry
    • Cap subtask count at planning time
    • Use minimal context at execution
    • Review only high-risk artifacts
    • Cache repeated requests
    • Set token budgets and max steps
    • On failure, degrade to a single agent or a template flow

    The goal is not fewer model calls at all costs. It is using expensive reasoning where the work actually needs it.

    Observability and Evaluation

    Long pipelines need observability. Record at least:

    • Each routing decision
    • Generated plans
    • Subtask start and end times
    • Tool call parameters and result summaries
    • Review comments
    • Retry and degradation reasons
    • Final artifact versions

    Evaluate task success rate, factual consistency, format compliance, average latency, and cost per task. For high-risk scenarios, keep a regression set and periodically replay historical failures.

    Implementation Sequence

    Teams moving from a single agent to production multi-agent systems can proceed in this order:

    1. Task routing so not every request hits the complex path
    2. A minimal loop: plan, execute, review
    3. Role-specific context views instead of one long shared chat
    4. Acceptance criteria on every subtask
    5. End-to-end tracing and artifact versioning
    6. Dynamic replanning and automated evaluation later

    Value comes from separation of duties, isolated context, independent review, and traceable state—not from the number of roles. Those foundations are what make planner–executor–critic stable in complex business work.