When Refusals Fail: Unstable Safety Mechanisms in Long-Context LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Solving complex or long-horizon problems often requires large language models (LLMs) to use external tools and operate over a significantly longer context window. New LLMs enable longer context windows and support tool calling capabilities. Prior works have focused mainly on evaluation of LLMs on long-context prompts, leaving agentic setup relatively unexplored, both from capability and safety perspectives. Our work addresses this gap. We find that LLM agents could be sensitive to length, type, and placement of the context, exhibiting unexpected and inconsistent shifts in task performance and in refusals to execute harmful requests. Models with 1M-2M token context windows show severe degradation already at 100K tokens, with performance drops exceeding 50% for both benign and harmful tasks. Refusal rates shift unpredictably: GPT-4.1-nano increases from ~5% to ~40% while Grok 4 Fast decreases from ~80% to ~10% at 200K tokens. Our work shows potential safety issues with agents operating on longer context and opens additional questions on the current metrics and paradigm for evaluating LLM agent safety on long multi-step tasks. In particular, our results on LLM agents reveal a notable divergence in both capability and safety performance compared to prior evaluations of LLMs on similar criteria.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 14 of its 17 references that are in the map. First posted on arXiv 2 Dec 2025.
Builds on
14 of 17 references.
Closest ancestors · 2
Same direction, newest first
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agents12 Nov
Other references · 12
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 224
- 2025From LLM Reasoning to Autonomous AI Agents: A Comprehensive Reviewcited by 146
- 2024Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QAcited by 121
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 113
- 2024Large Language Model Safety: A Holistic Surveycited by 56
- 2025Position: Agent Should Invoke External Tools ONLY When Epistemically Necessarycited by 22
Built on by
Citing papers per year: 2025: 1; 2026: 12.
13 papers.
Sort:
By area:
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agentscited by 5
- 2026Options, Not Clicks: Lattice Refinement for Consent-Driven MCP Authorizationcited by 4
- 2026Taxonomy and Consistency Analysis of Safety Benchmarks for AI Agentscited by 1
- 2026TRACE: Trajectory Risk-Aware Compression for Long-Horizon Agent Safetycited by 1
- 2026Measuring Harness-Induced Belief Divergence in Multi-Step LLM Agentscited by 1
- 2026Guardrails as Scapegoats: Auditing Unfaithful Safety Refusals in Tool-Augmented LLM Agentscited by 1
- 2025State-Dependent Refusal and Learned Incapacity in RLHF-Aligned Language Modelscited by 0
- 2026Is Length Really A Liability? An Evaluation of Multi-turn LLM Conversations using BoolQcited by 0
- 2026Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agentscited by 0
- 2026AI Guardrail Survival under Single-Cycle Agentic Self-Summarizationcited by 0
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectoriescited by 0
- 2026Constitutional adapters: Inference-time interventions for misalignment and misuse29 Sep 2026
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectories6 Sep 2026
- 2026AI Guardrail Survival under Single-Cycle Agentic Self-Summarization11 Aug 2026
- 2026Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agents31 Jul 2026
- 2026Guardrails as Scapegoats: Auditing Unfaithful Safety Refusals in Tool-Augmented LLM Agents21 Jul 2026
- 2026Measuring Harness-Induced Belief Divergence in Multi-Step LLM Agents5 Jul 2026
- 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents21 Jun 2026
- 2026TRACE: Trajectory Risk-Aware Compression for Long-Horizon Agent Safety30 May 2026
- 2026Options, Not Clicks: Lattice Refinement for Consent-Driven MCP Authorization12 May 2026
- 2026Taxonomy and Consistency Analysis of Safety Benchmarks for AI Agents11 Apr 2026
- 2026Coding Agents are Effective Long-Context Processors20 Mar 2026
- 2026Is Length Really A Liability? An Evaluation of Multi-turn LLM Conversations using BoolQ23 Jan 2026
1 more
- 2026Coding Agents are Effective Long-Context Processorscited by 11
- 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agentscited by 5
- 2026Options, Not Clicks: Lattice Refinement for Consent-Driven MCP Authorizationcited by 4
- 2026Taxonomy and Consistency Analysis of Safety Benchmarks for AI Agentscited by 1
- 2026TRACE: Trajectory Risk-Aware Compression for Long-Horizon Agent Safetycited by 1
- 2026Measuring Harness-Induced Belief Divergence in Multi-Step LLM Agentscited by 1
- 2026Guardrails as Scapegoats: Auditing Unfaithful Safety Refusals in Tool-Augmented LLM Agentscited by 1
- 2026Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agentscited by 0
- 2026AI Guardrail Survival under Single-Cycle Agentic Self-Summarizationcited by 0
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectoriescited by 0
- 2026AURA-Eval: Evaluation Framework for Acting Under Risk Awareness in LLM Agent Trajectories6 Sep 2026
- 2026AI Guardrail Survival under Single-Cycle Agentic Self-Summarization11 Aug 2026
- 2026Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agents31 Jul 2026
- 2026Guardrails as Scapegoats: Auditing Unfaithful Safety Refusals in Tool-Augmented LLM Agents21 Jul 2026
- 2026Measuring Harness-Induced Belief Divergence in Multi-Step LLM Agents5 Jul 2026
- 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents21 Jun 2026
- 2026TRACE: Trajectory Risk-Aware Compression for Long-Horizon Agent Safety30 May 2026
- 2026Options, Not Clicks: Lattice Refinement for Consent-Driven MCP Authorization12 May 2026
- 2026Taxonomy and Consistency Analysis of Safety Benchmarks for AI Agents11 Apr 2026
- 2026Coding Agents are Effective Long-Context Processors20 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agents
- 2026Mind the GAP: Text Safety Does Not Transfer to Tool-Call Safety in LLM Agents
- 2025Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety
- 2026The Cold-Start Safety Gap in LLM Agents
- 2026AgentBoundary: Counterfactual Evaluation of Safety in Tool-Using LLM Agents
- 2025How Do LLMs Fail In Agentic Scenarios? A Qualitative Analysis of Success and Failure Scenarios of Various LLMs in Agentic Simulations
- 2025Tool Preferences in Agentic LLMs are Unreliable
- 2025The Instability of Safety: How Random Seeds and Temperature Expose Inconsistent LLM Refusal Behavior