Poison Valleys: Diagnosing Path-Dependent Failure in LLM Code Repair
Not on the map. Why?
Abstract (arXiv)
When code-repair agents fail, final tests reveal that a patch is wrong but not which earlier commitment caused it or which software obligation failed. Poison Valleys traces this path in 1,844 model requests on two synthetic Python cases: PersistQueue adds atomic batch claiming to a disk-backed queue, while Dijkstra adds source-sensitive filtering to shortest-path search. We define plausible but incorrect software mechanisms, place each in a model's hypothesis, implementation plan, or both, and evaluate the generated code with an Oracle and targeted diagnostic coordinates. Moving the misconception from hypothesis to plan increased failure by 32.2% in PersistQueue and 28.9% in Dijkstra after matching the experimental mix. Different misconceptions produced distinct, model-dependent patterns of violated obligations, although several could converge on the same behavior. This creates a measured connection from upstream misconception to code mechanism and failure form. Code, data, and demo: https://poisonvalleys.org.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 19 of its 21 references that are in the map. Submitted 15 Oct 2026.
Builds on
19 of 21 references.
References · 19
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,872
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 461
- 2024AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agentscited by 400
- 2024AutoCodeRover: Autonomous Program Improvementcited by 303
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectoriescited by 77
- 2025DoVer: Intervention-Driven Auto Debugging for LLM Multi-Agent Systemscited by 35
- 2026CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failurescited by 33
- 2024A Case Study of LLM for Automated Vulnerability Repair: Assessing Impact of Reasoning and Patch Validation Feedbackcited by 25
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 22
- 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectoriescited by 15
- 2026REFLECT: Intervention-Supported Error Attribution for Silent Failures in LLM Agent Tracescited by 13
7 more
- 2026Tracing Agentic Failure from the Flow of Successcited by 10
- 2026Independent Patch Verification for Coding Agents with a Bidirectional Reconstruct-and-Verify Frameworkcited by 5
- 2026Project Ariadne: A Structural Causal Framework for Auditing Faithfulness in LLM Agentscited by 2
- 2026Characterizing the Failure Modes of LLMs in Resolving Real-World GitHub Issuescited by 2
- 2026STAR: A Stage-attributed Triage and Repair framework for RCA Agents in Microservicescited by 2
- 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapsecited by 2
- 2026CausalRepair: Bridging the Causality Gap in Large Language Model-Based Automated Program Repair via Dual-Slicingcited by 1
Built on by
Not cited yet.