A program can return a perfectly valid response and still do the wrong thing. A payment may be applied twice; a signed file may change between verification and use. Neither mistake has to crash the process, so a crash detector has nothing to report.

Anthropic’s December 2 study of logic-bug discovery tested whether coding agents could find these failures by inferring the rules a program is supposed to obey. The practical starting point is small: give an agent a bounded piece of code, ask it to name a rule, and require a reproducible case that breaks that rule. Then have a person check both the rule and the case.

What the study measured

The researchers assembled 21 previously fixed bugs in SQLite, zstd, brotli and image-png. Each technique received the unpatched source; the fixed commit was withheld during discovery. A submitted input counted when the old and patched versions produced different outputs or return values. That comparison works for this benchmark because the researchers selected patches that changed the relevant bug paths. It would not be a general-purpose correctness test for arbitrary patches.

Each technique ran three times per bug, and the reported count combined the discoveries across those runs. In the blind setting, Claude Mythos 5 using agentic code review rediscovered 11 of the 21 bugs. The tested LLM-assisted fuzzing and symbolic-execution approaches rediscovered none in that setting. Given the violated invariant, the symbolic-execution approach found 13, but the report attributes those discoveries to the agent’s source review; symbolic execution confirmed two and did not add discoveries beyond it.

This is a comparison of particular setups on a small historical benchmark, not a reason to discard fuzzers or symbolic execution. Fuzzing is still useful when you can state a property to check and build a harness that reaches the relevant behavior. The comparison also has a memory problem: some newer models could recall several older bugs when asked without source code. Anthropic separately examined bugs none of the tested models recalled, but that check cannot prove training-data contamination absent.

A rule worth checking: verify what you execute

The report describes a finding in Caliptra’s firmware-update flow. In the affected subsystem mode, the root of trust verified an image read from a staging area, then read the staging area again to load it. A compromised component able to modify that area between the reads could replace the verified image with different bytes. Anthropic says the issue was assigned CVE-2026-11835 and patched.

The invariant fits in one sentence: the bytes executed must be the bytes verified. Both individual operations can look reasonable in isolation; the failure lies between them. That makes it a useful shape for review: find the state shared across a check and a later action, then ask who can change it in between.

The same question applies to less exotic code. If an upload is scanned and later copied from a mutable path, which bytes get published? If an authorization check uses one account ID and the write uses another, where does that identity come from? These are review prompts, not claims that either workflow is necessarily vulnerable.

A review prompt that produces something testable

Pick one boundary you understand, such as an access check or a file-processing step. Give the agent the relevant code and, where available, the documented contract. A prompt can be as direct as:

Review this code path for violations of its intended contract.
Identify the invariant, the exact code locations involved, and a concrete
input or sequence of actions that would violate it. Write a minimal regression
test if the repository supports one. Separate observations from assumptions.
Do not change production data or contact external services.

A useful report should say what the agent believes must hold, show the input and observed result, and explain why that result conflicts with the contract. If the alleged rule is undocumented, ask the maintainer before treating a surprising output as a vulnerability. Run generated tests in an isolated environment with suitable permissions and inspect any commands before allowing them to execute.

Anthropic’s study also used informal natural-language correctness proofs to surface assumptions. Those documents are a way to find questions and counterexamples, not formal proofs. For a small team, an agent-generated invariant plus a regression test is a reasonable first pass; the maintainer still decides whether the behavior is wrong and whether the test captures the intended fix.