AWS published details of Project Code Confidence — Project C2 — a code-analysis approach that combines large language models with automated reasoning, the branch of computer science that uses mathematical logic to prove or disprove system behaviors. The company says it tested the approach on 22 popular open source projects and found over 800 bugs spanning complex race conditions, thread-safety issues and distributed-system edge cases. It is also applying the technique internally to Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store.
The announcement was made at AWS re:Invent 2026 in Las Vegas. The official blog post, authored by Marc Brooker (VP and Distinguished Engineer) and Soonho Kong (Principal Applied Scientist), was published on December 1, 2026. Reuters reported the launch the same day.
The core problem C2 addresses is combinatorial explosion. A distributed consensus protocol like Paxos can process a single agreement round between three machines in over 90,000 unique orderings; adding lost packets, retries and duplicates grows that number exponentially. Neither human developers nor frontier AI models can enumerate all possible orderings. C2’s approach: instead of trying every ordering, it builds a model-written mathematical proof — using the Lean theorem prover — that generalizes to all possible orderings without testing each one.
The workflow has four stages. First, C2 reads code and supporting documentation to build an understanding of intended behavior. Second, it attempts to prove the implementation matches that intent. Third, when it finds a mismatch, it either loops back to refine its understanding or identifies a real bug. Fourth, it builds a test that exercises the bug in the real implementation, rates severity, and develops, tests and proves the correctness of a fix.
AWS provided two concrete examples. In a popular open source in-memory database, C2 found that a background process could retry a failed disk-persistence check and clear the error flag on success — but on Linux, the second fsync call only guarantees new data after the failed first attempt is on disk, not the original data. A server reboot could then lose critical writes. In a widely deployed Raft-based distributed key-value store, C2 found a time-of-check-to-time-of-use bug: an old leader could revoke leases that a new leader had already reassigned, potentially causing a cluster to run two payment processors simultaneously and double-charge customers.
AWS says it has run the approach on hundreds of codebases and found similar bugs in nearly all of them. For every bug reported, it included detailed reproductions — often automated tests — and tested patches. In a Rust performance-profiling library, it found nine local thread-safety bugs, including one that could cause the reporting thread to panic and lose data.
Project C2 is now open to a limited number of customers, with plans to expand access over time. AWS says users do not need expertise in AI or automated reasoning; the service can examine anything from a single library to an entire distributed system. Over coming months, AWS plans to add more automated reasoning techniques spanning bug finding to regression testing.
The distinction from existing tools matters. Static analysis and security scanners rely on known patterns. AI code review and coding agents rely on a model’s raw judgment. C2 adds a mathematical proof layer that can reason about billions of cases without enumerating them. AWS has more than 10 years of experience applying automated reasoning at scale, including in its security services.
For engineering teams evaluating AI-assisted code quality tools, C2 represents a different category: not “AI reviews your code” but “AI writes a proof that your code is correct, and shows you exactly where it isn’t.” The limitation is access — it is a gated preview, not a generally available product — and the 800-plus figure is AWS’s own count, not independently audited.