How to Evaluate the Computer Use Capability of AI Agents in Legacy Systems

    A practical guide to evaluating the computer use capability of AI agents for automating legacy enterprise systems that lack stable, open APIs. It explains the core challenges of legacy automation, the four capability areas that matter (desktop-level operation, web structure understanding, business rule injection, and file flow), how an end-to-end task chain closes, the boundaries of applicability, engineering practices for production, a phased rollout path, and the metrics and governance needed to decide whether an agent is genuinely usable.

    In many traditional enterprises, core business systems are rarely the ideal case of being newly built, standardized, and fully equipped with interfaces. Instead, many systems have run for years, contain complete business logic and UI entry points, yet lack stable, open, and maintainable programming interfaces. Faced with such systems, automation has long sat between two extremes: either push the original vendor to redevelop or build secondary customizations—long cycles, high costs, and unpredictable scheduling—or rely on traditional scripted record-and-replay. With the latter, any change to page layout, field order, or popup prompts can break the flow. It is against this backdrop that the value of agents having a “computer use capability” is being reexamined.

    So-called computer use capability does not simply mean letting a model click the mouse on a human’s behalf. It means enabling an agent to, under limited authorization, understand interface state, execute actions, combine business rules, handle input and output files, and ultimately complete a verifiable business task. To evaluate this capability, you cannot look only at whether it can “open a page.” You need to see whether it can form a stable, controllable, and auditable task loop in a legacy environment. More concretely, it is best suited to starting with low-privilege, rollback-safe, verifiable-result flows, rather than immediately taking on high-risk, irreversible, high-privilege operations.

    1. Core challenges of legacy system automation

    The difficulty of legacy automation usually does not lie in the business itself being impossible to express, but in the execution environment lacking reliable enough ways to interact.

    First, many systems have only a graphical interface and no stable interface layer. Users can log in, query, fill forms, upload, and approve through pages, but if you want a program to do the same things automatically, developers often cannot find an interface to depend on. Without an interface, automation cannot run through standard business protocols and must fall back to the UI-operation level.

    Second, traditional fixed scripts are very sensitive to page changes. Recorded automation typically depends on fixed coordinates, fixed element positions, or fixed click sequences. If the page resolution changes, prompts are adjusted, a popup appears, the load order changes, or a permission prompt is inserted, the script can fail. Such failures do not necessarily indicate a business-logic error, but an overly fragile execution path.

    Third, manual operation is flexible but hard to scale. Humans can handle exceptions, understand context, and make on-the-spot judgments as pages change, but at high cost, with fatigue and difficulty auditing. When tasks involve large volumes of repetitive entry, verification, transfer, and submission, manual modes struggle to meet efficiency and consistency requirements.

    Finally, legacy systems often do not exist in isolation but form a complete chain together with files, approvals, ledgers, reports, and notifications. A flow may start from receiving materials, go through information extraction, system entry, attachment upload, and result verification, and finally return to manual confirmation. If automation can only complete one step and cannot link input, execution, and output together, overall efficiency remains limited.

    Therefore, the key to evaluating the value of agents in legacy systems is not whether they can “press a button,” but whether they can connect the pieces originally scattered across humans, files, rules, and interfaces into a complete loop.

    2. Key elements of computer use capability

    From a technical perspective, an agent taking over legacy-system UI operations needs at least four cooperating capabilities: UI perception and operation, web structure understanding, business rule injection, and file flow with state carrying. These four correspond to four common gaps in legacy automation.

    The first is desktop-level operation capability. It targets the entire desktop environment. The agent can, based on the current interface state, perform clicks, inputs, scrolling, window switching, copy-paste, and keyboard shortcuts. The value of this capability is broad coverage. As long as the target system runs on the desktop—whether in web form, client form, or as a local file management tool—the agent can enter the task through the visual and operational layer.

    But desktop-level operation has natural limitations. It often depends on the visible interface state and is very sensitive to occlusion, popups, loading delays, window focus, and permission prompts. If the page structure changes, the agent may need to re-locate the target control. Therefore, it is better as a general operation layer than as the only means of targeting.

    The second is web structure understanding. When the task happens inside a web page, relying on visual coordinates alone is not enough. A more robust approach is to combine page structure information to directly locate fields, buttons, list items, and form areas. Compared with relying purely on pixel positions, structure-based targeting adapts better to layout changes and suits multi-step forms, list queries, pagination, and batch entry.

    The significance of web structure understanding is upgrading from “where can I click” to “understanding where to fill in.” For example, in a form page, the agent must not only recognize input boxes like name, order number, and date, but also understand their relationship to the submit button to avoid wrong, missing, or duplicate submissions.

    The third is rule and skill injection capability. Legacy-system operations are often not pure click flows but contain many business constraints: numbering rules, review rules, required fields, sensitive-field masking, exception-handling phrasing, and pre-submission review requirements. If an agent only knows how to operate the UI but lacks rule constraints, it may complete the task while making wrong judgments.

    Rule injection turns team experience into executable constraints. For example, which fields must stay consistent, which numbers cannot repeat, which files must be uploaded, which states do not allow submission, and which exceptions need to go to a human. It moves the agent from “acting by vision” to “acting by business rules.”

    The fourth is file flow capability. Many legacy-system tasks are not single-page operations but are tightly related to file processing. Inputs may be customer documents, invoice images, receipt documents, or approval attachments; outputs may be generated reports, archived files, returned results, or updated ledgers. If files cannot travel along the same task chain, the agent degrades into a “temporary operator” and cannot form a complete delivery.

    None of the four capabilities can be missing. With clicking alone, the agent may not know business rules and numbering constraints; with rules alone, it cannot obtain the customer’s materials; even with complete files, if it still relies on fixed-coordinate targeting, a small page adjustment can cause misclicks. The real value comes from these capabilities being continuously combined to complete the chain from “getting the materials” to “delivering the result.”

    3. How a task chain closes

    Using “entering a customer receipt into a legacy work-order system” as an example, the composition of a complete task chain becomes clear.

    The traditional flow might be: a person downloads the customer receipt file, opens the legacy system, enters the corresponding module, looks up the customer number, fills in fields one by one, uploads the attachment, submits a draft, and returns to a spreadsheet to log the processing status. Each step seems simple, but combined they form high-frequency, error-prone, hard-to-standardize repetitive labor.

    With the agent involved, this chain can be reorganized into several stages.

    Stage 1 is receiving input. The agent obtains materials from a specified directory, message notification, or pending queue. At this point it does not directly operate the legacy system but first judges whether the input is complete, whether the format is parseable, and whether it contains the necessary information.

    Stage 2 is understanding and extraction. The agent combines file content with business rules to extract key fields, such as customer name, document number, date, amount, and handler. If fields are missing or conflicting, the flow should pause and go to human review rather than blindly proceeding to fill in the system.

    Stage 3 is interface execution. Based on the task goal, the agent opens the legacy system and locates modules, fields, and buttons through web structure understanding or desktop-level operation. If the task stably happens inside a web page, structure-based targeting is preferred; if it needs to span applications—for example, taking a file from the file manager, submitting on a desktop client, or querying status in another system—desktop-level operation is used.

    Stage 4 is verification. Before submission, key fields, attachments, status, and screenshots must be checked. Verification cannot look only at “whether the page shows a success message” but must judge from multiple dimensions: whether the input fields match the source file, whether the attachment uploaded successfully, whether the system’s returned status matches expectations, and whether all business rules are satisfied.

    Stage 5 is rollback and human takeover. If any step fails, the agent should keep a checkpoint, saving the current screenshot, logs, filled fields, and failure reason. For low-risk flows, automatic retry is possible; for irreversible operations, it must pause and notify a human.

    The significance of this chain is that the agent no longer just performs an isolated action but takes on an end-to-end task. Starting from materials, going through understanding, targeting, operation, verification, and archiving, it ultimately forms a deliverable result.

    4. Applicability boundaries: not every flow suits an agent

    Evaluating computer use capability requires clarifying its applicability boundaries. It is not a wholesale replacement for all legacy automation but a supplement that fills in the missing interface layer under specific conditions.

    The scenarios most suitable for a first attempt usually share these characteristics: low privilege, rollback-safe operations, verifiable results, exceptions that can be handed to humans, a relatively stable page structure, and relatively clear business rules. For example, query, registration, draft-entry, document-upload, and status-sync flows are usually better starting points.

    High-risk scenarios should be advanced cautiously. For example, operations involving fund payment, contract signing, account changes, privilege grants, bulk deletion, and irreversible submission—once mis-operated, the consequences may be unrecoverable. Even if such flows can be automated, they must add stronger confirmation mechanisms, approval mechanisms, dual-person review, and audit trails.

    From the perspective of task form, if the flow spans multiple desktop applications, desktop-level operation is more necessary; if the flow mostly stays inside a web system and the page structure is relatively stable, web structure understanding should be preferred; for mixed multi-system flows, unified task orchestration is needed rather than letting the agent switch disorderly among capabilities.

    In production, page changes still exist. Popups, nested canvases, permission prompts, CAPTCHAs, loading errors, and session timeouts can all cause task failures. Therefore, result checks and exception branches are not optional optimizations but basic requirements. Any solution that claims to be “fully automatic” without verification and rollback should not enter a critical business path.

    5. Engineering implementation: from “able to operate” to “governable”

    To make an agent truly usable in legacy systems, an engineering demo of “clicking the mouse” must be turned into a governable production solution. The following parts are all indispensable.

    1. Task definition must be clear

    Before starting automation, define the task goal, input conditions, privilege scope, completion standard, exception handling, and rollback strategy. Do not just write “auto-fill form,” but clearly write: under what conditions it can execute, which fields must be filled, to what status it submits, and how to handle failure.

    A task can be described with a general configuration, for example:

    1. task:
    2. name: Enter customer receipt into legacy work-order system
    3. inputs:
    4. - type: file
    5. path: ./inbox/customer_receipt
    6. permissions:
    7. - read_files
    8. - fill_form
    9. constraints:
    10. - max_actions: 80
    11. - require_verification: true
    12. fallback:
    13. - notify_human: true
    14. - save_checkpoint: true

    The value of this configuration is turning a task from a temporary instruction into a manageable object. It clarifies inputs, permissions, constraints, and failure policy, making it easy to audit, reuse, and evaluate.

    2. Privileges must be minimized

    An agent should not use a high-privilege account to operate core systems directly. A more reasonable approach is to assign it an independent account with only the minimum privileges needed to complete the task. For example, it can only query specified modules, fill specified forms, and upload files to a specified directory, and cannot delete, modify permissions, export full data, or perform settlement operations.

    Privilege control should also include session limits, operation time windows, target-module whitelists, and sensitive-field protection. For data involving personal information or business secrets, masking, isolation, and access auditing should be considered as well.

    3. State machine and checkpoint mechanism

    When executing tasks, an agent should be organized into a clear state machine rather than a one-time continuous operation. Each key state should produce a checkpoint, including the current step, filled fields, file locations, page screenshots, execution logs, and failure reasons.

    Checkpoints serve three purposes: first, recovery from the nearest state after failure; second, support for human takeover; and third, forming a complete audit trail. Automation without checkpoints is hard to diagnose once interrupted and hard to prove what the system actually did.

    4. Verification must be independent of the operation actions

    After the agent completes page operations, it cannot judge task success by “the click succeeded” alone. Verification should be independent of the execution actions and check across three dimensions: input, output, and rules.

    Input verification focuses on whether materials are complete, fields are parseable, and conflicts exist; output verification focuses on whether the system generated the expected result, the attachment uploaded, and the status updated; rule verification focuses on whether business constraints are met, such as whether numbers are unique, amounts match, and required fields are complete. Only when multi-dimensional verification passes can the task be considered complete.

    5. Exception branches must be designed in advance

    Legacy-system interfaces are naturally uncertain. During operation, an agent may encounter popups, loading failures, expired logins, insufficient privileges, missing controls, and changed fields. It cannot retry infinitely, nor fail silently, but should trigger preset branches: low-risk tasks can retry and degrade; high-risk tasks should pause and notify a human; tasks involving data conflicts should enter a human-review queue.

    The core principle of exception handling is: better to stop than to mis-execute. For irreversible operations, automation must give way to human confirmation.

    6. Observability determines operations quality

    Once an agent enters production, it needs to be monitored like any ordinary service. At minimum, record task success rate, average execution time, failure types, human-takeover rate, retry counts, exception distribution, and the scope affected by page changes. For critical flows, keep screenshots, action logs, and field diffs for traceability.

    Monitoring and alerting should not focus only on “whether the system is running” but on “whether the task completed as the business expects.” For example, continuous field-targeting failures for a certain form type may mean the page changed; frequent human takeovers for a certain task type may mean unreasonable rule configuration; an unusual increase in average time for a certain operation type may mean a network, login, or page-performance problem.

    6. Typical landing path: gradual expansion from low-risk tasks

    An agent taking over legacy systems should not cut into the core transaction chain from the start. A more stable path is to advance in stages.

    Stage 1 can choose read-only queries and material pre-checks. For example, let the agent log into the legacy system to query status, organize to-dos, extract key information, and output the results as a structured summary. Such flows are low-risk, verifiable, and easy to evaluate.

    Stage 2 can enter draft entry and non-final submission. The agent can fill forms, upload attachments, and generate records pending review, but not directly submit for approval or trigger downstream flows. After a human confirms correctness, they decide whether to continue. This approach both validates accuracy and preserves a human safety net.

    Stage 3 can expand to semi-automated flows. The agent completes most fixed steps and pauses at key nodes to request confirmation. For example, it can auto-fill fields, auto-compare files, and auto-check rules, but show a summary for human review before final submission.

    Stage 4 is where higher automation levels can be considered, but the premise is that the task already has stable verification, low privilege, rollback-safety, and mature exception handling. Even so, high-risk nodes should still retain confirmation mechanisms.

    The significance of this progressive path is keeping uncertainty within an observable, assessable, and reversible range. It does not reduce efficiency but improves long-term reliability.

    7. Evaluation metrics: how to judge whether an agent is truly usable

    Evaluating computer use capability cannot look only at the demo effect but at production metrics. Common evaluation dimensions include:

    1. Task completion rate: whether the agent can complete the entire task under given conditions, rather than only completing a single action.
    2. First-attempt success rate: whether the task succeeds directly without manual intervention or retry. This metric reflects flow stability.
    3. Human-takeover rate: how many tasks ultimately need human intervention. A high takeover rate indicates insufficient automation benefit; a missing takeover mechanism indicates uncontrollable risk.
    4. Exception recovery capability: whether it can save state, locate the cause, and support retry or human takeover after failure.
    5. Adaptability to page changes: whether the agent can continue executing through structure understanding or re-targeting when field order, popup prompts, or layout styles change.
    6. Verification coverage: whether key fields, attachments, status, and rules are all automatically verified rather than relying on human spot checks.
    7. Audit completeness: whether each execution leaves a clear record, including inputs, actions, screenshots, outputs, exceptions, and the final result.
    8. Efficiency after human takeover: when the agent cannot complete the task, whether a human taking over is more efficient than fully manual work. If the agent only leaves a messy scene, it actually increases human cost.

    Together these metrics determine whether the agent has production value. A solution that can only show the operation trace but cannot guarantee completion rate, audit rate, and rollback-safety should not be easily scaled to critical flows.

    8. Risks and governance: automation must be built on controllability

    An agent taking over legacy systems brings not only efficiency gains but also new risk types.

    The first is privilege risk. If the agent uses excessive privilege, a mis-operation can affect business data. The governance approach is independent accounts, least privilege, module whitelists, and session isolation.

    The second is mis-operation risk. Even with limited privileges, the agent may fill in wrong fields or submit wrong content due to targeting errors, state misjudgment, or missing rules. The governance approach is pre-submission verification, draft states, human confirmation, and disabling irreversible operations.

    The third is data risk. Legacy systems may contain personal information, financial data, customer materials, and internal files. The governance approach is data minimization, masking, access control, transmission encryption, and log auditing.

    The fourth is model judgment risk. When processing ambiguous materials, the agent may have understanding biases—for example, confusing similar fields, misjudging incomplete materials as submittable, or treating expired rules as valid. The governance approach is explicit rules, exhaustive boundary conditions, exceptions to humans, and sufficient sample testing before launch.

    The fifth is environmental change risk. Page redesigns, permission prompts, system upgrades, and network fluctuations can all affect execution stability. The governance approach is continuous monitoring, canary releases, fast rollback, and versioned task configurations.

    Therefore, the landing of an agent in a legacy system should not be described as “fully replacing humans” but positioned as a “governable automated execution layer.” Its value lies in reducing repetitive operation costs and improving flow consistency, but the premise is that every step is traceable, verifiable, interruptible, and reversible.

    9. Conclusion: computer use capability is a supplementary layer for legacy automation

    How should we evaluate the computer use capability of agents taking over legacy systems? The conclusion is: it is not a simple replacement for traditional interface development but an interactive automation supplementary layer provided in legacy environments where interfaces are missing, redevelopment costs are high, and flows change frequently.

    Its advantage lies in combining desktop operation, web structure understanding, business rules, and file flow into a task loop from material reception to result delivery. For legacy systems without stable interfaces, this is practically meaningful. But it also has clear boundaries: it is not suitable for directly launching high-risk, high-privilege, irreversible flows; it cannot replace result verification; it cannot ignore privilege governance; and it cannot equate the demo effect with production reliability.

    The truly advisable landing approach is to start with low-privilege, rollback-safe, verifiable-result flows, and establish task definitions, state machines, verification mechanisms, exception branches, audit logs, and human-takeover mechanisms. Through progressive expansion, elevate the agent from “able to operate the interface” to “able to take on business tasks.”

    Only when computer use capability is placed within an engineering-governance framework is its value stable and sustainable. It not only gives legacy automation a new execution entry point but also allows enterprises to progressively build a more intelligent, controllable, and traceable business automation system without completely overturning existing systems.