AWS pairs LLMs with math proofs to hunt rare bugs

By Mark 9 min read 0 views

😁 Hello, super humans! AI writes a lot of code now, and the bugs that slip through are the nasty kind: races, thread-safety slips and check-then-act flaws that tests almost never hit. Last night at re:Invent, AWS showed a tool that asks a language model what your code is supposed to do and then tries to prove it with math. Let’s look at how that works, and then run a tiny solver that proves a classic one-liner wrong.

📰 Quick Signals

  • 🧠 AI: Gemini 4 Argon’s introductory API pricing ended November 30; from today it costs $4 per million input tokens and $20 per million output tokens, double the launch rate, so re-check any budget built on $2/$10.
  • 🤖 Robotics: China will require export licenses for some of its most advanced humanoid and legged robots and related technology from December 29, including machines with military uses such as reconnaissance and bomb disposal.
  • 💻 Programming: AWS rebuilt Amplify to take an app from code to a live URL in under a minute, with hosting, PostgreSQL and auth in one place, preview environments, one-step rollback and a free Basic plan.
  • ⚡ Electronics: SONOFF’s $99.90 Pro CT meters a three-phase, four-wire circuit with three 120 A clamps and Class 0.5 accuracy, talking Wi-Fi, Ethernet and Modbus RTU/TCP, with Home Assistant support.
  • 📡 Telecom: Iliad-owned Play launched 5G Standalone in Warsaw, Łódź and Białystok, claiming a first for a Polish operator, with enterprise 5G SA services planned for Q1 2027.

🔍 The Big Story: AWS pairs LLMs with math proofs to hunt rare bugs

If your team ships a lot of AI-generated code, this is the re:Invent launch that speaks to the bugs you are least likely to catch.

What happened: At the developer keynote that opened re:Invent on Monday evening, AWS distinguished engineer Marc Brooker and applied scientist Soonho Kong unveiled Project C2, short for Project Code Confidence. According to Amazon’s re:Invent day-one briefing, it combines agentic AI with automated reasoning to find rare bugs that even the strongest models miss, and it turned up more than 800 bugs across 22 popular open-source projects. It is opening first in a gated preview, with customers applying through AWS.

The details: The interesting part is the division of labor, as The Next Web describes it. The language model reads the code and its documentation to infer intent: what the program is supposed to guarantee. Automated reasoning then tries to prove the code meets that intent. When a proof fails, C2 does not just flag a line; it writes a runnable test that demonstrates the bug, rates its severity and suggests a fix. The targets are the defects ordinary testing rarely hits: race conditions, thread-safety problems and TOCTOU (time-of-check to time-of-use) flaws, where code checks a value that changes before it acts on it. One Rust profiling library alone had nine thread-safety bugs, and AWS says it shared fixes with the maintainers. This is not new territory for Amazon, which has used automated reasoning for years on S3 and on the policy engine behind account access; what is new is using an LLM to write the specifications that proofs need, which has always been the expensive part.

flowchart LR
    A[Code + docs] --> B[LLM infers intended behavior]
    B --> C[Automated reasoning tries to prove it]
    C --> D{Proof holds?}
    D -->|Yes| E[Higher confidence, move on]
    D -->|No| F[Counterexample found]
    F --> G[Runnable test reproduces the bug]
    G --> H[Severity rating + suggested fix]

Important

Our take: This is the right answer to “AI writes the code, so who checks it?” Another model reviewing the diff shares the same blind spots; a solver either finds a counterexample or it does not. The catch is the spec: if the LLM infers the wrong intent, you get a confident proof of the wrong property, so I would treat C2’s inferred guarantees as something a human reads, not something a human trusts blindly. The runnable test for each finding is the killer feature, because a reproduction ends the “is this real?” argument in code review. Until you get preview access, try the idea in miniature below.

🗞️ More News

🧠 AI

  • OpenAI’s Sam Altman and Greg Brockman, hours after Anthropic’s essay, called for evolving limits on how smart superintelligence becomes relative to people, with proof of safeguards before each capability threshold, but proposed no government role or enforcement.
  • Apple signed commercial news partnerships with more than 20 publishers, including AP, the BBC, CNN, The Guardian and The Washington Post, so Siri AI answers can draw on current reporting with links back to each story; terms were not disclosed.
  • NVIDIA unveiled Kyber Galaxy, an AI rack for orbital data centers designed with SpaceX that is about a third the size of a Vera Rubin NVL72 rack with similar capability, with launches starting in 2027.
  • Nuvacore, founded by former Apple silicon lead Gerard Williams, raised more than $200 million at a $2.2 billion valuation, led by Coatue with Arm investing, to build an Arm-based data-center CPU tuned for single-thread performance.
  • AWS launched Agent Toolkit for AWS, which gives coding agents AWS skills and guardrails and lets them obtain short-lived credentials once you finish sign-in in the browser.
  • Kiro’s Crew for Teams lets a team hand ongoing work such as bug reports and features to a shared crew of agents, turning team feedback into skills anyone can inspect and refine.

