mlsanityData to 24 Nov 2026

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

arXiv 2611.08269 ↗Submitted 5 Nov 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

After an API migration, an LLM-repaired procedure can run cleanly yet return wrong results, and a typical-input release check ships it. We report a preregistered study of 73 tasks on 60 documented changes in CPython, Node.js and SQLite. In the main stages, repairs are choices among documented code fragments, run 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 low-cost commercial writer (GPT-5.6-luna) reached 0.070. Two more frozen stages enlarged the menu to 1491 fragments and added 233 hard distractors that match legacy output on typical inputs. The edge input (0.058) and the GPT-5.6-luna writer (0.058) passed preregistered tests (two local-model writers did not), yet 0.168 and 0.153 of hard wrong programs still passed (task means; post hoc: pooled 0.104 and 0.081; models rarely chose them). In all three open-weight families and menus, the edge input cut wrong releases per attempt without materially lowering correct completion; self-tests helped less. A blind AI audit flagged 34 of 73 contracts (20 as too strict). Three post-hoc blind human reviewers of strictness (the first author and two non-author software practitioners) upheld none of its 11 such flags in 40 sampled contracts; a majority judged one contract (py-random-seed-tuple) stricter than its requirement. Dropping disputed checks changed 0 verdicts; class-label disputes are open. In a preregistered free-form addendum, models wrote whole programs, run only in a sandbox; for clean-running wrong programs, the edge input cut releases from 0.517 to 0.114 for gpt-oss-20b (Holm p 0.001) and from 0.653 to 0.113 for qwen3.6, but only from 0.713 to 0.481 for GPT-5.6-luna (descriptive).

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 24 of its 45 references that are in the map. Submitted 5 Nov 2026.

Builds on

24 of 45 references.

References · 24

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
  2. 2023Teaching Large Language Models to Self-Debugcited by 1,049
  3. 2022CodeT: Code Generation with Generated Testscited by 411
  4. 2025Are "Solved Issues" in SWE-bench Really Solved Correctly? An Empirical Studycited by 69
  5. 2025UTBoost: Rigorous Evaluation of Coding Agents on SWE-Benchcited by 69
  6. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 57
  7. 2023Can Large Language Models Write Good Property-Based Tests?cited by 37
  8. 2024LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completioncited by 36
  9. 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 26
  10. 2024Learning Evolving Tools for Large Language Modelscited by 20
  11. 2017Identifying Patch Correctness in Test-Based Program Repaircited by 19
  12. 2025MigrationBench: Repository-Level Code Migration Benchmark from Java 8cited by 17
12 more
  1. 2024LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generationcited by 14
  2. 2025FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migrationcited by 7
  3. 2026PAFT: Preservation Aware Fine-Tuning for Minimal-Edit Program Repaircited by 4
  4. 2026Retry, Switch, or Abstain? Learning Strategy-Aware Tool-Use Policies via Controlled Error Injectioncited by 4
  5. 2026Beyond Task Completion: A Verification-vs.-Conformance Gap in Tool-Evolving Agentscited by 3
  6. 2026To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editingcited by 3
  7. 2022Has My Release Disobeyed Semantic Versioning? Static Detection Based on Semantic Differencingcited by 2
  8. 2025Client--Library Compatibility Testing with API Interaction Snapshotscited by 1
  9. 2026DepRepair: LLM-Based Source-Code Repair for Dependency Breaking Changescited by 1
  10. 2026DynamicMCPBench: A Trace-Grounded, Effect-Scored Benchmark for LLM Agents over Live MCP Serverscited by 1
  11. 2026BreakGuard: Towards Detecting Dependency Breaking Changes with LLM-Generated Testscited by 1
  12. 2026ContractRL: Shielded Group-Relative Policy Optimization for Auditable Tool-Call Repaircited by 1

Built on by

Not cited yet.