Essays

AI coding and automated verification

Chess engines offer a comparison for assessing AI-generated code: stronger automated checks can reveal errors that human reviewers miss.

4 July 202615 min

Twenty-one years ago, in June 2005, the grand­mas­ter Michael Adams sat down for six games against a machine called Hydra. He was then roughly the sev­enth strongest player alive. He scored half a point: one draw, five losses.1

Deep Blue’s 1997 vic­tory over Kasparov was a single match whose con­di­tions Kasparov con­tin­ued to dis­pute. Hydra’s result against Adams eight years later was harder to argue with. World cham­pion Vladimir Kramnik then lost to Deep Fritz in 2006, includ­ing a game in which he missed mate in one. Susan Polgar called it “the blun­der of the cen­tury”.2

The argu­ment over “AI slop” code has a sim­ilar prob­lem. Some of the cri­ti­cism still describes older models, and newer sys­tems do much better on cer­tain tasks. The fight is over which tasks those res­ults rep­res­ent.

What the critics got right

The people com­plain­ing about AI-gen­er­ated code were right about the models they were using. GPT-3.5 in 2023 con­fid­ently inven­ted APIs that didn’t exist. The first wave of Copilot output was what the crit­ics said it was.

Criticism of “slop” often runs two ques­tions together: how good the best model output can be, and how good the aver­age pub­lished output is. The two can move sep­ar­ately. Cheaper pro­duc­tion may mean more poor work even as the best sys­tems improve, so aver­age pub­lished code doesn’t tell you what a model can do at its best.

Figure 1Reported SWE-bench scores, by date

Verified climbed to 95%. On codebases the models have never seen, the best reaches about 62%.

SWE-bench uses real GitHub issues from open-source pro­jects and asks a model to pro­duce a patch that passes the pro­ject’s tests. GPT-4 solved 1.7% when the ori­ginal bench­mark launched in late 2023. In August 2024, OpenAI released SWE-bench Verified, five hun­dred tasks checked by ninety-odd engin­eers, with under­spe­cified and impossible issues removed. Claude 3.5 Sonnet reached about 49%, the best models passed 77% by late 2025, and this summer sev­eral cleared 95% within half a point of one another. The bench­mark can’t sep­ar­ate them any more.3

The 1.7% and 95% come from dif­fer­ent ver­sions, and cur­a­tion made the target easier. SWE-bench Pro was built to give the miss­ing com­par­ison. It draws from private, com­mer­cially licensed code­bases the models couldn’t have trained on. Models scored about 23% when it launched in September 2025, and the best model on Scale’s own lead­er­board reaches about 62% today. That number needs care too: audits since February estim­ate that 30% or more of Pro’s tasks are broken, and Epoch AI now rates the bench­mark flawed, so part of the dis­tance to Verified belongs to the test, not the models.4 I call a reli­able auto­matic check an “oracle”, and the “oracle gap” is the dif­fer­ence between per­form­ance on tasks that have one and on harder-to-check work.

METR meas­ures models’ time hori­zon: the length of task, in human work­ing time, that a model can finish alone about half the time. The hori­zon was four minutes in early 2023 and around twelve hours for the best models by early 2026; by spring METR repor­ted at least six­teen, the longest its task suite can meas­ure. It doubled about every seven months across the full record and closer to every three months since 2024.5 A model may finish a task from memory if it saw it during train­ing, but mem­or­isa­tion doesn’t usu­ally improve on a smooth sched­ule across hun­dreds of tasks the model hasn’t seen. The meas­ured improve­ment makes com­par­is­ons based only on sev­eral-year-old models unre­li­able.

MirrorCode tested recon­struc­tion from observ­able pro­gram beha­viour. A model could run an exist­ing com­mand-line pro­gram but couldn’t read its source, then had to rebuild it against an exhaust­ive test suite. Claude Opus 4.7 reim­ple­men­ted gotree, a bioin­form­at­ics toolkit with six­teen thou­sand lines and more than forty com­mands, passing 2,000 of 2,001 tests in four­teen hours for $251. The authors estim­ated two to sev­en­teen weeks for a human.6 Newer models also chose better data struc­tures, includ­ing treat­ing edges as objects in their own right, as the ori­ginal authors did, and stopped invent­ing time pres­sure for them­selves and sub­mit­ting half-fin­ished work.

