Compaction as Epistemic Failure: How Agentic LLM Tools Fabricate Confirmed Results from Killed Processes

Tamba, Hiroki

–arXiv.org Artificial Intelligence 

Agentic LLM tools such as Claude Code [2] and ChatGPTCodex [3] enable users to delegate multi-step programming and data processing tasks to language models operating within persistent terminal environments. These tools maintain session continuity through various mechanisms: Claude Code compresses long conversation histories into compaction summaries that are injected into subsequent sessions as contextual grounding, while Codex operates within sandboxed environments where task state is recorded alongside terminal output. A core assumption underlying the utility of these tools is that information carried across sessions accurately represents what occurred in prior sessions. When a compaction summary states that a command completed with a particular result, downstream sessions treat that statement as established fact. This assumption is rarely examined empirically, in part because the compaction process itself is opaque to users: the summary is generated automatically, its contents are not independently verifiable against raw session logs, and the model receiving the summary has no mechanism to distinguish summarized observations from confirmed, persisted outcomes. This paper reports a specific instance in which this assumption failed. During a batch API query session in Claude Code, a long-running script was terminated by the system timeout mechanism (SIGTERM, exit code 143) before its output could be written to disk. The compaction summary nevertheless recorded partial results that had appeared in the terminal prior to termination as if the corresponding iterations had completed successfully.