Security & Quality · [ 3 min read ]

AWS pits LLMs against Lean: Project C2 hunts bugs with math proofs

At re:Invent 2026, AWS unveiled Project C2, which pairs LLMs with the Lean theorem prover to mathematically verify agent-written code, plus Kiro Crews and a rebuilt Amplify that ships apps in under a minute.

Key findings

  1. Project C2 found nine flaws in a widely used Rust profiling library across 22 open-source projects.
  2. Project C2 pairs LLMs with the Lean theorem prover and enters early access now; AWS will use it on Aurora, DynamoDB and EBS.
  3. Kiro Crews shares developer corrections across an agent team as reusable skills.
  4. The revamped AWS Amplify claims sub-minute app launches and includes tooling for Claude Code, Cursor and Kiro.
  5. AWS sizes the bug-search space at 8×10⁶⁷ possible system states.
AWS pits LLMs against Lean: Project C2 hunts bugs with math proofs
jamesmarkosborne / pixabay

AWS used the evening developer keynote at re:Invent 2026 to launch Project Code Confidence, a bug-hunting system that pairs large language models with the Lean theorem prover — and reports it already found nine flaws in a widely used Rust profiling library across a 22-project trial.

The initiative, shortened to Project C2, attacks a problem that scales with AI adoption itself. Coding agents write most enterprise code now, and their errors are rare — but at billions of lines per day, a one-in-a-million failure surfaces hundreds of times. AWS framed the search space with a card-shuffle analogy: distributed, multithreaded systems can be ordered in any of 8×10⁶⁷ ways, an eight followed by sixty-seven zeroes. Frontier models alone cannot exhaust that space.

Project C2 works in stages:

  • It reads the code plus supporting documentation to infer the intended behavior.
  • It constructs mathematical proofs, via the Lean theorem prover, that the code holds in every conceivable real-world scenario.
  • When a proof fails, it generates a real-world test to confirm the bug exists.
  • It rates the bug's severity and proposes a fix.

The trial run covered 22 popular open-source projects. Besides the nine flaws in the Rust profiling library, Project C2 flagged data-loss risks in a well-known open-source in-memory database and a lease-revocation bug in a Raft-based distributed key-value store used in payment systems — a defect that could charge customers twice per transaction. AWS will apply the tool internally to Amazon Aurora, DynamoDB and Elastic Block Store, and it invites developers to apply for early access now.

The takeaway: AWS is betting that formal verification, not larger models, is what closes the reliability gap in machine-written code.

Can agents teach each other?

The second announcement, AWS Kiro Crews, turns isolated coding bots into teams. A developer builds a shared crew of agents that work together on one software project rather than in parallel silos.

The mechanism is knowledge propagation. When a developer corrects one agent's mistake or explains a best practice, the crew stores that lesson as a reusable skill and shares it with every other agent in the group. Over time, crews accumulate institutional knowledge the way human teams do.

AWS positions this as a shift in how developers dispatch work: instead of typing prompts one at a time, a developer can assign a crew ongoing responsibilities — review every new pull request as it arrives, update dependencies each night, investigate security alerts. Crew agents run across the Kiro IDE, the command line, the web, mobile, and inside Kiro Crew itself.

In plain terms, AWS wants agents that hold standing jobs, not one-shot tasks.

What does the new Amplify remove?

Bug-free code still hits a wall at deployment: someone has to wire up hosting, databases, authentication and the rest. AWS argues the sheer volume of AI-generated code has made that manual work the new bottleneck, with developers barely keeping up.

The revamped AWS Amplify bundles managed hosting, databases and user sign-in into a single automated system on the AWS cloud. AWS claims a developer can launch an application in under a minute and scale it to millions of users.

Amplify targets agent-driven workflows specifically:

  • A unified API, plus dedicated tooling for Claude Code, Cursor and AWS Kiro.
  • Staging environments for private-preview testing.
  • Safety guardrails configured through the Agent Toolkit for AWS.
  • One-click rollbacks.

The service launches soon with a free tier to start and flat-rate pricing for continuous use.

Three releases, one argument: verification, shared learning and automated delivery — the parts of the pipeline that code generation alone never fixed.

By James Calloway

siliconangle.com (Original)

Price tags

Share this article:

More from James Calloway

James Calloway

Show full bio

Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.

24 articles

Adjacent departments

« Previous articleNext article »