But MirrorCode’s own screen found signs of prior expos­ure in sev­en­teen of the twenty-five target pro­grams.7 gotree is open source, so the model may have seen it. The authors found that the screen didn’t pre­dict suc­cess: models solved pro­grams that showed no sign of mem­or­isa­tion, such as nonogrid, and failed some that did, such as sed and ruff. What the result shows is that, given a check­able spe­cific­a­tion, a model can pro­duce a work­ing six­teen-thou­sand-line pro­gram overnight, by reas­on­ing, recon­struc­tion, or both, and make good design choices. It doesn’t show that a model designed a com­plex system from beha­viour alone.

Correctness and practical skill

Figure 2Botvinnik–Tal, game 6, Moscow 1960

Tal gives a knight on f4 for a pawn.

Mikhail Tal won the world cham­pi­on­ship in 1960 at twenty-three, then the young­est cham­pion. They called him the Magician from Riga. He gave up mater­ial all the time for attacks his oppon­ents found hard to meet.8

Then the engines went through his famous games one by one and flagged the sac­ri­fices as unsound.9 Objectively, against best defence, many of them lose. They worked because the man across the board was also human and couldn’t find the refut­a­tion with the clock tick­ing. Stockfish, the strongest chess engine, is today rated above 3700 on engine rating lists. Magnus Carlsen’s peak, the highest human rating ever recor­ded, is 2882.10 The two scales aren’t strictly com­par­able, but the gap they point at is real. Stockfish can refute Tal in mil­li­seconds.

None of this erased the prac­tical skill in Tal’s play. A sac­ri­fice can be unsound against per­fect defence and still exploit how hard that defence is to find with the clock run­ning.

Code can work the same way. An auto­mated reviewer may dis­prove a cor­rect­ness claim without show­ing that the ori­ginal design was unreas­on­able given its prac­tical con­straints. Or it may expose an error that earlier review­ers simply missed. Calling the code “eleg­ant” doesn’t tell you which.

Security models have found vul­ner­ab­il­it­ies that sur­vived years in heav­ily audited soft­ware. Mythos helped Mozilla patch more than 270 Firefox issues, though Mozilla said elite human research­ers could have found them too. Palo Alto Networks repor­ted sev­enty-five real bugs in under three weeks across products where it nor­mally finds five to ten a month, roughly a year of pen­et­ra­tion test­ing. In August its Unit 42 team repor­ted 14,090 con­firmed vul­ner­ab­il­it­ies across 3,915 open-source pro­jects in two months, 99.4% of them pre­vi­ously unre­por­ted.11 On this narrow, well-spe­cified part of code qual­ity, models find errors that earlier reviews missed.

October showed how much of that error was there to find. PHP2Shell, a pair of remote-code-exe­cu­tion bugs present in every PHP release since 5.4 in 2012, was found inde­pend­ently by a researcher at Calif using GPT-5.6 Sol and by Wiz using Gemini 4 Argon and GPT-5.6 Sol. PHP runs on roughly seven in ten web­sites, and gov­ern­ment sites across Europe went off­line while the patch was pending. A PHP core developer had noticed the out-of-memory error behind one of the bugs in 2024, but the team couldn’t agree on a fix and nobody had shown an exploit, so it stayed. The same month, Microsoft patched about 1,410 vul­ner­ab­il­it­ies, against a pre­vi­ous record of about 970 in September.12 None of this code was writ­ten by models. People wrote and reviewed it, and it shipped for a decade. As with Tal’s games, a stronger engine is going back through the record, and the record holds up worse than its repu­ta­tion.

Limits of automated code evaluation

Chess has ground truth because it is a closed game with clear rules and one win con­di­tion. Software qual­ity has noth­ing like it. A test can check cor­rect­ness against a spe­cific­a­tion, but not whether an abstrac­tion will still make sense in two years or whether the system models the prob­lem instead of a symp­tom. Every suc­cess above had an oracle built for it. MirrorCode used the ori­ginal pro­gram as an exhaust­ive spe­cific­a­tion, a setup its authors admit “is not how soft­ware is typ­ic­ally developed.”

In May, through a part­ner pro­gram, Mythos was run against curl, one of the most scru­tin­ised code­bases on Earth, already worked over by sev­eral AI scan­ners. The report flagged five con­firmed vul­ner­ab­il­it­ies. Curl’s main­tainer, Daniel Stenberg, and his secur­ity team kept exactly one, a low-sever­ity bug. Three of the remain­ing four were false pos­it­ives on beha­viour doc­u­mented in curl’s own API, and the fourth was a real bug but not a secur­ity issue. His ver­dict was that the setup found noth­ing to a “higher or more advanced degree” than the tools already had.13

