Duku AI is now Antidote

/

Research

Why the agent that acts should never be the one that judges

An AI agent that chooses its own steps in a live web application can be wrong in ways scripted checks never could, even causing the bug it goes on to report.

·

7 min read

Summary

An agent that chooses its own steps can fail in new ways. Trust comes from keeping acting and judging apart, enforcing limits in code and reporting what was never fairly tested.

The numbers

An AI agent that chooses its own steps in a live web application can be wrong in ways scripted checks never could, even causing the bug it goes on to report. If the same model clicks through the product and grades its own session, it rationalises those mistakes instead of questioning them. What separates a trustworthy agentic testing tool from a noisy one is keeping the agent that acts strictly separate from the system that decides what to believe.

If you want the definition of agentic testing and how it compares with scripted automation, start with What is agentic testing?.

What goes wrong when the tester decides for itself?

A scripted test only fails along the narrow track an engineer laid down. An agent making its own decisions can touch controls no human would ever reach, get tripped up by an unpredictable cookie banner, misread an interface or stop short of its goal. Without deliberate guardrails, a reporting layer will still label that session passed or blame the customer’s product. Four incidents from our own experience show how agentic testing breaks in practice.

The agent causes the bug it reports. An agent interacted with a hidden control that no human user could reach, crashing the page and generating false bug reports, whereas choosing the same option through the visible interface worked cleanly. The lesson was direct: the moment an agent acts outside the visible surface available to a real person, it stops testing the product and starts manufacturing defects no customer could ever hit.

The agent blames the customer for its own mistake. In one run, an agent meant to post a note typed it into a search box above the form, turning an agent error into a drop in the customer’s pass rate. Engineering teams judge a verification system by its worst misfire.

If one run in ten wrongly tells them their product is broken, they quickly stop trusting the other nine.

The agent acts on the outside world. Runs against a design partner’s staging environment filled in and submitted an embedded help-desk widget, opening about 20 real support tickets in a single day. Some chat widgets send a message the instant they open, so an agent cannot open one and back out. An autonomous actor inside a live browser can reach external systems and real people unless hard boundaries stop it.

~20

real support tickets opened by test runs in a day.

The agent buries the team in noise. Customers told us our issue titles were too technical, the evidence was too thin, the inbox was too noisy and priorities were inflated. Flagging oddities on a page is easy; convincing an engineer to pause a release requires tying a finding to real user and business impact.

Engineering leaders shipping AI-generated pull requests look at those four failure modes and ask a sharp question: if both the code author and the tester are non-deterministic, are you just stacking two unknowns on top of each other? Telling a genuine product defect apart from an artefact of the testing system is hard, and if you classify failures badly, you cannot even trust your own false-positive numbers. Waiting for smarter frontier models will not fix those failures on its own. They are design and judgement problems, which leads straight to our core principle: the agent that acts should never be the one that judges.

Why the agent that acts should never be the one that judges

No agent in a trustworthy testing system should decide whether its own work passed. We apply our public principle that an AI checking its own output is “marking its own homework” to our own agents as strictly as to AI-written code.

When the same model that clicked through an application also grades the session, it carries every misconception from the run straight into the verdict. If an agent mistook a search box for a note composer, it already believes it filled in the right field. Asking that same context to judge the outcome invites it to rationalise its own mistake instead of questioning it.

Keeping acting and judging separate breaks that confirmation loop.

In practice, acting and judging should remain strictly separate so the judge never inherits the actor’s assumptions. Every verdict should rest on concrete evidence from the run itself. What a user sees on screen should decide whether the goal was reached, even when a run takes a different path. Text displayed inside the application must be treated strictly as evidence to inspect, never as instructions to follow. Without that boundary, unexpected copy or hostile text on a page could steer a judge into a bogus all-clear.

A separate judge also needs a third outcome beside pass and fail for runs where the product never got a fair test. Calling a run failed tells an engineering team their product is broken, so that verdict must be earned with clear evidence that the application broke where a user expects it to work. Anything the testing setup or environment could explain should be marked inconclusive rather than added to the failure count, keeping that middle category deliberately wide.

