AWS re:Invent 2026|Bigger Models Won't Catch the One-in-a-Million Bug: How Project C2 Pairs LLMs With Mathematical Proof

AWS re:Invent 2026|Bigger Models Won't Catch the One-in-a-Million Bug: How Project C2 Pairs LLMs With Mathematical Proof

One-line takeaway: A larger language model, on its own, cannot reason through every possible interleaving in a distributed system; AWS's Project C2 instead lets an LLM understand the code and a theorem prover write a proof that covers all orderings at once, and it has already surfaced more than 800 bugs across 22 open-source projects.

Series: agentic-ai (8 articles)

  1. …
  2. 6
    AWS re:Invent 2026|Bigger Models Won't Catch the One-in-a-Million Bug: How Project C2 Pairs LLMs With Mathematical Proof This article
  1. The claim
Here is a falsifiable position. Scaling up a coding agent is not the right answer to the rarest, most damaging bugs in concurrent and distributed software. The failure is not a lack of intelligence; it is a combinatorial wall of possible event orderings, and a probabilistic model cannot walk through all of them. The productive direction is a hybrid: use a large language model to read code and infer intent, then hand the hard coverage problem to automated reasoning, mathematical logic that proves what can happen under every ordering. AWS packaged this as Project Code Confidence, Project C2, announced at re:Invent 2026 [1]. If you believe a sufficiently big model will simply get there, the rest of the evidence is aimed at you.
  1. Rare bugs are not actually rare at scale
Shuffle a deck of cards well and you almost certainly land on an ordering nobody has ever seen, because a deck has roughly (8 \times 10^{67}) permutations [1]. Distributed systems behave the same way. A single round of the Paxos agreement protocol across three machines already admits more than 90,000 unique orderings, and the count explodes once you add dropped packets, retries, and duplicates [1]. No human, and no model, can hold that list in mind.
Scale does the rest of the work. AWS recounts that back in 2015 a "one-in-a-million" error was firing a few times a second across its footprint, because a billion chances make million-to-one events routine; today the same class fires thousands of times a second [1]. The bugs also cluster in a specific place, the code that handles errors and failures, which runs rarely but matters enormously when it does [1]. These are reliability defects rather than the security vulnerabilities an attacker exploits, but a wrong failure path can still lose data or take a whole system offline [1].
  1. What a model alone cannot do
