Multi-Agent Workflow Orchestration: Evaluation and Engineering Optimization
This article explains why multi-agent workflows should separate orchestration from execution, compares static and dynamic evaluation modes, interprets complete-resolution rates and domain gaps, and outlines practical engineering controls for sub-agents, feedback guardrails, domain verifiers, and observability.
1. Why Multi-Agent Workflows Need Orchestration–Execution Separation
The core goal of a multi-agent workflow is to break a complex task into subtasks that can be delegated, verified, and rolled back, then have a set of executor agents perform the actual work. As tasks grow, a single model completing end-to-end delivery becomes harder: context windows are limited, tool-call chains are long, file edits and command execution carry risk, and failures lack recovery. Many systems therefore adopt a layered “orchestrator + executors” design.
The orchestrator understands the goal, decomposes work, selects executors, defines acceptance criteria, and aggregates results. Executors read context, patch files, run commands, call tools, and return evidence. The key constraint is that the orchestrator must not modify files directly; all real work is done by executor models. This is not merely a permission setting; it is the foundation of workflow reliability.
1.1 Benefits of Role Boundaries
Keeping the orchestrator off the write path yields three benefits:
- Least privilege: the orchestrator only plans, delegates, and evaluates, reducing the chance that planning hallucinations corrupt code or data.
- Auditability: every file change comes from a specific executor, so it is easier to trace who changed what, why, and whether it passed verification.
- Replaceability: the execution layer can swap capability modules by task type while the orchestration layer stays stable, lowering coupling.
1.2 A Generic Configuration Sketch
workflow:mode: dynamicorchestrator:role: plannerpermissions:- read_context- delegate_task- evaluate_resultforbidden:- write_file- execute_shellexecutors:max_parallel: 4sandbox: truetools:- read_code- patch_file- run_testsfeedback:max_rounds: 3stop_when: all_checks_pass
This configuration is not a product feature list. It encodes an engineering principle: the orchestration layer decides and accepts; the execution layer operates in a controlled environment; the feedback layer uses verification results to decide whether another round is needed.
2. Evaluation Design: Static vs. Dynamic Modes
Multi-agent workflow evaluation usually uses static or dynamic modes. They rest on different engineering assumptions; a higher score alone does not decide which is better.
2.1 Static Mode: Plan Once, Execute Through
In static mode, execution starts after orchestration and does not revise the plan from feedback. It fits tasks with stable decomposition, clear acceptance criteria, and predictable paths—for example format conversion, batch data checks, or fixed-flow document generation.
Strengths:
- Reproducibility: the same input and plan tend to produce similar traces, which helps regression testing.
- Cost control: fewer orchestration calls make budgets easier to estimate.
- Fairer evaluation: less randomness from dynamic replanning.
Weaknesses: if the initial plan misses something, later execution rarely corrects course. With long-tail exceptions, tool failures, or hidden constraints, the system can “efficiently execute a wrong plan.”
2.2 Dynamic Mode: Plan–Execute–Observe–Replan
Dynamic mode updates the plan from execution feedback. After executors return test results, error logs, diffs, or verification conclusions, the orchestrator retries, further decomposes, switches executors, or stops. This better fits software engineering, research analysis, and compliance review, where uncertainty is high.
Strengths:
- Adaptability: plans can be corrected from real feedback.
- Better failure recovery: local failures can be retried in a small scope.
- Closer to real delivery: complex work often needs multiple verification rounds.
Risks: loops can inflate cost, oscillate on retries, and reduce reproducibility. You need max rounds, failure-escalation policy, verifier thresholds, and stop conditions.
2.3 How to Choose
A simple decision table:
- Stable path and explicit acceptance rules → prefer static mode.
- Hidden constraints, high tool-failure rates, or multi-round verification → prefer dynamic mode.
- High-risk operations → sandbox isolation and human-auditable traces in either mode.
- Cost-sensitive settings → default to static; open dynamic mode only for failed subtasks.
3. Interpreting Results: Complete Resolution, Domain Gaps, and Call Strategies
Under a public evaluation protocol that counts a task as fully solved only when it is delivered end-to-end and passes verification, the top system reached only 36.95%. Even the best system failed to fully deliver more than 60% of tasks. Multi-agent workflows are still early in engineering; demo success should not be mistaken for production readiness.
3.1 Complete Resolution Is Stricter Than Local Success
Complete resolution requires end-to-end delivery, not a subtask that merely looks correct. It typically exposes:
- Subtasks succeed individually but fail after integration.
- File edits are incomplete and tests do not cover the change.
- The plan is right but execution evidence is insufficient.
- Multi-round iteration introduces regressions.
- Acceptance criteria are vague, so results cannot be judged.
Evaluation should not stop at “tools were called” or “code was generated.” It should ask whether the artifact passed verifiers, satisfied constraints, and is reproducible.
3.2 Domain Gaps Are Large
In the same evaluation set, formal mathematics reached a highest complete-resolution rate of 95.83%, software engineering 29.41%, finance 18.75%, and law only 9.09%. The gap reflects verifiability and environment complexity, not chance.
- Formal mathematics: clear constraints, strong verifiers, mechanically decidable errors—high-decomposition methods close the loop easily.
- Software engineering: codebase understanding, dependencies, test coverage, interface compatibility, and regression risk; a local patch can fail globally.
- Finance: data definitions, compliance, and audit requirements; many errors are business-semantic, not syntactic.
- Law: high natural-language ambiguity, strong jurisdiction and context dependence; acceptance is hard to fully formalize.
No single system dominates every domain. In the reference results, different systems lead in software engineering, research and math, law and content design, or enterprise operations, but none lead everywhere. Engineering should combine domain specialists with unified orchestration, not chase one universal executor.
3.3 Two Call Strategies: Plan Thoroughly vs. Iterate in Small Steps
Workflow call behavior tends to fall into two patterns:
- Plan-then-act: fewer workflow invocations, but more agents per call. The system prefers a fuller plan, then batch execution.
- Small-step iteration: more workflow invocations, but fewer agents on average; about 99% of workflows use no more than four sub-agents. The system prefers frequent small loops and fast feedback.
Each has a cost. Large fan-out improves parallel coverage but raises coordination, context-passing, and conflict-resolution cost. Small steps lower per-step complexity but add orchestration overhead and cumulative latency. A better approach is an adaptive budget: start small, then increase sub-agent count and parallelism when verification fails, anomaly logs appear, or coverage is insufficient.
4. Engineering Optimization
4.1 Cap Sub-Agent Count; Do Not Scale for Its Own Sake
More sub-agents are not always better. Each one adds context splitting, result merging, and conflict handling. Recommendations:
- Default to 2–4 sub-agents per workflow.
- Increase parallelism only when work is naturally parallel and dependencies are weak.
- Use serial locks or partitioned ownership for shared-file edits.
- Merge small tasks that one executor can finish sequentially to cut delegation overhead.
- Scale out on failure signals, not by expanding massively from the start.
4.2 Dynamic Feedback Needs Hard Guardrails
Dynamic mode must have stop conditions, or it will retry indefinitely. At minimum include:
- Maximum replan rounds.
- Maximum tool-call count.
- Maximum cost and latency budgets.
- Escalate consecutive failures to a human or terminate.
- Verifiers must return structured evidence.
- File edits must have before/after diffs.
4.3 Domain Fit Comes from Verifiers, Not Prompt Stacking
Large domain gaps come from verification capability. Formal math can be checked by provers; software engineering by tests and static analysis; finance and law need rule bases, audit checklists, and expert sampling. Build domain verifiers first:
- Software engineering: unit tests, integration tests, static checks, interface contracts.
- Research analysis: reproducible data scripts, statistical tests, result comparisons.
- Finance: definition checks, compliance rules, audit trails.
- Law: citation checks, jurisdiction checks, sampled human review.
A multi-agent workflow without verifiers only moves uncertainty from one model into multi-round collaboration.
4.4 Close the Loop with Observable Traces
Record full traces: orchestration plans, delegated tasks, executor I/O, tool calls, file diffs, verification results, retry reasons, and final state. Store evaluation artifacts in object storage, collect traces with a logging service, and watch failure rates and long-tail tasks with monitoring and alerts. In enterprise deployments, these loops can be built with general object storage, logging, and monitoring capabilities (for example on Baidu AI Cloud where that stack is already in use).
A simplified trace:
{"workflow_id": "wf-001","mode": "dynamic","plan_rounds": 2,"sub_agents": 4,"tool_calls": 17,"verification": {"unit_tests": "passed","static_checks": "passed","diff_audit": "passed"},"result": "resolved"}
5. Conclusion
The key to multi-agent workflows is not model count. It is orchestration–execution decoupling, a verification loop, and budget control. A top complete-resolution rate of only 36.95% shows that complex delivery still has a long tail of failures. Domain gaps show that general systems do not win everywhere. Call-strategy differences show that “plan thoroughly” and “iterate in small steps” should switch with task uncertainty.
For production: the orchestrator must not write files, and executors must work in a sandbox; choose static vs. dynamic by task stability, and put hard guardrails on dynamic mode; iterate with domain verifiers and observable traces instead of substituting demos for real evaluation. Only then do multi-agent workflows move from “they appear to collaborate” to “evaluable, auditable, and deliverable.”
