Protocol-Preserving Context Trimming for Agentic Workflows: Benefits, Failure Regimes, and Budget Guardrails
On the map: LLM agents and tool use → Tool learning and function calling
also in 1 more
Abstract (arXiv)
Agentic large language model (LLM) systems rely on long interaction histories to preserve instructions, tool states, intermediate decisions, and unresolved dependencies, but unrestricted context growth increases computational cost and can reduce efficiency. This study evaluates protocol-preserving context trimming as a reliability-constrained approach for multi-step agentic workflows. Five trimming strategies - recency-based, relevance-based, summarization, protocol-aware trimming, and adaptive budget guardrails - were compared across retained-context levels and workflow-complexity classes using task success, protocol adherence, valid tool calls, token savings, latency reduction, cascading failures, and critical context thresholds. Conventional strategies achieved about 60% mean token savings but lower task success (66.6-77.3%) and protocol adherence (85.5-88.6%). Protocol-aware trimming improved task success to 92.2%, while adaptive guardrails achieved 96.0% task success, 96.3% protocol adherence, and 1.0% cascading failure with 56.0% mean token savings. Retained-context budgets of 25% or less increased failure odds 10.92-fold relative to budgets of 50% or more (p < 0.001). Protocol-aware trimming produced 5.24-fold greater odds of successful completion than conventional methods under aggressive budgets, while adaptive guardrails further increased success odds 2.11-fold versus fixed protocol-aware trimming (p < 0.001). Critical context thresholds also increased with workflow complexity. These findings indicate that reliable context reduction depends more on preserving protocol-critical state than on maximizing token removal, and that adaptive guardrails can improve efficiency, scalability, and reliability in long-horizon agentic systems.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 4 of its 19 references that are in the map. First posted on arXiv 15 Sep 2026.
Builds on
4 of 19 references.
References · 4
- 2024TACO-RL: Task Aware Prompt Compression Optimization with Reinforcement Learningcited by 22
- 2025Efficient Prompt Compression with Evaluator Heads for Long-Context Transformer Inferencecited by 10
- 2025Past, Present, and Future of Bug Tracking in the Generative AI Eracited by 4
- 2022Discovering Process Models With Long-Term Dependencies While Providing Guarantees and Filtering Infrequent Behavior Patternscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Control Under Compression: Reliability Frontiers for Tool-Using Agents
- 2026Behavioral Controllability of Agentic Models for Information Extraction: From Fixed Workflows to Reflective Agents
- 2026When "Must" Becomes "Maybe": Constraint Weakening in LLM Agent Workflows
- 2026Complete Cyclic Subtask Graphs for Tool-Using LLM Agents: Flexibility, Cost, and Bottlenecks in Long-Horizon Workflows
- 2026Self-Healing Agentic Orchestrators for Reliable Tool-Augmented Large Language Model Systems
- 2026Characterizing Large Language Model Agentic Workflows: A Study on N8n Ecosystem
- 2025RobustFlow: Towards Robust Agentic Workflow Generation
- 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agents