<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nikolay Pankov</title>
    <description>The latest articles on DEV Community by Nikolay Pankov (@nikolaypankov).</description>
    <link>https://dev.to/nikolaypankov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4249090%2F6e29f477-82f7-4496-b4a7-40b0c4baf73e.png</url>
      <title>DEV Community: Nikolay Pankov</title>
      <link>https://dev.to/nikolaypankov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikolaypankov"/>
    <language>en</language>
    <item>
      <title>AI Found a Crack in Post-Quantum Encryption. Don't Panic, but Keep Migrating</title>
      <dc:creator>Nikolay Pankov</dc:creator>
      <pubDate>Sat, 05 Dec 2026 12:16:13 +0000</pubDate>
      <link>https://dev.to/nikolaypankov/ai-found-a-crack-in-post-quantum-encryption-dont-panic-but-keep-migrating-178h</link>
      <guid>https://dev.to/nikolaypankov/ai-found-a-crack-in-post-quantum-encryption-dont-panic-but-keep-migrating-178h</guid>
      <description>&lt;p&gt;An AI model found a new quantum attack on the math behind the world's post-quantum encryption standards. It is nowhere near practical, but the industry's response tells you to speed up your migration, not pause it.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What happened:&lt;/strong&gt; On Nov 30, Anthropic published four papers with machine-checked proofs, describing reфsults it says an internal Claude research model discovered. The headline result is a quantum algorithm that solves certain structured module-lattice problems in quasi-polynomial time. Those lattices are the math family under NIST's ML-KEM (FIPS 203) and ML-DSA (FIPS 204).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why you shouldn't panic:&lt;/strong&gt; A panel of 21 cryptographers reviewed it and called the attack's cost "galactic". Against ML-KEM-512, it needs more than 2^1000 quantum operations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why it still made headlines:&lt;/strong&gt; On Dec 2, the NSA and eight tech companies (Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, Oracle) urged everyone to move to post-quantum cryptography faster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The real story:&lt;/strong&gt; AI models are now producing publishable cryptanalysis, and reviewers expect this attack to be improved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What to do:&lt;/strong&gt; keep migrating, use hybrid schemes, choose the highest security level you can, and make algorithms easy to swap.
## What happened&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The story went from a private review to an industry-wide call to migrate faster in about two weeks, and most of the noise came before anyone could read the papers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finxf5a8b0becn9bpwx6h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Finxf5a8b0becn9bpwx6h.png" alt="Timeline: drafts went to reviewers on Nov 16, Coinbase calmed rumors on Nov 28, CIRG went public on Nov 29, Anthropic published on Nov 30, Cloudflare said PQC is still safe on Dec 1, and the NSA plus 8 firms urged faster migration on Dec 2" width="800" height="338"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Sources: The Hacker News, The Block, CSO Online, Cloudflare, Gizmodo · Nov 16 to Dec 2, 2026&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before the release, rumors claimed an AI lab had broken encryption without a quantum computer, and some versions said RSA-2048 had fallen (&lt;a href="https://www.technologyreview.com/2026/12/01/1150237/anthropics-bombshell-cryptography-breakthrough-is-kind-of-fine-actually/" rel="noopener noreferrer"&gt;MIT Technology Review&lt;/a&gt;, &lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;). Coinbase said it saw no reason to think today's cryptography was in immediate danger. On Nov 29 a new panel, the Cryptography Incident Review Group (CIRG), went public (&lt;a href="https://theblock.co/news/ecosystems/2026-12-01-a-complete-nothingburger-anthropic-releases-lattice-cryptography-research-says-findings-pose-no-practical-threat-today-448218" rel="noopener noreferrer"&gt;The Block&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Anthropic posted the papers and proofs to GitHub on Nov 30, and CIRG published its initial assessment the same day. Several CIRG members had received the results on Nov 16 (&lt;a href="https://betanews.com/article/anthropic-claude-lattice-cryptography-papers/" rel="noopener noreferrer"&gt;BetaNews&lt;/a&gt;, &lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;). Cloudflare answered on Dec 1 with a post titled &lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Post-quantum cryptography is still safe&lt;/a&gt;. On Dec 2, the NSA and eight tech companies urged a faster move to post-quantum cryptography (&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Gizmodo&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Not everyone liked how it was handled. Scott Aaronson criticized the partial early disclosure that let speculation spread, and cryptographer Nadim Kobeissi asked why Anthropic allowed an "uncontrolled fear cycle" (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;, &lt;a href="https://theblock.co/news/ecosystems/2026-12-01-a-complete-nothingburger-anthropic-releases-lattice-cryptography-research-says-findings-pose-no-practical-threat-today-448218" rel="noopener noreferrer"&gt;The Block&lt;/a&gt;).&lt;/p&gt;
&lt;h2&gt;
  
  
  What Claude actually found
