Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agents

Zhuofu Chen Rui Pan, Yinwei Dai Ravi Netravali · 2026

Read Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agents by Zhuofu Chen Rui Pan, Yinwei Dai Ravi Netravali (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-08580.txt.

Introduction

Chen and three colleagues fix a validation gap in long horizon agents that compress their own context. Modern frameworks rewrite a long trajectory into a shorter summary, called compaction, but the compactor cannot know later needs. Errors then spread silently, since later steps build on the summary with no check for what was lost.

The key insight is asynchronous compaction: run the compactor in parallel with continued work on the original context. Candidate summary and next steps then come from the same pre compaction state, giving a validation signal free of the summary. Their system, Slipstream, uses a judge to check the candidate summary against continued reasoning, confirming it keeps intent and key facts. Across long horizon coding on SWE-bench Verified and web browsing on BrowseComp, Slipstream lifts accuracy and cuts latency. Gains reach up to 8 point 8 points of accuracy and up to 39 point 7 percent lower latency.

Catalog record

CREATORZhuofu Chen Rui Pan, Yinwei Dai Ravi Netravali
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE48 KB
LICENSEhttp://creativecommons.org/licenses/by-sa/4.0/
RIGHTSCC BY SA
SOURCEarXiv

Source: https://arxiv.org/abs/2605.08580

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agents Zhuofu Chen Rui Pan, Yinwei Dai Ravi Netravali Abstract To cope with the large contexts that long-horizon LLM agents produce, modern frameworks increasingly rely on compaction – invoking an LLM to rewrite the accumulated trajectory into a shorter summary that the agent resumes from. Today, compaction runs synchronously on the critical path of agent execution but this can unpredictably degrade accuracy due to a structural validation gap: the compactor must condense context but is fundamentally unaware of precisely what information the agent will need later. Further, because post-compaction agent steps are conditioned on the new summary, targeted validation criteria do not exist and errors silently propagate through coherent but incorrect behavior. Our key insight is that asynchronous compaction efficiently addresses this gap: by running the compactor in parallel with continued agent execution on the original context, the candidate summary and the agent’s next steps are generated independently from the same pre-compaction state, yielding a validation signal independent of the summary itself. We build Slipstream , a trajectory-grounded compaction system that uses a judge to validate the candidate summary against the agent’s continued reasoning, checking that it preserves both the agent’s forward intent and the key facts and constraints it depends on. Across long-horizon coding (SWE-bench Verified) and web-browsing (BrowseComp) workloads, Slipstream improves task accuracy by up to 8.8 percentage points while reducing end-to-end latency by up to 39.7% . We open source Slipstream at https://github.com/chenzhuofu/slipstream . 1 Introduction Long-horizon LLM agents have rapidly become a dominant paradigm for solving complex tasks that require sustained reasoning over many rounds of tool use, observation, and planning ( Yao et al. 2022 ; Yang et al. 2024 ; Schick et al. 2023 ; Nakano et al. 2021 ) . As these agents tackle longer horizons – from multi-step software engineering to extended web research – their context windows accumulate observations, intermediate results, and partial progress that may become relevant many steps later. This growth quickly degrades model behavior: accuracy drops with context length even when all relevant information remains present, a phenomenon known as context rot with reported accuracy drops of 14–85% ( Liu et al. 2023a ; Hong et al. 2025 ; Du et al. 2025 ) . To manage this, modern agent frameworks have converged on compaction : invoking an LLM to rewrite the accumulated trajectory into a shorter summary that the agent then resumes from directly ( Anthropic 2026b ; Microsoft 2026 ; LangChain 2025 ) . Compaction is now triggered routinely throughout long-horizon execution rather than as a last resort at the model’s context limit – Anthropic, for example, recommends compacting at as little as 5–20k tokens for some workloads ( Anthropic 2026a ) . As deployed today, compaction runs synchronously on the critical path of agent execution, pausing the agent until the compactor produces a summary of the context. Beyond the direct latency overheads that this introduces – inflating end-to-end agent execution times by 26–44% across mainstream workloads – the deeper issue is one of accuracy. Compaction must decide what to preserve without knowing what the agent will need next, and synchronous execution provides no way to validate this decision: once the summary replaces the original context, every subsequent step is conditioned on the summary itself, so the agent’s continued behavior cannot serve as an independent check. When the compactor drops or distorts information the agent later needs, task outcomes silently degrade, with no error signal at the moment of compaction. Traditional summarization metrics do not address this since they operate only on the current context and the candidate summary, not on the future agent behavior that determines whether the summary is sufficient. What is missing is a validation signal grounded in the agent’s continued trajectory itself. Our key insight is that asynchronous compaction is the only execution mode that produces this missing validation signal without duplicating the agent’s execution. When the compactor runs in parallel with the agent’s continued execution on the original, uncompacted context, the agent’s next steps and the candidate summary are generated independently from the same pre-compaction input. This independence is crucial: in synchronous execution, any agent behavior used for validation is already conditioned on the summary it is meant to check, removing its value as an independent signal. Asynchrony is therefore not merely a way to remove blocking latency – it is what makes trajectory-grounded validation possible. Based on this insight, we present Slipstream , a trajectory-grounded compaction system for long-horizon agents that runs the compactor in parallel with continued agent execution on the uncompacted context (Figure 1 ). Once the compactor returns, Slipstream applies a judge to validate the candidate summary against the next- k agent steps that completed during compaction. The judge performs two complementary checks, exploiting the structure of agentic execution: a plan-level check that the summary preserves the agent’s forward intent, and a statement-level check that the specific facts, constraints, and intermediate results the agent relies on are preserved. On acceptance (the predominant case), execution resumes from the compacted state augmented with the already-generated next- k steps; otherwise, Slipstream performs a targeted update to the summary using the judge’s diagnosis. Two properties make this design feasible. First, compaction errors that affect downstream behavior most often surface within the asynchronous window; across our workloads, 88-100% of first error manifestations arise within 3 agent steps. Second, long-horizon agent serving is memory-constrained, leaving headroom to run the compactor and judge alongside the main agent at low cost. Figure 1 : Synchronous compaction vs. Slipstream . (a) Synchronous compaction blocks agent execution and offers no visibility into what future actions require, leading to silent accuracy degradation. (b) Slipstream runs the compactor in parallel with continued agent execution on the original context, hiding compaction latency. The next- k agent actions provide a held-out validation signal covering intent and facts for the trajectory-grounded judge, which either accepts the candidate summary for adoption or triggers a targeted update before adoption. Across long-horizon coding (SWE-bench Verified) and web-browsing (BrowseComp) workloads with Qwen3.5-9B and Seed-OSS-36B-Instruct, Slipstream improves task accuracy by up to 8.8 percentage points over synchronous compaction while reducing end-to-end latency by up to 39.7% . Both wins stem from the same mechanism: asynchrony moves compaction off the critical path, and provides the independent behavioral signal that exposes summary errors synchronous baselines silently adopt. 2 Background and Related Work Modern agents solve long-horizon tasks by iterating through a reason-then-act loop: they reason over the accumulated conversation, issue tool calls, observe results, and append each step back into the context ( Yao et al. 2022 ; Yang et al. 2024 ; Schick et al. 2023 ; Nakano et al. 2021 ) . This context is the agent’s working state, recording observations, constraints, partial progress, and unresolved subgoals. The rate of context growth varies by agent paradigm – single-agent strategies accumulate the full trajectory, while task-decomposition approaches ( Sun et al. 2025 ; Kim et al. 2024a ) split work across sub-agents that return shorter results. Regardless, as task horizons grow, context grows until the agent either reaches the model’s maximum context length or suffers degraded performance before that limit. This degradation is not merely a capacity issue: LLM accuracy drops with

Read the complete text