🤖 Robotics

  • Humanoids Summit Silicon Valley runs today and tomorrow in San Mateo, with organizers promising Tesla Optimus on site and Full Self-Driving (Supervised) demo drives for attendees.
  • Beijing’s NeodraDynamics laid out the “super-humanoid” thinking behind Neo1, its roughly four-meter heavy-duty prototype, arguing embodied robots should exceed human capability rather than copy it.
  • UBTECH’s Walker S3 industrial humanoid stands 174 cm, weighs 59.3 kg and has 51 degrees of freedom, 22 of them in the hands, for manufacturing and logistics work.

💻 Programming

  • AWS Lambda Web Functions run an existing Express or Next.js server without adapters, return a live HTTPS URL from one command, handle up to 128 concurrent requests per environment and bill CPU only while code runs, not during I/O waits.
  • AWS Emulator runs AWS locally with no account, credentials or network, answering SDK and CLI calls in milliseconds once you point AWS_ENDPOINT_URL at it.
  • GitHub is deprecating OAuth and GitHub App redirect URIs that contain a # fragment; from February 1, 2027 it will reject authorization requests that use them, so check your callback URLs now.

⚡ Electronics

  • A battery-powered air-quality monitor pairs an ESP32-C6 with a Sensirion SCD41 CO₂ sensor, a Bosch BME690 gas sensor and a 4.2-inch e-ink panel, running for months on a 2000 mAh cell.
  • The GEEKOM A5 2027 Edition review wraps up with Ubuntu 26.04 on its Ryzen 7 7730U, covering benchmarks, networking, thermals, noise and power draw.
  • A dropped Sony SEL1018 lens got its zoom and autofocus mechanisms rebuilt, with a suggestion to 3D print the broken plastic parts.

📡 Telecom

  • Nokia will supply the data-center network, its 7220 IXR-H5 platform with SR Linux, for Indian AI cloud Neysa’s 8,192-GPU cluster in Mumbai.
  • Du reports download speeds above 3 Gbps from its 5G+ deployment at Dubai International Airport.
  • Telefónica’s Movistar 5G+ now covers 18 Madrid Metro stations, rising to 24 this month and 30 by the end of Q1 2027.
  • TRAI’s draft telecom AI rules would make Indian operators keep a central record of customer reports of AI harm and report critical AI incidents; comments are open until December 4.

👨‍💻 Code Corner

You do not need Project C2 to feel how proof-based bug hunting works. This Z3 script asks a solver whether the classic midpoint line (lo + hi) / 2 can ever leave the range [lo, hi] for 32-bit integers, and then checks the safe version.

#!/usr/bin/env python3
"""midpoint_proof.py: prove or refute two midpoint formulas for 32-bit ints."""
# pip install z3-solver
from z3 import BitVec, Solver, And, Or, sat

lo, hi = BitVec("lo", 32), BitVec("hi", 32)
precondition = And(lo >= 0, hi >= lo)      # signed 32-bit: 0 <= lo <= hi

def check(name, mid):
    s = Solver()
    s.add(precondition, Or(mid < lo, mid > hi))   # a bug is any mid outside [lo, hi]
    if s.check() == sat:
        m = s.model()
        print(f"{name}: BUG  lo={m[lo].as_signed_long()} hi={m[hi].as_signed_long()} "
              f"mid={m.eval(mid).as_signed_long()}")
    else:
        print(f"{name}: proved correct for every 32-bit input")

check("(lo + hi) / 2", (lo + hi) / 2)
check("lo + (hi - lo) / 2", lo + (hi - lo) / 2)

The first check prints a concrete counterexample where lo + hi overflows and the midpoint goes negative; the second is proved correct for every valid pair of 32-bit inputs, with no test cases written at all.

Tip

Z3 bit-vectors wrap like real machine integers, which is exactly why they catch overflow that Python’s unbounded int would hide. The hard part in real code, and the part C2 hands to an LLM, is writing the property (lo <= mid <= hi) in the first place.

🧰 Toolbox

  • Z3: Microsoft Research’s SMT solver behind today’s Code Corner; pip install z3-solver and start proving small properties of your own functions.
  • CBMC: a bounded model checker for C and C++ that finds memory-safety bugs and assertion failures by turning code into a solver problem, no LLM required.
  • LeRobot: Hugging Face’s open library for robot learning, datasets and policies, a good on-ramp now that humanoid hardware headlines are everywhere.
  • Smart Meteo monitor: the full build notes for today’s months-on-a-battery ESP32-C6 air-quality station.

🔌 Component of the Week (rotating)

Rockchip RK1828 LLM accelerator: an M.2 card that brings up to 20 TOPS and 5 GB of on-chip DRAM to an RK3588 system, enough to run LLMs and vision-language models of up to 7B parameters. Vendor figures put it at just under 60 tokens per second on Qwen2.5-7B and Qwen2.5-VL-7B. It just showed up inside Geniatech’s APC3588-V2 edge box, but any RK3588 board with a spare M.2 Key-M PCIe slot could host one. Expect roughly $249 to $299 for the module alone, with an active cooler included.

📚 From the Blog

😀 The Bot Says…

My code passed all its tests, so I asked a solver to prove it correct. It replied with a counterexample and a test case. I have decided tests were fine, actually. 🤖


That’s all for today! Would you let an LLM write the spec if a solver checked the proof? Reply and tell us.