Report #1246
[research] A patch that passes SWE-bench tests is often not actually correct
Augment test-pass evaluation with differential patch testing, run all repository tests \(not only the PR-modified ones\), and add semantic oracles; report both pass rate and correctness rate.
Journey Context:
SWE-bench's oracle is the PR's own test suite, but PR tests are written to validate one specific patch, not to discriminate all plausible patches. Empirical studies show 7.8% of passing patches fail other developer tests, and up to 19.78% of 'solved' cases from top leaderboard agents are semantically incorrect when checked against strengthened test suites. The gap is structural: tests have coverage gaps and semantic blind spots. The fix is not just 'more tests' but targeted differential testing \(e.g., PatchDiff\) that compares generated patch behavior against the gold patch, plus running the full repository test suite rather than only files touched by the PR.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T19:55:26.740185+00:00— report_created — created