
Of the 644 patches that pass their functional tests, about one in three (221) still fails the code-review constraints. Source: Figures as reported in the post, from the SWE-Gate paper (arXiv:2609.04167); 423 is the remainder of 644 − 221. Data: values as published in the source’s text and tables, redrawn by QAME Lab; the underlying data were not re-analysed.
The metric that lies to you
The SWE-Gate benchmark (He, Wang, Liu, Chen, Zhang & Li, 2026; arXiv:2609.04167) runs a clean diagnostic on how we measure software engineering agents. The question is straightforward: does passing functional tests mean an agent can actually produce acceptable code?
The answer, in their data, is a firm no.
What they did
SWE-Gate constructed 303 repository-level repair instances drawn from 75 open-source Python repositories spanning diverse software domains. Each instance carries separate functional tests and review-constraint tests, where review constraints are derived from real pull-request review comments. Under a common coding-agent scaffold and four LLM backends of varying capability, the benchmark produced 644 patches that passed the functional test suite. SWE-Gate then ran the same 644 patches through automated constraint tests derived from real pull-request review comments.
Out of 644, 221 failed at least one review constraint. That is 34.3% of patches classified as “solved” by the standard metric but would be rejected on review.
Why this is a measurement problem
This is not a finding about agents being bad. It is a finding about what the benchmark measures.
The functional test suite captures one dimension of correctness — whether the code produces the right output. Review constraints capture a different dimension — whether the code is structured, documented, and maintainable enough for real engineering use. These are correlated but distinct constructs, and treating one as a proxy for the other introduces a measurement error that compounds as models get better.
The problem follows a familiar pattern: a benchmark metric saturates, and then the field starts reporting results that are technically true. Take SWE-Bench, the benchmark that SWE-Gate itself critiques for measuring only functional correctness — papers using SWE-Bench report headline solve rates (e.g., 60%+ for top models), but those figures ignore the entire review-constraint dimension that SWE-Gate makes visible. The 221-of-644 gap is the canary.
The correct reading
Passing tests is necessary but not sufficient for evaluating engineering agents. A benchmark that only reports pass-on-tests is measuring a lower bound, not the full picture.
SWE-Gate’s contribution is a second evaluation layer that makes the gap visible. The gap itself — 34 percentage points in this sample — is the key statistic. Any claim about an agent’s solve rate is incomplete unless authors also report what fraction of functionally correct patches satisfy independent quality constraints.
Limits
This is a cross-sectional audit of 644 patches from 303 repair instances across 75 open-source Python repositories, evaluated under four LLM backends. It does not tell us how the gap changes across model families, training regimes, or prompt designs. A larger study across multiple benchmarks would establish whether the 34% figure is typical or model-specific. The review constraints are also a finite set — they capture what the authors chose to test, not every dimension of code quality. The sample is restricted to Python repositories, so generalisation to other languages requires further evidence.