How to Evaluate Programming Ability After Code-Fixing Benchmarks Saturate
When most AI systems can reliably resolve small issues, passing rates alone no longer distinguish robust engineering ability from benchmark familiarity or test-specific optimization. This article presents a three-layer evaluation framework: real defect repair, larger cross-file changes, and autonomous execution in terminal environments. It also explains how to control benchmark contamination, incomplete test oracles, regression risk, and environmental instability so that results better support model selection and engineering decisions.
Why Fixing a Single Issue Is No Longer Enough
Early software engineering evaluations often focused on a straightforward question: given a real repository, an issue description, and failing tests, can a model modify the code correctly and make the tests pass? These tasks closely resemble everyday bug fixing and are easy to score automatically, so they have long been used as a proxy for programming ability.
As models become better at reading issue reports, locating files, and applying small patches, pass rates begin to cluster near the top. Once scores converge, ranking differences may come from test noise in a few samples rather than from stable differences in engineering ability. Continuing to rely on a single repair pass rate can overestimate deliverability and mistake memorization of evaluation tasks for genuine reasoning.
A more useful approach is to divide programming ability into several layers: problem understanding and minimal repair, larger cross-file changes, and autonomous execution and verification in a terminal environment. These layers have different difficulty levels and failure modes, so one score should not be treated as a substitute for the others.
Layer One: What Real Defect Repair Measures
A high-quality repair task typically contains four elements: a reproducible code version, a natural-language issue description, hidden or public tests, and a clear pass criterion. The model must identify the root cause, modify the implementation, and avoid breaking existing behavior.
Task selection and curation determine whether the score is trustworthy. Ambiguous descriptions, unstable environment dependencies, and tests that do not match the requirements can cause correct patches to fail or opportunistic patches to pass by chance. Manual curation helps remove tasks that cannot be judged reliably, making comparisons more reproducible.
Even after curation, this layer has two structural problems.
First, the test oracle may be incomplete. When tests cover only the paths anticipated by their authors, a different correct implementation may fail, while an incorrect implementation may pass unnoticed. The pass rate therefore measures agreement with the specified tests, not necessarily whether the underlying issue was fully resolved.
Second, training-data contamination can distort results. If public repository issues, patches, and discussions have already entered a model’s training data, the model may recall an answer instead of reasoning through the task. Repository and license isolation, hidden tests, temporal splits, and repository deduplication are common ways to reduce contamination. However, no single method can prove that a benchmark has zero contamination.
When most systems can consistently pass the majority of short patch tasks, this metric should be treated as an entry threshold. It shows that a model has basic localization and patching ability, but does not demonstrate that it can independently deliver a larger feature or change.
Layer Two: Use Change Size to Separate Difficulty
Difficulty should be reflected in the changes that must be made, not in an unnecessarily obscure problem description. Practical constraints include:
- A minimum number of changed lines, preventing a task from being solved by changing only one or two lines;
- Changes across files or modules, requiring consistency between interfaces and dependencies;
- New behavior that must work while existing behavior continues to pass regression tests;
- Sufficiently broad context that the model must read more code before identifying the correct modification points.
Line count is not a measure of quality, but a minimum change size can filter out tasks where simply locating the answer is enough to earn a score. The tasks that usually create meaningful separation require decisions about interfaces, error handling, and regression constraints at the same time. Failures then more often result from missed call sites, broken compatibility, or making only the new tests pass.
Evaluation reports should not publish only an overall score. At a minimum, they should include the distribution of change sizes, the proportion of cross-file tasks, and the share of regression-test failures. Otherwise, an average score for “moderate difficulty” may conceal the fact that a model performs well only on small patches.
Layer Three: Execution Ability in a Terminal Environment
Many engineering tasks are not a single patch but a sequence of commands: creating an environment, running tests, reading logs, installing dependencies, changing configuration, and verifying the result again. Terminal-based evaluations measure whether an agent can complete this loop under constraints, rather than merely generate code that appears reasonable.
This layer should record process metrics, not only final success or failure:
- Whether commands are reproducible and whether they damage the environment;
- Whether the agent adapts to failure logs instead of repeating the same command;
- Whether it completes the task within permission, network, and time constraints;
- Whether the final state can be verified by a script.
Terminal tasks are also more sensitive to environmental conditions. Image versions, clocks, random ports, and external services can all introduce variance. Formal comparisons should fix the environment, limit the number of retries, and distinguish model decision errors from environmental instability.
How to Interpret Scores Without Drawing the Wrong Conclusion
The three layers become meaningful when considered together. A high score on basic repairs combined with a sharp drop on larger changes suggests that the model is good at local patching but weak at design-level modifications. Large fluctuations on terminal tasks should first prompt an investigation of the environment and execution logs, rather than an immediate conclusion about model capability.
Internal evaluations should establish the following conventions:
- Record task sources and apply temporal splits to reduce potential overlap with training data.
- Score hidden tests and regression tests separately for every task.
- Group tasks by change size instead of ranking models only by overall pass rate.
- Manually review a sample of failed tasks to measure false judgments and missed judgments.
- Run each task multiple times and report averages and variance rather than a single best result.
A simple result record might look like this:
task_id, layer, files_changed, loc_changed, hidden_pass, regression_pass, env_flaky
Without these fields, results cannot be audited. It is also difficult to determine whether an improvement came from the model, the prompt, or relaxed tests.
Practical Boundaries for In-House Evaluation
Public benchmarks are useful for understanding the state of the field, but they cannot replace evaluation on an organization’s own codebase. An internal benchmark should be built from closed, reproducible historical defects and small feature requests with stable tests. Samples containing secrets, internal domains, or dependencies that cannot be exposed should be removed.
Evaluation goals should match the intended service scenario. If the primary use case is code reading and local modification, the basic repair layer can receive more weight. If the model is expected to complete cross-module requirements independently and run verification on its own, the larger-change and terminal layers must receive greater weight. Pass thresholds should reflect the cost of human review rather than the pursuit of a leaderboard position.
Cloud object storage can retain repository snapshots and logs, while container platforms can provide fixed execution environments. Logging and monitoring can help identify abnormal retries and long-running hangs. These capabilities support evaluation engineering, but they cannot replace sound task design or a reliable test oracle.
Conclusion
Programming ability is not a single score that can continue to differentiate systems indefinitely after a benchmark saturates. Basic repair benchmarks are useful for establishing a minimum capability threshold. Larger change scopes help distinguish design and regression-handling ability, while terminal-based closed-loop tasks test whether an agent can actually execute and validate its changes.
Only by controlling contamination, test misjudgments, and environmental variance can evaluation results meaningfully guide model selection and engineering workflows instead of producing rankings that cannot be reproduced.