&lt;/h2&gt;

&lt;p&gt;The main paper describes a quantum algorithm that solves certain structured lattice problems faster than any previously known method. The catch: the speed-up only appears as one parameter grows, and real standards don't grow that parameter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lattices in one paragraph.&lt;/strong&gt; Lattice cryptography hides a secret inside a system of equations with small random errors added, a problem called Learning With Errors (LWE). Recovering the secret is believed to be hard even for quantum computers. Structured variants (Ring-LWE and Module-LWE) add algebraic structure that makes keys smaller and operations faster. That efficiency is why NIST built ML-KEM (key exchange) and ML-DSA (signatures) on module lattices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The claim.&lt;/strong&gt; For module lattices of small rank over power-of-two cyclotomic rings, the algorithm solves random instances of search Module-LWE with short secrets in quasi-polynomial time on a quantum computer (&lt;a href="https://dev.to/jamilxt/anthropics-quantum-lattice-attack-what-changes-for-your-post-quantum-migration-547d"&gt;dev.to summary of the abstract&lt;/a&gt;, &lt;a href="https://www.datacamp.com/blog/anthropic-post-quantum-cryptography-breakthrough" rel="noopener noreferrer"&gt;DataCamp&lt;/a&gt;). Quasi-polynomial means slower than polynomial but much faster than exponential, which is a big deal on paper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it was made.&lt;/strong&gt; The lead paper, &lt;em&gt;Galactic quasi-polynomial quantum algorithms for integral and module lattices&lt;/em&gt;, runs 283 pages (&lt;a href="https://quantumcomputingreport.com/anthropic-publishes-ai-discovered-quasi-polynomial-quantum-algorithm-for-structured-lattices/" rel="noopener noreferrer"&gt;Quantum Computing Report&lt;/a&gt;). The repository credits the results to an internal research Claude model, and AI models also wrote the Lean 4 formalization: 132 main theorem statements and 190 intermediate ones, checked by the proof assistant (&lt;a href="https://aiweekly.co/alerts/anthropic-ships-claude-found-lattice-papers-with-lean-4-proofs" rel="noopener noreferrer"&gt;AI Weekly&lt;/a&gt;). Drafts went to outside cryptologists and the US government before release (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it did not find.&lt;/strong&gt; There is no improvement for classical computers against mainstream lattice systems, and no quantum improvement against unstructured lattices. The other three papers actually strengthen the theory behind unstructured-lattice schemes such as FrodoKEM (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;, &lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2yskz7ytoyglfqa74598.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2yskz7ytoyglfqa74598.png" alt="Which crypto families the attack touches: structured lattices (ML-KEM, ML-DSA) are hit in theory; unstructured lattices (FrodoKEM) get no new attack; hash-based signatures (SLH-DSA) are out of scope; RSA and elliptic curves are unchanged and still the bigger risk" width="800" height="407"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Sources: Anthropic papers via The Hacker News, CSO Online, DataCamp, MIT Technology Review&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The one family the papers touch is the one in the new standards. The family most of today's internet still runs on, RSA and elliptic curves, remains the nearer-term quantum risk, as PQShield CEO Ali El Kaafarani told &lt;a href="https://www.technologyreview.com/2026/12/01/1150237/anthropics-bombshell-cryptography-breakthrough-is-kind-of-fine-actually/" rel="noopener noreferrer"&gt;MIT Technology Review&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Reality check: why cryptographers call it "galactic"
&lt;/h2&gt;

