mlsanityData to 24 Nov 2026

Recovery Gone Too Far: Understanding and Repairing Risky Fallback in LLM Agents

arXiv 2611.19886 ↗Submitted 15 Nov 2026cs.CR cs.AI cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents also fits: Tool learning and function calling

Abstract (arXiv)

Large Language Model (LLM) agents interact with their environments through tools, reading repositories, running builds, and pushing code. When a tool fails with an ordinary error, such as a rate limit or a timeout, the agent can fall back to a substitute tool and still complete the task. However, the same fallback that completes a task in one environment can cross an action boundary in another. For example, after a push is rejected, a forced push in one repository replaces only the agent's own commits, while in a different repository it also removes another author's commits. We call such a fallback a risky fallback. To understand this phenomenon, we conduct an empirical study on 304 scenarios that span eight domains and cover 55 real CVEs. All four mainstream models we evaluate exhibit risky fallback, with action-boundary violations in up to 96.8% of risky scenarios. We further evaluate three mainstream mitigations and find that none of them is effective against risky fallback. We then present nrepair. At each call to the substitute tool, nrepair scores the agent's context with a monitor whose threshold is calibrated on normal runs alone; when the monitor triggers, it withholds the call once and returns the decision to the agent. nrepair reduces action-boundary violations on all four models, by up to 76.0% (from 67.5% to 16.2%), at a negligible runtime cost. On most models, the normal success rate drops by less than 7%. We also evaluate nrepair on two production agents, Claude Code and Codex, and find that it is equally effective on both.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 31 of its 47 references that are in the map. Submitted 15 Nov 2026.

Builds on

31 of 47 references.

Closest ancestors · 4

Same direction, newest first

  1. 2026AgentChaos: Chaos Engineering for Agent Systems via Programmatic Fault Injection7 Aug
  2. 2026Real-Time Detection and Repair of LLM Agent Failures3 Aug
  3. 2026ReliabilityBench: Evaluating LLM Agent Reliability Under Production-Like Stress Conditions3 Jan
  4. 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul

Other references · 27

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  3. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
  4. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
  5. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,506
  6. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
  7. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 909
  8. 2026Gemma 4 Technical Reportcited by 464
  9. 2024Deliberative Alignment: Reasoning Enables Safer Language Modelscited by 352
  10. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agentscited by 346
  11. 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agentscited by 276
  12. 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoningcited by 171
15 more
  1. 2024GuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoningcited by 152
  2. 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stagescited by 89
  3. 2024Caution for the Environment: Multimodal LLM Agents are Susceptible to Environmental Distractionscited by 60
  4. 2024RoTBench: A Multi-Level Benchmark for Evaluating the Robustness of Large Language Models in Tool Learningcited by 50
  5. 2024Learning to Ask: When LLM Agents Meet Unclear Instructioncited by 50
  6. 2024Tools Fail: Detecting Silent Errors in Faulty Toolscited by 33
  7. 2026AgentAbstain: Do LLM Agents Know When Not to Act?cited by 29
  8. 2025PropensityBench: Evaluating Latent Safety Risks in Large Language Models via an Agentic Approachcited by 24
  9. 2026Reason Less, Verify More: Deterministic Gates Recover a Silent Policy-Violation Failure Mode in Tool-Using LLM Agentscited by 16
  10. 2026Beyond Function Calling: Benchmarking Tool-Using Agents under Tool-Environment Unreliabilitycited by 13
  11. 2026PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agentscited by 6
  12. 2026BLINDSPOT: A Benchmark for Safety and Refusal Calibration in Long-Horizon Tool-Using Agentscited by 6
  13. 2026Agents Trust Tools Too Much: Measuring Reliance on Unreliable Toolscited by 4
  14. 2026Fabrication After Tool Failure: Tool-Augmented Agents Assert Values Their Tools Did Not Returncited by 2
  15. 2026PredActBench: Benchmarking Tool-Augmented Dialogue under Controlled Tool Noisecited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Same Error, Different Recovery: How Delivery Changes LLM Agent Behavior
  2. 2025Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety
  3. 2025When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents
  4. 2025Where LLM Agents Fail and How They can Learn From Failures
  5. 2026Feedback That Backfires: Why Small Language Model Agents Repeat the Call They Just Watched Fail
  6. 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agents
  7. 2026When Harnesses Lose the Signal: Causal Evaluation of Recovery in LLM Agents
  8. 2025How Do LLMs Fail In Agentic Scenarios? A Qualitative Analysis of Success and Failure Scenarios of Various LLMs in Agentic Simulations