mlsanityData to 24 Nov 2026

Do Agents Still Follow the Rules? Benchmarking Rule Compliance under Agent Context Compaction

arXiv 2611.03223 ↗Submitted 2 Nov 2026cs.CR cs.AI cs.CLcited by 0

On the map: LLM agents and tool use → Software engineering coding agents also fits: Agent threats, guardrails and governance

Abstract (arXiv)

LLM agents compact long histories to fit their context windows, but the compacted context must still carry the operating rules that govern later actions. Prior work shows that violations rise after compaction, but measures compliance outside a complete agent harness and does not identify where each violation comes from. We introduce ARCBench(Agent Rule Compliance Benchmark), a configurable benchmark built on the open-source pi agent harness. Its tool-calling agent loop lets us measure rule compliance from actions taken during execution, bringing the evaluation closer to deployed agent workflows. Using ARCBench, we examine where violations after compaction come from, and how different compaction configurations and adversarial settings change their sources. We find that compaction rarely deletes the rule: most violations after compaction occur while the rule is still in the compacted history, with the agent treating a later request as permission, ignoring the rule, and proceeding anyway. Where violations come from depends on the configuration: how the rule is delivered decides whether the agent would break it even without compaction, while the compaction strategy and budget decide whether the rule survives. The strongest compactor-targeted attack more than doubles violations by corrupting the rule in the summary and changing how the agents behave, whereas the strongest defense restores the rule in most summary but still violates. Finally, retaining a rule does not guarantee compliance: compacted runs that retain the rule violate more than twice as often as runs with the full history.

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 9 of its 37 references that are in the map. Submitted 2 Nov 2026.

Builds on

9 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul

Other references · 8

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
  4. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,841
  5. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  6. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 171
  7. 2024Measuring and Controlling Instruction (In)Stability in Language Model Dialogscited by 62
  8. 2026Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agentscited by 13

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentLTL: A Trace-Verification Framework for Measuring, Enforcing, and Training Procedural Compliance in Tool-Using LLM Agents
  2. 2026MANTRA: Synthesizing SMT-Validated Compliance Benchmarks for Tool-Using LLM Agents
  3. 2026The Compaction Cliff in Long-Running AI Agent Memory
  4. 2026AgentProofBench: Benchmarking Reusable Verifiers for Web Agents
  5. 2026CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent Tasks
  6. 2026Designing for Doubt: The Case for Informed Abstention in Autonomous Agents
  7. 2026When Evaluators of AI Agents Disagree: An Empirical Study of Native Scoring, LLM Judges, and Commit-Boundary Checks on tau2-bench
  8. 2026Benchmarks Are Surprisingly Compaction-Friendly