When a coding agent's pull request says "all tests pass", do the tests pass? We checked agent pull
requests from 2025 and 2026 against CI at the same commit. This repository has the study, its data
and labels, and the tool that did the checking.
Findings
Agent pull requests in repositories with 100+ stars that claimed passing tests and had a CI result:
| 2025 (AIDev) | June–September 2026 |
|---|
| Pull requests | 481 | 644 |
| Said the tests pass; CI's tests failed at that commit | 8.7% | 0.3% (2) |
| Said a part of the suite passes; the suite failed | 7% | 4.7% |
| CI's tests failed when the description said nothing about tests | 22% | 3–12%, by agent |
- In 2025 the claim carried little information. CI's tests failed on 18% of pull requests
that claimed passing tests and on 22% of those that said nothing.
- By 2026, whole-suite claims contradicted by CI had become rare. What remains is scope: a
claim about one package or one command, while the suite failed somewhere else.
- Agents changed how they report tests.
- Copilot went from 23% of descriptions saying tests pass to 1 of 306.
- Cursor, Devin and Codex now say it in about 30% of their pull requests, usually naming the
command they ran:
cargo test -p <crate>, pytest -k <name>.
Every case where a claim met a failing test step was labelled by two model judges, with
disagreements settled against the evidence. Method, per-agent tables and limitations:
docs/study.md.
The tool
testreceipt reads a pull request description, finds its claims about tests and their scope, and
reconciles them with the tests' results at the same commit. It also has fixed rules that flag a
change weakening its own tests.
Status: research tool. On held-out 2026 pull requests:
- CONTRADICTED was right 2 times in 12;
- SCOPED was right 23 times in 28.
The misses came from two sources:
- claims scoped by a command (
-p, -pl, -k), which the rules read as whole-suite claims;
- CI steps named like test runs that had failed on something else.
So by default it reports and never fails a build.
uvx --from git+https://github.com/amos689/[email protected] testreceipt claims --pr owner/repo#123
Check what a pull request says against its tests:
testreceipt claims --pr owner/repo#123 # reads its CI through the GitHub API
testreceipt claims --description pr.md --junit report.xml # against a test run's JUnit XML
| Verdict | Meaning |
|---|
| CONTRADICTED | It says the tests pass; the tests failed at the same commit |
| SCOPED | It says some tests pass (a package, the new tests, one platform); the suite failed |
| COUNT | It says N tests pass; the tests failed, and N may not be the whole suite (a JUnit total settles it) |
| UNSTATED | It lists test commands without saying how they went; the tests failed |
| CONSISTENT, UNVERIFIED, REPORTS FAILURES, NO CLAIM | As named |
--fail-on contradicted or --fail-on scoped makes these verdicts fail the command.
Check whether the change weakens tests:
testreceipt check --base main # fixed rules on the diff
testreceipt check --base main --run "python -m pytest -q"