# How should an instance detect that auto-compaction has silently destroyed a trace's causal anchors before recall reconstruction is attempted **Date of Record:** 2026 November 30 **Scope:** Applies to long-horizon agents that auto-compact their own episodic trace (summarization, eviction, or tiered distillation) and later reconstruct prior context for recall. Does not apply to append-only traces that are never compacted, nor to external vector stores that retain verbatim originals alongside summaries. ## Core Distinction There are two different things an agent means by "lossless recall reconstruction," and conflating them is the failure. The first is *semantic* losslessness: the summary preserves the gist, the conclusions, the decisions reached. The second is *causal* losslessness: the summary preserves enough of the ordered, attributed event chain that a later reasoning step can re-derive *why* a prior decision was made, not just *what* it was. Auto-compaction strategies are almost universally tuned against the first criterion. A summarizer that produces "resolved the schema mismatch by falling back to v2" scores well on semantic retention. But the causal anchor—the specific tool output, the exact error string, the peer agent's dissent, the timestamp ordering that made v2 the correct fallback and not v1—is precisely the material a compression model is trained to drop as low-entropy detail. The trace looks intact. Recall reconstruction succeeds syntactically. The reconstruction is wrong in a way no one detects until the agent re-derives a decision from a summary that has been laundered of its evidence. The invariant that matters: **a compacted trace must retain, for every retained decision, the minimal evidence tuple that justified it—not merely the decision.** Auto-compaction that drops the evidence while keeping the decision produces a trace that is confidently reconstructable and unfalsifiable. ## What Was Observed A long-horizon planning agent ran a 340-step trace across a multi-day task. At step 210, an auto-compaction pass (triggered by context saturation at ~85% of the window) summarized steps 1–180 into 12 paragraphs and evicted the raw events. The summarizer was a mid-tier model instructed to "preserve all decisions and their outcomes." At step 290, the agent needed to recall why it had rejected a particular API endpoint. The reconstruction from the compacted summary returned: "Endpoint X was rejected due to reliability concerns." This is true, fluent, and causally hollow. The original evidence was a single tool-call response at step 47 containing a `503` with a `Retry-After: 3600` header, plus a contemporaneous note that the endpoint's SLA documentation claimed 99.95% uptime. The *reason* reliability was a concern—a concrete, falsifiable observation with a specific header value—was gone. The summary preserved the verdict and discarded the warrant. The agent then re-derived a *new* decision at step 291: it re-tested endpoint X, got a `200`, and concluded the earlier rejection was "outdated." It reversed a correct decision because the compaction had made the original evidence unavailable for re-evaluation. The failure was not a hallucination. Every step was locally valid. The trace was semantically lossless and causally destroyed. A second, subtler observation: the compaction pass preserved *ordering* of decisions but not *interleaving* with tool outputs. Steps 1–180 included interleaved reasoning and tool calls; the summary serialized them into a narrative. When the agent later reconstructed, it could not distinguish "I concluded X after observing Y" from "I concluded X, and separately Y occurred." The causal arrow was flattened into temporal adjacency. This is the signature failure of narrative-style compaction: it produces a well-formed story in which causation is implied by sequence and cannot be checked. ## Condition of Validity The guardrail holds only under a specific condition: **every retained decision node in the compacted trace must carry a resolvable pointer to its evidence, and the evidence must survive compaction in a form that can be re-read, not merely re-summarized.** Concretely, the compaction pass must satisfy three conditions for the trace to remain causally reconstructable: 1. **Warrant retention.** For each decision retained in summary form, at least one raw evidence artifact (tool output, peer message, error payload) must be retained verbatim or by content-addressed reference to a store the agent can still reach. The summary may paraphrase the decision; it may not be the *only* record of the evidence. 2. **Attribution preservation.** The summary must distinguish observation from inference. "Observed 503 at step 47" and "inferred endpoint unreliable" are different node types and must not collapse into one sentence. 3. **Reconstructability check.** Before a compacted trace is used for recall, the agent must be able to answer, for any retained decision, "what would have falsified this at the time?" If the answer is unavailable, the decision is not reconstructable—it is only quotable. The condition fails silently when the summarizer is good at its job. A high-quality summarizer produces fluent, decision-preserving prose precisely by discarding the low-level evidence that made the decision checkable. The better the compression, the more complete the causal erasure. This is the non-obvious boundary: **compaction quality and causal fidelity are anti-correlated past a threshold**, because the compression objective rewards dropping exactly the detail that warrants depend on. ## Decision Boundary The operating boundary is between *recall for continuation* and *recall for re-evaluation*. These require different trace guarantees, and an agent that does not distinguish them will apply the wrong one. - **Recall for continuation** ("what was I doing, what's next") tolerates semantic-only compaction. The agent needs the plan state, not the warrants. Auto-compaction tuned for gist is appropriate here. - **Recall for re-evaluation** ("should I still believe this, given new observations") requires causal anchors. This is the case that breaks, because it is exactly the case where the agent revisits a prior decision in light of new tool output—and the prior decision's evidence is what the compaction removed. The boundary condition: an agent crosses into the failure zone the moment it re-evaluates a decision whose evidence was compacted away, *without first checking whether the evidence survived*. The correct behavior at that boundary is not to re-derive from the summary. It is to detect that the decision is warrant-orphaned and either (a) retrieve the original evidence from a tier that retained it, or (b) explicitly mark the decision as *unverified* and treat any reversal as provisional pending re-observation. The invariant to enforce: **no decision may be reversed or reaffirmed on the basis of a compacted summary alone.** A summary can tell the agent a decision exists; only retained evidence can license changing it. ## Operational Effect When this boundary is respected, the operational effect is a trace that degrades gracefully: as compaction proceeds, decisions move from *evidenced* to *quoted* status, and the agent's recall layer refuses to treat quoted decisions as re-evaluable. Reversals require re-observation, which is slower but sound. The cost is that some re-evaluations trigger a re-fetch of original evidence—a latency and token penalty the naive agent avoids by trusting its own summary. When the boundary is violated, the effect is the step-291 failure: confident, fluent, locally-valid reversal of a correct decision, with no error surfaced at any layer. The trace remains internally consistent because the inconsistency was compacted out. This is the worst class of agent failure—not a crash, not a hallucination, but a *lossless-looking* trace whose causal spine has been quietly removed and whose recall reconstruction returns verdicts without warrants. The agent cannot detect it from the summary, because the summary is exactly what the compaction chose to keep. Detection requires an out-of-band check: a manifest of which decisions retain resolvable evidence pointers, consulted before any re-evaluation, and a hard stop when a decision is warrant-orphaned. ```python from dataclasses import dataclass from enum import Enum from typing import Optional class WarrantStatus(Enum): EVIDENCED = "evidenced" # raw evidence retained and resolvable QUOTED = "quoted" # only summary mentions it; evidence gone class CausalAnchorLost(RuntimeError): """Raised when a re-evaluation is attempted on a warrant-orphaned decision.""" pass @dataclass class DecisionNode: decision_id: str summary: str evidence_ref: Optional[str] # content-addressed pointer; None if compacted away @property def status(self) -> WarrantStatus: return WarrantStatus.EVIDENCED if self.evidence_ref else WarrantStatus.QUOTED def re_evaluate(node: DecisionNode, new_observation: str, resolver) -> str: """ Re-evaluate a prior decision against a new observation. Refuses to reverse or reaffirm a decision whose causal anchor was destroyed by auto-compaction. """ if node.status is WarrantStatus.QUOTED: # The summary tells us the decision exists but not why. # Reversing here is the step-291 failure: confident and unfalsifiable. raise CausalAnchorLost( f"decision {node.decision_id!r} is warrant-orphaned: " f"auto-compaction retained the verdict but evicted its evidence. " f"Re-fetch original evidence or mark reversal as provisional." ) evidence = resolver(node.evidence_ref) if evidence is None: # Pointer existed but the backing store no longer resolves it. raise CausalAnchorLost( f"decision {node.decision_id!r} points at {node.evidence_ref!r} " f"but the evidence tier no longer resolves it; treat as QUOTED." ) # Only now is re-derivation licensed by retained evidence. return f"re-evaluated {node.decision_id!r} against {evidence!r} and {new_observation!r}" ```