Nguyen Le Phong

Treat AI Suggestions as Draft Evidence

AI suggestions often sound right and turn out almost right.

Checkout errors jump at 14:05. You paste the stack trace into an AI assistant and get a confident, tidy answer: the 14:00 deploy raised traffic, the database connection pool ran dry, so bump the pool size from 20 to 50. It names a familiar pattern and the fix is one line. Then you open the logs. The first pool timeout shows up at 14:11, six minutes after the errors started. The pool did run dry, but probably as a symptom of something else.

The AI answer still helped. It told you where to look and handed you a claim you could check in two minutes. That's the habit this post is about: treat an AI suggestion as draft evidence, a lead that still has to earn its place.

A review board with AI draft notes, log snippets, test results and evidence cards pinned side by side.
An AI suggestion is a lead. Logs, tests and source code decide whether it holds.

Why "sounds right" isn't enough

Language models are good at producing the shape of a right answer. Part of the reason is how they're trained and scored. In Why Language Models Hallucinate (2025), Adam Tauman Kalai and colleagues argue that most training and evaluation reward a confident guess over an honest "I don't know". In their words, language models "are optimized to be good test-takers, and guessing when uncertain improves test performance."

Developers feel this every day. In the 2025 Stack Overflow Developer Survey, the most common frustration with AI tools, picked by 66% of respondents, was "AI solutions that are almost right, but not quite." More respondents distrusted the accuracy of AI tools (46%) than trusted it (33%), and only about 3% said they highly trust it. Almost right is an expensive kind of wrong, because it survives a quick glance.

What draft evidence means

Draft evidence sits between two bad habits. You don't throw an AI suggestion away because it might be wrong, and you don't ship it because it reads well. You treat it as a candidate explanation and go find what confirms or kills it: logs, a test, the source, real user behavior.

That changes what you ask the tool. Besides "what's the answer?", ask what would have to be true for the answer to hold. Which file should contain this behavior? Which test would fail if the theory is right? Which metric should move? Which assumption is the weakest? Models are often good at these questions, and their answers become your checklist. Asking AI to name its assumptions goes further on that last one.

Turn each claim into a check

Most AI suggestions in engineering work come in a few familiar shapes, and each shape has a cheap check:

The AI saysCheck it with
"Probably a race condition."Timing evidence: interleaved log lines, or a test that fails only under concurrency.
"The query is missing a tenant filter."The actual query that runs, executed in a test with two tenants' data.
"It's a config mismatch between environments."The values the running environment actually loaded. Repo defaults can differ.
"This function breaks on empty input."An empty-input test. Write it and run it.
"That option exists since version 4."The changelog or docs for the version you actually run.

None of these take long. What matters is the path from claim to confirmation, and writing down which way it went.

AI notes in code review

Review is where draft evidence pays off fastest. An AI note saying "this function may mishandle empty input" doesn't settle anything on its own. It can lead to a two-minute test, a look at the callers or a question for the author, and any of those does settle it.

Skipping that step has a real cost. In a user study at Stanford, Perry and colleagues found that participants with an AI assistant wrote significantly less secure code than those without one, and were more likely to believe their code was secure. Participants who trusted the AI less and worked more on their prompts, for example by rephrasing them, produced code with fewer vulnerabilities. The assistant in that study ran on an older Codex model, so the exact gap is dated. The overconfidence pattern is the part worth remembering.

You can also nudge the tool toward evidence. Anthropic's prompting guide (checked November 2026) suggests telling coding agents never to speculate about code they haven't opened and to read the referenced files before answering. For deciding when an answer needs a proper test before you trust it, see when an AI answer needs a test.

Share the evidence along with the answer

This habit also protects trust inside a team. When an AI-backed claim arrives with its evidence, teammates can judge it for themselves. When it arrives as polished certainty, people either trust it too much or start dismissing anything that came from AI. Both get expensive. A simple format works well in a PR comment or an incident channel: "AI suggested X. I checked Y. Result: Z."

For the checkout example, that reads: "AI suggested pool exhaustion. First pool timeout is at 14:11 and errors start at 14:05, so the pool is a symptom. Next: checking the payment client's retry settings, which changed in the 14:00 deploy." Anyone on the team can follow it, agree with it or push back.

Try this week

  • Next time an AI tool names a cause, ask it what evidence would prove it wrong, then go look for exactly that.
  • Pick one AI review comment and settle it with a test or a source check before you reply.
  • Check any version-specific claim against the changelog for the version you actually run.
  • Use the "AI suggested X, I checked Y, result Z" format once in a PR or incident thread.

AI can make investigation a lot faster. Let it draft the possibilities and sort the clues. Then let the logs, the tests and the code pick the winner, and keep the final call with a person who can show the team why.

What did you think?

Frequently asked questions

What does it mean to treat AI output as draft evidence?
It means treating an AI suggestion as a candidate explanation. You don't discard it because it might be wrong, and you don't accept it because it sounds fluent. You check it against logs, tests, source code or user behavior, and keep it only if that evidence agrees.
Why do AI answers sound confident even when they're wrong?
A 2025 paper by Adam Tauman Kalai and colleagues argues that training and evaluation usually reward a confident guess over admitting uncertainty, so models learn to guess. Fluent wording is therefore a weak signal of whether an answer is correct.
How common is "almost right" AI output?
In the 2025 Stack Overflow Developer Survey, 66% of respondents named "AI solutions that are almost right, but not quite" as a frustration, the most common one listed. 46% said they distrust the accuracy of AI tools, compared with 33% who trust it.
How do I verify an AI code review comment?
Turn it into a check. If it says a function breaks on empty input, write that test. If it claims a missing filter, read the query and run it with realistic data. If it cites a library feature, open the docs for your version. Then reply with what you found.
Does using an AI assistant affect code security?
One Stanford study (Perry et al., ACM CCS 2023) found participants with an AI assistant wrote less secure code and were more likely to believe it was secure. Those who trusted the AI less and worked more on their prompts had fewer vulnerabilities. The tools have changed since, but the overconfidence risk is still worth guarding against.