A model that produces code which compiles and passes the tests it was given is not the same as a model that produces robust code
Gary Marcus ยท email ยท 2026-05-09 Reader ๐ฅ๏ธ
Code that compiles and passes its given tests is not the same as robust code; conflating the two inflates AI-coding claims, and progress requires acknowledging this gap rather than celebrating throughput.
theoretical ยท brief commentary / pointer post โ A short Substack email linking to a TNW article in which Marcus is quoted. The post restates a single distinction โ compiling/passing tests vs. robustness โ and frames it as a realism check on AI-coding hype. It functions as a pointer to the longer TNW piece rather than a self-contained argument.
Structure
| Part | Role |
|---|---|
| Title quotation and TNW link | States the core distinction (compiles-and-passes-tests vs. robust) as an attributed quote, directs the reader to the primary source |
| Acknowledgment of Brockman's partial concession | Notes that even OpenAI's president 'sorta kinda' acknowledges the gap, framing this as a rare moment of realism |
| Realism thesis | Generalizes: next-word prediction goes 'surprisingly far' in writing code but falls short on robustness |
| Warning to vibe coders and OpenClaw users | Applies the distinction to practitioners with low experience, escalating the warning for autonomous agent use |
Key terms
- robust code Code Quality
Code that handles edge cases, maintains correctness under varied conditions, and is reliable beyond the specific test suite it was evaluated against - vibe coders Vibe Coding
Developers with little traditional coding experience who rely heavily on AI to generate code, accepting output that 'feels right' without deep verification - next-word prediction Pattern-Completion Generation (Not Reasoning)
The autoregressive generation mechanism of LLMs, which Marcus treats as the root cause of the robustness ceiling - OpenClaw OpenClaw
Likely refers to an open-source autonomous coding agent; Marcus warns the robustness gap is 10-100x worse for autonomous use
Propositions
- empirical claimA model that produces code which compiles and passes tests is not the same as a model that produces robust code.supportsAgents don't know what good looks like. And that's exactly the problem. ยท p3 โ The compiles-and-passes-tests vs robust-code distinction mirrors the behavioral-vs-capability verification split.refinesPresentation: AI-First Software Delivery: Balancing Innovation with Proven Practices ยท p1 โ Marcus qualifies the automated-verification axis of the supervised/unsupervised framework: compiling and passing tests is not the same as robustness, so automated checks alone under-verify.
- causal claimNext-word prediction gets surprisingly far in writing code but less far in ensuring robustness.
- normative claimdevelopedProgress in AI coding requires realism about this gap, not celebration of throughput metrics like '80% of code written by AI'.extends โShould You Still Become a Software Engineer in 2026? GitHub VP ยท p2 โ Converges with Marcus's caution against celebrating raw AI-authorship percentages โ Hanselman's 70% figure is safe only because it flows through an unchanged verification pipeline, not because of the number itself.
- risk assessmentdevelopedThe robustness gap is most dangerous for vibe coders with little experience and even more so for autonomous coding agents.refines โBliki: Vibe Coding ยท p5 โ Fowler converts the robustness-gap risk for vibe coders into a scoping rule: vibe-coded software is acceptable only for disposable use.
Arguments
Claims like 'AI writes 80% of our code' are misleading because they conflate test-passing with robustness; realism about the mechanism (next-word prediction) is necessary for genuine progress.
Explicit premises:
- Code that compiles and passes tests is not the same as robust code
- Next-word prediction goes far in writing code but falls short on robustness
Implicit premises:
- Throughput metrics (like '80% of code') measure generation volume, not quality
- Robustness requires reasoning about edge cases that next-word prediction does not reliably provide
Inferences:
- Therefore vendor claims about AI-written code percentages are misleading without robustness evidence
- Therefore inexperienced coders relying on AI are most exposed to this gap
Narratives
- AI coding hype vs. engineering realism โ Marcus positions himself as the realist correcting vendor hype, and frames Brockman's partial concession as vindication
โ Part of Marcus's long-running critique that LLM capabilities are systematically overstated by vendors and under-scrutinized by media
Questions addressed
- โญ What does it actually mean when OpenAI says AI writes 80% of their code?
Marcus argues the claim conflates generation with robustness but doesn't provide an alternative metric - โ
Is code that compiles and passes tests the same as good code?
No โ passing tests is necessary but not sufficient for robustness - โ
Who is most at risk from the robustness gap in AI-generated code?
Vibe coders with little experience, and users of autonomous coding agents
Gaps
- evidentiaryNo evidence or examples of the robustness gap โ the post asserts the distinction without demonstrating it
Read next: Read the linked TNW article for the substantive argument - conceptualThe 'compiles and passes tests' vs. 'robust' distinction needs operationalization: what specific failure modes does Marcus have in mind?
- argumentativeNo engagement with counterarguments (e.g., that test coverage can be systematically expanded to close the gap)
- referentialOpenClaw reference is opaque โ unclear whether it's a real tool or rhetorical device
- structuralThe post is a pointer; the substantive argument lives in the TNW article which is not included here
Read next: Follow the TNW link for the full argument
Related documents
- Presentation: AI-First Software Delivery: Balancing Innovation with Proven Practices
- Agents don't know what good looks like. And that's exactly the problem.
- Bliki: Vibe Coding
- Claude Code Source Leak Megathread
- Richard Dawkins and The Claude Delusion
- Eight years of wanting, three months of building with AI
- 13) Tobias K. Torrissen om kodekvalitet, konferanser og AI
- Using AI to write better code more slowly
- LLMs Can't Jump
- LLMs Corrupt Your Documents When You Delegate