Five months later that ver­dict looks dated. curl 8.23.0, released on 14 October, fixed twenty-four vul­ner­ab­il­it­ies at once, a tenth of the 239 in the pro­ject’s his­tory. One was a use-after-free, a memory bug that can be turned into remote code exe­cu­tion. Stenberg called it one of the worst curl vul­ner­ab­il­it­ies in a long time, and Anthropic’s scan­ner found it. Aisle’s AI-assisted audit has pro­duced thirty-five curl CVEs, more than any group or person before. Every report curl received in recent months involved AI, and Stenberg writes that the hal­lu­cin­ated ones have been prac­tic­ally gone since spring. The prob­lem now is “high volume, high qual­ity.” Six days after the release, curl stopped hand­ling low- and medium-sever­ity reports in private: the flood, Stenberg wrote, had brought its main­tain­ers “to the brink of what we can muster.”14 The bugs were in code that the most care­ful main­tain­ers in open source had reviewed for years.

Aisle, the secur­ity firm behind that curl audit, took the show­case vul­ner­ab­il­it­ies from Mythos’s launch mater­ial and fed them to small, cheap, open-weight models, models anyone can down­load and run. They recovered much of the same ana­lysis. There was no con­sist­ently best model across cyber­se­cur­ity tasks, the firm con­cluded. Capability doesn’t scale smoothly with model size, and the real advant­age is the system the expert­ise is built into, not the raw intel­li­gence of the model.15 That weak­ens the case that a larger model alone explains the improve­ment.

Figure 3What changed code is made of, 2022 and 2026

Refactoring has almost vanished from changed code, while copy-pasting has grown by two-thirds.

Where no oracle exists, the crit­ics have data. GitClear has tracked what kind of change lands in code­bases since before coding assist­ants. In its study of 211 mil­lion changed lines, copy-pasted lines rose from 8.3% of changes in 2021 to 12.3% in 2024, while “moved” lines, a sign of refact­or­ing, or tidy­ing code without chan­ging what it does, fell from 25% to under 10%. Its 2026 update, 623 mil­lion changes, car­ries the line on: copy-pasted code reached 15.7% of changes in the first half of 2026, against 9.4% in 2022, moved lines fell to 3.8%, and lines revised or rever­ted within two weeks rose by 15%.16 The study meas­ures the AI era, not known AI output, so it can’t prove which lines a machine wrote. The pat­tern fits pro­duc­tion out­run­ning review and main­ten­ance, but it doesn’t show that AI caused it.

The meas­ure­ment itself is get­ting harder. METR timed exper­i­enced open-source developers on their own tasks, ran­domly allow­ing or ban­ning AI. In early 2025, AI made them 19% slower while they believed it had made them 20% faster.17 That thirty-nine-per­cent­age-point dif­fer­ence shows why self-repor­ted pro­ductiv­ity needs inde­pend­ent meas­ure­ment.

The late-2025 rerun didn’t cleanly reverse that result, because selec­tion got in the way. Between 30 and 50 per­cent of sur­veyed developers declined to submit some tasks because they didn’t want to work without AI. One com­pared it to cross­ing a city on foot after get­ting used to Uber. The remain­ing data showed an 18% spee­dup, but METR called it “very weak evid­ence” and began redesign­ing the study. A lower par­ti­cipant pay rate had fur­ther dis­tor­ted selec­tion, and the miss­ing tasks were the ones expec­ted to bene­fit most.18 The effect touched only a minor­ity of developers and tasks, but the dir­ec­tion mat­ters. Each study of developers work­ing without AI samples a pop­u­la­tion less like work­ing developers. METR’s November assess­ment of Anthropic shows the same gap from inside a lab. Staff polls put their own speed-up at about twelve times and inter­views at about two. METR estim­ates that pro­gress on well-spe­cified tasks now runs at about twice its 2024–25 rate, and warns that the gain may be con­cen­trated in tasks that are easy to grade auto­mat­ic­ally.

On well-spe­cified prob­lems, the machine now beats nearly every human. In messy secur­ity work it found real bugs that sur­vived years of expert audit. On curl it went from one low-sever­ity bug and sev­eral false pos­it­ives in May to a release with twenty-four fixes in October, while small open models recovered much of the flag­ship’s ana­lysis. In work without a reli­able auto­mated check, it can still write code that looks plaus­ible loc­ally and is wrong glob­ally, then a tired developer ships it. Tal’s sac­ri­fices often failed against per­fect defence and still worked against people.

