AWS's Project C2 combines LLMs with formal proof to hunt rare bugs
AWS has opened Project C2, an AI service pairing large language models with automated reasoning and the Lean theorem prover, to select customers after finding more than 800 bugs in 22 open-source projects.

Why it matters
- Project C2 found more than 800 bugs across 22 open-source projects, with fixes shared with maintainers.
- The service combines large language models with automated reasoning and the Lean theorem prover.
- AWS is applying the technique internally to Amazon Aurora, DynamoDB, and Elastic Block Store.
- AWS says a three-machine agreement protocol can produce over 90,000 unique orders in a single round.
- One example: a Raft-based key-value store bug could leave one cluster with two payment processors.
AWS has launched Project C2, an AI service built to find rare software bugs, and opened it to a limited number of customers.
Project C2, short for Project Code Confidence, pairs large language models with automated reasoning — a branch of computer science that applies mathematical logic to the analysis of system behaviour. The company has already run the approach on 22 open-source software projects, uncovering more than 800 bugs and sharing fixes with the maintainers.
AWS is also using the technique internally on services including Amazon Aurora, Amazon DynamoDB and Amazon Elastic Block Store. The goal is straightforward: harden systems that run at enormous scale, where even unlikely errors fire often simply because the volume of operations is so high.
Marc Brooker, Distinguished Engineer and Vice President at AWS, and Soonho Kong, Principal Applied Scientist at AWS, said: "Our point isn't to pick on these high-quality projects. It's to highlight the subtlety of these bugs. We have run this on hundreds of codebases and found similar bugs in nearly all of them."
What kind of bugs does Project C2 catch?
The service targets defects that routinely escape conventional testing and human code review. That list includes race conditions, thread-safety issues and failures in distributed systems, where the order of events across multiple machines can produce faults that developers struggle to predict.
Standard tools lean on known bug patterns or model judgement, which tends to miss unusual edge cases. Project C2 takes a different route. It reads the code and its documentation, builds a model of how the system is supposed to behave, and then attempts to prove whether the implementation matches that intent across many possible execution paths.
When it detects a mismatch, it either revises its understanding of the intended behaviour or flags a bug. It then writes a test that reproduces the issue in the real implementation, assesses the bug, and can develop and test a fix.
The technique also draws on mathematical proof tools, including the Lean theorem prover. That lets it reason across millions or billions of possible cases without testing every sequence one by one — the difference between sampling a haystack and proving what is and isn't in it.
What did the open-source work turn up?
AWS offered three concrete examples from its open-source sweep.
- Rust profiling library. Project C2 examined a performance profiling library used by Rust developers and found nine local thread-safety bugs. One of them could cause the reporting thread to panic and lead to later data loss.
- In-memory database. The system found a flaw in a widely used in-memory database involving failed attempts to write data durably to disk. A background retry process could clear an error flag and let new writes continue, even when earlier data had not yet been written properly. If the server later rebooted, that gap could cause data loss.
- Raft-based key-value store. A third bug sat in an open-source distributed key-value store built on the Raft consensus protocol. A server that had lost its leadership role kept processing a batch of expired leases using stale information. In some cases, that could allow actions on resources already reassigned under a new leader.
AWS said that class of error can create conflicting activity in a managed cluster. Its example: a setup designed to have one payment processor ends up with two, creating a real risk of customers being charged twice.
Why do these bugs hide so well?
The core problem is scale, according to AWS. Concurrent and distributed software has a staggering number of possible states. Even a protocol involving agreement between just three machines can produce more than 90,000 unique orders in a single round. Packet loss, retries and duplicates push that figure sharply higher.
That combination makes these bugs both rare and persistent. They often sit in code paths that handle errors and failures — paths exercised less frequently, but critical precisely when systems are under stress or infrastructure components break down.
Why does this matter now?
AWS tied the work to a broader shift in how software is operated. As more organisations deploy AI agents to automate routine tasks, bug density matters more than it used to. A software fault that once fired occasionally can now be repeated at scale by an automated system with no judgement to intervene.
The stakes for AWS itself are also clear. Aurora, DynamoDB and Elastic Block Store sit at the heart of its cloud business, and a single distributed-systems bug in that tier can cascade across thousands of customers. Applying proof-guided AI analysis to those codebases signals where AWS thinks large-scale software verification is heading — and Project C2's limited customer rollout will show whether the approach holds up outside the company's own walls.
Source: itbrief.com.au
More from Elena Vasquez
Show full bio
Market editor covering technology and product news in artificial intelligence and machine learning at AI In Context.
1,032 articles
Related articles
- AWS Continuum Gets Supply Chain, Threat Response and Agent Discovery Tools
- AWS Emulator ships free local API testing — with hard limits
- New Relic brings observability into Kiro, AWS DevOps Agent and SAP
- AWS Quick Adds Chat-Built Workflows and Multi-Agent Orchestration
- AWS AgentCore’s Strands upgrade can change omitted agent settings