Even an independent judge will over-report if its first impression lands straight in an engineer’s inbox. Visual interpretation can still misread a screen state. Before any candidate finding reaches the team, it should face an explicit attempt to disprove it, and whatever survives should be replayed in a fresh session to confirm the problem happens again.

Building this scepticism into the verification loop carries real operational costs. Widening the inconclusive band means some real regressions wait for a cleaner run instead of triggering an immediate alert. Challenging every candidate finding risks occasionally filtering out a genuine bug along with the noise, and replaying issues adds extra time and compute before a report reaches the team. Those trade-offs are worth absorbing inside the testing system rather than passing noise on to engineers.

A team will accept a tool that says it could not verify a journey cleanly; it will quickly abandon a tool that cries wolf on healthy releases.

Scepticism introduces one more obligation: you cannot prove an agentic system works merely by showing that its inbox is quiet. The easiest way to eliminate false alarms is to stop reporting real defects. To keep both actors and judges honest, testing agents should be measured against bugs planted on purpose in realistic test environments. You can only judge what an agent missed when you know every defect that was actually there to find.

Separating acting from judging protects the integrity of a report once a run finishes, yet post-run review cannot undo damage an agent causes while a session is still live.

Limits belong in code, not in prompts

Telling an agent “don’t” inside a prompt is a request; only a check the agent cannot bypass is a limit.

Prompts fail as safety boundaries for a structural reason. A language model weighs system instructions against everything else in its context, including prominent buttons, modal dialogs and untrusted copy rendered inside the application. When an interface strongly invites a click or a form submission, a natural-language warning can lose that contest. Putting safety rules in the same channel as application text leaves the agent to police itself on unfamiliar screens.

Hard limits therefore belong in deterministic code outside the model. Every step an agent proposes must be checked before anything executes in the browser, keeping the system away from actions that could disrupt an application or its customers, such as signing out. When a proposed step crosses a boundary, fixed code blocks it before it happens and tells the agent why, so it can try a safe path instead.

That code boundary matters most for authentication. An agent verifying real user journeys needs to sign in, yet the model itself should never see a secret. Fixed code, rather than model judgement, must control where credentials may be entered. If a broken or deceptive page tells the agent to paste a password into an ordinary message box, deterministic code refuses the step regardless of what the screen asks.

When live actions are bounded in code and verdicts are separated from execution, the final measure of trustworthiness is the report an engineer actually reads.

What an agentic test report has to show

A report from a testing agent is only as useful as its honesty about what it did not check.

Engineers rarely trust an opaque number claiming a release is safe. Clear evidence saves interpretation and removes any need for an invented confidence score. Every run should return direct proof a developer can inspect in seconds: a screen recording, a step-by-step action transcript linked to the video, the errors hit and a screenshot of every screen reached.

A single observation is always bounded by its inputs, environment and path, and a passing check should never silently stand in for every related journey or environment (see our post on code review, automated tests and observed behaviour and our regression testing article). Our public stance never to fake an all-clear rests on holding a wide inconclusive verdict and a simple internal rule: a technical failure on the testing side must never be presented as successful coverage.

Two tensions sit close to daily engineering workflows. Teams with a critical journey that breaks every Monday morning naturally want strict repeatability, whereas open exploration is non-deterministic by design; balancing adaptive discovery with repeatable flow checks remains an active design challenge. Setup is not hands-off either: agreeing on which key flows actually matter to a business still requires human collaboration rather than pointing software at an app and expecting it to guess your priorities.

With both the design principles and the open problems on the table, engineering leaders have a concrete basis for scrutinising claims in this category. We turned these trade-offs into six questions for judging any agentic testing tool, ours included, in What is agentic testing?.

ShareinX
LinkedInX

Written by

Leave the testing to Antidote.

Antidote proves your product works every time you ship.

Autonomous product verification. Observed, not assumed.

Ask AI about us

Copyright © 2026 TCWL Group Ltd. All rights reserved.

Autonomous product verification. Observed, not assumed.

Ask AI about us

Copyright © 2026 TCWL Group Ltd. All rights reserved.

Autonomous product verification. Observed, not assumed.

Ask AI about us

Copyright © 2026 TCWL Group Ltd. All rights reserved.