Nguyen Le Phong

Using AI Without Handing Over Your Judgment

AI can map a code path and draft a patch in seconds.

You paste a stack trace into an AI assistant. Ten seconds later it names the bug, proposes a three-line patch and explains, in very tidy prose, why the old code was wrong. It reads like a finished answer. You could merge it now. Or you could do the slower thing: open the source file, find the call site, run the test, and check whether the log actually says what the explanation claims.

An engineer at a desk compares an AI-suggested code change with handwritten test notes and a page of blurred logs.
The AI drafts the fix. You decide whether it goes in, after you've seen the test and the log.

This post is about that moment. AI tools are great at getting you started: summarizing a code path, suggesting test cases, turning a vague bug report into a few hypotheses, spotting the edge case you'd miss at 6 p.m. The risk is that a fluent answer feels like a checked one. Below: what the research says happens when people lean too hard, and a handful of habits that keep the final call with the person who owns the change.

What happens when we lean too hard

Three studies are worth knowing, each with its own limits.

In a 2025 survey by Microsoft Research and Carnegie Mellon, 319 knowledge workers shared 936 real examples of using generative AI at work. Higher confidence in the AI was associated with less critical thinking, and higher confidence in their own skills with more. The researchers also saw critical thinking shift toward verifying information, fitting the AI's response into the work and overseeing the task (Lee et al., CHI 2025). It's self-reported and correlational, so it can't say which causes which. It still lines up with what most of us have felt: the more you trust the tool, the less you check.

Security shows the same pattern. In a Stanford user study, participants with an AI code assistant wrote significantly less secure code than those without one, and were more likely to believe their code was secure (Perry et al., CCS 2023). Worse code plus more confidence is about the worst mix you can ship.

And learning. In a randomized trial published by Anthropic in January 2026, 52 mostly junior engineers learned Trio, a Python async library none of them had used. The group with an AI assistant scored 50% on a follow-up quiz, against 67% for the group coding by hand, and finished only about two minutes faster, a difference that wasn't statistically significant. The biggest gap was on debugging questions (Shen and Tamkin, Anthropic). The authors flag a small sample and a quiz taken right after the task, so it doesn't prove long-term harm. It's a strong hint, though, that handing over the thinking also hands over the learning.

Give the AI a different job

Most of the difference comes from what you ask for. Treat the tool as an oracle and you ask for a conclusion, then spend your energy defending it. Treat it as a review partner and you ask for things you can check:

  • "Give me two other explanations that fit this stack trace."
  • "What are you assuming about the input here?" (There's a whole post on that one: asking AI to name its assumptions.)
  • "Which file or log line is this based on?"
  • "What input would make this patch fail?"

The partner mode feels slower for the first few minutes. In exchange, the decision stays with the person who'll be paged if it breaks.

Ask what would prove it wrong

One question does a lot of work: what evidence would show this answer is wrong? Then go look for it.

  • The AI says a branch is unreachable. Search for every call site that could pass data into it.
  • It says a migration is safe. Ask which existing rows, null columns or foreign keys would break it, and how you'd roll back halfway through.
  • It explains a production symptom. Line the explanation up against timestamps, metrics and the first user report. If the timeline doesn't fit, the story doesn't either.

You don't need to distrust every answer. Just make sure each important claim has a path back to evidence you can open.

Polish hides uncertainty

A model can turn a weak guess into three confident paragraphs. Your job runs the other way: break the paragraphs back into claims someone can check. Which file was read? Which test should fail if this is right? What's product behavior and what's an implementation detail?

A small loop with checkpoints

Here's a loop that keeps the speed and the ownership:

  1. Ask the AI to map the code path. Then trace it yourself.
  2. Ask for edge cases. Turn the useful ones into tests before you touch the fix.
  3. Ask for a patch. Read the diff the way you'd read a teammate's PR written under deadline pressure.
  4. Run the system and look at the real output.

The AI shortens the distance between checkpoints. It doesn't remove them.

Keep the learning, too

The Anthropic study has a detail that's more useful than the headline. How people used the assistant mattered a lot. Those who delegated most of the code or leaned on it to debug averaged under 40% on the quiz. Those who generated code and then asked for explanations, or mostly asked conceptual questions, averaged 65% or more. The authors say this part doesn't prove cause and effect. As a working habit it's cheap: when the AI writes something you don't fully get, ask it why before you move on.

That's how a fix today becomes a better guess on the next incident, for you and for whoever reads your PR.

Leave a trail

Good AI-assisted work leaves a short, boring record in the PR description: what the AI suggested, what you assumed, what you checked, what changed your mind, and why you picked the final option. Four lines are enough. When someone asks "why did we do this?" in six months, the answer is there and it isn't "the AI said so."

Try this week

  • Next time AI proposes a fix, ask for two alternative explanations before you read the patch.
  • Write down one thing that would prove the answer wrong, and check it.
  • Turn one AI-suggested edge case into a test.
  • When it writes code you don't fully follow, ask "why this way?" before you merge.
  • Add a two-line "assumed / checked" note to your next AI-assisted PR.

Taking help from a tool is fine, and often smart. The test is whether it leaves you more attentive or less. For a related angle on treating AI output as a lead to follow up, see treating AI suggestions as draft evidence.

What did you think?

Frequently asked questions

What does outsourcing judgment to AI mean?
Accepting an AI's conclusion as the decision, without checking it against code, tests, logs or product context. The AI can draft, summarize and suggest. The decision to ship, and the responsibility for it, should stay with the person who owns the change.
Is there evidence that relying on AI weakens critical thinking?
There are signals, with limits. A 2025 Microsoft Research and Carnegie Mellon survey of 319 knowledge workers found higher confidence in generative AI was associated with less critical thinking. In a 2026 Anthropic randomized trial, 52 mostly junior engineers learning a new Python library with AI scored 50% on a follow-up quiz versus 67% without it. Both studies have limits: one is self-reported, the other small and short-term.
How can I use AI and still keep my judgment?
Ask for things you can check: alternative explanations, assumptions and the file or log line behind each claim. Ask what would prove the answer wrong and look for it. Turn suggested edge cases into tests, read AI patches like a teammate's PR, and when you don't understand generated code, ask why before you merge.