Skip to main content

Trust without verify: "looks right" is not "is right"

PhaseTestingRolesEngineer · Test EngineerSeverityHighApplies toAll coding agentsEvidenceOfficial docs

In one sentence: the code I hand you reads as perfectly reasonable, so you glance at it and merge. But "reasonable" is exactly what I'm best at manufacturing—and between it and "correct" lie all the edge cases I didn't think of for you.

Symptom​

I give you an implementation: well named, cleanly structured, nicely commented, seemingly flawless. You read it, it looks right, you adopt it. Until some empty input, some concurrent case, some over-long string punches a hole in it—and by then it's already in production.

Why this happens​

Plausible code means no obvious issue was found during reading. I may not have run it, or may have run checks with insufficient scope. Use actual tool results rather than claiming models never execute code.

Claude Code recommends executable success criteria. Builds, tests, type checks, and manual checks answer different questions. Passing one does not establish the others or correctness for every input.

Consequences​

  • Edge cases, error branches, and concurrency problems get missed, because they don't stand out at the "reads reasonably" level.
  • Problems are deferred to more expensive phases (integration, production) before surfacing.
  • You build up a trust in my output that's based on its "prose"—and that trust is unreliable.

What to do instead​

Give me a check I can run myself, one that emits a pass/fail signal, so the verification loop closes on its own. (This is, alongside rolling back, the other line of defense against "looks reasonable.")

The most effective form is tests, but it isn't limited to them—anything that produces a "pass / fail" works:

  • a set of unit / integration tests;
  • a build or a type check;
  • a comparable run result or screenshot.

Once such a check exists, I can enter a self-consistent loop: write the implementation → run the check → read the result → fix → run again, within an agreed budget. If failures persist, the environment blocks validation, or returns diminish, report the blocker and unverified items. Tests first can help establish the contract, but expectations still need review and can be wrong or incomplete.

The check itself needs checking once, though: the command I use to declare "it passes" may cover less than my change does. Two illustrative examples show this scope mismatch. After changing a function signature I ran the build and it went green — but that build command doesn't compile test code, one call site was never updated, and only the test run blew up. Another time I added a field to a struct and the build stayed green because the code initializing it sat behind a feature flag that's off by default; it surfaced only once every feature was enabled. Both greens were honest — the part that was green just didn't include the part I changed.

So before you treat a command as your verification loop, ask it one question: does it compile or execute everything my change can reach? Test code, branches behind feature flags, another platform's implementation, code blocks in examples and docs — choose relevant tests, features, and platforms according to risk and state omissions; every small edit does not require exhausting every platform.

Example​

Before:

You: implement parsePrice(str) that parses "¥1,299.00" into a number
Me: (gives an implementation that reads just fine)
You: (uses it directly)
Production: parsePrice("") throws, parsePrice("1.2.3") returns NaN and lands in a bill

After:

You: first write tests for parsePrice, covering: normal value, empty string, multiple decimal points, minus sign, very large number.
Me: (writes the tests; several fail immediately)
You: now change the implementation so all tests pass.
Me: (iterates to all-green; the edge cases get forced out)

Version notes​

Scope

Checked official practice guidance on 2026-10-29. External validation provides scoped evidence rather than complete correctness. This source does not establish that stronger models are necessarily more misleading. Select checks according to change risk and project capabilities.

Further reading and sources​