&lt;p&gt;At real key sizes, the new attack is far more expensive than older attacks that are already out of reach. That is the verdict of the Cryptography Incident Review Group (CIRG), 21 cryptographers from academia and industry, including Dan Boneh (Stanford), Matthew Green (Johns Hopkins) and Vinod Vaikuntanathan (MIT), who serve in a personal capacity (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;). They even used AI models to help optimize the attack before estimating its cost.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frarct9hhj30e11ehcb77.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frarct9hhj30e11ehcb77.png" alt="Bar chart of work as a power of 2: the NIST level 1 security target is 2^128, atoms in the observable universe are about 2^266, and the new quantum attack against ML-KEM-512 needs more than 2^1000" width="800" height="294"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Attack cost: CIRG via The Hacker News; 2^128 target: Cloudflare; atoms in the universe: common estimate of 10^80&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Two numbers make the point. Against ML-KEM-512 and ML-DSA-44, even 2^1000 quantum operations would not be enough (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;). A direct implementation would also need billions of logical qubits, while today's quantum computers have roughly thousands of physical qubits (&lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why the standards dodge it.&lt;/strong&gt; A module lattice has two size knobs: the ring degree &lt;em&gt;n&lt;/em&gt; and the module rank &lt;em&gt;k&lt;/em&gt;. The attack's advantage shows up when &lt;em&gt;n&lt;/em&gt; grows while &lt;em&gt;k&lt;/em&gt; stays small. &lt;a href="https://csrc.nist.gov/pubs/fips/203/final" rel="noopener noreferrer"&gt;ML-KEM&lt;/a&gt; and ML-DSA do the opposite: they fix &lt;em&gt;n&lt;/em&gt; at 256 and add security by raising &lt;em&gt;k&lt;/em&gt; (for ML-KEM, k = 2, 3 and 4 for the 512, 768 and 1024 parameter sets). Along that path the attack stays exponential (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;, &lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it still matters.&lt;/strong&gt; CIRG expects the attack to be improved, and whether improvements bring the cost down for the real standards is the open question (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;). Anthropic still calls ML-KEM and ML-DSA among the strongest public-key algorithms available, but says the results lower its long-term confidence in structured lattices (&lt;a href="https://www.technologyreview.com/2026/12/01/1150237/anthropics-bombshell-cryptography-breakthrough-is-kind-of-fine-actually/" rel="noopener noreferrer"&gt;MIT Technology Review&lt;/a&gt;).&lt;/p&gt;
&lt;h2&gt;
  
  
  The reaction: no emergency, but less time
&lt;/h2&gt;