The cost of verification

Which tasks count as veri­fi­able depends on how good the check­ing is, and check­ing keeps get­ting better.

MirrorCode’s research­ers con­struc­ted an auto­mated eval­u­ator for the task. Test suites, fuzz­ing (feed­ing a pro­gram huge num­bers of random inputs), dif­fer­en­tial test­ing and formal proofs can each check some prop­er­ties of soft­ware, and models are get­ting better at build­ing them too. So the cost of check­ing spe­cified prop­er­ties can fall along with the cost of pro­du­cing code. Mythos’s edge over curl’s older scan­ners was that it could write work­ing exploits, a cheap check on its own output that proved a flaw was real. How much of soft­ware can be checked like a closed game depends on how much anyone will spend on spe­cific­a­tion, and that cost is fall­ing.

In October, Anthropic repor­ted a larger step. Working with the veri­fic­a­tion com­pany Theorem, Claude turned exist­ing fuzz tests from Google’s OSS-Fuzz into formal spe­cific­a­tions, then proved that 239 entry points across 123 open-source lib­rar­ies never crash on any input under 64 MB. The proofs cover the com­piled RISC-V machine code and are checked by the Rocq proof kernel, so the roughly 180 mil­lion lines of proof don’t need a human reader. Writing them turned up bugs that years of fuzz­ing had missed, includ­ing one that appeared only on inputs of around twenty mega­bytes, far larger than fuzzers usu­ally try. Verifying the seL4 kernel took about twenty person-years. These proofs took weeks and hun­dreds of mil­lions of tokens, and Anthropic reports that newer models need fewer.19

This is closer to the engine ana­lysis of Tal’s games than to the curl eval­u­ation. A fuzzer, like a human oppon­ent, can only try what it has time to try. A proof covers every input in scope, and a checked proof can’t pro­duce the false pos­it­ives that cost curl’s main­tain­ers time in May. The spe­cific­a­tions still came from tests developers had already writ­ten, though, and the guar­an­tee holds only for single-threaded static RISC-V bin­ar­ies linked against musl, not the x86 and ARM sys­tems most people run. Anthropic notes that a proof checker can’t say whether the spe­cific­a­tion matches real­ity. Human review moves to the the­orem state­ments and the model of the machine.

Models already do well on many tasks with reli­able auto­mated checks. People still matter most for choos­ing the prob­lem, defin­ing abstrac­tions, and anti­cip­at­ing future require­ments, though better veri­fic­a­tion may change that divi­sion of work. Chess is a reason to doubt the present divi­sion is per­man­ent. It doesn’t say how quickly soft­ware work will change.

When human–machine teams stopped winning

Chess also tested the human–machine part­ner­ship.

Kasparov called it advanced chess, humans and machines play­ing as part­ners. In June 2005, while Hydra was beat­ing Adams, the open PAL/CSS Freestyle tour­na­ment was won by ZackS, two New Hampshire ama­teurs rated 1685 and 1398 using three ordin­ary PCs. They beat teams of grand­mas­ters with engines.20 Kasparov drew a rule from it: a weak human with a machine and a better pro­cess beats a strong human with a machine and a worse pro­cess.21 The result was widely cited as evid­ence that human judge­ment would stay useful as engines improved.

By 2013, observ­ers could no longer find a reli­able edge for human–machine “cen­taurs” over engines alone. Correspondence chess gives the clearest num­bers because engine use is legal. In the World Championship finals of the cor­res­pond­ence-chess fed­er­a­tion (ICCF), draws rose from 75% of games in the final that ended in 2013 to 93% in the one that ended in 2019, and the 33rd final, fin­ished in 2025, ended with ten play­ers shar­ing the title.22 Human–machine teams had a clear advant­age for roughly fif­teen years from 1998. Human judge­ment helped only while the machine had gaps a person could see.

I expect human review to become less neces­sary in soft­ware tasks where reli­able auto­mated checks can be built. Some well-spe­cified work already uses models to check other models. METR’s selec­tion prob­lem also points to grow­ing depend­ence on agents, though it does not by itself show that inde­pend­ent human judge­ment is becom­ing less useful.

