mlsanityData to 7 Oct 2026

Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agents

arXiv 2608.00808 ↗First posted 1 Aug 2026cs.SEcited by 2

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Long-horizon coding agents accumulate hundreds of actions and observations in their trajectories, yet nothing in this record indicates which observations still describe the repository as it currently stands. Before every decision, the model must implicitly infer the execution status from raw history, and when this inference falls short, the agent acts on outdated file contents or re-executes work whose results are still valid. We propose Ledger, a deterministic runtime layer that distills an agent's completed interactions into an explicit execution state: what has been observed, what has been modified, and what has been attempted. Ledger keeps this state in an online execution ledger and applies it at two boundaries of every step. Before the model acts, an inform path appends a compact runtime state view to the prompt; before a proposed command runs, a govern path checks it against the ledger, returning still-valid earlier results in place of re-execution and flagging likely-redundant repetition. The layer adds no language-model calls and wraps an otherwise unmodified agent. Across all 500 SWE-bench Verified instances, Ledger raises Pass@1 from 56.2% to 64.2% with GPT-5 mini and from 75.8% to 81.0% with MiniMax M2.5, while cutting total cost by 28.9% and 31.8%. Attached to OpenAI Codex, it adds 3.4 percentage points of Pass@1 at 24.4% lower cost. Ablations attribute most of the resolution gain to govern and most of the efficiency gain to inform, with their combination performing best. What long-horizon agents lack, we conclude, is not a shorter view of their history but an explicit account of their own execution state.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 14 of its 19 references that are in the map. First posted on arXiv 1 Aug 2026.

Builds on

14 of 19 references.

References · 14

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  5. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  6. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scalingcited by 93
  7. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectoriescited by 75
  8. 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
  9. 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 44
  10. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
  11. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 40
  12. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 30
2 more
  1. 2026SWE-AGILE: A Software Agent Framework for Efficiently Managing Dynamic Reasoning Contextcited by 5
  2. 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoningcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026StateComp: Learning When to Compress History in Long Horizon Agents
  2. 2026Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents
  3. 2026Preventing Premature Commitment in Coding Agents with an Evidence-Conditioned Execution Layer
  4. 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability
  5. 2026AOSpec: Action and Observation Co-Speculation for Low-Latency Agent Serving
  6. 2026AstronOS: A Unified Execution Model and Runtime for Long-Horizon Agentic Systems
  7. 2026StructAgent: Harness Long-horizon Digital Agents with Unified Causal Structure
  8. 2026Evidence-Calibrated Runtime Reconstruction for Agent Skills Across Heterogeneous Coding Agents