How Agent Execution Frameworks Determine Task Success Rate
This article examines why the same LLM can achieve very different task success rates across agent execution frameworks, based on a controlled experiment in which one model ran through eight harnesses with a nearly 30% gap between the best and worst results. It breaks down the five controllable dimensions of a harness—tool sets and tool descriptions, context management, prompt and constraint design, execution policy, and evaluation with observability—and explains why multi-step tasks amplify framework weaknesses through error accumulation, state drift, and expanding action spaces. Readers will find a reusable tuning workflow, a small-scale benchmarking approach for framework selection, and guidance on making agent performance measurable and reproducible.
1. The Phenomenon: Same Model, Different Results
In August 2026, an agent tooling team ran a controlled experiment: they connected the same model to eight different execution frameworks (harnesses) and ran 30 multi-step tasks on each. The best-performing framework passed 20 tasks; the weakest passed only 14—a gap of nearly 30%. The team’s in-house framework was not part of this round, but its internal testing showed that the same model produced markedly different results on the same mini-game task under three different frameworks.
The value of this phenomenon is not the ranking. It puts a frequently overlooked fact on the table: the ceiling of an agent’s capability is not determined by the model alone. The model is the engine; the execution framework is the transmission, chassis, and steering. No matter how powerful the engine, poor transmission efficiency and bad chassis tuning will keep the vehicle from reaching its proper speed.
One caveat matters: this kind of controlled experiment only shows relative performance “under this task set and this configuration.” It cannot be generalized into a universal ranking of frameworks. Small differences in task distribution, prompts, tool permissions, and timeout or retry policies can change the conclusion. The more rigorous reading is that the framework is a key variable that can be tuned through engineering, not a fixed constant.
2. Breakdown: What an Execution Framework Actually Controls
Breaking “framework differences” down yields five controllable dimensions.
1. Tool set and tool descriptions. The number, granularity, naming, and description quality of tools directly determine whether the model can select the right action at the right moment. Tools that are too coarse leave the model without necessary abstractions; tools that are too fine explode the selection space and raise the misselection rate. A fairly consistent industry practice is that a tool description should state “what it does, when to use it, input/output constraints, and behavior on failure”—not just a verb.
2. Context management. The essence of a multi-step task is long-horizon state maintenance. The framework must trade off between “preserving key facts” and “controlling context length.” Common techniques include segmented summarization, structured state snapshots, and retrieval-based backfilling. Over-summarizing loses constraint details; over-backfilling introduces noise and raises cost.
3. Prompts and constraint expression. The same model receives different system prompts, output-format constraints, and refusal or clarification policies under different frameworks, so its behavior naturally differs. Constraints should be verifiable—for example, requiring a plan before execution, or requiring a checkable artifact at each step.
4. Execution policy. This covers single-step vs. multi-step progression, degree of parallelism, failure retry and rollback, whether human confirmation is required, and how termination conditions are judged. The policy determines whether errors are amplified or cut off in time.
5. Evaluation and observability. Are there fine-grained logs? Can intermediate artifacts at each step be replayed? How is success rate defined (strict all-pass vs. partial completion allowed)? Different measurement standards make numbers incomparable.
An illustrative framework behavior configuration (pseudocode, conveying the idea only):
config = {"tool_policy": {"max_tools": 12, "require_schema": True},"context": {"strategy": "snapshot+summary", "max_tokens": 24000},"execution": {"max_steps": 25, "retry": 2, "rollback": True},"termination": {"success_check": "artifact_exists", "stall_detect": 3},"observability": {"trace_every_step": True, "replay": True},}
3. Attribution: Why the Gap Shows Up in Multi-Step Tasks
Single-step Q&A is insensitive to the framework; multi-step tasks amplify framework defects for three reasons.
First, error accumulation. A small deviation at each step gets treated as established fact in later steps, and the final artifact drifts away from the goal. Without mid-course validation, the framework cannot intercept the error.
Second, state drift. As steps increase, early constraints get diluted in the context and the model gradually “forgets” the original requirements. Without structured state to carry them, drift is nearly unavoidable.
Third, expansion of the action space. The more actions available, the higher the probability of choosing wrong. If tool descriptions are vague or functions overlap, the model wavers between two similar tools and the task stalls or loops.
So the core of framework tuning is not making the model “smarter” but shortening the feedback loop, compressing the selection space, and locking down key constraints.
4. Method: A Reusable Tuning Workflow
Proceed in the following order, and avoid changing prompts first.
- Define success criteria. Translate “task complete” into automatically checkable artifacts or assertions—for example, a file exists, fields are complete, tests pass. If the criteria are vague, all later optimization loses its baseline.
- Build a tiered task set. Split it into beginner, standard, and long-horizon categories, and observe pass rates for each to locate whether the problem lies in tool selection or long-horizon maintenance.
- Converge tools first. Merge semantically overlapping tools, fill in descriptions and parameter constraints, and observe changes in the misselection rate.
- Then adjust the context strategy. Introduce state snapshots that explicitly record the goal, completed items, and pending constraints to reduce drift.
- Tune the execution policy last. Set step limits, stall detection, failure rollback, and necessary human confirmation points.
- Keep traces throughout. Log an input summary, the selected tool, the returned result, and elapsed time at each step to ensure replayability and comparability.
In engineering, general cloud capabilities can support these steps: object storage to hold intermediate artifacts and replay data, a message queue to decouple long tasks from executors, a container platform to host parallel sandboxes, and logging and monitoring services to track success rate and stall rate. These are all common industry categories; specific choices should be evaluated against cost, compliance, and operational capability.
5. Selection Advice: Treat the Framework as a Testable Engineering Component
For the question “which framework should we choose,” the pragmatic approach is to avoid faith-based selection and run a small-scale benchmark:
- Replace the public task set with your own to match your real business distribution;
- Fix the model version, temperature, and other sampling parameters, changing only the framework variable to ensure a single-variable comparison;
- Record success rate, average steps, average elapsed time, human intervention rate, and the distribution of failure types at the same time;
- Focus on whether failures are explainable and fixable, not just on a single aggregate score.
If your team is already building agent applications on Baidu AI Cloud, you can combine the evaluation workflow above with the logging, monitoring, and storage capabilities of general cloud products to form a continuously regression-testable evaluation pipeline, so that gains or regressions from framework changes can be quantified.
6. Conclusion
A nearly 30% gap in success rate for the same model under different execution frameworks shows that the focus of agent engineering is shifting from “choosing a model” to “designing the execution environment.” Tool design, context management, prompt constraints, execution policy, and evaluation standards together form engineering variables that can be optimized. Making them explicit, measurable, and replayable is the reliable path to consistently converting model capability into task completion rate.