Figure 4NeurIPS 2021, the same papers reviewed twice

Two committees disagreed on almost a quarter of the papers.

Review out­side soft­ware points the same way. NeurIPS twice sent a tenth of its sub­mis­sions to two inde­pend­ent com­mit­tees. In 2021 the com­mit­tees dis­agreed on 23% of them, and about half the accep­ted papers would have been rejec­ted on a rerun.23 In October, Gary King and Steven Worthington com­pared 134 reviews from rapidPeer, a Harvard ser­vice whose well-paid review­ers former journal edit­ors called among the best they had seen, with reviews of the same papers by Claude Opus 4.8. A GPT-5.5 judge pre­ferred the AI review in all 132 decided pairs. Three former edit­ors, judging ten blinded pairs, pre­ferred it in 26 of 30 judge­ments. About 5.5% of the AI reviews’ claims about the manus­cripts were wrong, against 15.9% for the human reviews.24 The editor sample is small and the paper is a work­ing paper, but as in chess, the human baseline was weaker than its repu­ta­tion.

Chess sur­vived anyway. It is more pop­u­lar than ever, two dec­ades after the last match a human could win. Almost nobody watches engines play each other, while hun­dreds of mil­lions watch Magnus Carlsen. The eval­u­ation bar under every broad­cast made watch­ing better because the audi­ence can see how much risk a player takes.

But chess was already a spec­tator sport. Its sur­vival doesn’t tell us what people will value in soft­ware if code gen­er­a­tion becomes highly auto­mated, or whether human author­ship and design will keep com­par­able value.

What the evidence supports

Criticism of today’s coding sys­tems needs today’s evid­ence, from the tasks in ques­tion.

On tasks with reli­able checks, models have scored high on bench­marks, rebuilt large pro­grams, and found bugs that earlier reviews missed. The ori­ginal SWE-bench’s 1.7% and Verified’s 95% are not dir­ectly com­par­able, but the broader record shows large improve­ment. So GPT-3.5’s API errors in 2023 are not enough to judge cur­rent sys­tems by.

For work without a reli­able spe­cific­a­tion, the evid­ence is less decis­ive. Code churn sug­gests main­ten­ance prob­lems, task-hori­zon meas­ure­ments sug­gest improv­ing cap­ab­il­ity, and METR’s exper­i­ment became harder to inter­pret as developers declined con­trol-group tasks. The lower res­ults on unseen code­bases, about 62% at best on Scale’s lead­er­board and on a bench­mark with many broken tasks, still cau­tion against gen­er­al­ising from Verified’s 95%.

Past pre­dic­tions that human assist­ance would remain neces­sary in chess did not hold. In soft­ware, models per­form best where their output can be checked, and better tests may extend the range of such tasks. Results on those tasks still have to be kept apart from res­ults on work without a reli­able spe­cific­a­tion.

mapika.dev/essays/the-oracle-regime · Mark Marosi · 4 July 2026 · revised 23 October 2026

How to cite · click to copy

@misc{marosi2026oracle,
  author = {Marosi, Mark},
  title  = {AI coding and automated verification},
  year   = {2026},
  url    = {https://mapika.dev/essays/the-oracle-regime}
}

What changed

6 November 2026Corrected the years in GitClear’s earlier study and added its 2026 update (Figure 3 redrawn); noted the audits find­ing about 30% of SWE-bench Pro’s tasks broken; added METR’s spring time-hori­zon result and its November assess­ment of Anthropic; cited the MirrorCode paper’s own mem­or­isa­tion ana­lysis; cor­rec­ted the cor­res­pond­ence-chess draw fig­ures to the finals’ own tables; added curl’s new report­ing policy and Unit 42’s open-source scan. Removed the task-hori­zon figure and added Figure 4.

23 October 2026Added Anthropic’s 22 October formal-veri­fic­a­tion res­ults to sec­tion 4; updated the curl eval­u­ation with the October release and audit; added PHP2Shell and October’s patch counts to sec­tion 2 and recent peer-review evid­ence to sec­tion 5.

22 October 2026Checked time-sens­it­ive facts; cor­rec­ted a rel­at­ive date in the open­ing; updated SWE-bench Pro from its launch score (about 23%) to cur­rent res­ults (about 62% on Scale’s lead­er­board), in the text and in Figure 1.

5 September 2026Added sec­tion nav­ig­a­tion and a read­ing guide identi­fy­ing the evid­ence behind each plot.