# Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations

DevFeed: [Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations](<https://devfeed.tech/articles/accepted-but-wrong-silent-failures-of-llm-code-repairs-after-api-migrations-120299.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.08269>)

Author: Xiaobo Chen, Genliang Zhu, Ziyuan Wang, Chu Wang

Published: 2026-11-06T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [assertions](<https://devfeed.tech/tags/assertions.md>), [audit](<https://devfeed.tech/tags/audit.md>), [code](<https://devfeed.tech/tags/code.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [cpython](<https://devfeed.tech/tags/cpython.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [edge](<https://devfeed.tech/tags/edge.md>), [failed](<https://devfeed.tech/tags/failed.md>), [frontier](<https://devfeed.tech/tags/frontier.md>), [frontier-model](<https://devfeed.tech/tags/frontier-model.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [gpt-5-6](<https://devfeed.tech/tags/gpt-5-6.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [llm](<https://devfeed.tech/tags/llm.md>), [local](<https://devfeed.tech/tags/local.md>), [local-model](<https://devfeed.tech/tags/local-model.md>), [migration](<https://devfeed.tech/tags/migration.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [model](<https://devfeed.tech/tags/model.md>)

## AI overview

In a preregistered study of 73 tasks spanning 60 documented changes in CPython, Node.js, and SQLite, typical-input release checks accepted 41.0% of wrong LLM repairs. Adding one edge input based on the release note reduced that share to 6.5%, and to 6.1% on 15 unseen clusters, without lowering correct completion across the tested open-weight model families. In harder repair menus, the edge input and a frontier-model-generated test still let 16.8% and 15.3% of hard wrong programs pass. Self-tests helped less, and two local-model test writers failed their preregistered tests. An audit disputed the strictness of 34 contracts; removing those checks changed no verdicts, though class-label disputes remain unresolved.

## Source excerpt

arXiv:2611.08269v1 Announce Type: cross Abstract: After a runtime or API migration, an LLM-repaired procedure can run cleanly yet return wrong results, and a release check on typical test inputs ships it. We report a preregistered study of 73 tasks covering 60 documented changes in CPython, Node.js and SQLite. Every candidate is executed on the real runtimes against withheld contracts. Over the complete repair space, the all-assertions gate on typical inputs released 0.410 of wrong repairs. One edge input written from the release note cut this to 0.065, and to 0.061 on 15 unseen clusters. Three inputs from a blind GPT-5.6-luna writer that never saw the program reached 0.070. Two further frozen stages enlarged the menu to 1491 fragments and then added 233 hard distractors that match the legacy output on typical inputs. The edge input (0.058) and the frontier-model writer (0.058) passed their preregistered tests. Yet 0.168 and 0.153 of the hard wrong programs still passed. Two local-model writers failed their preregistered tests. Across four model families, the edge input cut wrong releases per attempt in all three open-weight families on all three menus, for example from 0.233 to 0.057, without lowering correct completion. Self-tests helped less. A blind AI audit flagged 34 contracts as stricter than their requirements. Dropping the disputed checks changed 0 verdicts, but class-label disputes remain open. No model-written code was executed. Artifacts are available from the authors on request.