Marc Brooker and Soonho Kong say the most advanced AI models have a blind spot, and they built a service to cover it. Brooker is a vice president and distinguished engineer at Amazon Web Services; Kong is a principal applied scientist there. Their post introduces Project Code Confidence, or Project C2, which pairs large language models with automated reasoning, the branch of computer science that proves or disproves how a system can behave.
AWS ran it across 22 popular open source projects and says it found more than 800 bugs, from race conditions to thread-safety faults. The same approach is now running against Amazon Aurora, DynamoDB and Amazon Elastic Block Store. Access is limited to a small number of customers for now, with the company saying it will expand as it onboards them.
The method is the interesting part. C2 reads code and documentation to infer what a system is supposed to do, then tries to prove the implementation does it. On a mismatch, either the inferred intent is wrong and it loops back, or it has found a real bug.
From there it builds a test that exercises the fault in the real implementation, rates severity, then develops, tests and proves a fix. "Our experience suggests that, even with frontier models, agents are not able to diagnose and fix the issues caused by subtle distributed systems bugs," Brooker and Kong wrote.
Math carries the load the model cannot. AWS points to Paxos, the protocol that gets multiple machines to agree on a value: a single round between three machines can play out in more than 90,000 unique orders, per the post. Add lost packets, retries and duplicates and the count grows exponentially. A proof generalizes across those orderings the way a proof of Pythagoras covers every triangle without testing each one.
Two bugs AWS reported: a Raft lease and a durability log
The scale argument is blunt arithmetic. AWS says a one-in-a-million error hit it a few times a second in 2015, that those errors now occur thousands of times a second, and that agentic workloads will push the rate higher. The bugs cluster in error-handling and failure paths, code that runs rarely and matters most when it does.
One example: an open source in-memory database logs every write and asks the operating system to confirm the data is durable. When that confirmation fails, the database sets an error flag and refuses further writes. C2 found a background process that retries the check, succeeds, and clears the flag. On Linux, that second success only covers data written after the failed attempt, so a reboot can lose data the database believed was safe.
The second: a distributed key-value store built on the Raft consensus protocol, which hands out time-limited leases. The leader batches expired leases and rechecks its own status once per batch, not per lease. A leader that loses status mid-batch keeps revoking claims a new leader has already reassigned. AWS calls it a distributed version of a time-of-check to time-of-use bug, and notes a cluster meant to have one payment processor could end up with two, double-charging customers.
AWS also scanned a Rust performance profiling library and found nine thread-safety bugs, including one that could make the reporting thread panic and drop later data. The authors are explicit that the point is not to single out good projects. They say similar bugs turn up in nearly every codebase they scan.
That places C2 between the two families of tooling AWS names: pattern-based static analysis and security scanners on one side, and model-judgment tools like AI code review, coding agents and AI security agents on the other. SiliconANGLE reported that AWS announced C2 at re:Invent alongside a shared, self-learning workspace for its Kiro coding agent, putting the pair in one agentic coding push. Brooker and Kong frame it almost the opposite way, as a limit on what agents can do alone.
AWS says it reported every bug with a reproduction and a tested patch. On pricing, customers and the 22 project names, it has said nothing yet.
How many of the 800-plus patches those maintainers actually merged is the part AWS has not put a number on.





