Computer-Use and Browser Agents › Recovery

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 373Computer-Use and Browser Agents › Recovery
Reading section 8 of 15 · Recovery · 2 minSection 8 of 15 · 2 min

Section 8 of 15 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Stale reference recovery changes both the observation and the action. On the next round the runtime builds a new map and the policy chooses again. Copying a discarded element ID onto a current request could point to a different control. A failed write with unknown commit state requires a different check: ask the application what happened before retrying. Repeating a possibly successful operation can produce a duplicate change.

The fixture exercises one controlled stale action. The first proposal carries the preceding epoch and is rejected before it changes state. After that recorded rejection, the policy grounds from the fresh observation. The trace records the rejection and eventual archive separately.

PythonIn [23]
CollapseExpand
def stale_once(obs, history):
    if not history:
        return Action(obs.epoch - 1, "click", 0)
    return archive_policy(obs, history)


success, outcomes = run_episode(
    MockApp(), stale_once, archive_two, archived_two
)
ConsoleOut [24]
CollapseExpand
Recovered from stale reference: True | outcomes: ('stale', 'open', 'ask_archive', 'archive')

A disabled control calls for checking its prerequisite. An invalid reference calls for a fresh view and new target search. An authorization denial calls for stopping or routing permission through the application’s control path. Recoveries are bounded because waiting and re-observing indefinitely can hide a failure and waste resources.

A navigation or transport error may leave an application mid-task. A safe read of current state can establish whether a side effect took place. If state is unavailable, preserve that uncertainty in the report and escalate according to the user’s policy. A navigation control that returns to the last view may help find context. It does not undo prior writes. Record actions and observed outcomes with enough context to reconstruct what happened while avoiding unnecessary capture of user data.

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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy