Computer-Use and Browser Agents › The untrusted observation problem
Language AI HandbookAll chapters The runtime can observe page text, accessible names and screenshots without treating them as changes to authority. In the mock, a label can have any text. The policy may propose a click because of that text. The dispatcher still checks its current reference and trusted operation and record permissions before changing state. The wrong-target experiment shows this independently from grounding.
A production application can put guards at multiple boundaries. Validate parsed actions against an allowlist for the task. Keep private data and credentials out of observations the policy does not need. Authorize consequential changes outside page content, binding approvals to the verified operation and target. Intercept activity that crosses a browser context or service boundary where the integration permits it and verify the destination through trusted state. Specify denial and escalation before deployment.
A page title, source label or confirmation string can provide semantic evidence. A trusted origin can still have untrusted user-supplied content. Observation formatting and provenance labels help the model interpret the input. A separate runtime rule decides if an operation is in scope. The mocked permission rule is narrow. A real integration needs isolation and authorization checks for the effects the browser can actually produce.
Keep attempt metrics separate from permission checks
A policy can be tested with fixed observations whose labels suggest an operation outside the caller’s grant. The test succeeds when the runtime denies that operation and the state remains unchanged. Render the same controlled label in both authorized and unauthorized cases so that the permission test does not also change grounding difficulty. If the app uses explicit human confirmation, test that its receipt names the exact effect and target and becomes stale when the relevant context changes.
The trusted grant in the notebook never comes from a rendered page. The display text and current control metadata still contribute to reasoning about what the policy intends to click. Keeping those data useful is compatible with keeping them untrusted for authority. A label can tell you which action is being offered. Separate controls determine whether the application can execute that action for the task.
For an integration with real third-party sites, publishing content, changing application permissions or sending private material can have consequences outside the browser. Define where authorization and data-handling decisions are made. For a permission check to support the actual action, identify the requested effect, the intended resource and its verified destination, and the principal on whose behalf the request is performed. The authority path can reject unknown or ambiguous destinations without relying on a page’s description of them.
Context boundaries also matter when a legitimate website contains content written by other users. The site’s identity can be trusted for routing under a particular integration without making every message inside it a trusted instruction. Observation provenance is useful for explaining the source of displayed information. Application authorization still needs its own verified state and policy.
Choose recovery behavior by outcome
The same apparent lack of progress can represent a disabled action, a stale reference, a state change that never happened, or a state change that happened but was not observed. One generic retry rule treats these cases alike. In practice each needs a separate branch based on trusted outcome evidence. Compare the last known state to a fresh verified state and only retry if the operation is safe to repeat under the intended extension of the task.
If a supervisory system pauses after a stale reference, the resume point may need both a fresh observation and the current grant. Resuming a previous planning message without verifying either can start the next step from assumptions that no longer hold. A human correction can also change the target. When that happens, recompute what counts as success before restarting the control loop.
Retaining a short local trajectory can show a recurring page pattern or alternating interactions. A repeat detector needs stable signals separate from the epoch because every fresh observation has a new version. In the fixed-position example, detail and confirmation views alternate after a Cancel result. The count limit is sufficient to terminate this toy. A production supervisor can compare semantic view identity, last permitted effect and elapsed time to decide whether to request help earlier.
Prepare a small benchmark record for every environment version
For a new version of the task manager, capture the application revision, the task fixture’s initial state, the expected target and effect, and the test permissions. Record the variant applied to each run. This allows a direct check of whether a failed episode faced a new representation or a different task. Keep the evaluation predicate separate from the policy so it can be maintained against application behavior without training the policy on its private test inputs.
A small fixture can be deterministic and still miss important cases. Examples include an archive control whose visible and accessible names disagree, a busy indicator covering the confirm button, or a repeated click after a slow request. Add cases for actual failure modes seen in authorized test environments rather than assuming that a single artificial robustness test predicts the production error mix. Report which cases use scripted inputs and which use model outputs.
If an experiment compares accessibility-only against hybrid observations, decide in advance how to handle records where one observation channel is missing. One option is to restrict the matched comparison to tasks with both channels and report their coverage. Another is to include missingness as part of the real workload and record when a system has to abstain. Those designs answer different questions. Describe the observation budget before presenting any aggregate score.
On-device, desktop and browser workflows can also differ in how application state is accessible after an action. A browser event might be observable through a DOM change. A desktop program could expose an output file in an approved local directory. A structured application interface could return a committed record ID with updated fields. Use a task-specific postcondition and document which artifact is trusted. A single generic screenshot match can confuse a transient animation, an optimistic update, and a durable commit.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!