{"slug": "project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss", "title": "Project C2: new AWS technique spots the rare bugs the most advanced models miss", "summary": "AWS has launched Project C2, a technique combining agentic AI with automated reasoning that found over 800 bugs across 22 popular open source projects, with fixes shared with maintainers. AWS is opening Project C2 to a limited number of customers with plans to expand access, and is applying the approach to business-critical services including Amazon Aurora, Amazon DynamoDB, and Amazon Elastic Block Store (Amazon EBS). AWS said the bugs, spanning complex race conditions to thread-safety issues, tend to concentrate in code handling errors and failures and could range from losing a few bits of data to taking an entire system offline.", "body_md": "## Key takeaways\n\n- Project Code Confidence (Project C2) combines large language models with automated reasoning to find hard-to-find bugs.\n- [AWS](https://www.aboutamazon.com/amazon-aws-news) found over 800 bugs across 22 popular open source projects and shared fixes with maintainers.\n- AWS is opening Project C2 to select customers, with plans to expand access over time.\n\nFor us to realize a future with billions of agents, every single system the internet runs on needs to be more resilient. That’s why today we’re sharing details of a new approach to finding bugs we’ve been testing at AWS that combines \n\n[agentic AI](https://www.aboutamazon.com/news/aws/how-amazon-builds-ai-agents)with the precision of[automated reasoning](https://aws.amazon.com/what-is/automated-reasoning/), a field of computer science that uses mathematical logic to prove, disprove, or analyze system behaviors. Together, these two technologies can help us solve problems a model can’t solve alone.\nWe’ve tested this approach on 22 popular pieces of open source software and found over 800 bugs spanning everything from complex race conditions to thread-safety issues. Left unaddressed, these bugs could be as minor as losing a few bits of data or as major as taking an entire system offline. We’re also applying it to some of our most business-critical services, including Amazon Aurora, Amazon DynamoDB, and Amazon Elastic Block Store (Amazon EBS), to improve the resiliency of our systems.\n\nWe think every organization could benefit from this approach to finding bugs. However, we want to do this in a thoughtful manner. That’s why we’re excited to announce Project C2, which opens access to this technique to a limited number of customers, with plans to expand as we get companies onboarded. Project C2 uses automated code reasoning to find bugs that even the most advanced AI models aren’t finding. You don’t need to be an expert in AI or automated reasoning to use Project C2, and it can help you examine anything from a single library to an entire distributed system. Customers interested in getting access to Project C2 can sign up \n\n[here](https://aws.amazon.com/ai/agentic-ai/c2/).\n## How much damage can these bugs do?\n\nBack in 2015, we observed a one-in-a-million chance error happened a few times a second on AWS. It wasn’t that we calculated the odds incorrectly. It was that even a one-in-a-million occurrence can happen a thousand times if given a billion chances. That’s because even small chance occurrences become much more common at scale. Fast-forward a little over 10 years, and those one-in-a-million chance errors happen thousands of times a second, and with agents, we can expect a massive increase.\n\nThese subtle bugs are hard to find and fix. While they aren’t the software vulnerability bugs that you hear bad actors using to compromise a system or steal data, they’re still just as important to address.\n\nOur work has also shown that these bugs tend to be concentrated in the code that handles errors and failures. This makes them even more important. Distributed systems are widely used because they are designed to tolerate errors and failures, such as the failure of individual hardware components, bugs in other software, or even operational mistakes. These code paths are exercised less frequently, but when they are exercised, they are extremely important to delivering the core value of the systems they support.\n\nFixing subtle bugs is also becoming more important as more AWS customers \n\n[automate their daily operations](https://www.aboutamazon.com/news/aws/aws-ceo-ai-inference-transforms-developer-capabilities)with agentic AI. Reducing bug density and increasing software reliability is key to making it easier to automate operations at scale.\n## What today’s best models miss and why\n\nDid you know that if you shuffle a deck of cards well, it’s likely you’ll end up with a deck that’s in an order that nobody has seen before, and nobody will see again? That’s because there are 8x10\n\n<sup>67</sup>ways to order a deck of cards. That’s an 8 followed by 67 zeroes.\nDistributed, concurrent, and multithreaded systems operating at massive scale are a lot like that deck of cards, and that makes them a magnet for rare events. Paxos, a distributed systems protocol to get multiple machines to agree on a value, can process a single round of agreement between three machines in over 90,000 unique orders. Once you allow for lost packets, retries, duplicates, and other unusual circumstances, that number grows exponentially. It’s not possible for a human developer, or even a cutting-edge AI model, to consider all those possible orders, but it is something that mathematics is particularly good at solving.\n\nOur experience suggests that, even with frontier models, agents are not able to diagnose and fix the issues caused by subtle distributed systems bugs. That’s because there are simply too many variables, and too many different orders, to consider. Combining neural models with mathematical tools, like the \n\n[Lean theorem prover](https://www.amazon.science/news/amazon-is-investing-in-the-lean-focused-research-organization), allows us to check millions or billions of cases and reason about them automatically. That works because we’re not simply trying every order but creating a model-written proof of what can happen under every possible order. Just like we can know that a proof of Pythagoras’s theorem is correct without trying every possible triangle, the proofs this approach writes can generalize to all orderings without trying them all. Most existing tools rely on either known patterns, like static analysis and security scanners, or an AI model’s raw judgment, like AI code review, coding agents, and AI security agents. However, with billions or more test cases to cover, it’s not surprising that they miss edge cases.\nProject C2 takes a different approach to code review entirely. The approach works by reading the code and supporting documentation to build an understanding of what the system should be doing. Then, it attempts to prove that the system as built is working as it should. When it finds mismatches between the implementation and intent, one of two things is true: either its intent is mistaken and it needs to loop around again and improve it, or it has found a real bug. Once we find a bug, the system builds a test that exercises that bug in the real implementation, showing that it exists and isn’t just based on a misunderstanding. It then rates the severity of the bug, followed by developing, testing, and even proving the correctness of a fix.\n\nWith Project C2, we’ve leaned into our more than 10 years of experience \n\n[applying automated reasoning at scale](https://aws.amazon.com/blogs/security/an-unexpected-discovery-automated-reasoning-often-makes-systems-more-efficient-and-easier-to-maintain/)to significantly simplify this process into a service that any company can use, adding features like retries, guardrails, and parallelization to be more compute efficient, along with optimizations at every layer to further improve performance.\n## Real bugs in widely used projects\n\nWith Project C2, we’re finding bugs in both distributed systems and single-system code, especially multithreaded and concurrent code. For example, we scanned a performance profiling library that is popular in the Rust community, and found nine local thread-safety bugs, including a bug that could cause the reporting thread to panic and later data to be lost. We have found similar bugs in popular open source database and storage engines, even within the context of a single machine (and sometimes when experiencing no failures). \n\nTo better understand what these bugs look like, let’s look at examples of two real projects.\n\nFor our first example, we look at a popular open source in-memory database. To ensure data persists after a reboot, this database logs all of the work that it has done on a particular node. After each write to this log, it asks the operating system to make sure that data is saved to disk. If this process fails, indicating that the operating system was not able to durably write the information down, the database sets an error flag and refuses all further writes. \n\nUsing Project C2, we found a case where a background process can retry this check when it fails and clear the error flag if it succeeds the second time. Once the flag is cleared, the database node can continue to accept writes. However, due to a subtlety in how this system works on operating systems like Linux, the second attempt doesn’t mean “all data is now on disk”; it means “all new data after the failed first try is now on disk.” Now when the server reboots, critical data may be lost.\n\nFor our second example, we look at a widely deployed open source distributed key-value store, built on the Raft consensus protocol, that sits underneath a lot of cloud infrastructure. Like many services that help multiple computers coordinate, it lets a server reserve a resource, like a task, role, or piece of data, for a set amount of time, using what are called leases. A server creates a lease with a time limit, attaches a claim to a specific resource, and keeps it active by regularly checking it. If the server stops checking in, the lease expires and its claim is deleted. This all works based on a simple promise: if you keep checking in on your lease, your claim won’t disappear before time runs out.\n\nIn this system, one computer, the “leader,” is designated to handle expired leases. The leader finds a batch of expired leases, double-checks that it is still the leader once per batch, and proposes to revoke each one. If the leader loses its status while handling a batch of leases, it keeps working through the batch. The new leader may have handed these leases to new owners with new time limits, but the old leader may still revoke leases from those servers because it is operating with old data. This is a distributed version of a classic time-of-check to time-of-use (TOCTOU) bug, which could have been avoided if the old leader checked if it really was still the leader before taking action. This bug can lead to arbitrary bad behaviors in the cluster it manages. For example, a cluster that was expected to have one payment processor could have two, leading to double-charging customers.\n\nOur 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. With all of the bugs we have reported, we have included detailed reproductions (often including automated tests) and tested patches which fix these issues.\n\n## Where do we go from here?\n\nWe see this approach as one way we’re going to continue raising the bar on reliability across AWS. However, our customers don’t just operate on AWS, and making a stronger, more resilient internet benefits everyone.\n\nWe’re excited to put Project C2 in the hands of customers, and we’re just getting started. Over the coming months, we’ll add more automated reasoning techniques spanning everything from bug finding to regression testing. It has never been a more exciting time for builders as technologies like Project C2 reshape our understanding of what’s possible, and we’re excited to see where the industry goes next.\n\nFor more details, visit:\n\nLatest stories from AWS re:Invent", "url": "https://wpnews.pro/news/project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss", "canonical_source": "https://www.aboutamazon.com/news/aws/aws-project-c2-finds-bugs-ai-models-miss?utm_source=rss", "published_at": "2026-12-01 03:30:11+00:00", "updated_at": "2026-12-01 03:47:16.895669+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["AWS", "Project C2", "Amazon Aurora", "Amazon DynamoDB", "Amazon Elastic Block Store (Amazon EBS)", "Amazon"], "also_reported_by": [], "takeaway": "Pairing agentic AI with automated reasoning surfaced over 800 bugs across 22 open source projects, including race conditions and thread-safety issues that AWS says the most advanced AI models alone miss.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss", "markdown": "https://wpnews.pro/news/project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss.md", "text": "https://wpnews.pro/news/project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss.txt", "jsonld": "https://wpnews.pro/news/project-c2-new-aws-technique-spots-the-rare-bugs-the-most-advanced-models-miss.jsonld"}}