Study finds 1 in 5 wrong AI code changes still pass existing test suites

Researchers tested 200 AI-written changes to 23 open-source libraries, each a real historical bug fix checked against hidden tests the AI never saw. Of the 107 changes that were incorrect, 22 still passed the libraries' own test suites, meaning they would clear continuous integration. The team built Apex verify, an open-source tool that has a second AI write tests from the task description rather than the agent's code, requires every check to fail on the old code, and flags deleted or weakened tests. Across the benchmark it caught 85 of the 107 wrong changes, compared with 0 for the projects' own tests, while blocking 17 of 93 correct changes, which the authors say included about 12 that really did not match the task. The authors note that verdicts can vary between runs because checks are regenerated each time, and that they are working to fix this.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in