AI Code Review Only Catches Half of Your Bugs

AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.

Why it matters

About half of security defects are intent violations invisible to code-only review, so AI code review tools structurally miss them unless requirements are supplied.

Read this as

In an O'Reilly article, developer Andrew Stellman describes how his AI-built Brooklyn bus app worked perfectly but showed buses going the wrong direction. He argues about half of security bugs, like missing authorization checks, can't be found by tools that only inspect code. You must tell AI what the software is supposed to do. He caught a years-old bug in Google's Gson library using written requirements.

Stellman's open-source Quality Playbook found real bugs in almost every open-source project it tested, including a merged fix in Google's Gson. Research cited, including NIST SATE and a 2024 ISSTA study, shows static tools catch only 50-60% of vulnerabilities. Teams relying on AI code review without requirements miss design flaws like missing authorization, ranked #9 on the 2024 CWE Top 25. Writing down purpose, not just specs, is the fix.

Stellman's Quality Playbook derives requirements from project sources (GitHub issues, docs, commit history) rather than spec-driven implementation specs, which state 'how' but not purpose. Using Gson issues #676, #913, #948 and #1558, it found duplicate keys silently accepted when the first value was null; fix merged as gson PR #3006. Cited data: NIST SATE plateau at 50-60% detection; Charoenwet et al. ISSTA 2024 found 22% of 815 vulnerable commits undetected by five static tools, 76% of warnings irrelevant.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Gson Quality Playbook Claude Code NIST SATE CWE-862 Standish CHAOS reports

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.