From Screen Understanding to Reliable Execution: Best Practices for Computer-Using Agents
Computer-using agents go beyond simple screen clicking; they require a continuous decision loop of understanding goals, observing the environment, planning, executing, and verifying. This article explores the technical components of reliable computer operation, from screen perception and action planning to result verification. It also discusses how to correctly interpret evaluation metrics, adopt a layered enterprise architecture for deployment, and gradually expand automation while mitigating risks and ensuring system reliability.
1. Evaluating Computer-Using Agents: Beyond “Can It Click?”
Traditional AI assistants primarily interact with users through text, outputting explanations, suggestions, or code. Computer-using agents, however, enter the software environment to observe interfaces, select actions, execute operations, and determine task completion based on objectives.
The core of this shift is not merely the addition of mouse and keyboard control, but the system’s need to handle a continuous decision loop:
Understand Goal → Observe Environment → Plan → Execute Action → Verify Result → Adjust Plan if Necessary.
For example, “summarize this month’s approved expenses” is not a task that can be completed with a single click. The agent needs to find the corresponding page, understand filter conditions, determine approval status, extract records, handle pagination, verify amounts, and save the results. An error in any of these stages could lead to omissions, duplicates, or incorrect submissions.
Therefore, when evaluating this technology, three distinct questions should be addressed:
- Perception: Can it accurately identify target controls, field meanings, and interface states?
- Execution: Can it execute the correct action sequence and adapt to environmental changes?
- Trust: Can it verify business results, control permissions, and provide an audit trail?
Only when all three conditions are met does computer operation capability hold practical production value.
2. Why Screen Understanding is Crucial but Not a Substitute for APIs
1. GUIs Expand the Scope of Automation
In enterprise environments, many tasks span multiple software and internal systems. Some systems lack usable APIs; others have incomplete documentation, difficult-to-coordinate authorization, or APIs that do not cover all daily operational needs.
Graphical User Interfaces (GUIs) provide a visible interaction path for these systems. As long as a task can be completed via the interface, the agent has the opportunity to execute it in a manner similar to human operation, without needing to develop deep integrations for every system first.
This is particularly valuable for legacy systems, low-frequency background operations, and cross-application workflows. It reduces the dependency on API refactoring for automation pilots, allowing enterprises to validate business value before investing in deeper system integration.
However, this does not mean that “all software is suitable for screen automation.” Complex charts, remote desktops, special input controls, and operations requiring physical device confirmation can form new limitations.
2. The UI is an Interaction Entry Point, Not a Stable Data Contract
Understanding the interface as a universal operation entry point is reasonable, but it cannot be equated with a structured API.
APIs typically provide explicit inputs, outputs, and error states; interfaces are subject to window size, scroll position, pop-ups, themes, languages, and load timing. The same button might move, hide, or become obscured in different states, and the same record might appear in different positions due to sorting changes.
Therefore, a more robust engineering strategy is:
Prioritize trusted, authorized structured APIs; use interface operations when APIs cannot cover them; and verify key results through independent channels whenever possible.
For instance, an agent can fill out an application on a page, but the post-submission status should not be judged solely by a “successful click,” but rather by checking the application ID, processing status, or subsequent records.
3. Technical Components of Computer Operation Capabilities
1. Screen Perception: From Text Recognition to Business Semantics
Screen understanding includes not only reading text but also identifying layout, control types, hierarchical relationships, and states.
A button displaying “OK” has completely different risk levels in a standard prompt box, a payment confirmation box, and a delete confirmation box. The system must determine the button’s true function by combining the title, context, and current task, rather than relying solely on text matching.
An effective perception result should ideally include:
- The current page and its business meaning;
- Interactive controls and their corresponding positions;
- Relationships between elements like input fields, buttons, and lists;
- Whether there are loading states, errors, obscuring elements, or confirmation pop-ups;
- Whether the information required for the current task is fully displayed.
If the environment provides trusted structured UI information (such as DOM or accessibility trees), it can be used in conjunction with visual results. The visual module confirms the actual rendered state, while structured information helps locate controls and read attributes. The mutual verification of both is more robust than relying on single coordinate clicks.
2. Action Planning: Breaking Goals into Verifiable Steps
Long tasks easily deviate from the goal due to early errors. Effective planning should not just generate a string of operations, but define expected states and verification conditions for each stage.
Take creating a business record as an example, which can be broken down into:
- Open the target module and confirm page identity;
- Fill in basic information and check required fields;
- Add details and verify quantities and amounts;
- Enter preview and check overall content;
- Submit after obtaining necessary authorization;
- Query the record to confirm the saved result.
This breakdown allows errors to be caught locally rather than surfacing only at the end of the task.
Planning also needs to adjust to environmental changes. If a button is unavailable, the system should first determine whether there are incomplete fields, permission limits, or loading issues, rather than repeatedly clicking it immediately.
3. Execution Control: Observe the Environment After Actions
Real software response times are not fixed. Network latency, backend validation, and data loading can all delay the appearance of action results.
Therefore, reliable execution should adopt a state-driven approach: waiting for the target control to appear, waiting for loading to finish, and waiting for the page to enter the expected state, rather than using fixed wait times as the sole basis.
Re-observation should also occur after an action is completed. For example, after clicking save, check for a success prompt or record status; after entering text, confirm that the content hasn’t been truncated, formatted, or automatically replaced.
Coordinate operations only prove that an “action occurred at a certain location,” not that a “business intent has been achieved.”
4. Result Verification: Distinguishing Action Success from Task Success
Action success is a local concept; task success is a business concept.
For example, clicking an export button does not mean the file has been generated; file generation does not mean the data range is correct. Complete verification may require checking if the file exists, if fields are complete, if the record count is reasonable, and if the filter criteria match user requirements.
For important tasks, verification evidence should ideally not rely entirely on the same visual clues of the action just executed. It can combine page status, output files, business records, or authorized query results to form relatively independent evidence.
4. How to Correctly Interpret Evaluation Results
Evaluations often cover different directions like screen localization, real-environment tasks, terminal tasks, and abstract reasoning. These directions reflect different capabilities and cannot simply be merged into a single “overall leading” conclusion. Since specific model names, versions, and numbers lack verifiable sources in the original context, we will not rank performance here, but rather discuss more valuable evaluation methods.
1. Localization Accuracy Does Not Equal Task Completion Rate
Identifying the position of a button only covers one link in the execution chain. Real tasks also require correctly understanding the goal, selecting pages, filling in data, handling exceptions, and completing result verification.
Long tasks usually consist of multiple continuous steps, where local errors accumulate to affect the overall result. Meanwhile, steps are not entirely independent: one error might change the subsequent interface, and effective recovery might compensate for a previous mistake.
Therefore, enterprise acceptance testing should not only test single-time localization but also test the complete workflow and its failure recovery capabilities.
2. Completion Rate Must Bind to Clear Judgment Rules
“Task completion” needs to be predefined. Does organizing a table require format consistency? Does creating a record require submission? Does sending a message require checking the recipient and attachments?
If the judgment rules are too loose, the system might appear to complete tasks while leaving behind business errors. A better approach is to write acceptance criteria as checkable conditions, including final state, key fields, output content, and prohibited side effects.
3. Time Metrics Need Analysis with Cost and Quality
A shortened average duration does not necessarily mean the system is more suitable for production. You also need to understand:
- Whether statistics include failed tasks and retries;
- Whether manual takeover occurred;
- Whether the same execution environment was used;
- Whether validation or approval steps were skipped;
- How much compute and external resources were consumed per task.
Actual deployment should simultaneously observe end-to-end duration, success rate, manual intervention rate, critical error rate, and cost per successful task, rather than just comparing a single speed metric.
4. Abstract Reasoning Ability Does Not Automatically Prove Business Reliability
Exploration and reasoning under unfamiliar rules help measure whether a system can adapt to new problems. But enterprise software also involves permissions, business rules, asynchronous processing, and irreversible operations.
Abstract reasoning performance can serve as auxiliary evidence, but it cannot replace testing on real workflows. Whether it can safely operate financial, procurement, or customer data systems must be judged through acceptance testing in corresponding scenarios.
5. Enterprise Deployment Should Adopt a Layered Architecture
1. Task Layer: Define Scope and Completion Criteria
The task entry should record the goal, input data, operable systems, output requirements, and constraints. For ambiguous instructions, clarification should occur first rather than letting the agent guess.
For instance, “process these expenses” needs further clarification on whether it means categorizing, verifying, submitting, or paying. Different actions correspond to completely different permissions and risks.
2. Decision Layer: Manage Plans, States, and Recovery Paths
The decision layer should maintain completed steps, current state, and next actions, while setting retry limits, task timeouts, and stop conditions.
Exception recovery must distinguish the nature of the action. Reading a page can usually be retried, but actions like submitting applications, sending messages, or making payments cannot be blindly repeated. After an interface timeout, the system should first query the result to confirm whether it has already succeeded, avoiding the creation of duplicate business records.
3. Policy Layer: Independently Control High-Risk Actions
Security constraints should not just be written in model prompts but enforced by an independent mechanism.
Different controls can be set based on action risk:
- Read-only queries: Execute automatically within authorized scope;
- Reversible modifications: Execute, verify, and retain recovery evidence;
- Submit, send, delete, etc.: Require confirmation based on business rules;
- Permission changes and financial operations: Adopt stricter approval and identity verification.
During confirmation, the operation target, key content, and potential impact should be displayed, rather than just asking a simple “Do you want to continue?”.
4. Audit Layer: Retain Necessary Evidence, Avoid Over-Collection
Operation logs should record the task ID, time, action type, verification result, and exception reason. Screenshots and input content may contain sensitive information and should be collected as needed, with desensitization, access control, and retention periods set.
Debugging convenience cannot be an excuse for permanently saving all screen content in a production system. A balance must be struck between traceability and data minimization.
6. Guard Against Misleading Interface Content
Computer-using agents read pages, documents, messages, and pop-ups, and the content within them may contain text disguised as operational instructions.
For example, a piece of page text might instruct the system to ignore the original task, open another page, or upload data. Even if this text is clearly displayed on the screen, it does not mean it has authorizing effect.
The system must distinguish between:
- User-authorized task goals;
- Enterprise-configured operation rules;
- Ordinary data read from the environment.
The third category of content cannot independently expand permissions, change goals, or trigger sensitive operations. For credentials, customer information, and internal files, their accessible range and outbound paths should be restricted to prevent leaks caused by inducing content in the interface.
7. Building Reliability Through Small-Scale Pilots
Phase 1: Select Low-Risk, Well-Bounded Tasks
Prioritize tasks like querying, organizing, and exporting. These scenarios are easy to verify and have relatively controllable impacts if they fail.
During the pilot, limit account permissions, data scope, and accessible systems. Verify the basic closed loop first, rather than directly trying to cover all office workflows.
Phase 2: Build a Test Set Including Exceptions
The test set should cover both normal paths and situations like slow loading, no data, missing fields, pagination, insufficient permissions, UI redesigns, and submission timeouts.
Each case should define initial conditions, expected results, and prohibited actions. If necessary, construct failure scenarios in a controlled environment to check whether the system can stop, recover, or request human assistance.
Phase 3: Conduct Supervised Real-World Trial Runs
The focus of trial runs is not just counting successful tasks, but analyzing the distribution of failures: which problems come from perception, which from planning, which from unclear business rules, and which from inherent system instability.
These issues require different fixes. You cannot attribute all failures to model capability, nor can you rely on increased retries to mask process design flaws.
Phase 4: Gradually Expand Automation Scope by Risk
Only after result verification, auditing, exception handling, and permission control are stable is it appropriate to open up more operations.
For high-risk tasks, keeping manual approval long-term might be better than making full automation the only goal. A rational human-machine division of labor is often more commercially valuable than pursuing zero intervention.
8. Conclusion: The Reliability of the Execution Loop is What Truly Matters
The significance of computer-using agents lies in enabling automation to reach more software where GUIs are the primary entry point, and in attempting to complete work that spans multiple steps and systems.
However, they are not a universal software connector. Interface changes, state uncertainty, business ambiguity, and security risks will all limit practical effectiveness.
For developers and enterprise users, judging whether this technology is mature should not rely solely on smooth demos or improved scores, but on checking four things: Are goals clear? Are actions controlled? Are results verifiable? Are failures manageable?
When these conditions are met, screen understanding transforms from an ability to “identify interfaces” into a stable, auditable, and continuously improvable business execution capability.
