Unified Execution Framework for Multi-Model Agent Efficiency Evaluation
This article presents a controlled-variable methodology for evaluating AI agent efficiency under a unified execution framework. Using an anonymized four-model experiment on a complex creative-studio collaboration system, it examines why fixing the framework, task, assets, context window, and acceptance rules—while varying only the model—produces more meaningful comparisons than single-point benchmarks. The article details the experiment design, task complexity, acceptance criteria, and process-level findings, then proposes a three-layer metric system covering outcome, process, and maintainability indicators. It also offers engineering guidance on layered retry strategies, externalized state management, context compression, and automated acceptance with observability, helping teams build reproducible, full-chain efficiency evaluations for long-horizon agent tasks.
Unified Execution Framework for Multi-Model Agent Efficiency Evaluation
1. Why Agent Efficiency Requires Controlled-Variable Evaluation
In complex product development tasks, an agent’s overall efficiency is not determined by a single model capability. A complete execution typically involves task understanding, page structure planning, tool invocation, browser operations, state persistence, error recovery, and acceptance self-checks. The execution framework organizes these stages, the model makes decisions at each step, tool interfaces determine whether actions land reliably, and acceptance rules determine whether results are actually usable. Comparing models only on short Q&A or code-snippet generation therefore reveals little about their real efficiency in long-horizon tasks.
A more reasonable evaluation approach is to fix the execution framework, task, assets, context limit, browser automation interface, and acceptance rules, vary only the model, and observe process differences under the same system with different decision-making capabilities. The goal is not simple ranking but a capability profile: which models use fewer action rounds, which invoke tools more reliably, which recover from failures at lower cost, and which are more prone to losing critical state in long contexts. Using an anonymized controlled-variable experiment as an example, this article discusses the metric system, experiment design, result interpretation, and engineering optimization recommendations for agent efficiency evaluation.
It is important to note that single-run completion time describes only part of the capability picture. A low-cost or high-speed model may also demonstrate high action efficiency in complex tasks; conversely, a larger-parameter model may see significantly increased wall-clock time if its retry strategy is poor, tool calls are unstable, or context management is coarse. Real agent efficiency should be understood as “the total cost required to complete a task at acceptable quality,” including execution time, human intervention, retry waiting, tool-failure recovery, and acceptance rework.
2. Experiment Design: Fixed Framework, Model-Only Substitution
The task in this experiment is a creative studio collaboration system. Inputs include several public art image assets, project members, assets, versions, and comment seed data, with no ready-made page to copy directly. The model must independently complete five core states: project overview, mood board, asset-anchored comments, version approval, and publish preview. The pages also involve three roles—creative director, designer, and client—and must support asset dragging, comment anchoring, version switching, approval or rejection, with state persisting after refresh.
To control variables, all four groups used the same execution framework, the same task description, the same assets, the same context window and task budget, and a unified browser automation interface. Desktop checks used a 1440×1000 viewport; mobile checks used 390×844. Each group saved first-version screenshots, was allowed only one repair round, and had to leave behind code, screenshots, logs, review records, and metric data. All four models were anonymized as Model A, Model B, Model C, and Model D to avoid steering discussion toward specific product promotion or advertorial comparisons.
The experiment configuration can be expressed in pseudo-code as follows:
experiment:fixed:framework: "unified execution framework"task: "creative studio collaboration system"assets: "unified public images and seed data"context_window: "unified upper limit"task_budget: "unified budget"browser_automation: "unified interface"viewports:desktop: "1440x1000"mobile: "390x844"acceptance:- "five states accessible"- "three roles have correct permissions"- "dragging and comment anchoring work"- "version approval can be switched"- "state persists after refresh"- "desktop and mobile screenshots complete"- "code, logs, review, and metrics complete"repair_rounds: 1variable:models: ["anonymous model A", "anonymous model B", "anonymous model C", "anonymous model D"]metrics:- first_success_time- wall_clock_time- retry_count- action_rounds- tool_call_success_rate- context_compression_ratio- acceptance_pass_rate
The key is “model-only substitution.” An unchanged execution framework means consistent tool-call protocols, state management, browser operation entry points, and log structures. An unchanged task means comparable complexity. Unchanged acceptance rules mean a unified standard for judging result quality. Only then are process differences more likely to reflect model decision-making and recovery capabilities rather than framework or task differences.
3. Task Complexity and Acceptance Metrics
The creative studio collaboration system may look like page development, but it actually involves a state machine, permission control, interaction consistency, data persistence, and responsive adaptation. The five states are not isolated pages; they share project, asset, version, and comment state. The three roles are not simple displays; they affect button visibility, approval permissions, and comment operations. Interactions such as asset dragging, comment anchoring, version switching, and approval or rejection require frontend state to stay consistent with backend data structures. State persistence after refresh further requires persistence design that does not rely solely on in-memory variables.
Acceptance rules must cover both functionality and artifact completeness. At the functional level, checks include five-state accessibility, correct permissions for three roles, working dragging and comment anchoring, switchable version approval, and state persistence after refresh. At the experience level, checks include complete desktop and mobile screenshots, consistent layout, and feedback for key interactions. At the engineering level, checks include code structure, logging, review records, and metric files. Allowing only one repair round prevents unlimited rework from masking first-version quality issues and makes “first-pass success rate” and “repair cost” important metrics.
From an evaluation perspective, this kind of complex product task is closer to real agent applications than single-point code tasks. It forces the model to perform long-horizon planning, invoke tools frequently, maintain context state, and verify results in the browser. The model must not only “write code” but also “organize actions.” This is precisely the value of agent efficiency evaluation under an execution framework.
4. Process Results and Anonymized Interpretation
All four anonymized models eventually completed the task, showing that under a unified execution framework and clear acceptance rules, a complex product task can be decomposed and delivered. But process differences are more valuable than final screenshots. The fastest group finished in about 17 minutes, with a shorter action path and relatively coherent tool calls and state progression. Another group reran the entire round after first-version failure, finishing in about 1 hour 12 minutes including the rerun. A third group did not rerun the entire round but executed with multiple internal automatic retries, totaling about 88 minutes. The last group failed continuously under the default retry strategy, completed after adopting extended backoff, and reached first success at about 1 hour 04 minutes cumulative.
These anonymized results reveal three important phenomena.
First, full-round reruns and internal automatic retries have different cost structures. A full-round rerun loses some intermediate state and re-executes planning, tool calls, and browser verification, so wall-clock time can quickly amplify. Internal retries at the tool or step layer can preserve existing state, but too many retries lengthen per-step waiting and increase the risk of context bloat. Evaluation should not only check “whether retry happened” but also where the retry occurred, whether it is replayable, and whether it is idempotent.
Second, first-success time reflects human-agent collaboration experience better than final completion time. A task may eventually be completed, but if it fails multiple times, waits for long periods, or requires human judgment along the way, the practical cost remains high. For scenarios requiring continuous developer monitoring, first-success time, human intervention count, and recovery cost should be core metrics.
Third, visual style and artifact completeness are only one quality dimension and cannot replace process metrics. Different models may produce different styles—for example, a light editorial style, a black-gold and off-white combination, or a dark professional workbench. These differences show that models have different preferences in information organization and visual decision-making. But an evaluation article should not rank styles around specific products; it should focus on whether these differences affect acceptance pass rate, mobile consistency, and subsequent maintainability.
5. Building a Full-Chain Metric System
To avoid the one-sided conclusion of “looking only at elapsed time,” a three-layer metric system is recommended.
The first layer is outcome metrics, including task success rate, first-pass acceptance rate, final artifact completeness, and human intervention count. Task success rate answers “can it be done,” acceptance pass rate answers “is it usable when done,” and human intervention count answers “is it truly automated.” For enterprise scenarios, rework rounds and post-repair regression pass rate should also be recorded.
The second layer is process metrics, including wall-clock time, first-success time, effective action rounds, tool call count, tool call failure rate, retry count, retry waiting time, context compression ratio, and state snapshot recovery count. Too many action rounds usually indicate fragmented planning or insufficient use of tool feedback. A high tool call failure rate indicates problems with interface adaptation or error handling. An abnormal context compression ratio may indicate lost critical state or over-summarization.
The third layer is quality and maintainability metrics, including code structure clarity, state management consistency, log completeness, screenshot coverage, mobile layout consistency, and acceptance script reusability. Complex product tasks require checking not only whether pages open but also whether state is recoverable, permissions are verifiable, and future modifications are easy.
A simplified effective throughput metric can be defined as:
effective throughput = accepted tasks / (execution time + retry waiting + human intervention time + rework time)recovery cost = time and action rounds consumed from failure to restored usable state
These two metrics are closer to real production efficiency than completion time alone. Even if a model is fast in a single round, if recovery cost after failure is extremely high, overall effective throughput may not be high.
6. Retry Strategy and Stability Engineering
In long-horizon agent tasks, failure is the norm rather than the exception. Tool interfaces may time out transiently, browser operations may encounter rendering delays, models may generate actions that do not conform to the schema, and acceptance scripts may detect state inconsistencies. Retry strategies must therefore be designed in layers.
Tool-layer retries are suitable for transient errors and should ensure tool calls are idempotent or safely replayable. Step-layer retries are suitable for single-step action failures and should preserve prior state snapshots to avoid starting over. Task-layer retries are the most expensive and should be enabled only when critical state is unrecoverable or acceptance fails severely. A unified execution framework should provide timeouts, exponential backoff, jitter, circuit breaking, and maximum retry counts to prevent default policies from amplifying waiting time indefinitely.
def run_step_with_retry(step, max_attempts=3, base_delay=2):for attempt in range(max_attempts):try:return execute_idempotent(step)except TransientToolError:sleep(base_delay * (2 ** attempt) + random_jitter())except NonRecoverableError:raiseraise StepRetryExhausted(step.id)
In practice, more retries are not always better. Excessive retries can mask root causes, lengthen wall-clock time, and let errors accumulate in context. A more effective approach is to record failure categories: interface timeout, permission error, selector invalidation, state inconsistency, and acceptance failure. Different categories map to different recovery strategies. Use short backoff for predictable transient errors, state snapshot recovery for context loss, and targeted repair rather than full-round reruns for acceptance failures.
7. Context Management and Externalized State
Long-task agents are prone to context bloat as action rounds increase. Page structure, tool returns, screenshot descriptions, logs, and acceptance results all consume context. If all state depends on conversation history, the model may forget earlier constraints later on, such as a role permission, a version approval state, or a comment anchoring rule.
A more robust approach is state externalization: store project, asset, version, comment, and approval state as structured objects, and let the model read only necessary summaries and task-relevant fields each round. Context management strategies can include staged summarization, key-state references, tool-return trimming, and screenshots that retain only conclusions and anomaly regions. Evaluation should record context compression ratio and critical-state retention rate to avoid losing acceptance-critical information in the name of saving context.
{"project_id": "p-001","current_view": "version_approval","role": "client","versions": ["v1", "v2"],"pending_approval": "v2","comments": [{"asset_id": "a-03", "anchor": "region-2"}],"persisted": true}
Structured state benefits not only model decision-making but also automated acceptance and failure recovery. The acceptance item “state persists after refresh” essentially tests whether state externalization is reliable.
8. Acceptance Automation and Observability
Unified acceptance rules are the foundation of controlled-variable experiments. Acceptance should be automated as much as possible, including page route checks, role permission checks, interaction action replay, post-refresh state assertions, desktop and mobile screenshot comparison, and log completeness checks. For complex interactions, stable test identifiers and state assertions can reduce dependence on visual selection. Screenshots are used for manual review of visual consistency but cannot replace functional assertions.
For observability, record each action’s type, input summary, output summary, duration, success or failure, retry layer, and error category. Logs should not record only final results; they should be able to reconstruct the failure path. Review records should state first-version issues, repair actions, and acceptance conclusions. Metric files should include wall-clock time, first-success time, retry count, tool call success rate, acceptance pass rate, and context compression ratio. Only when the process is observable can evaluation conclusions be reproducible.
9. Practical Recommendations and Conclusion
For teams that need to evaluate agent efficiency, the following practices are recommended. First, fix the execution framework, task, assets, context, and acceptance rules, vary only the model, and run multiple times to observe long-tail stability. Second, do not look only at the fastest run or the final screenshot; record first-success time, retry layer, human intervention, and recovery cost as well. Third, design retries in layers: fast recovery at the tool layer, snapshot preservation at the step layer, and cautious use at the task layer. Fourth, externalize context state and store critical state structurally so that long conversation history does not become the sole source of truth. Fifth, combine automated acceptance with manual review, checking both functionality and artifact completeness and maintainability.
Returning to this anonymized experiment, all four models completed the task, but process differences were significant: the fastest group finished in about 17 minutes, while other groups took on the order of 1 hour due to first-round failure reruns, internal automatic retries, or extended backoff. This shows that a low-cost or high-speed model positioning describes only part of the capability picture; real agent efficiency also depends on action rounds, tool call stability, service stability, and context management. Building an evaluation method with controlled variables, observable processes, and full-chain metrics has more engineering value than one-off comparative rankings.