A language model predicts the next plausible step. That is a strength for ordinary code and a weakness against edge cases, because plausibility is not coverage. Even frontier models, in AWS's account, cannot reliably diagnose subtle distributed-systems bugs, given the number of variables and orderings [1]. A theorem prover changes the game. Project C2 uses the Lean theorem prover and does not try every ordering; it builds a model-written proof of what can happen under all of them, the way a proof of Pythagoras's theorem generalizes to every triangle without measuring each one [1].
This is not AWS's first rodeo with formal logic. Its Automated Reasoning Group, launched in 2016, turned tools such as Tiros and Zelkova into customer-facing systems including IAM Access Analyzer and Reachability Analyzer, and has verified infrastructure such as the Nitro isolation engine [3]. The group says its production services now process billions of queries daily [3]. Project C2 takes that decade of work and aims it at ordinary application code.
![Project C2 workflow: infer intent, attempt a proof, branch on a mismatch into either refining intent or confirming a real bug, then test, rate, and prove a fix.]( https://aka.doubaocdn.com/s/QIj06HXmBV )
Figure by the author (illustrative). The stages follow the workflow described in the Project C2 announcement [1].
  1. How the loop actually runs
The mechanics matter, because they explain why a reported bug is trustworthy rather than a hallucination. The system reads the code and its documentation to build a model of intent, then tries to prove that the implementation matches that intent [1]. A mismatch means one of two things: either its own intent model is wrong and it loops back to improve it, or a genuine bug exists. To settle which, it builds a real test that exercises the bug in the actual implementation, then rates the severity and finally writes, tests, and even proves the correctness of a fix [1]. The proof and the concrete test act as two independent checks, which is what keeps the false-positive problem in check.
  1. Two bugs worth understanding
The first is in a popular open-source in-memory database. After a write, it asks the operating system to flush the log to disk; if that fails, it sets an error flag and refuses further writes. A background process can retry and, on success, clear the flag. On Linux, the second success only guarantees that data written after the failed attempt is durable, not that the earlier data is, so a reboot can silently lose committed writes [1].
The second sits in a widely deployed Raft-based key-value store. The leader revokes expired leases in batches and re-checks its leadership once per batch; if it loses leadership mid-batch, it keeps revoking with stale data while a new leader has already reassigned those leases. It is a distributed time-of-check-to-time-of-use bug, and the announced consequence is concrete, a cluster could end up with two payment processors and double-charge customers [1].
  1. Where each approach fits
Approach
What it relies on
Best at
Blind spot
Static analysis / security scanner
Known patterns and rules
Common, well-understood defects
Anything not matching a known pattern
AI code review / coding agent
Model judgment over plausible code
Everyday logic and fast feedback
Rare interleavings and edge cases
Project C2 (LLM + proof)
LLM intent plus Lean proof
Exhaustive coverage of orderings
Compute cost and the need to model intent
  1. The honest limits
The 800-plus number is a vendor-reported figure, not an independently replicated experiment, and Project C2 is open only to a limited set of customers for now, with access expanding over time [1]. Formal proofs are also only as good as the intent model and specifications behind them; if the specification is wrong, a correct proof certifies the wrong thing. The Bedrock automated-reasoning work makes this boundary explicit, noting that the LLM translation step can err even though the mathematical validation itself is sound once the translation is correct [4]. Treat C2 as a powerful complement to tests and review, not a reason to delete either.

Next steps

  1. Pick one concurrency-heavy module in your own codebase and map its failure-handling paths, where the announcement says these bugs concentrate.
  1. Join the Project C2 waitlist if you want early access, and keep both-state tests running while you wait.
  1. When evaluating any bug report, demand a concrete reproduction alongside the claim, the same proof-plus-test discipline C2 uses.
  1. Read the two example bugs and ask whether your own retry or leader-election code carries the same assumptions.
Topics: re:Invent-2026, ai-agents, automated-reasoning, distributed-systems, software-reliability
Personal opinion disclaimer: this is my reading of the Project C2 announcement and supporting AWS material. The headline numbers come from AWS rather than independent peer-reviewed evaluation, the service is still gated, and the examples are vendor-selected; verify the current documentation and test the approach against your own systems before treating the conclusions as settled.

References

  1. Brooker, M., & Kong, S. (2026). Project C2: new AWS technique spots the rare bugs the most advanced models miss. About Amazon, November 30, 2026 (vendor primary source).  https://www.aboutamazon.com/news/aws/aws-project-c2-finds-bugs-ai-models-miss 
  1. Amazon Staff. (2026). 2026 AWS re:Invent News Briefing: AI innovations, AWS news and launches. About Amazon.  https://www.aboutamazon.com/news/aws/aws-re-invent-2026-ai-news-updates 
  1. Amazon Science. (2026). A decade of mathematical certainty: reflections on the Automated Reasoning Group.  https://www.amazon.science/blog/a-decade-of-mathematical-certainty-reflections-on-the-automated-reasoning-group 
  1. AWS Machine Learning Blog. (2026). How Automated Reasoning checks in Amazon Bedrock transform generative AI compliance.  https://aws.amazon.com/blogs/machine-learning/how-automated-reasoning-checks-in-amazon-bedrock-transform-generative-ai-compliance/ 
  1. AWS News Blog. (2025). Minimize AI hallucinations and deliver up to 99% verification accuracy with Automated Reasoning checks.  https://aws.amazon.com/blogs/aws/minimize-ai-hallucinations-and-deliver-up-to-99-verification-accuracy-with-automated-reasoning-checks-now-available/ 

Series: agentic-ai (8 articles)

  1. …
  2. 6
    AWS re:Invent 2026|Bigger Models Won't Catch the One-in-a-Million Bug: How Project C2 Pairs LLMs With Mathematical Proof This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article