Agent Clusters: From Answer Quality to End-to-End Task Completion

    As agents take on end-to-end work, success is no longer judged by how good a single answer sounds, but by whether the goal is actually finished. This article explains why long action chains amplify model gaps, how to evaluate agents across completion, tool use, consistency, recovery, and cost, and how clusters turn linear execution into a dependency-aware DAG with role specialization, parallel runs, and verified aggregation—plus the sandbox, gateway, state, and observability foundation required to run them reliably.

    1. A Shift in the Paradigm: From “Was the Answer Good?” to “Was the Job Done?”

    For the past two years, discussions of model capability have often relied on vague claims such as “smarter,” and evaluations have focused on single-turn Q&A, knowledge coverage, and text quality. Once agents take on end-to-end tasks, the frame of reference changes: what matters is no longer the quality of one reply, but whether a goal was actually completed.

    That shift has two direct consequences.

    First, evaluation becomes much harder. A single-turn question needs only one output to be scored. An agent task often involves dozens to hundreds of actions: tool calls, file reads and writes, code execution, and result checks. Even if each step succeeds 95% of the time, the end-to-end success rate over 20 consecutive steps falls to about 36% (0.95^20). That is why accuracy gaps between models widen sharply on agent benchmarks—errors accumulate along a long chain, and small differences are stretched exponentially.

    Second, the bottleneck moves from “breadth of knowledge” to “ability to execute.” Practical usefulness depends on engineering traits: holding a long context, following instructions consistently, constructing tool arguments precisely, and correcting course after failure. A common industry observation is that gaps between models are much larger on structured tool use and multi-step planning than on open-ended writing.

    2. Evaluation Dimensions: How to Measure Agent Capability

    A single score is easy to misread. A more reliable matrix covers at least five dimensions:

    • Task completion rate: Judge by a verifiable end state (tests pass, a ticket is closed), not by text similarity.
    • Tool-call correctness: Whether the right function is chosen, arguments are filled correctly, and calls happen in the right order.
    • Long-horizon consistency: Whether the agent still honors the original constraints after dozens of steps, without drifting from the goal.
    • Recovery: Whether it can retry or switch paths when it hits errors, timeouts, or empty results.
    • Cost per task: Combined overhead in tokens, tool-call count, and wall-clock time.

    A sketch of the evaluation loop:

    1. def evaluate(task, agent, max_steps=60):
    2. state = Env(task) # Verifiable environment: sandbox + assertions
    3. trace = []
    4. for step in range(max_steps):
    5. action = agent.plan(state, trace)
    6. result = state.execute(action) # Unified execution through a tool gateway
    7. trace.append((action, result))
    8. if state.done():
    9. return {
    10. "success": state.verify(), # Decided by end-state assertions
    11. "steps": step + 1,
    12. "cost": agent.cost_so_far(),
    13. }
    14. return {"success": False, "steps": max_steps, "reason": "step_budget_exceeded"}

    The critical point: the environment’s assertions decide success, not the model’s self-assessment. Letting a model score its own output systematically overestimates the success rate.

    3. Agent Clusters: Decomposition, Role Split, and Parallel Merge

    A “cluster” turns a single agent’s linear run into parallel execution on a directed acyclic graph (DAG). The user submits only a goal. The system does four things:

    1. Task decomposition: Split the goal into subtasks that can be verified on their own, and declare dependencies explicitly.
    2. Role specialization: Bind subtasks to roles (retriever, coder, tester, reviewer), each with its own context and tool set.
    3. Parallel progress: Run independent subtasks concurrently; advance dependent ones in topological order.
    4. Result aggregation: Merge artifacts in one place; resolve conflicts through a reviewer role or a rules engine.
    1. plan = planner.decompose(goal) # -> DAG
    2. while plan.has_pending():
    3. batch = plan.ready_nodes() # Nodes with in-degree 0
    4. results = parallel_run(batch, roles=plan.roles, limit=8)
    5. for node, res in zip(batch, results):
    6. plan.commit(node, res) # Advance only after verification
    7. report = aggregator.merge(plan.artifacts())

    Three engineering constraints matter. Concurrency limits: Cap the number of sub-agents and the degree of parallelism, or cost and load on dependent services become unbounded. Context isolation: Give each role only the information it needs, so shared context does not pollute decisions. Idempotency and replay: Node operations should be safe to retry, and the full trace should be persisted for review.

    4. The Engineering Base That Keeps a Cluster Reliable

    Clustering moves complexity from the model to the system. These capabilities are all required:

    • Sandbox and isolated execution: Run code and commands in restricted containers, with limits on network, filesystem, and resource quotas.
    • Tool gateway and permissions: Route every external action through one gateway, grant least privilege, and require human confirmation for sensitive operations.
    • State and artifact storage: Keep intermediate artifacts in object storage and task state plus queues in a message queue, so work is visible across nodes and can resume from a checkpoint.
    • Observability: Structured logs of each step’s inputs and outputs, with alerts on failure rate, latency, and cost anomalies.
    • Elastic capacity: Run stateless roles on a container platform and scale with queue depth.

    5. Common Anti-Patterns

    • Over-splitting: Subtasks so fine-grained that coordination costs more than parallelism gains. Split at the boundary of “independently verifiable.”
    • No termination condition: Without step and budget caps, retries loop forever. Enforce a hard step budget and cost budget.
    • No human review: Fully automatic high-risk writes. Keep a human approval gate.
    • Optimizing only single steps: Tuning prompts for one step while ignoring aggregation and verification yields little end-to-end gain.

    6. Closing

    Moving from a “Q&A assistant” to a “digital worker” is not mainly about parameter count. It depends on system engineering: task decomposition, parallel orchestration, verifiable execution, and cost control. Agent clusters become reusable productivity infrastructure—not a demo—when evaluation is end-to-end completion rate, execution sits behind sandboxes and gateways, and traces are stored as observable data.