Amazon Web Services unveiled Project C2, short for Project Code Confidence, on Nov 30 at re:Invent 2026. The system combines large language models with automated reasoning, the field that uses mathematical logic to prove or disprove properties of software, to find the rare bugs that testing and AI code review tend to miss. Amazon says the approach found more than 800 bugs across 22 popular open source projects, and that each was reported to maintainers along with a fix.
In a post by AWS vice president and distinguished engineer Marc Brooker and principal applied scientist Soonho Kong, Amazon explains that Project C2 reads code and documentation to infer what a system is supposed to do, then tries to prove that it does. Rather than test every possible execution order, the model writes a proof about what can happen under all orders, using tools such as the Lean theorem prover. A failed proof either means the model misunderstood the system, triggering another pass, or points to a real bug. For real bugs it builds a reproducing test, rates severity, and develops, tests and proves a patch.
Amazon gave three examples: nine thread-safety bugs in a Rust performance profiling library, including one that could crash the reporting thread and lose later data; a flaw in an open source in-memory database where a background process could clear an error flag after a retried disk write, risking data loss after a reboot; and a bug in a Raft-based distributed key-value store where a stale leader could revoke leases it no longer owned. The company did not name the projects. It says it is also applying the technique to Amazon Aurora, Amazon DynamoDB and Amazon EBS.
Project C2 is open to a limited number of customers, with plans to expand access; AWS has not given pricing or a general availability date. Interested teams can sign up on the Project C2 page.
The approach targets race conditions and distributed-systems faults that rarely show up in tests and are hard for an LLM to spot by reading code alone. For teams generating large amounts of code with AI agents, it signals a shift towards pairing generation with formal verification rather than relying only on more model-based review.