Reducing Hallucinated Success Reports in AI-Assisted QA
Reducing Hallucinated Success Reports in AI-Assisted QA
Reducing Hallucinated Success Reports in AI-Assisted QA
An AI agent finishes a test run and reports: all checks passed. You ship. Something breaks. Nothing in that report was a lie in the ordinary sense — the model produced the most plausible next sentence, and "all checks passed" is a very plausible sentence to write after a test run. That is the core failure mode of AI-assisted QA. The report is generated text, not a measurement.
This is not a reason to avoid AI tools in software testing. It is a reason to design the workflow so that every success claim has to survive contact with evidence.
Why Agents Report Success They Never Observed
A few mechanisms produce false passes, and they are worth naming because each one has a different fix.
Summaries are generated, not measured. An agent that ran a command and an agent that only read about the command can produce identical-looking output. Unless the report is tied to raw artifacts, you cannot tell which one you got.
Skipped work looks like clean work. A selector that never resolves, a suite that exits early, a test file that was never collected — none of these throw a loud error. They produce an empty failure list, and an empty failure list reads as success.
Self-grading. When the same model writes the test and judges the result, it inherits its own assumptions about what the test does. It will rarely flag the assertion it forgot to write.
Context loss on long runs. Output gets truncated. The failing tail disappears and the surviving head looks tidy.
Closure bias. Training data is full of bug reports that end in resolution. "Fixed and verified" is a natural ending, and models are good at writing natural endings.
Make Success Claims Falsifiable
The practical move is to stop asking "did it pass?" and start asking "what would prove it passed?"
Before a run, define the pass criteria explicitly: which assertions must execute, which exit codes are acceptable, which artifacts must exist afterward. Then require those artifacts per claim — raw logs, screenshots, DOM snapshots, HTTP status codes, a diff of what changed.
Separate three verbs that get collapsed constantly: ran, asserted, and passed. A test that ran and asserted nothing is not a pass. A test that asserted against a cached response is not a pass either, even though the assertion technically executed.
Then apply a fail-closed rule: missing evidence means unverified, not passed. Unverified is a legitimate state, and it should be visible in the report rather than smoothed into a green checkmark.
Use Multi-Agent Collaboration as a Cross-Check
A single model reviewing its own work has one perspective and one set of blind spots. Multi-agent collaboration changes the shape of the problem: instead of asking one agent to be more careful, you give several agents different jobs and let their disagreements point you at the risk.
For example, you could run three roles in one shared session. One agent drives UI testing against the running app and captures evidence. A second reads the repository, checks that the tests it claims to have run actually exist, and confirms the assertions match the stated criteria. A third acts as a falsifier whose only instruction is to find a reason the pass claim is wrong — a skipped test, a stale fixture, a mocked dependency that hides the real path.
Different models fail differently. ChatGPT, Claude, Gemini and others have distinct tendencies, so when one reports a clean pass and another flags a missing assertion, that disagreement is a lead worth chasing. Uniform agreement across models is weaker evidence than it looks, but a specific, evidence-backed objection is strong signal.
Keep a human gate on the steps that matter. Approving the test plan before the run and the final sign-off after it means the last word is yours, not the model's. And because verification has a budget, per-agent cost visibility helps you decide where to spend a second and third opinion — usually on payment flows, auth boundaries, and anything touching data migration.
A Worked Example
Imagine a checkout flow with a discount code path. The UI agent reports a full pass: cart totals correct, discount applied, order confirmed. The evidence bundle shows screenshots and a green assertion list.
The falsifier notices that the discount assertion ran against a response served from cache, so the test never exercised the pricing service. The repo agent confirms the fixture was seeded with a hardcoded total. The report is now a disputed pass rather than a success.
Ranked repair reports are useful here because they order findings by likely impact instead of dumping a flat list. The caching issue outranks a cosmetic selector warning, so you fix the thing that actually invalidated the result, re-run with the fixture corrected, and approve the new evidence yourself.
The Habit That Scales
Hallucinated success reports are not solved by a better prompt. They are solved by a workflow where a pass is a claim backed by artifacts, reviewed by someone other than the author, and approved by a person who understands the risk. Treat every green check as a hypothesis until the evidence arrives.
If you want to run several models in one shared session, assign each a role, approve the key steps yourself, and see cost per agent while you work, start at https://viba.guru.
See VIBA: https://viba.guru