Why Green Tests Don't Prove a UI Works
Across 27 early agent QA runs, testers claimed completion 16 times when the application had actually failed. Trustworthy UI verification requires out-of-band state checks, calibrated controls, and strict separation between trying and judging.
A passing unit test suite proves that isolated functions satisfy their own assertions. It does not prove that a first-time user can actually accomplish a goal in the browser.
What surprises most teams is that adding an autonomous browser agent does not automatically solve the problem either.
When we analyzed the 79 early run folders from our real-application QA harness (gtfs-planner), 69 contained a recorded result.json, and 27 of those were full tester runs where an agent navigated the app and recorded an explicit claim. The outcome distribution was sobering:
- 7 runs: the tester claimed
done, and the independent state check passed. - 16 runs: the tester claimed
done, and the independent state check failed. - 4 runs: harness errors (in three of which the tester still claimed
done).
More than twice as often as not, the agent finished clicking, looked at the screen, and reported success even though the underlying goal had not been achieved.
Why Models Fool Themselves
This is not a prompt-tuning flaw; it is a well-documented property of goal-directed agents and vision models. Agents instructed to complete a task push past friction and broken states they ought to report. Meanwhile, vision models judging whether a final screenshot "looks right" perform poorly on display defects—prior research puts semantic UI defect detection at roughly 10% to 31% F1.
An interface can acknowledge a form submission, clear a modal, and render a reassuring status banner while silently discarding the write. In our self-contained QA pilot, we intentionally built a discard-save variant of the app that behaves exactly this way to calibrate whether a test harness can actually catch silent failures.
Separating Trying from Judging
Making browser QA trustworthy requires treating it as an 11-layer engineering stack rather than a single prompt. Four architectural boundaries do the real work:
- Journeys without hints: Scenarios describe a real user goal in plain language—such as importing a GTFS feed or adding a timetable trip—without revealing routes or CSS selectors. The browser driver targets accessibility roles and labels so the agent interacts with what a person actually sees.
- Disposable, seeded stacks: Every run boots a private throwaway database (
pg_tmp), seeds known data, and records abaseline.jsonsnapshot before the browser opens. - Out-of-band success checks: The single most important layer. Instead of trusting the model's final message or a screenshot, a deterministic script inspects real state outside the UI—database row counts, trip signatures against the baseline, an audit log, or an exported zip passed through an external validator.
- Calibrated controls (
selfcheck): Before any tester explores a scenario, the harness runs two control legs on the current commit: a no-op leg that must fail the check, and a hand-authored reference trail that must pass it. Without controls, a green check might only mean the check itself is broken.
In this design, the tester agent's job is strictly to try, not to judge. Its claim is stored separately from the deterministic verdict, and the run report explicitly displays whether they agree.
Green unit tests verify code paths, and an agent's "done" merely records effort. Only an independent, calibrated check against durable application state proves that the software actually worked.
Join the PathGuided Closed Beta
Onboard your repositories with local-to-cloud spec execution, split-tier model routing, and commit-bound Work Tours.