A Jagged Frontier: Evaluating Robustness of Code Agents to Semantics-Preserving Transformations
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
AI code agents are increasingly deployed to resolve real software issues, yet their reliability under superficial code variations remains poorly understood. We evaluate whether coding agents that repair repository-level issues remain reliable when the surrounding codebase is rewritten into a semantically equivalent form. We introduce a random variant sampler that applies common semantics-preserving transformations (SPTs) - spanning control-flow rewrites, dead-code injection, and identifier renaming - to produce perturbed variants. We evaluate two agentic scaffolds (mini-SWE agent and OpenCode) each backed by one of four frontier models (Claude Opus 4.5, Kimi K2.5, MiniMax M2.5, and Qwen 3.6-27B) across instances drawn from SWE-bench Verified and SWE-bench Pro. For each instance, the agent is run multiple times on the unperturbed and perturbed variants, yielding paired resolve-rate estimates that isolate the perturbation effect from intrinsic stochasticity. We find small degradation in most configurations: up to 6.7 percentage points mean resolve-rate drop in the most affected configurations with statistically significant degradations in 6 of 16 configurations of model, scaffold, and dataset. Crucially, no single model ranking by robustness holds across scaffolds - Qwen is among the most robust under mini-SWE agent on SWE-bench Verified yet the most brittle under OpenCode - revealing a jagged robustness frontier. The simpler scaffold (mini-SWE agent) is more robust to perturbation. Our results demonstrate that even top frontier models are susceptible to semantics-preserving perturbations although the effect is not uniform, raising concerns about the deployment reliability of AI code agents in diverse real-world codebases.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 21 of its 39 references that are in the map. First posted on arXiv 18 Aug 2026.
Builds on
21 of 39 references.
References · 21
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2026Kimi K2.5: Visual Agentic Intelligencecited by 501
- 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 486
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Promptscited by 226
- 2024GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solverscited by 158
- 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
- 2023DyVal: Dynamic Evaluation of Large Language Models for Reasoning Taskscited by 101
- 2020Contrastive Code Representation Learningcited by 76
- 2022Natural Attack for Pre-trained Models of Codecited by 75
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
9 more
- 2019Adversarial Examples for Models of Codecited by 63
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 54
- 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 53
- 2023Bypassing the Safety Training of Open-Source LLMs with Priming Attackscited by 50
- 2020Semantic Robustness of Models of Source Codecited by 45
- 2020Adversarial Robustness for Codecited by 38
- 2021Generating Adversarial Computer Programs using Optimized Obfuscationscited by 22
- 2025Quantitative Certification of Agentic Tool Selectioncited by 2
- 2025Lumos: Let there be Language Model System Certificationcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026What Does a Harness Buy? Tokens, Mostlycited by 0
- 2026Natural Code Transformation Confuses Agents in Vulnerability Analysiscited by 0
- 2026Natural Code Transformation Confuses Agents in Vulnerability Analysis9 Oct 2026
- 2026What Does a Harness Buy? Tokens, Mostly3 Oct 2026
Similar, not cited
Close in wording, no citation either way
- 2026Needle in the Repo: A Benchmark for Maintainability in AI-Generated Repository Edits
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks
- 2026From Dead Code and Static Requirements to Working Engines: Software Revival with Coding Agents
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs
- 2026Self-Evolving Coding Agents
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios
- 2026RepoMod-Bench: A Benchmark for Code Repository Modernization via Implementation-Agnostic Testing
- 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Code