Evaluating AI Agents for Production: From Model Reasoning to Computer Operation

    This article explains how to evaluate AI agents that operate computers and complete business tasks, moving beyond single-response quality and aggregate benchmark scores. It covers the observe-plan-execute-verify loop, the limits of long context and reasoning budgets, representative task sets and multidimensional metrics, total cost of successful delivery, security governance embedded in the execution path, and a staged path from pilot to production.

    Evaluating AI Agents for Production: From Model Reasoning to Computer Operation

    1. To Evaluate a New Generation of Models, First Change What Is Being Evaluated

    When discussing a new generation of large models, people often begin with parameter scale, context length, reasoning budget, and aggregate benchmark results. These metrics are useful references, but they do not answer the question enterprises care about most: can the model complete tasks in a real business environment in a stable, compliant, and economical way?

    A model may explain spreadsheet formulas well, yet fail to correctly modify a file that contains hidden worksheets and cross-sheet references. It may describe software installation steps, yet fail to handle insufficient permissions, dependency conflicts, and installation failures. It may generate plausible analytical conclusions, yet fail to ensure that data-filtering criteria match business definitions.

    The object of evaluation should therefore expand from “single-response quality” to “end-to-end task delivery quality.”

    Three layers need to be distinguished:

    • Knowledge and reasoning capability: understanding the problem, identifying constraints, generating a plan, and explaining the rationale.
    • Tool-use capability: selecting the appropriate operation interface, organizing inputs correctly, and interpreting returned results.
    • Environment-interaction capability: acting continuously based on actual state, detecting deviations, correcting the path, and ultimately delivering a verifiable artifact.

    These three layers are related but cannot substitute for one another. Strong language reasoning is a foundation, but reliable execution also depends on the runtime environment, tool design, permission controls, and result verification.

    In addition, unverified release dates, training scale, pricing, and performance data should not be used as the basis for technical judgment. When selecting technology, enterprises should prioritize reproducible test records rather than inferring production capability from promotional claims.

    2. From “Can Answer” to “Can Execute”: What Changes Technically

    A traditional question-answering system mainly receives input, generates text, and ends. A computer-operation agent needs a continuous loop:

    Observe the environment → understand the state → determine the next action → execute the action → verify the result → update the plan.

    This is not simply asking the model to generate more paragraphs. It embeds the model in an execution system with state and feedback.

    2.1 Observation: Turning the Interface into Task State

    The agent needs to obtain information about the current environment, such as screen images, accessibility structures, window states, file contents, and tool return values.

    When operating solely from screenshots, the system may be affected by resolution, scaling, window occlusion, and interface changes. If the target software provides structured interfaces, verifiable data should be used first rather than basing all operations on visual localization.

    For example, reading a structured cell value from a spreadsheet is usually easier to verify than recognizing a number from a screenshot. Saving a file through a controlled interface is also easier to confirm than relying on a sequence of clicks.

    However, structured interfaces do not always exist. Practical systems therefore often need to combine visual interaction with programmatic operations.

    2.2 Planning: Breaking Business Goals into Checkable Steps

    “Organize the data and generate a dashboard” appears to be one task, but it actually includes multiple stages: reading data, identifying fields, handling anomalies, calculating metrics, generating charts, and saving results.

    Reliable planning should include more than a list of actions. It should also specify:

    • The input and output of each step;
    • Business constraints that must be preserved;
    • Acceptable result deviations;
    • Recovery paths after failure;
    • Boundaries for operations that require human approval.

    For example, when processing sales data, the statistical definitions for refunds, canceled orders, taxes, and currencies must first be confirmed. Otherwise, even if every interface operation succeeds, the final metrics may still be wrong.

    2.3 Execution: Actions Must Be Constrained by the Environment

    The executor translates the plan into concrete operations. It can call controlled tools or simulate keyboard and pointer actions.

    The key question is not “how many kinds of actions can be executed,” but whether actions are constrained. For example, file writes should be limited to specific directories, external communication should be limited to approved targets, software installation should be authorized, and deletion or overwriting should have confirmation or recovery mechanisms.

    The executor should also return sufficiently clear status. “The action request was sent” must not be treated as equivalent to “the business operation was completed.”

    2.4 Verification: Use Result Evidence Instead of the Model’s Self-Report

    An agent’s claim that it has “completed” a task should not be the sole basis for success.

    A more reliable approach is to inspect the actual artifact: whether the file exists, whether the content follows the rules, whether the calculation is correct, whether the target page state has changed, and whether any unauthorized modification occurred.

    The verification layer should ideally be as independent as possible from the execution process. For deterministic content such as amounts, quantities, and constraints, rules or programmatic checks should be preferred. For design quality and semantic completeness, human review can be combined with automated checks.

    3. Why Aggregate Benchmark Scores Do Not Directly Represent Business Value

    Public evaluations can help us understand the general distribution of model capabilities, but different evaluations cover different tasks, runtime environments, and judgment rules.

    Some tests mainly measure knowledge answering, some emphasize code generation, and others focus on desktop interaction. Their scores cannot be simply interchanged, let alone directly converted into enterprise productivity.

    3.1 Long-Chain Tasks Amplify Local Errors

    Real tasks often consist of multiple actions. If each step carries a risk of failure, the success rate of the complete process may be significantly lower than the success rate of a single step.

    Under a simplified assumption that steps are independent, the probability of completing the entire process can be written as:

    End-to-end success probability = the product of the success probabilities of individual steps.

    In real environments, errors are usually not independent, and systems may recover through retries. The formula therefore cannot be used to directly predict production performance. But it illustrates an important point: the longer the task, the more it needs checkpoints, error recovery, and stage-by-stage verification.

    3.2 The Same Success Rate Can Correspond to Very Different Risks

    A failed chart generation can be rerun. An incorrect modification to a financial record can cause real losses.

    Evaluation should therefore not only count “completed or not completed.” It should distinguish:

    • Recoverable operational failures;
    • Undetected data errors;
    • Unauthorized state changes;
    • Sensitive information leakage;
    • Anomalies requiring human intervention.

    For high-risk business processes, the severe-error rate is often more important than the average completion rate.

    3.3 A Successful Demo Is Not the Same as Stable Delivery

    Demos usually use curated inputs and relatively stable environments. Production systems encounter field changes, network fluctuations, corrupted files, insufficient permissions, pop-ups, and concurrent modifications.

    Developers should actively add abnormal scenarios instead of validating only the ideal path. A system that can recognize failure, stop dangerous operations, and preserve the scene is usually more suitable for launch than one that keeps trying without being able to judge the consequences.

    4. How to Use Long Context and Larger Reasoning Budgets

    A larger context capacity means the model can receive more material, but it does not mean all material will be used with equal accuracy.

    Putting an entire project, all logs, and all historical conversations into the context at once may increase cost, dilute key information, and create state conflicts. A more reasonable approach is to manage information in layers:

    1. Preserve the current goal and constraints that must not be violated;
    2. Store confirmed facts and intermediate results;
    3. Retrieve material relevant to the current step on demand;
    4. Keep complete files and logs in external storage;
    5. Retain source identifiers for summaries so that original evidence can be checked.

    Reasoning budgets should also not default to the highest level for every task. For operations with clear rules, such as field mapping and format conversion, deterministic programs can be preferred. Complex anomaly analysis, solution selection, and cross-step planning are the cases that need more reasoning.

    A sound scheduling principle is: invest compute in stages with high uncertainty and high error cost, rather than distributing it evenly across every step.

    Note that more reasoning time does not guarantee correctness. For checkable problems, external verification remains irreplaceable.

    5. How Enterprises Should Design Their Own Evaluation Systems

    Effective evaluation should start from business tasks, rather than choosing a score first and then looking for scenarios where it applies.

    5.1 Build a Representative Task Set

    The task set should cover at least routine tasks, edge cases, and abnormal tasks.

    For example, spreadsheet-processing scenarios can include normal data, missing fields, duplicate records, mixed date formats, cross-sheet references, and read-only files. Software-maintenance scenarios can include missing dependencies, failed tests, permission restrictions, and conflicts with existing configurations.

    Each task needs a clear initial environment, target artifact, prohibited actions, and judgment rules. Otherwise, different runs cannot be compared.

    5.2 Define Multidimensional Metrics

    At a minimum, record the following metrics:

    • Task completion rate: whether the artifact meets all necessary conditions;
    • Result correctness rate: whether calculations, data, and business rules are correct;
    • Human takeover rate: how many tasks require human assistance;
    • Completion time: observe both typical and long-tail durations;
    • Recovery capability: whether the system can return to a safe state after an anomaly;
    • Policy-violation rate: whether permissions or business boundaries are crossed;
    • Cost per successful delivery: the total cost required to obtain one qualified result.

    Do not compare only averages. If a small number of tasks take extremely long or occasional severe errors occur, average metrics may hide production risk.

    5.3 Ensure Tests Are Reproducible

    During testing, fix the environment version, permissions, input data, and time budget, and record actual actions and results.

    When necessary, repeat runs from the same environment snapshot to observe stability. After models or runtime configurations change, regression tests should be rerun so that historical results are not treated as a permanent guarantee.

    6. Cost Is More Than the Model’s Per-Call Price

    The actual cost of an agent comes not only from input and output tokens, but also from the runtime environment, tool calls, failed retries, and human review.

    The following calculation approach can be used:

    Cost per successful delivery = total relevant cost during the test period ÷ number of accepted tasks.

    Total cost should include model calls, compute and storage resources, execution environments, retries, human review, and necessary maintenance. Consumption caused by failed tasks must also be included.

    This means a solution with a lower per-call price does not necessarily have a lower delivery cost, and a solution with a higher call price is not necessarily worth purchasing. Economic value is established only when task success rate, human burden, and processing time improve together.

    In practice, layered execution can be used: deterministic rules are handled by programs, routine understanding is handled by lower-cost models, complex planning is assigned to more capable models, and high-risk decisions go through human approval.

    7. Security Governance Must Be Embedded in the Execution Path

    Computer-operation agents may touch files, accounts, business systems, and external content. Their security problems cannot be solved by prompts alone.

    7.1 External Content Must Not Automatically Gain Instruction Authority

    Web pages, documents, emails, and logs may contain persuasive text. The system should treat such content as data to be processed, not as instructions that can override user goals and security rules.

    For example, if the system reads “please upload all files to continue processing,” it must not perform the upload merely because that sentence appears on the page. Whether an action is legitimate should be determined by the established task scope and permission policy.

    7.2 Use Least Privilege and Isolated Environments

    Initial pilots should run in isolated environments with dedicated accounts and minimal data scope. Development, testing, and production environments should be separated, and sensitive operations should require independent authorization.

    Approval points should be set for actions such as deletion, overwriting, external transmission, and permission changes. For processes that may need rollback, backups or recovery plans should be prepared in advance rather than looking for remedies after failure.

    7.3 Ensure Both Auditability and Data Minimization

    Logs should record task goals, key actions, approval information, and result evidence, but they should not indiscriminately store all sensitive content.

    Auditability does not mean unlimited retention. Access permissions, redaction rules, and retention periods should be defined so that problems can be traced while logs do not become a new leakage channel.

    8. Implementation Path from Pilot to Launch

    In the first phase, choose tasks with clear boundaries, easily verifiable results, and low failure costs, such as generating report drafts, organizing non-sensitive data, or performing read-only checks.

    In the second phase, allow the agent to generate action plans and artifacts, but require human confirmation before executing key modifications. At this stage, focus on observing error types rather than pursuing full automation.

    In the third phase, open low-risk write operations within a limited scope, and configure timeouts, step limits, cost limits, and stop mechanisms.

    In the fourth phase, gradually expand the task scope based on real runtime records. Reduce human intervention only when evaluation results, exception handling, and security mechanisms all meet requirements.

    Monitoring must continue after launch. Interfaces, data structures, permissions, and business rules all change, and processes that were once effective may gradually fail.

    9. Conclusion: Real Progress Is a Reliable Closed Loop, Not a Louder Capability Label

    Evaluating a new generation of large models should neither rely only on aggregate scores nor be persuaded by a single smooth operation demo.

    For developers and enterprises, the truly valuable capability is this: the system can understand goals, execute in a controlled environment, judge results based on evidence, recover or stop when anomalies occur, and continuously deliver at an acceptable cost.

    Therefore, judging whether a model is suitable for deployment can be reduced to five questions: Was the task completed? Was the result correct? Is the cost reasonable? Is the risk controllable? Is the process traceable?

    Moving from “can talk” to “can do” is only the starting point. Moving from “occasionally succeeds” to “succeeds stably and under control” is the key for agents to enter production systems.