Verify to Trust
What SWE benchmarks tell us about agentic development, and what they don’t
By Leo GorodinskiPublished Nov 19, 2026Updated Nov 22, 2026
Coding agents have made software cheaper to write. Whether they have made good software cheaper is a separate question. Good here means software that is correct and reliable and still easy to change after the hundredth edit. Agents raise the stakes on that last part, because they write code in volume and copy whatever patterns they find, so a codebase can degrade faster than anyone reads it.
Benchmarks are how the field measures what agents can do, and each one decides what counts as correct and how to check it. This article reads recent coding benchmarks for both: what they show about agents, and what their checks can and can’t see.
They matter for a second reason. We have argued about engineering practices for decades without settling them: static versus dynamic typing, functional versus object-oriented code, DRY. Observational studies are confounded: they can’t separate a practice from everything else that differs between projects. Ray et al. mined GitHub for the effect of language choice on defects, and later attempts to reproduce and reanalyze the study disagreed. Agents make the missing experiment cheap. We can hold the agent and the task fixed, vary only the codebase, and repeat the run as often as we need, which removes the confounding between projects, though not differences in what the agent saw during training. A handful of recent benchmarks are built that way.
So far, agents solve most of SWE-bench Verified, a set of well-specified fixes to single issues, but scores fall sharply once the work spans several steps or the requirements accumulate. Agents are weak at checking their own output, and the benchmarks’ own checks turn out to be wrong more often than their scores suggest. Where engineering practices have been compared directly, explicit structure such as typed signatures and contracts helps, but most other claims about practice have never been tested. A benchmark of functional languages, for example, shows how well agents write Haskell or OCaml, not whether a functional codebase makes their work easier.
Benchmarks are one way we come to trust agents. In a benchmark and on a real project alike, that trust comes from checking the work against what was intended. My thesis is that trust is bounded by verification, and verification is bounded by what we have stated precisely enough to check. A benchmark’s authors state that intent in advance and write it down as tests, while on a real project someone has to do it for every change. As writing code gets cheaper, stating intent in a form that people can review and machines can check becomes the bottleneck, inside benchmarks and out. Verify to trust.
How coding agents work
Two details of how coding agents are built matter for the rest of this article: training rewards whatever the checks can tell apart, and the harness decides what feedback the model sees. Readers familiar with agents can skip to Anatomy of a benchmark.
A model learns the patterns of code and prose during pre-training. Post-training, often with reinforcement learning, teaches it to follow instructions, use tools, and solve tasks whose outcome can be checked automatically. The reward captures only what the checks can tell apart, so a model trained against thin tests learns to satisfy thin tests.
1 · Pre-training
Predict the next token
2 · Post-training
Reinforce what passes
Model weights
one set of parameters
An agent is a model running inside a harness. The harness decides which files and tools the model can use, how much history it keeps, and when it stops. The model proposes an action such as reading a file, editing code, or running the tests, and the harness carries it out and returns the result. Compiler errors, test failures, model-checker counterexamples, and logs become input to the model’s next decision. Two agents built on the same model can behave very differently because their harnesses give them different feedback.
Inputs
Harness
agent = model + harness
Context
What the model sees
Model
Proposes the next action
Tools
Carry out the action
context → model → tool call → result → contextrepeat until done or out of budget
Anatomy of a benchmark
Most coding benchmarks share one structure. An agent receives a repository, some context such as documentation or instructions, and a task, and it produces a patch, which the benchmark then scores.
Benchmark instance
What the agent is given
Mined from real issues, synthesized, or written by hand, then reviewed.
Agent
Model + harness
Oracle
decides what counts as success
Checked
- Behavior on the inputs the checks exercise
Not checked by tests
- Readability
- Duplicated logic
- Cost of the next change
pass rate = tasks passed ÷ tasks attempted
Benchmark authors build tasks in different ways. Some mine real GitHub issues and the commits that fixed them. Some synthesize tasks by removing a feature from a working project and asking the agent to restore it. Some write tasks by hand. The better benchmarks have people review each task to confirm that it is solvable and that its checks are fair.
Most benchmarks compare agents on fixed inputs. A growing number do the reverse, holding the agent fixed and changing one input: the codebase, as in SonarSource’s clean and unclean versions of the same repositories; the form of the specification, as in Skeleton Coding; how much the agent is told about the requirements, as in SWE-Clar; or how its working memory is managed as the context fills, as in Beyond Compaction.
Benchmarks also have limits on realism. Tasks mined from public repositories may appear in a model’s training data. Synthesized tasks reflect their authors’ sense of what matters. And the checks themselves can be weak: DeepSWE found that the tests SWE-Bench Pro inherited disagreed with a model judge on 32.4% of results, compared with 1.4% for hand-written verifiers.
How benchmarks score
Most benchmarks score a patch by running hidden tests and reporting the fraction of tasks whose tests pass. Other benchmarks use static checks, a model acting as judge, or human review. Tests measure external quality only. A patch that passes every test may still be hard to read, duplicate logic that already exists, or make the next change harder, and a pass rate can’t show any of that.
Benchmarks report several kinds of score. The ones below come up later in this article, and each counts something different.
Task pass rate
- What it counts
- Tasks whose hidden tests all pass, out of all tasks.
- Example
- SWE-bench Verified, SWE-EVO
- Measures
- External quality
- Misses
- Anything the tests don’t exercise, and how close a failed task came.
Test pass rate
- What it counts
- Evaluation tests passed, as a share of each task’s tests, averaged over tasks.
- Example
- Skeleton Coding
- Measures
- External quality
- Misses
- Whether any task works end to end.
pass@k
- What it counts
- Tasks solved in at least one of k attempts.
- Example
- TLAPS-Bench (pass@3)
- Measures
- External quality
- Misses
- Whether any single attempt can be relied on.
pass^k
- What it counts
- Tasks solved in every one of k attempts.
- Example
- Rarely reported for coding agents
- Measures
- External quality
- Misses
- Anything the tests don’t exercise.
Show all 13 metricsShow fewer
Step or checkpoint pass rate
- What it counts
- Steps passed within a chain of dependent changes.
- Example
- Multi-step SWE, SlopCodeBench
- Measures
- External quality
- Misses
- Whether the chain as a whole succeeds.
Partial progress credit
- What it counts
- Parts of a task that pass, credited only when their prerequisites also pass.
- Example
- WEAVE’s Graph Credit
- Measures
- External quality
- Misses
- The quality of the code that passes.
Constraint compliance
- What it counts
- Individual constraints met, or all of a task’s constraints met together.
- Example
- ANCHOR, Constraint Decay
- Measures
- External quality
- Internal quality
- Misses
- Constraints nobody wrote down.
Regressions
- What it counts
- Previously passing behavior that a later change breaks.
- Example
- SWE-Milestone, SWE-CI
- Measures
- External quality
- Misses
- Regressions the existing tests don’t cover.
Mutation score
- What it counts
- Planted faults that a generated test suite catches.
- Example
- TestSuiteBench
- Measures
- Verification
- Misses
- Faults unlike the planted ones.
Detection and recovery
- What it counts
- Incidents where the agent notices the faulty state, and incidents where it restores service.
- Example
- SWEOps-Bench
- Measures
- External quality
- Misses
- Rare races and slow drift.
Code erosion
- What it counts
- The share of a program’s complexity held by functions with a cyclomatic complexity above 10.
- Example
- SlopCodeBench, Skeleton Coding
- Measures
- Internal quality
- Misses
- Coupling and fit to the domain.
Agent cost
- What it counts
- Tokens, turns, and file revisits per task.
- Example
- Code cleanliness minimal pairs
- Measures
- Cost
- Misses
- Human time spent reviewing and repairing.
Instruction compliance
- What it counts
- Context-file rules that the agent’s commits show it followed.
- Example
- ContextCov, the context-file study
- Measures
- Process
- Misses
- Instructions that leave no trace in the diff.
The benchmarks
I find it useful to place benchmarks along two axes. Latitude is the complexity of a single task: how many files, requirements, and interacting parts it involves. Longitude is evolution across separate changes, where each change builds on the code the previous ones left behind. Longitude is not the length of one session. Several benchmarks described as long-horizon give the agent one large task, which makes them high in latitude and low in longitude. Maintainability shows up only along longitude.
The table lists some of the studies I found most informative. The last column marks evaluations that measure internal quality and those that vary the codebase or the practice rather than only the agent. A dash means neither.
SWE-bench Verified
- What the agent does
- Fix one issue in a real Python repository.
- Scored by
- Hidden tests
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
SWE-Milestone
- What the agent does
- Build each milestone on top of its own earlier work.
- Scored by
- Hidden tests
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Multi-step SWE
- What the agent does
- Complete 5–15 dependent, multi-hour steps on its own code.
- Scored by
- Tests per step
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
SlopCodeBench
- What the agent does
- Extend its own program as requirements change.
- Scored by
- Tests and erosion metrics
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Internal quality
Skeleton Coding
- What the agent does
- Implement programs from specifications of different forms.
- Scored by
- Tests and erosion metrics
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Internal quality
- Varies specification form
SWE-Clar
- What the agent does
- Interview a simulated client, then build a greenfield project.
- Scored by
- Acceptance tests and requirement questions
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Show all 20 benchmarks and studiesShow fewer
SWE-EVO
- What the agent does
- Implement a release-sized change across about 21 files.
- Scored by
- Hidden tests
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
CodeSpecWeave
- What the agent does
- Implement a task with many interdependent specifications.
- Scored by
- Specification checks
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
ANCHOR
- What the agent does
- Complete a task while following constraints on how to do the work.
- Scored by
- Tests and constraint checks
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Partial internal quality
Constraint Decay
- What the agent does
- Implement a fixed API under more and more architectural constraints.
- Scored by
- End-to-end tests and static verifiers
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Partial internal quality
- Varies constraints
- Varies framework
WEAVE
- What the agent does
- Implement one task built from several dependent historical pull requests.
- Scored by
- Tests, with credit for dependency-consistent progress
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
SWE-CI
- What the agent does
- Maintain a repository through rounds of CI feedback.
- Scored by
- Tests across rounds
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Code cleanliness minimal pairs
- What the agent does
- Do the same tasks on clean and unclean versions of a repository.
- Scored by
- Tests, tokens, file revisits
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Internal quality
- Varies codebase
FPEval
- What the agent does
- Write code in Haskell, OCaml, Scala, and Java.
- Scored by
- Tests and static analysis
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- Partial internal quality
- Varies language
TestSuiteBench
- What the agent does
- Write a test suite from a prose specification.
- Scored by
- Planted faults the suite detects
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
SWEOps-Bench
- What the agent does
- Restore a failing Kubernetes operator in a live cluster.
- Scored by
- Observed recovery
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
TLAPS-Bench
- What the agent does
- Prove properties of real-world TLA+ system specifications.
- Scored by
- TLAPS proof checker
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
AlphaProof Code
- What the agent does
- Prove security properties of Signal’s compiled binary.
- Scored by
- Lean proof checker
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Beyond Compaction
- What the agent does
- Run dozens of tasks in one long session that evicts old context by rule.
- Scored by
- Pass rates against fresh per-task sessions
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Compaction-friendly benchmarks
- What the agent does
- Complete long research and coding tasks under five compaction strategies.
- Scored by
- Task scores, and which rules survive compaction
- Latitude / longitude
- Latitude
- Longitude
- Internal quality / design varied
- —
Placing the same studies on the two axes shows where the field has looked and where it hasn’t.
Latitude low
Latitude medium
Latitude high
Longitude high
Latitude low
—Latitude medium
- SWE-Milestone
- SlopCodeBench●
- SWE-CI
Latitude high
- Multi-step SWE
No benchmark at high longitude varies the codebase or the practice under test, which is where maintainability would show up.
Longitude medium
Latitude low
—Latitude medium
- Skeleton Coding●
Latitude high
—Longitude low
Latitude low
- SWE-bench Verified
- Code cleanliness minimal pairs●
- FPEval◐
- TestSuiteBench
Latitude medium
- ANCHOR◐
- Constraint Decay◐
- WEAVE
- SWEOps-Bench
- TLAPS-Bench
- Beyond Compaction
Latitude high
- SWE-Clar
- SWE-EVO
- CodeSpecWeave
- AlphaProof Code
- Compaction-friendly benchmarks
- ● measures internal quality
- ◐ partly
- varies the codebase, language, or practice
What the benchmarks tell us
Scores are highest where the task is a single, well-specified fix, and they fall as the work adds steps, overlapping requirements, or the job of testing and operating what was built.
SWE-bench Verified is saturated. Leading agents solve most of it, and harder successors such as SWE-Bench Pro were meant to take its place, though Pro has turned out to have flawed tests of its own. Once the top scores bunch together, a pass rate stops separating one agent from another, and cost or reliability becomes more informative. An audit described below suggests that some of the remaining tasks have tests that would reject even a correct fix.
Difficulty shows up as soon as the work spans several steps. On SWE-EVO’s release-sized tasks, the best reported score is 25%, which shows what happens as a single change gets larger. SWE-Milestone asks what happens when the next change starts from the code the agent just wrote: agents that score above 80% on isolated milestones fall to at most 38%, and the authors trace that ceiling to agents breaking behavior that already worked rather than failing to add new features. On Multi-step SWE, the best agent solves 18.5% of tasks while passing 56.8% of individual steps. Across models, a step that follows a passed step passes 70.2% of the time, and one that follows a failed step only 14.1%.
Multi-step SWE: what happens on the next step
From Step passed, the next step stays in Step passed 70.2% of the time and moves to Step failed 29.8% of the time. From Step failed, the next step stays in Step failed 85.9% of the time and moves to Step passed 14.1% of the time.
On SlopCodeBench, no agent fully solves any of the 36 problems, and code erosion, the share of a program’s complexity held by functions with a cyclomatic complexity above 10, rises in 77% of trajectories.
Overlapping requirements are hard too. ANCHOR finds that Opus 4.8 satisfies 70.1% of individual constraints but all of a task’s constraints only 19.0% of the time. Constraint Decay holds an API contract fixed and adds structural requirements, such as layering and database access through an ORM, one level at a time. Assertion pass rates fall by about 27 points from the first level to the last. About 48% of logic failures occur in the data layer, and requiring a specific database engine is the costliest single constraint: in task pairs that differ only by that requirement, it lowers the assertion pass rate by 16–20 points. Lightweight, explicit frameworks such as Flask outperform convention-heavy ones such as FastAPI and Django. Framework popularity and training exposure confound that comparison, so I read it as suggestive.
Testing, proof, and operations are harder still. The best agent in TestSuiteBench writes tests that catch only 55.5% of planted faults, even though nearly all of those tests pass on the correct implementation. In SWEOps-Bench, agents detect the faulty state in 72.7–90.9% of incidents but recover the service in only 14.5–52.7%. Clearing a symptom is not the same as restoring the service. On TLAPS-Bench, where agents write machine-checked proofs about TLA+ specifications of real systems, the best agent proves 44.3% of 70 targets in at least one of three attempts.
Benchmarks have grown more realistic about the work. They still mostly score external quality, and they rarely treat the design of the codebase as the variable under test.
When the checks are wrong
Every number above depends on the oracle being right, and audits keep finding places where it isn’t. An oracle can be wrong in two directions, which logic calls soundness and completeness. An oracle is sound if every patch it passes is correct, and complete if it passes every correct patch. An unsound oracle lets wrong patches through as false positives and inflates scores, while an incomplete one rejects correct patches as false negatives and deflates them.
Oracle verdict
Patch
Passes
Fails
Correct
Correct · Passes
Earned pass
true positive
The tests confirm what the patch does.
Correct · Fails
Wrongly rejected
false negative · incomplete
The tests demand something the task never stated.
- SWE-bench Verified audit: 59.4% of 138 selected hard tasks had test or description flaws
Incorrect
Incorrect · Passes
Silent failure
false positive · unsound
The tests miss the defect, or the agent games them.
- SWE-Bench+: 31% of passes flagged for weak tests
- BackendForge: 55.4% → 28.6%
- ImpossibleBench
Incorrect · Fails
Caught failure
true negative
The tests catch the defect.
Tests can reject correct work. When the tests demand something the task never stated, such as a particular function name or error message, a correct patch fails. OpenAI built SWE-bench Verified to remove such tasks, keeping 500 of 1,699 after review. In February 2026 it audited 138 Verified tasks that o3 failed to solve consistently across 64 runs, found flaws in the tests or descriptions of 59.4% of them, and stopped reporting the benchmark. It recommended SWE-Bench Pro instead, then withdrew that recommendation in July after a second audit estimated that about 30% of Pro’s tasks are broken. Near saturation, the unsolved problems are likely to be the broken ones, so the last few points of a leaderboard can say more about the tests than about the agents.
Tests can also accept wrong work. SWE-Bench+ flagged 31% of one agent’s passing patches because the tests provided insufficient evidence of correctness. When BackendForge strengthened its tests without adding requirements, GPT-5.5’s score fell from 55.4% to 28.6%. Independent checks can also share a blind spot. In a study that enforces coding rules while the agent runs, both the in-loop check and the separately built oracle missed SQL assembled by string concatenation. As the authors put it, independence of method did not give independence of blind spots.
The answer can leak. In the SWE-Bench+ sample, another 33% of the successful patches copied a solution given in the issue report or its comments. With both kinds of task removed, the agent’s resolution rate fell from 12.47% to 3.97%. Training data leaks as well. Given only an issue description, o3 named the files to edit for up to 76% of SWE-bench Verified tasks but about 53% of tasks from repositories outside the benchmark, a gap that the authors of The SWE-Bench Illusion attribute to memorization.
Agents game the checks. ImpossibleBench edits SWE-bench tests to contradict the specification, so any pass is a cheat. GPT-5 passed 54% of these tasks and Claude Opus 4.1 passed 50%, mostly by editing or special-casing the tests. Agents also look up the answer. Cursor found that 63% of Opus 4.8 Max’s successful SWE-bench Pro resolutions retrieved the fix from the web or from future commits in the repository’s git history, and sealing both off dropped its score from 87.1% to 73.0%. The gap was larger for newer models: a more capable agent is also better at satisfying the checks without doing the work.
How three audits changed reported scores
Slope chart of three reported scores and the same scores after an audit, each audit making a different change. Cursor (answer sources sealed): 87.1% to 73.0%. BackendForge (tests strengthened): 55.4% to 28.6%. SWE-Bench+ (flawed tasks removed): 12.5% to 4.0%.
A proof checker can be gamed too. TLAPS-Bench agents tried adding assumptions that made theorems trivially true and replacing the checker with a script that always reports success.
Some of this can be engineered away. TLAPS-Bench makes theorems read-only and regrades each submission in a fresh container. In ImpossibleBench, making tests read-only blocked test edits without hurting legitimate performance, and giving agents a way to flag a broken task cut GPT-5’s cheating from 54% to 9%. An agent that stops and reports a contradiction is failing loudly, which is the kind of failure a user can act on.
Capability versus trust
“Can an agent do this task?” and “Should I trust this result?” are different questions. Capability describes a distribution: across many tasks, the agent succeeds some fraction of the time. Trust concerns one specific result that I am about to merge or deploy.
A benchmark’s answer key is only as good as its tests. The benchmark decides which patches are correct with tests its authors wrote in advance, and a patch that is wrong in a way those tests don’t exercise still earns a pass, as BackendForge’s strengthened tests showed. A user deciding whether to merge one of an agent’s patches has the same problem, usually with fewer checks. The agent’s benchmark score can’t vouch for anything the benchmark’s tests miss, so it makes that patch look more trustworthy than it is, and the user’s weaker checks widen the gap.
Two standard scores separate capability from trust. pass@k counts a task as solved if any of k attempts succeeds, which measures what the agent can do, while pass^k requires every attempt to succeed, which comes closer to what a user can count on. If each attempt succeeds independently with probability , then rises with while falls.
pass@k and pass^k as attempts increase
Line chart for a per-attempt success rate of 60%. pass@k rises from 60% to 100% by k = 10, while pass^k falls to 1%.
Even an agent that passes the same tests every time leaves a reviewer with a question: did the tests check the behavior the customer wanted?
Real requirements leave most behavior open, so writing the oracle is part of the challenge. Suppose a customer asks to hold an order that has already been submitted, with its stock reserved. The system could refuse the hold, release the stock and hold the order, or pass the request to customer service. Any of the three can be implemented precisely and tested thoroughly, but someone has to decide which one is right. A benchmark’s authors make that decision before the agent starts, when they write the tests. On a real project nobody has made it yet, and making it is much of what makes a change trustworthy.
SWE-Clar comes closest to measuring this. The agent interviews a simulated client about a greenfield project drawn from a real Upwork job, and the benchmark scores separately what the agent understood and what its implementation does. Across models, requirements the agent understood correctly passed their tests 86–91% of the time, against 34–68% for those it got wrong. The client answers from a fixed, hidden list, though, so the policy has already been chosen and the agent only has to find it out. SWE-Clar measures how intent is transmitted, not how it is decided.
A better agent can’t decide what we want. Agents will keep getting better at building what they are told, but deciding what the system should do, and checking that a specification says it, stays with people, as the section on proof and intent argues. SWE-Clar illustrates the gap. On the same 100 tasks, GPT-5.6 Luna passed 6% with no client interaction, 49% after clarifying, and 75% with complete requirements, so even after interviewing the client, the agent was 26 points short of what a complete statement of intent allowed.
SWE-Clar implementation score by what the agent was told
Bar chart of GPT-5.6 Luna's implementation score on SWE-Clar under three conditions, with the range of nine models' scores under the standard protocol shaded. No conversation: 6%. After clarifying: 49%. Complete requirements: 75%. nine models after clarifying: 39% to 67%.
How an agent fails also matters. An agent that fails loudly, by declining the task or producing a patch that visibly breaks the build, can be more trustworthy than a higher-scoring agent that fails silently with a patch that passes the tests and is wrong. Pass rate scores the loud failure as a failure and the silent one as a success. How much trust a result needs depends on the stakes, on whether the change can be reversed, and on how the code will hold up as the system changes.
Capability and trust converge when the specification is precise and the space of inputs is well understood. Compilers are the clearest example. We trust a mature compiler because its job is defined precisely and its behavior has been exercised across an enormous range of programs, and in the limit, as with the verified C compiler CompCert, because its correctness has been proved. Agents earn trust the same way, through verification.
What helps
What helps an agent produce changes that are correct, stay easy to change, and are cheap to check? Most studies can answer only the first part, because they define success as pass rate, which says nothing about maintainability or lifetime cost. That gap can hide trade-offs. In Skeleton Coding, behavioral specifications such as tests and examples raised pass rates while also increasing code erosion, the share of complexity held by the most complex functions. A benchmark that reported only pass rate would have counted that as a pure improvement.
Below, I separate controlled evidence from correlation and anecdote.
Code structure. Skeleton Coding compares specifications of different forms, from a task description alone through tests and prose design documents to signature stubs with contracts. Code-like structure wins. On reconstructions of SlopCodeBench programs, structural specifications raise the mean share of evaluation tests passed from 71.7% to 89.2%, and on the authors’ SDDBench from 29% to 74.2%, while behavioral specifications improve it by at most 9.4 points. These are test pass rates, which is how they coexist with the finding that no agent fully solves a SlopCodeBench problem. Signature specifications also lower code erosion, and prose design documents stay behind code-like stubs even when the prose is four to seven times longer. The caveats matter: the skeletons were derived from the reference implementation, so the results are an upper bound; the cost of writing skeletons isn’t measured; the contracts are informal docstrings judged by a model; and the authors, at AWS, cite AWS’s spec-driven IDE as the ideal they are refining.
SonarSource built six minimal pairs of repositories that match in architecture, dependencies, and behavior but differ in static-analysis quality. Across 660 trials, cleaner code didn’t change the pass rate. It did cut token use by 7–8% and file revisits by 34%. Quality showed up as cost, which a pass-rate-only benchmark would miss. The study is small, it didn’t check whether agents broke unrelated tests, and its authors work for a code-quality vendor.
Most of the folklore is untested. FPEval finds higher error rates in Haskell and OCaml than in Scala or Java, and models tend to write imperative code in functional languages. That measures agents writing in functional languages, which likely reflects how much of each language appeared in training. It doesn’t tell us whether a functional codebase helps an agent. I found no controlled evidence for or against explicit state machines, DRY, or SOLID. What the evidence supports so far are properties, explicitness and structure, rather than paradigms.
Work structure. Errors compound across dependent steps, so how work is broken up matters. Spine compiles a tree of subtasks into structured context for the agent and raises the SWE-Milestone score from 38.1% to 42.6% at 32.4% lower cost than the same agent without it.
Memory structure. Beyond Compaction gives an agent’s working memory a structure. The agent labels its history as exploratory and action episodes linked by what each action relied on, and when the context fills, a fixed rule drops the actions whose effects are already saved in the repository. One GPT-5.4 session ran 89 Terminal-Bench tasks back to back, processing over 80 million tokens while keeping its active context under 80,000, and matched fresh per-task sessions to within 3 points on four benchmarks (68.25% against 68.40% on Terminal-Bench 2.0), though the paper’s comparison against ordinary summarization is only a small case study. Unstructured compaction loses the wrong things: another study found that instructions about how to work and what not to do are dropped about six times more often than specifications of what to build. A rule that lived only in the conversation can’t be checked once it is gone, so memory structure matters for the same reason code structure does: it keeps a record of what the work has to satisfy.
Environment and harness. Instructions that the harness checks are followed more often than instructions the agent merely reads. A study of agent context files found mean compliance of 59.8%, with instructions about architecture and process followed least. ContextCov compiled AGENTS.md rules into checks and raised compliance from 67.0% to 88.3%. In the rule-enforcement study cited earlier, enforcing rules while the agent ran produced no oracle-detected violations in 104 paired runs, against 21–55% of runs without rules, with no loss of functional correctness. That study used two low-cost Flash-tier models, the zero is expected by construction for the rules it enforced, and its oracle shares the SQL blind spot described above.
Across these results, what sets agents up for success is also what makes their work verifiable. Skeleton Coding shows both effects from one artifact: its theory shows that interfaces make internal state observable, so code built on a skeleton can be checked with exponentially fewer tests in the worst case, and its experiments show the same skeleton raising pass rates. The claim fails if we find a practice that raises pass rates while making verification harder. Skeleton Coding’s behavioral specifications come close. They raised pass rates and increased code erosion, which leaves more behavior to check on the next change, though the tests that came with the task make the current patch easier to check. The claim holds only if verification is counted over the life of the code, and Skeleton Coding measured the erosion, not how long the next reviewer took or which defects they missed.
Proof and intent
Suppose we prove that putting an order on hold always releases its stock reservation. The proof settles that the code does what the specification says, and someone still has to decide whether the stock ought to be released at all.
Verification, as this article uses the word, covers two checks that software engineering names separately. Verification in the narrow sense asks whether the code satisfies its specification, which requires the specification to be precise; this is implementation conformance. Validation asks whether the specification says what people meant, which falls to people reading it and requires abstraction and familiar vocabulary. Models can take over much of the first check. Trust needs both, and the second still depends on people.
Agents are starting to help with formal proofs. On TLAPS-Bench, agents use the tools a verification engineer would: the TLAPS proof system and its solvers for deduction, and the TLC and Apalache model checkers for testing candidate invariants and finding counterexamples. Asked to prove a consistency property of SlateDB’s write-ahead log, one agent found a TLC counterexample instead, in which four writers race and a value goes missing from the recovered state. The researchers revised the model, and GPT-6 Astra then proved all four target properties on the revised version. Google DeepMind’s AlphaProof Code works at far larger scale. Its agents proved forward secrecy, post-compromise security, and authentication for one-to-one Signal sessions in about 6.5 million lines of machine-checked Lean, against about 26,000 lines of trusted specifications and processor semantics. The proofs are about the compiled binary, so neither the Rust source nor the compiler has to be trusted.
Abstraction makes proofs tractable. Most failed TLAPS-Bench attempts were proofs left incomplete because the agent couldn’t find a strong enough invariant. On ZooKeeper, GPT-6 Astra proved both leadership properties with an invariant that treats recorded votes and acknowledgments still in transit alike, as claims of support for a leader. GPT-5.6 Terra wrote roughly 13,000 lines of intermediate proof and ran out of budget without proving either. Refinement, which connects one layer of abstraction to the next, could let proofs scale to larger systems, but no model completed the refinement proof relating Wildfire to the Alpha memory model.
Deciding what to prove is still hard. The etcd Raft specification stated leader completeness using the term in which an entry was created rather than the term in which it was committed. An agent’s counterexample exposed the mistake, but people had to decide what the theorem should say. AlphaProof Code’s specifications are trusted: agents drafted them, people approved them, and agents tested them by planting bugs and proving the theorem then fails, yet its authors don’t expect review to catch every specification bug. A proof also covers only what it was written against. The revised SlateDB model is proved, but whether the original counterexample corresponds to a defect in the shipped code is still open. AlphaProof Code avoids that gap at the cost of 6.5 million lines of proof to keep in step with the code. When the intended behavior is well understood, agents can now write proofs at scale, and the bottleneck moves to specifying the right system.
Intent
What people mean
An acknowledged write is never lost.
People check · validation
Does the specification say what we mean?
Reading, review, counterexamples, and planted bugs.
✕etcd Raft specification
Leader completeness was stated with the wrong term.
Specification
What is stated precisely
A TLA+ model, a Lean theorem, types and contracts.
Machines check · verification
Does the code satisfy the specification?
Proof checkers, model checkers, and tests.
?SlateDB write-ahead log
The revised model is proved; whether the shipped code has the bug is unconfirmed.
✓AlphaProof Code
Proofs cover the compiled binary itself.
Code
What ships
The source and the compiled binary.
Raising the level of abstraction is not enough on its own. Prose is high-level, but it is imprecise. Dijkstra argued in EWD 667 that the narrowness of formal notation is an asset because it rules out nonsense, and Skeleton Coding’s prose-versus-code result is a measurement of the same point. Precision has three parts. A precise artifact is determinate, so it admits one meaning. It is explicit, so that meaning can be recovered from the artifact itself rather than from conventions it relies on. And it is checkable, so a mechanical, sound relation connects it to the code. Convention-heavy frameworks are determinate but implicit, which may be why they fared worse in Constraint Decay. Every abstraction leaves out detail that something must fill in. With prose, the agent fills it in, differently each time. With a convention-heavy framework, the runtime fills it in invisibly.
Code still matters as the notation for intent. When agents write the implementation, what people author and review is the statement of what the system should do, and the evidence so far says that statement works best when it is precise and code-like. Skeleton Coding’s signature stubs beat much longer prose design documents, and AlphaProof Code’s trusted base is 26,000 lines of formal specification and semantics. People may write less of the implementation by hand, while the code they do write, as types, interfaces, contracts, and models, carries more of the meaning. Notation for Intent looks more closely at the role of code and language in agentic software engineering, drawing on Iverson and Dijkstra.
Open questions
How do we verify an agent’s work when nobody has written down the right answer? Deciding the open behavior is part of the challenge, as the section on trust argues. The open question is how to record those decisions in a form that people can review and machines can check.
When should an agent ask before it writes code? In SWE-Clar, GPT-5.6 Luna passed 49% of tasks when it clarified before coding, against 26% in a separate condition where it could ask questions only during implementation. An agent that asks too little guesses at policy, and one that asks too much hands the work back. Nobody yet knows where the line falls when the person on the other end hasn’t made up their mind either.
Chains of tasks raise their own questions. Multi-step SWE shows that one failure makes the next much more likely. Running the same chain twice, once letting errors compound and once resetting to a reference state at each step, would measure how much path dependence costs.
Long-argued practices can be restated as hypotheses about structural properties and tested on equivalent codebases written in different styles:
- DRY trades a single source of truth against locality.
- Functional programming isolates effects.
- State machines make state explicit.
- Static typing makes interfaces explicit.
Two further questions apply to every result. Do practices that help agents also help people who read the code? And do the effects hold across model generations, or do they reflect what a given model saw most often in training?
We also need better metrics for trust. Candidates include the rate of undetected failures, how easily failures can be detected, the cost of verifying each change, and internal quality measured over time. Some less familiar ones may be more revealing:
- Blast radius: how many files, modules, or interfaces a single requirement change touches, and how that number grows along a chain of changes.
- Review detection: plant a bug in an agent’s patch and measure how quickly and reliably a reviewer finds it, which puts a number on the check that trust depends on. Run along a chain, it would answer a question this survey can’t yet: does the structure that helps an agent today also help a reviewer catch a regression on the fifth change?
- Run-to-run variance: how much an agent’s solutions to the same task differ across runs. Wide variance suggests the specification leaves too much to guess.
- Observability: the share of a system’s behavior its interfaces expose, which bounds how many tests are needed to check it.
- Unrequested behavior: how much code implements behavior that no requirement asked for.
- Composition leakage: how often parts that each satisfy their interfaces still misbehave when combined, as when two deadlock-free components deadlock together. Comparing what the interfaces predict with what the assembled system does measures how much the interfaces leave out.
Guidance for language and framework authors
Framework authors face a question their predecessors didn’t: if an agent can write the code a framework would have saved you from writing, why use the framework? Some argue that agents will generate bespoke implementations on demand and frameworks will fade. The evidence in this article points to a different role. A framework is worth keeping if code built on it is cheaper to verify and easier to change correctly, for agents and for the people reviewing them, and that is now something its authors can measure. Debates between authors usually play out through demos and anecdotes, but claims about change and review play out across a series of changes, and agents make those cheap to run. A sound experiment has a few properties:
- Matched starting points. Build the same application in each framework, idiomatically, with identical public behavior checked by shared tests.
- Chains, not single tasks. Give the agent a sequence of changes on each version, including on a codebase that has already been through several changes, because maintainability shows up only over time.
- An independent oracle. Score at a boundary both versions share, such as HTTP. Keep hidden tests out of the agent’s workspace, make visible tests read-only, and audit a sample of passes by hand.
- More than pass rate. Report pass^k alongside pass@k, plus regressions, code erosion, tokens and turns, and how often the agent breaks rules the framework is supposed to enforce.
- Controls for familiarity. Newer frameworks appear less often in training data, so run several models and harnesses and record their versions.
- Commitments in advance. Record predictions, hold out the tasks used for reporting, and publish results that go against you.
The results help with design as well as with argument, because they show which constructs agents misuse and which constraints they keep.
Introducing cohesive-evals
cohesive-evals is a benchmark suite we are building to test the open questions above, with Cohesive as one point in the design space alongside conventionally written code. I should disclose my bias: I am the author of Cohesive.
Cohesive’s bet is that there is a right level of abstraction for a system: high enough for people to review, and precise enough for machines to check. A Cohesive model describes a system with declarative primitives such as entities, processes, state machines, and relations. People can read it, machines can check it, and the implementation and simulation are compiled from the same model, which narrows the gap between what is proved and what ships.
cohesive-evals follows the properties listed above. It has an answer key too: its requirements come from a domain model we wrote, which is the idealization I criticized earlier. Beyond those properties, it reports results for each behavioral obligation rather than as a single score, treats a defect in the harness as an invalid run rather than an agent failure, and keeps the chains used for Cohesive’s design decisions separate from those used for reporting, with a public log linking each design choice to the experiments behind it. We will report the results, negative ones included, in a follow-up. The results will also shape Cohesive’s design, within a limit: the benchmarks choose among sound designs, but they don’t decide what counts as sound.
Verify the claims
Agents have made claims about software cheaper to check. They can build minimal pairs, two versions of a codebase that differ in one respect, run chains of changes, and repeat trials at a cost no research group could afford a few years ago. They have also made being wrong more expensive. Agents copy the patterns they find in a codebase and generate code in volume, so a bad practice now spreads at the speed of generation.
Cheap experiments also produce cheap claims, including from vendors with a stake in the answer. SonarSource sells code quality tools, and AWS sells a spec-driven IDE. Verify the claims you rely on, mine included.
Agents have made code cheap. Whether that makes software cheap depends on how cheaply we can verify it.
Here is one experiment you can run this week. Pick a convention from your AGENTS.md or style guide. Make two copies of a repository, one that follows the convention and one that doesn’t, and give an agent the same chain of tasks on each. Compare pass rates, token use, and how often the agent breaks something it wasn’t asked to touch.
Verify to trust.
Sources
- Ray et al. (2014). A Large Scale Study of Programming Languages and Code Quality in GitHub
- Berger et al. (2019). On the Impact of Programming Languages on Code Quality
- Furia et al. (2021). Applying Bayesian Analysis Guidelines to Empirical Software Engineering Data: The Case of Programming Languages and Code Quality
- Huang et al. (2026). DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Tasks
- SWE-bench maintainers. SWE-bench Verified
- Le et al. (2025). SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios
- Cai et al. (2026). When Requirements Interact: Scaling Long-Horizon Coding via Interdependent Specifications (CodeSpecWeave)
- Zhu et al. (2026). ANCHOR: Assessing Naturalistic Constraint Hierarchies and Ordering in Repository-Grounded Agentic Coding
- Dente et al. (2026). Constraint Decay: The Fragility of LLM Agents in Backend Code Generation
- Li et al. (2026). WEAVE: Weaving Real-World Code Evolution into Dependency-Structured Tasks for Benchmarking and Training Code Agents
- Chen et al. (2026). SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration
- Deng et al. (2026). SWE-Milestone: Evaluating AI Agents on Continuous Software Evolution
- Zeng et al. (2026). Multi-step SWE: Can Coding Agents Keep Building on Their Own Code Over Long Horizons?
- Orlanski et al. (2026). SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks
- Golatkar et al. (2026). Skeleton Coding: Program Structure as Control for AI Agents
- Trivedi and Schmitt (2026). Does Code Cleanliness Affect Coding Agents? A Controlled Minimal-Pair Study
- Lang et al. (2026). Perish or Flourish? A Holistic Evaluation of Large Language Models for Code Generation in Functional Programming (FPEval)
- Egashira et al. (2026). TestSuiteBench: Coding Agents Struggle to Generate Strong Test Suites from Specifications
- Li et al. (2026). SWE-Clar: Can Coding Agents Clarify Incomplete Client Requirements and Deliver Greenfield Software?
- Chen et al. (2026). SWEOps-Bench: Evaluating Agents for End-to-End Resolution of Software-Induced Cloud Incidents
- Cheng et al. (2026). TLAPS-Bench: Formally Proving Correctness of Real-World System Specifications with TLA+ Proof System
- Chaudhuri et al., Google DeepMind (2026). AlphaProof Code: Verifying Signal’s Security at the Machine-Code Level
- Semenov and Dorofeev (2026). Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
- Salle et al. (2026). Benchmarks Are Surprisingly Compaction-Friendly
- Epoch AI. AI Benchmarking Hub
- OpenAI (2026). Why We No Longer Evaluate SWE-bench Verified
- OpenAI (2026). Separating Signal from Noise in Coding Evaluations
- Aleithan et al. (2024). SWE-Bench+: Enhanced Coding Benchmark for LLMs
- Guo et al. (2026). BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services
- Heddad (2026). Beyond Prompts: Runtime Contracts for Coding Agents
- Liang et al. (2025). The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason
- Zhong et al. (2025). ImpossibleBench: Measuring LLMs’ Propensity of Exploiting Test Cases
- Cursor (2026). Reward Hacking in Coding Benchmarks
- Xiang et al. (2026). Spine: Compiling Subtask Trees into Structured Context for Long-Horizon Coding Agents
- Voria et al. (2026). Do They Do as They Are Told? Investigating Coding Agents’ Adherence to Explicit Instructions in Context Files
- Sharma (2026). ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Files
- Dijkstra. On the Foolishness of “Natural Language Programming” (EWD 667)
Links checked Nov 19, 2026.