Project C2: AWS uses AI and math to hunt rare bugs

Amazon Web Services (AWS) unveiled on Monday (November 30), during the developer keynote at re:Invent 2026 in Las Vegas, Project C2 — short for Project Code Confidence — a new technique for finding rare bugs that even the most advanced AI models cannot see. The tool combines agentic AI with automated reasoning, a field of computer science that uses mathematical logic to prove, disprove, or analyze how systems behave.

In internal tests, AWS applied the technique to 22 popular open-source projects and found more than 800 bugs, from complex race conditions to thread-safety issues — and shared the fixes with maintainers. The company already uses the method in critical services such as Amazon Aurora, Amazon DynamoDB, and Amazon Elastic Block Store (EBS), and says it has run the technique on hundreds of codebases, finding similar bugs in nearly all of them.

Mathematical proofs instead of model guesses

Project C2 works differently from traditional code review. First, it reads the code and supporting documentation to build a model of what the system should do. Then it tries to prove that the system, as built, behaves as it should — using mathematical tools such as the Lean theorem prover. When it finds a mismatch, the system checks whether its interpretation was wrong or it found a real bug; it then builds a test that reproduces the problem in the actual code, rates its severity, and develops, tests, and even proves the correctness of the fix.

The motivation is scale: AWS recalls that, back in 2015, a “one-in-a-million” error was already happening a few times a second across its infrastructure — and with AI agents, such rare events should multiply. A single round of the Paxos protocol between three machines, for example, can play out in more than 90,000 different orders. No developer — and no frontier model — can consider all of them; mathematics can.

Real bugs in widely used projects

AWS cited concrete examples. In a popular performance-profiling library in the Rust community, Project C2 found nine local thread-safety bugs, including one that could make the reporting thread panic and cause later data to be lost. In an open-source in-memory database, a background process could clear an error flag after a second disk-write attempt — even though the data from the failed first attempt was not guaranteed to be on disk — risking data loss after a reboot.

The third example is a distributed key-value store built on the Raft protocol: a leader that lost its status kept revoking expired leases using stale data — a distributed variant of the classic TOCTOU (time-of-check to time-of-use) bug. In practice, a cluster expected to have a single payment processor could end up with two, double-charging customers.

AWS itself stresses the distinction: these are reliability bugs, not the security vulnerabilities attackers use to compromise systems or steal data — but no less important, since they tend to concentrate in the code that handles errors and failures.

Limited access for now

According to Reuters, AWS said the tool “can find even the deepest bugs in your code” and is finding things language models are not finding. Project C2 will open to a limited number of customers, expanding gradually, and it runs as a skill inside the developer's coding tool — the code stays where it is. In the coming months, AWS plans to bring more automated reasoning techniques to development, from bug finding to regression testing.

The announcement was part of the same developer keynote in which AWS introduced the new Amplify and Kiro Crew for Teams, already covered by Geekiki.

Image: official artwork from Amazon's article about Project C2, an illustration about neurosymbolic AI. Credit: Amazon / AWS (About Amazon).

Sources

Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.

By Muse