# I Broke a Browser Agent on Purpose. Spotting the Fault Was Not the Same as Fixing It

DevFeed: [I Broke a Browser Agent on Purpose. Spotting the Fault Was Not the Same as Fixing It](<https://devfeed.tech/articles/i-broke-a-browser-agent-on-purpose-spotting-the-fault-was-not-the-same-as-fixing-it-102453.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/i-broke-a-browser-agent-on-purpose-spotting-the-fault-was-not-the-same-as-fixing-it/>)

Author: Abdullahi Dattijo

Published: 2026-10-27T15:30:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [Browser Automation](<https://devfeed.tech/topics/browser-automation.md>), [Agent Browser](<https://devfeed.tech/topics/agent-browser.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [actions](<https://devfeed.tech/tags/actions.md>), [added](<https://devfeed.tech/tags/added.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [ai-safety](<https://devfeed.tech/tags/ai-safety.md>), [ai-tool](<https://devfeed.tech/tags/ai-tool.md>), [browser](<https://devfeed.tech/tags/browser.md>), [clicks](<https://devfeed.tech/tags/clicks.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [first](<https://devfeed.tech/tags/first.md>), [half](<https://devfeed.tech/tags/half.md>), [i](<https://devfeed.tech/tags/i.md>), [inside](<https://devfeed.tech/tags/inside.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [llm-evaluation](<https://devfeed.tech/tags/llm-evaluation.md>), [model](<https://devfeed.tech/tags/model.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [simple](<https://devfeed.tech/tags/simple.md>)

## AI overview

A browser check can identify an action fault without enabling the agent to recover when the parser or executor keeps sending the same wrong action. In a small experiment, the author replayed 80 previously successful Claude Haiku 5.5 decisions through four deliberately broken browser paths. Generic page-state checks missed half of wrong clicks and falsely warned on every successful embedded-frame click; screenshot comparison found few corrupted searches and warned on every working search. Outcome checks, tailored to each requested result, detected all injected faults without false alarms in this setup. Yet retries through unchanged broken code still failed on searches and clicks. Checks helped when the agent could use new evidence: they prevented unnecessary frame clicks and prompted another chart observation, raising chart completion from 56/60 to 60/60, though the estimated gain ranged from 0 to 15 percentage points. The study used one simple site, one model and prompt, and 20 layouts for completion; its counts do not establish performance on other websites. The practical lesson is to log the model's request, image and viewport dimensions, action sent, target state, and resulting;

## Source excerpt

I replayed correct model decisions through four broken browser actions. A simple page check missed half of the wrong clicks, and raised a false alarm on every click that worked inside an embedded page. The post I Broke a Browser Agent on Purpose. Spotting the Fault Was Not the Same as Fixing It appeared first on Towards Data Science.