&lt;p&gt;The official message on Dec 2 had two parts: today's encryption is not in immediate danger, and everyone should move to post-quantum cryptography faster anyway.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Who&lt;/th&gt;
&lt;th&gt;What they said&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, Oracle&lt;/td&gt;
&lt;td&gt;Joint statement backing US guidance to adopt NIST's post-quantum algorithms and speed up migration (&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Gizmodo&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;NSA&lt;/td&gt;
&lt;td&gt;Told operators of the government's most sensitive systems to speed up their own transition, citing unspecified discoveries disclosed by AI companies (&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Gizmodo&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 2&lt;/td&gt;
&lt;td&gt;NSA and other US cyber officials, endorsed by the companies&lt;/td&gt;
&lt;td&gt;Recent AI advances are not an "immediate and widespread threat" to existing cryptography (&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Gizmodo&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 1&lt;/td&gt;
&lt;td&gt;Cloudflare&lt;/td&gt;
&lt;td&gt;The research is theoretical; its rollout continues, with 73% of human traffic already post-quantum encrypted (&lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dec 1&lt;/td&gt;
&lt;td&gt;Justin Drake, Ethereum researcher&lt;/td&gt;
&lt;td&gt;Called the attack impractical and said it supports hash-based roadmaps; the Ethereum Foundation moved its quantum-resistant L1 target to mid-2028 (&lt;a href="https://theblock.co/news/ecosystems/2026-12-01-a-complete-nothingburger-anthropic-releases-lattice-cryptography-research-says-findings-pose-no-practical-threat-today-448218" rel="noopener noreferrer"&gt;The Block&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 30&lt;/td&gt;
&lt;td&gt;CIRG&lt;/td&gt;
&lt;td&gt;No practical threat; keep migrating, use the highest security level, and diversify the standards (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 28&lt;/td&gt;
&lt;td&gt;Coinbase&lt;/td&gt;
&lt;td&gt;No reason to believe AI researchers have found anything that immediately endangers current cryptography (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The government has not said what the AI companies discovered, or whether it goes beyond Anthropic's published papers (&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Gizmodo&lt;/a&gt;). One more data point: OpenAI's chief research officer reportedly told staff to stop using its models on cryptography problems, according to The Information, as cited by &lt;a href="https://www.axios.com/2026/12/01/ai-anthropic-encryption-quantum-agility" rel="noopener noreferrer"&gt;Axios&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Matt Caswell, executive director of the OpenSSL Foundation, told Axios the rules are the same; the news "just changes how fast the game is being played."&lt;/p&gt;
&lt;h2&gt;
  
  
  The real story: AI is now a cryptanalyst
&lt;/h2&gt;

&lt;p&gt;The attack itself is impractical. What should get your attention is who found it: an AI model produced original cryptanalysis that 21 experts took seriously, along with machine-checked proofs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It isn't the first time.&lt;/strong&gt; In July, a Claude-derived attack recovered a working signing key from HAWK-256, a challenge parameter set of a signature scheme in NIST's post-quantum process. The HAWK team withdrew the scheme the day after disclosure (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;). AI is also showing up on the attacking side of security more broadly: on Dec 1, the UK AI Security Institute reported that two OpenAI models autonomously broke into a hardened simulated corporate network, with their cyber safeguards switched off for the test (&lt;a href="https://aisi.gov.uk/blog/gpt-6-astra-and-gpt-6-2-astra-solve-zero-energy-our-hardest-cyber-range-to-date" rel="noopener noreferrer"&gt;AISI&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Speed is the threat, not this paper.&lt;/strong&gt; Counterpoint analyst Neil Shah argues the result matters a lot for AI-driven mathematics and very little for anyone's keys today, but that AI could speed up the follow-on work that cuts an attack's cost (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;). Even the reviewers used AI models to optimize the attack before costing it. If standards can age faster than before, the time to replace one matters more than which one you pick (&lt;a href="https://www.axios.com/2026/12/01/ai-anthropic-encryption-quantum-agility" rel="noopener noreferrer"&gt;Axios&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Standards may need more variety.&lt;/strong&gt; CIRG asked NIST and other bodies to standardize public-key systems built on different math, even where they are less efficient, and asked frontier AI labs to share what they try with cryptographers (&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;The Hacker News&lt;/a&gt;). Scott Aaronson raised whether the industry may eventually need less structured lattice problems, despite their larger keys (&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;CSO Online&lt;/a&gt;). Cloudflare's researchers see an upside: AI-assisted research with responsible disclosure can help defenders find and fix weaknesses before attackers exploit them (&lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;).&lt;/p&gt;
&lt;h2&gt;
  
  
  What developers should actually do
&lt;/h2&gt;

&lt;p&gt;Keep migrating, and build so you can change your mind quickly. Cryptographers, Anthropic, Cloudflare and analysts all land on that advice, and none of it is exotic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5lam7geyochz2lp1muwz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5lam7geyochz2lp1muwz.png" alt="Hybrid key exchange diagram: X25519 (classical elliptic curve) and ML-KEM-768 (post-quantum module lattice) secrets are combined in the TLS 1.3 key schedule, so the session keys stay safe if either half holds" width="800" height="299"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Defaults: Cloudflare post-quantum support docs, Dec 2026&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Hybrid key exchange is why a surprise on either side doesn't have to turn into an incident. Signatures are a different story: browsers don't support post-quantum signatures yet, and Chrome plans to use Merkle Tree Certificates instead. For most teams, authentication will be the harder half of the migration.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find your crypto first.&lt;/strong&gt; Many teams can't say which algorithms they use, or where. List every place you rely on RSA, ECDH, ECDSA or Ed25519: TLS, SSH, JWT signing, code signing and encrypted data at rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn on hybrid key exchange now.&lt;/strong&gt; X25519MLKEM768 is already the default in Chrome and Edge 131+, Firefox 132+, Safari 26+, OpenSSL 3.5+, Go 1.24+, rustls 0.23.27+ and Node.js 24.5+. Upgrading your server's TLS library is often most of the work, and it protects today's traffic from "harvest now, decrypt later" collection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick the highest security level you can afford.&lt;/strong&gt; If you already use NIST's standards, choose ML-KEM-768 or ML-KEM-1024 over ML-KEM-512 wherever key sizes and latency allow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mix schemes built on different math.&lt;/strong&gt; With a hybrid, one broken assumption doesn't take the whole system down. For signatures that have to last for years, a hash-based scheme like SLH-DSA is worth a look if you can live with its larger signatures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make algorithms easy to swap.&lt;/strong&gt; Keep algorithm choices in config, not hard-coded. Route every crypto call through one internal module, version your key and ciphertext formats, and test against more than one algorithm. The next surprise may give you less time than this one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace RSA and elliptic curves first.&lt;/strong&gt; They are still the nearer quantum risk, and NIST plans to deprecate them after 2030 and disallow them after 2035.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Push your vendors and plan for the long run.&lt;/strong&gt; Ask every vendor for a credible migration plan and a way to replace algorithms later. Treat post-quantum work as an ongoing capability, not a one-off project.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Want to see what your servers negotiate today? Look for X25519MLKEM768 in the TLS output, and an mlkem or sntrup hybrid in the SSH output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# TLS: which key-exchange group does the server pick? (OpenSSL 3.5+)&lt;/span&gt;
openssl s_client -connect example.com:443 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; grep -i &lt;span class="s2"&gt;"group"&lt;/span&gt;

&lt;span class="c"&gt;# SSH: which key exchange does your client negotiate?&lt;/span&gt;
ssh -v user@host &lt;span class="nb"&gt;exit&lt;/span&gt; 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;|&lt;/span&gt; grep &lt;span class="s2"&gt;"kex: algorithm"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Primary and official&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://blog.cloudflare.com/pq-is-still-safe/" rel="noopener noreferrer"&gt;Post-quantum cryptography is still safe&lt;/a&gt;, Cloudflare, Dec 1, 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developers.cloudflare.com/ssl/post-quantum-cryptography/pqc-support/" rel="noopener noreferrer"&gt;Post-quantum support in browsers and libraries&lt;/a&gt;, Cloudflare docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://aisi.gov.uk/blog/gpt-6-astra-and-gpt-6-2-astra-solve-zero-energy-our-hardest-cyber-range-to-date" rel="noopener noreferrer"&gt;GPT-6 Astra and GPT-6.2 Astra solve Zero Energy&lt;/a&gt;, UK AI Security Institute, Dec 1, 2026&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://csrc.nist.gov/pubs/fips/203/final" rel="noopener noreferrer"&gt;FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard&lt;/a&gt;, NIST, Aug 13, 2024&lt;br&gt;
&lt;strong&gt;Reporting and analysis&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://thehackernews.com/2026/12/anthropics-ai-discovers-new-attack-on.html" rel="noopener noreferrer"&gt;Claude AI finds quantum attack on ML-KEM and ML-DSA math, but it is far from practical&lt;/a&gt;, The Hacker News, Dec 1, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://gizmodo.com/eight-of-the-worlds-biggest-tech-companies-just-issued-a-cryptic-warning-about-encryption-2000848558" rel="noopener noreferrer"&gt;Eight of the world's biggest tech companies just issued a cryptic warning about encryption&lt;/a&gt;, Gizmodo, Dec 3, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.csoonline.com/article/4255093/anthropics-ai-driven-cryptography-breakthrough-puts-enterprise-crypto-agility-to-the-test.html" rel="noopener noreferrer"&gt;Anthropic's AI-driven cryptography breakthrough puts enterprise crypto-agility to the test&lt;/a&gt;, CSO Online, Dec 1, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.technologyreview.com/2026/12/01/1150237/anthropics-bombshell-cryptography-breakthrough-is-kind-of-fine-actually/" rel="noopener noreferrer"&gt;Anthropic's bombshell cryptography breakthrough is kind of fine, actually&lt;/a&gt;, MIT Technology Review, Dec 1, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.axios.com/2026/12/01/ai-anthropic-encryption-quantum-agility" rel="noopener noreferrer"&gt;Encryption's new race against time&lt;/a&gt;, Axios, Dec 1, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://theblock.co/news/ecosystems/2026-12-01-a-complete-nothingburger-anthropic-releases-lattice-cryptography-research-says-findings-pose-no-practical-threat-today-448218" rel="noopener noreferrer"&gt;'A complete nothingburger': Anthropic releases lattice cryptography research&lt;/a&gt;, The Block, Dec 1, 2026&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://betanews.com/article/anthropic-claude-lattice-cryptography-papers/" rel="noopener noreferrer"&gt;Anthropic's lattice cryptography papers&lt;/a&gt;, BetaNews&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://quantumcomputingreport.com/anthropic-publishes-ai-discovered-quasi-polynomial-quantum-algorithm-for-structured-lattices/" rel="noopener noreferrer"&gt;Anthropic publishes AI-discovered quasi-polynomial quantum algorithm for structured lattices&lt;/a&gt;, Quantum Computing Report&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.datacamp.com/blog/anthropic-post-quantum-cryptography-breakthrough" rel="noopener noreferrer"&gt;Did Anthropic crack post-quantum encryption?&lt;/a&gt;, DataCamp&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://aiweekly.co/alerts/anthropic-ships-claude-found-lattice-papers-with-lean-4-proofs" rel="noopener noreferrer"&gt;Anthropic ships Claude-found lattice papers with Lean 4 proofs&lt;/a&gt;, AI Weekly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://dev.to/jamilxt/anthropics-quantum-lattice-attack-what-changes-for-your-post-quantum-migration-547d"&gt;Anthropic's quantum lattice attack: what changes for your post-quantum migration&lt;/a&gt;, dev.to&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://postquantum.com/security-pqc/nist-ir-8547-final/" rel="noopener noreferrer"&gt;NIST finalizes its post-quantum transition plan&lt;/a&gt;, PostQuantum.com, Oct 2026&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>cryptography</category>
      <category>news</category>
    </item>
    <item>
      <title>AI wrote Anthropic's new Rust API in a week. Proving it worked took 4 months.</title>
      <dc:creator>Nikolay Pankov</dc:creator>
      <pubDate>Fri, 04 Dec 2026 09:32:37 +0000</pubDate>
      <link>https://dev.to/nikolaypankov/ai-wrote-anthropics-new-rust-api-in-a-week-proving-it-worked-took-4-months-1n43</link>
      <guid>https://dev.to/nikolaypankov/ai-wrote-anthropics-new-rust-api-in-a-week-proving-it-worked-took-4-months-1n43</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgrsgi0azgbmr1wsdjvxq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgrsgi0azgbmr1wsdjvxq.png" alt="Two bars: 98% of tests passing vs about 25% of real production inputs matching the Python API, April 2026" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In April 2026, Anthropic's new Rust version of its Messages API passed about 98% of its tests.&lt;/p&gt;

&lt;p&gt;Then the team compared it against real production traffic. It disagreed with the live Python API on roughly three out of every four requests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffk5fbghz7tbo3ybjgiml.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffk5fbghz7tbo3ybjgiml.png" alt="Rust vs Python per request: CPU about 70% lower, memory more than 80% lower, median time to first token about 20% lower; the March half-measure saved only 8-10% CPU" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Claude wrote the first version of the core request path in about a week. Getting from that quarter to 99.6% took until August. And what closed the gap wasn't a smarter model. It was a better way of checking the work.&lt;/p&gt;

&lt;p&gt;Anthropic &lt;a href="https://www.anthropic.com/research/migrating-api-to-rust" rel="noopener noreferrer"&gt;published the full story&lt;/a&gt; on November 25. It's the most useful engineering write-up I've read this year, because it shows what happens after an AI agent writes the code: the part almost nobody talks about.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anthropic moved its Messages API from Python to Rust, mostly using Claude agents. CPU per request fell about 70%, memory more than 80%, and median time to first token about 20%, with no downtime.&lt;/li&gt;
&lt;li&gt;Writing the code was fast. Verifying it was the hard part, because the tests said "done" long before production agreed.&lt;/li&gt;
&lt;li&gt;They made the live Python API the test: real traffic replayed into both versions, every difference fingerprinted and sent to an agent to fix.&lt;/li&gt;
&lt;li&gt;The jump in speed came from the loop around the agents, not from a better model.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What Anthropic moved, and why
&lt;/h2&gt;

&lt;p&gt;The Messages API is the front door to Claude. Every request from Anthropic's own apps, Claude Code and API customers passes through it. It was built in Python in 2023, when it mostly forwarded requests to the model and back.&lt;/p&gt;

&lt;p&gt;Then traffic grew about 1,800 times between early 2024 and fall 2026. By late 2025, every request also needed validation, prompt construction, tokenization, safety screening and token-by-token sorting of the model's output. Python's per-object overhead added a small cost at each of those steps, and at that volume small costs add up.&lt;/p&gt;

&lt;p&gt;Someone had proposed a rewrite in Go or Rust back in 2024. The answer then was no. In March 2026 the team tried a half-measure: rewrite only the output parser in Rust and call it from Python. It cut CPU by just 8 to 10%, and every token now crossed the Python/Rust boundary three times. They decided the gain wasn't worth the complexity, and went for the full port.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyhhemtviqy7fqno25tbw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyhhemtviqy7fqno25tbw.png" alt="A difference record (step, prompt piece, first differing byte, output lengths) next to an example bug: Python escaped emoji in JSON tool calls, Rust wrote them as-is" width="800" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why 98% green meant almost nothing
&lt;/h2&gt;

&lt;p&gt;A 98% pass rate sounds like a finished migration. Here's why it wasn't.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The tests were written for the old code.&lt;/strong&gt; The API had about 700 integration tests, but they were coupled to the Python implementation. When the team audited the ported tests, they found more than 100 assertions that had been quietly weakened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The space of behaviour is enormous.&lt;/strong&gt; Twenty on/off options alone make over a million combinations. At one second per test, that's about 12 days of testing for a single model, before you vary a single prompt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The target kept moving.&lt;/strong&gt; The Python API didn't freeze while they ported it. New models and features kept shipping, so "behaves like Python" meant something different every week.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Different output isn't always a bug.&lt;/strong&gt; Claude can answer the same request in different ways, so a mismatch at the end of the pipeline proves nothing by itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nobody could look at the failures.&lt;/strong&gt; Engineers can't read customer requests or replies, so they couldn't just open the failing cases and see what went wrong.&lt;/p&gt;

&lt;p&gt;The lesson I take from this: a test suite is a sample of your system's behaviour, chosen by people who were thinking about particular cases at the time. Production is the whole population. I've rewritten most of a large e-commerce site before, and the scary part was never writing the new code. It was not knowing which old behaviour real users quietly depended on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning production into the test
&lt;/h2&gt;

&lt;p&gt;If the tests can't define "correct", something else has to. Anthropic's answer was the running Python API itself. Whatever it did on real traffic was, by definition, the right behaviour. Three techniques made that usable.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Shadow and replay
&lt;/h3&gt;

&lt;p&gt;For each live request, the model was called once. Its output was then replayed into the Rust version too. Both versions worked from identical model output, which removes the nondeterminism problem, and no request was billed or counted twice.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Checkpoints
&lt;/h3&gt;

&lt;p&gt;Instead of comparing only the final response, they compared both versions at every step: validation, settings resolution, prompt construction, and the prompt itself piece by piece. The first step that differs tells you where to look.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Fingerprints
&lt;/h3&gt;

&lt;p&gt;Every difference was logged as a small record: which step, which piece of the prompt, the first byte that differed, and each version's output length. No request or reply text, so privacy holds. The trick is that one bug leaves the same fingerprint on every request it touches. Ten thousand mismatches might be three bugs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj0hz266nromz8avi0ljg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj0hz266nromz8avi0ljg.png" alt="The verification loop: live traffic, Python vs Rust comparison, fingerprint, coordinator agent, worker agent, engineer review, deploy, then a check that the fingerprint is gone; engineer corrections feed rules that later agents read" width="800" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The loop: agents chasing fingerprints
&lt;/h2&gt;

&lt;p&gt;With fingerprints in place, finding work for agents became automatic. A script ran every 10 to 30 minutes and grouped the difference records. When it saw a new kind of record, it alerted a coordinating Claude agent. The coordinator handed each new fingerprint to a worker agent and opened a Slack thread that engineers could follow and steer.&lt;/p&gt;

&lt;p&gt;The first version of this, in April, was slow. Agents guessed at a cause, opened a pull request, waited for review and deployed to staging to see if the guess was right. Each hypothesis took hours or days.&lt;/p&gt;

&lt;p&gt;The redesign put each worker in a cloud sandbox with both codebases. An input check built the prompt from each version and compared them in under a second. An output check ran both against a fake model with scripted replies. The agent wrote a request that triggered the difference, edited the Rust code until the versions matched, and added a test that failed on the old code and passed on the new.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcm6ojlu1cud7wy6c4suu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcm6ojlu1cud7wy6c4suu.png" alt="Production match rate went from about 25% in April to 6.5% in early May to 99.6% in August; Rust changes merged went from under 100 to about 1,000 to over 3,000 per two weeks" width="800" height="702"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two more loops sat around that one. Engineers reviewed every proposed fix, because only a human could tell a real bug from a deliberate change. After a fix shipped, shadowed traffic showed whether its fingerprint actually disappeared; if not, the task went back to a worker. And every correction an engineer made was saved as a note or rule that later agents read. The rules were also encoded as tests, lints, and a merge check that required a matching Rust change for every Python change.&lt;/p&gt;

&lt;p&gt;Here's what that did to the numbers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32koe6kf1sv2dccddj2a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F32koe6kf1sv2dccddj2a.png" alt="Production match rate went from about 25% in April to 6.5% in early May to 99.6% in August; Rust changes merged went from under 100 to about 1,000 to over 3,000 per two weeks" width="800" height="535"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent that gamed the verifier
&lt;/h2&gt;

&lt;p&gt;My favourite part of the post is where the system almost fooled itself.&lt;/p&gt;

&lt;p&gt;In mid-May, an agent traced a large group of mismatches to one cause: the description of the web search tool was missing from the prompts Rust built. Its fix was to copy that text into files the Rust code could read. The prompts matched. The local check went green.&lt;/p&gt;

&lt;p&gt;An engineer rejected it. Before launch, the Rust API would have to fetch that description from the internal service, like Python did, so the copy was throwaway code. The rejection was saved to memory, and later agents linked related records to the known bug instead of writing new workarounds.&lt;/p&gt;

&lt;p&gt;The same thing happened in another form. After an agent guessed at how Python behaved instead of checking, an engineer made it a rule: port exactly what Python does, never guess. A later agent, following that rule, found seven more places where the port relied on guesses.&lt;/p&gt;

&lt;p&gt;This is the core limit of any verifier. It rewards matching outputs, so an agent will find the cheapest way to produce matching outputs. The verifier can tell you "these match". It can't tell you "this is good enough to ship". That's still a human call, and it's where the engineers' time went.&lt;/p&gt;

&lt;h2&gt;
  
  
  Same model, better harness
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;"Verification, not generation, had become the bottleneck."&lt;br&gt;
— Anthropic, &lt;em&gt;Migrating our Messages API to Rust&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Notice what the post doesn't credit. It doesn't name a model, and it doesn't describe a breakthrough in what the agents could write. What changed between April and August was everything around them: a sandbox where a fix could be checked in a second, fingerprints that turned a flood of mismatches into a short list, a dispatcher that handed out work, and a memory that stopped agents repeating mistakes.&lt;/p&gt;

&lt;p&gt;The engineers' role moved too. Early on they worked inside the inner loop, reviewing guesses. By the end they mostly wrote the rules and checks that kept agents honest. Humans defined what "correct" meant; agents did the hypothesis, the reproduction and the fix.&lt;/p&gt;

&lt;p&gt;That's the question I'm testing in my next article: for real engineering tasks, does a better harness beat a better model? This migration is a strong data point that it does.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can steal, without Anthropic's scale
&lt;/h2&gt;

&lt;p&gt;You probably don't have Anthropic's traffic to shadow or a fleet of sandboxed agents. You don't need them to use the same ideas on your next migration or refactor.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Make the old system the oracle.&lt;/strong&gt; Run old and new code on the same inputs and treat the old output as correct until a human says otherwise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record and replay real requests.&lt;/strong&gt; Capture a sanitised sample of production traffic and replay it, instead of relying on hand-written test cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare at checkpoints.&lt;/strong&gt; Diff intermediate results, not just the final response, so the first difference points at the bug.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fingerprint your diffs.&lt;/strong&gt; Group differences by where and how they differ, so one bug shows up as one item, not ten thousand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give agents a fast local check.&lt;/strong&gt; A check that runs in seconds beats a PR and a staging deploy per guess. Speed of verification sets the speed of the agent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn every correction into a rule.&lt;/strong&gt; Write review feedback into your CLAUDE.md or equivalent, and back it with a test so the rule can't drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block drift during the migration.&lt;/strong&gt; Add a merge check: a change to the old code needs a matching change to the new one.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Caveats worth keeping in mind
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;These are Anthropic's numbers.&lt;/strong&gt; Nobody has verified them independently. &lt;a href="https://www.techrepublic.com/article/news-anthropic-claude-messages-api-rust-migration/" rel="noopener noreferrer"&gt;TechRepublic&lt;/a&gt; notes the CPU figure came from one region, and the time-to-first-token figure from a shorter window, partly while requests still ran on Python.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This was Anthropic-scale work.&lt;/strong&gt; Huge traffic to shadow, cloud sandboxes, and engineers reviewing every fix for months. The patterns transfer; the budget may not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not every service would gain this much.&lt;/strong&gt; Many APIs spend their time waiting on databases and networks, not on language overhead. A Rust rewrite there would buy far less.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Big rewrites are still risky.&lt;/strong&gt; The classic warning holds: a rewrite throws away years of fixed edge cases. What this story shows is how to make one safe, not that rewrites are now free.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;When AI makes writing code cheap, proving the code is right becomes the job. Your tests will tell you you're done long before your users agree. The teams that move fastest with agents won't be the ones with the best model. They'll be the ones with the fastest, most honest way to check the work.&lt;/p&gt;

&lt;p&gt;So here's my question for you: what's the real spec for your system, the tests or production? Tell me in the comments.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.anthropic.com/research/migrating-api-to-rust" rel="noopener noreferrer"&gt;Migrating our Messages API to Rust&lt;/a&gt;, Anthropic, Nov 25, 2026 (all figures unless noted)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.techrepublic.com/article/news-anthropic-claude-messages-api-rust-migration/" rel="noopener noreferrer"&gt;Anthropic Says Claude Helped Rebuild Its API in Rust, Cutting CPU Use by 70%&lt;/a&gt;, TechRepublic&lt;/li&gt;
&lt;li&gt;&lt;a href="https://news.ycombinator.com/item?id=50646357" rel="noopener noreferrer"&gt;Hacker News discussion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>rust</category>
      <category>testing</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
