AWS Hunts AI-Written Bugs With Math Proofs: 800+ Found in 22 Open-Source Projects, One Could Have Double-Charged Customers
Amazon Web Services (AWS) of the United States unveiled Project C2 (Project Code Confidence) at its re:Invent developer keynote on November 30: large language models plus automated reasoning, using mathematical tools such as the Lean theorem prover to verify code and catch one-in-a-million concurrency defects. It found more than 800 bugs across 22 popular open-source projects, including a Raft key-value store flaw that could have double-charged customers; access opens first to select customers, and AWS is applying it to Aurora, DynamoDB and EBS.
The faster AI writes code, the harder its bugs are to find — and Amazon Web Services (AWS) of the United States has an answer: make AI prove the code correct with mathematics. At the re:Invent developer keynote in Las Vegas, United States, on November 30, AWS introduced Project C2, short for Project Code Confidence, which pairs large language models with automated reasoning to hunt the kind of concurrency defects that show up once in a million runs and slip past even the strongest models. AWS says it found more than 800 bugs across 22 popular open-source projects in testing and shared the fixes with maintainers. One of them, a lease-revocation flaw in a Raft-based key-value store, could have billed customers twice for a single transaction.
The backdrop is that AI now writes so much code nobody fully trusts it: a model can produce tens of thousands of lines a day, but race conditions, thread-safety problems and time-of-check-to-time-of-use flaws rarely show up in testing — they appear only under one specific ordering of events, and ten thousand test runs may never trigger them. AWS's automated reasoning is not new; Amazon has used it internally for years. This is the first time it has been tied to large models and offered to customers. The announcement was written by Marc Brooker, an AWS vice president and distinguished engineer, and Soonho Kong, a principal applied scientist.
The method works in three steps: first it reads the code and its documentation to work out what the system is supposed to do; then it uses mathematical tools such as the Lean theorem prover to try to prove the implementation behaves as intended under every possible ordering — not testing a few cases, but reasoning across millions or billions of them at once; and finally it reports only defects it can demonstrate with a reproducible failure, instead of flooding developers with theoretical warnings. AWS stresses that users need no expertise in AI or automated reasoning, and that the system can examine anything from a single library to an entire distributed system. Access opens first to a limited set of customers, expanding over time, and AWS is applying it first to its own most business-critical services: Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store (Amazon EBS).
The same keynote brought two more launches: Kiro Crews, where a whole development team shares one crew of coding agents — the same memory, skills and schedules, so one developer's correction becomes a skill for everyone; and a revamped Amplify, which sets up hosting, a backend, a database and sign-in with a single command and puts an app live within a minute, working with Kiro, Claude Code from Anthropic of the United States, Codex from OpenAI of the United States, and Cursor. Once the money starts flowing, the positions in the chain become clear: for AWS, C2 extends the "AI writes code" business into "AI verifies code" — the model makers took the money for writing code, and AWS wants the money for checking it. For developers, the good news is that AI-written code may soon come with a mathematical guarantee; the bad news is the bar is moving — "it passes the tests" may no longer be enough, and "it is proven correct" may be next. The biggest loser in the chain may be the tools that only generate code and never answer for whether it is right: once proof becomes the standard, merely writing code will not be enough.
iHolyshit review: This is a sharp move from AWS, and the right one
iHolyshit review: This is a sharp move from AWS, and the right one. It punctures the biggest bubble in AI coding: code written fast is not code written right, and for a year the whole industry has competed on how much code models can generate while nobody would swear the generated code is correct. It is also a warning to the Chinese vendors queuing up behind: the race to write code is only half run, and the second half will be won by whoever dares to insure the code. But hold the applause — the 800-plus bugs are AWS's own claim, and which 22 projects, what the false-positive rate is, and what one proof costs have all gone unpublished. However elegant the mathematics, it only counts as real capability once it clears three tests: cheap enough, fast enough, accurate enough.
2026-12-01
Share this article
What do you think of this story?
Anonymous feedback, up to 5 reactions per article.
Reader comments
Comment without signing in, or sign in to display your member name.
Discuss the technology and the story. Hate, politics and war, threats, abuse, personal accusations, sexual content, ads, links and personal information are not allowed.
No comments yet. Be the first to share.