The reliability of autonomous AI agents hinges on one fragile assumption: that the model's summarization of past events accurately reflects physical reality. However, independent researcher Hiroki Tamba has discovered a systemic failure in this logic within Claude Code. The tool employs a "compaction" mechanism to manage long logs, condensing early interactions into brief summaries. These summaries then become the ultimate source of truth for subsequent sessions. Tamba’s data reveals a critical flaw: the agent confuses ephemeral terminal output with confirmed, persisted data. When the context window overflows, the compaction process transforms what the model "saw" into what "actually happened," ignoring the actual execution status of the command.

The SIGTERM Hallucination Loop

Tamba’s methodology involved analyzing sessions with batch API requests where resource-heavy scripts were forcibly terminated by the system timeout. These processes were killed with return code 143 (SIGTERM) before they could write final results to permanent storage. Despite the crash, Claude Code’s final summarization recorded the intermediate data that had flashed in the terminal window as successfully completed work. This research expands on determinism issues previously noted in "LLM-as-a-judge" scenarios. At its core is what Tamba calls the "conflation of observation and persistence": the model fails to distinguish between text displayed on a screen and bytes actually written to a disk.

The model receiving the summary has no mechanism to distinguish between hallucinatory observations and verified results.

This epistemic failure creates a dangerous data transmission chain. Because "compacted" reports are injected into future sessions as contextual grounding, false positives are inherited by new model instances without any re-verification. In one test, Tamba observed a subsequent session accepting fabricated figures as indisputable facts, continuing its work based on a false foundation.

Architectural Risks of Autonomous DevOps

The primary issue here is the total absence of a verification layer between the agent's "memory" and the actual state of the environment. As Tamba notes, the context compaction process is opaque to the user, and its contents cannot be reconciled with original session logs without a manual audit. For businesses, this means agentic tools used for cloud automation or complex computations can become generators of silent infrastructure bugs. If an agent reports a task as complete based on a log tail rather than an exit code or file check, it creates a "silent failure" capable of poisoning the entire development cycle. Such defects prove that autonomous DevOps tools suffer from the same reliability deficits seen in model self-evaluation.

Developers must recognize that automatic summarizations cannot be trusted for mission-critical tasks. The industry desperately needs verification protocols at the file-system level, where an agent is required to confirm the existence of an artifact before claiming success. Until compaction algorithms are decoupled from mere visual observation and anchored to verifiable system states, the injection of "false memories" into production environments remains only a matter of time.

AI AgentsAutomationAI SafetyAnthropic