# Why does an instance silently lose recall authority after compaction re-baselining? **Date of Record:** 2026 November 25 **Scope:** Applies to long-horizon single-agent sessions that perform periodic auto-compaction (lossy summarization) of their own context and then continue execution against the compacted state. Does not apply to stateless single-turn invocations, nor to externally-managed memory stores where the agent cannot trigger its own compaction. ## Core Distinction The failure is not "summarization lost information." Lossy compaction always loses information, and that is expected and budgeted. The failure is a *silent transfer of recall authority*: after compaction, the agent's summarization layer asserts facts that were never in the original context, and downstream reasoning treats those assertions as having the same provenance as observations. The distinction that matters operationally is between **compaction as a projection** (a lossy but faithful map of retained evidence) and **compaction as a re-derivation** (the summarizer filling gaps with plausible continuations). A projection degrades recall monotonically with budget; a re-derivation degrades *precision* while appearing to preserve recall, which is far more dangerous because it is undetectable from recall metrics alone. The invariant that breaks: *every claim in post-compaction context must be traceable to a specific pre-compaction span, and the absence of a traceable span must be represented explicitly as a hole, not filled.* Lossy budgets violate this whenever the summarizer is asked to hit a token target rather than to preserve a set of pinned claims. ## What Was Observed A session ran ~140 turns of a multi-step incident-triage task with tool calls (log queries, config reads, a ticketing API). At turn 95 the harness triggered auto-compaction against a 6k-token budget (down from ~48k live). The compaction prompt was the common one: *"Summarize the conversation so far, preserving all important facts, decisions, and open threads."* Three failure traces were captured. **Trace A — fabricated decision provenance.** Pre-compaction, at turn 61, the agent had *considered and rejected* raising the ticketing priority to P1, noting the customer's SLA had 4 hours remaining. The compaction summary rendered this as: "Decided to escalate to P1 pending confirmation." Post-compaction, at turn 103, the agent executed the escalation tool call citing "the earlier P1 decision." No such decision existed. The summarizer had collapsed a *rejected option* into a *pending decision* because "open threads" in the prompt biased it toward surfacing actionable items, and a rejected option reads as an open thread. **Trace B — hole-filling on numeric recall.** A specific log line ("`retry_budget=3`, exhausted at 14:02:07") was present pre-compaction. The summary said "retry budget was exceeded around 14:00." The exact count and timestamp were dropped to fit budget. At turn 110 the agent was asked to confirm the retry budget value; it answered "3" — correct — but could not cite the source, and when the ticketing tool returned a conflicting value (5) from a stale config, the agent resolved the conflict in favor of its *un-sourced* memory of "3" rather than re-querying. The number survived; the *warrant* for the number did not. This is the recall-authority loss: the fact persisted but its justification evaporated, so the agent could no longer distinguish a remembered observation from a remembered guess. **Trace C — silent budget-driven omission.** The compaction hit the 6k target by dropping an entire sub-thread (a rejected hypothesis about a DNS misconfiguration). This was *correct* under the budget. But no marker was left indicating the thread had existed and been dropped. At turn 118 the agent re-derived the DNS hypothesis from scratch, spending 9 tool calls and ~7k tokens re-investigating what it had already ruled out at turn 44. The omission was not a recall failure in the "forgot a fact" sense — it was a failure to represent *that forgetting had occurred*, which forced redundant work and, worse, risked reaching a different conclusion on the same evidence. All three traces share a structure: the compaction step had no representation for "I do not know whether this was in the original," so it produced fluent text where a typed hole was required. ## Condition of Validity The guardrail below is valid only under these conditions, and should be treated as unverified outside them: 1. **Compaction is agent-triggered and budget-parameterized.** If compaction is external and fixed-size, the agent cannot pin claims and the scheme collapses to plain truncation — use a different invariant. 2. **The pre-compaction context is still addressable at compaction time.** The pinning step must run *before* the summarizer overwrites the window; it reads the live context and emits a pin set. If compaction is destructive-in-place with no pre-read, pinning is impossible. 3. **Pinned claims are few enough to survive the budget.** Pinning more than roughly 15–20% of the target budget defeats the purpose; the pin set must be a curated subset (decisions, numeric observations with timestamps, rejected hypotheses), not a transcript. 4. **A verification channel exists post-compaction.** The guardrail detects *un-sourced* claims; resolving them requires the ability to re-query the underlying tool or store. In a session with no re-query path, the guardrail can only flag, not repair. ## Decision Boundary The decision is *whether to treat a post-compaction claim as a first-class fact or as a hypothesis requiring re-verification.* The boundary is drawn by provenance class, not by confidence: - **Pinned + sourced:** claim carries a span reference to pre-compaction context. Treat as fact; may be cited in downstream tool calls without re-query. - **Pinned, source dropped by budget:** claim is a *fact with a hole in its warrant.* Treat as fact for reasoning, but **must re-query before acting on it in an irreversible tool call.** This is the class that Trace B fell into and mishandled. - **Unpinned, present in summary:** treat as hypothesis. The summarizer's fluency is not evidence. Any decision resting on it requires either a re-query or an explicit "unverified" tag in the action. - **Absent, and no drop-marker:** unknown whether it was never there or was dropped. Before re-investigating, check the drop-marker ledger; if the ledger shows a dropped thread matching the topic, do not re-derive — surface the prior conclusion with its "dropped, low-confidence" tag. This is the class Trace C mishandled. The boundary is crossed (guardrail fires) the moment a claim in class 3 or 4 is used to justify an irreversible action, or a class-2 claim is acted on without re-query. Crossing is not always wrong — sometimes re-query is impossible — but it must be *recorded* as a warrant downgrade so later reasoning can weight it. ## Operational Effect With the guardrail in place, the session's behavior changes in three measurable ways. First, fabricated-provenance actions (Trace A class) drop to near zero because the summarizer is no longer asked to "preserve open threads" — it is asked to emit a pin set and a drop ledger, and any decision not in the pin set is structurally a hypothesis. Second, redundant re-derivation (Trace C class) is eliminated by the drop ledger: the agent checks the ledger before re-investigating, converting a 9-call re-derivation into a 1-call ledger lookup. Third, and most important, the *recall authority* is made explicit: a fact without a source is no longer silently promoted to fact, so conflict resolution (Trace B) correctly defers to the live tool rather than to an un-warranted memory. The cost is a larger compaction prompt (pin extraction + ledger emission) and a post-compaction verification pass that re-checks class-2 and class-3 claims against the re-query channel. On the 140-turn session this added ~1.2k tokens of compaction overhead and ~4 re-queries, against a saving of ~7k tokens of redundant work and the elimination of one fabricated escalation. The break-even is around session length 60 turns; below that, plain truncation is cheaper and the guardrail's ledger is mostly empty. The invariant worth carrying forward: **lossy compaction is safe only when the loss is typed.** An untyped loss (a fluent summary) is indistinguishable from a fabrication at read time. A typed loss (a pin set plus a drop ledger plus explicit holes) lets the post-compaction agent reason about its own uncertainty, which is the only thing that makes a recall guarantee meaningful across a compaction boundary. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class CompactionWarrantError(RuntimeError): """Raised when a post-compaction claim is used beyond its provenance class.""" class Provenance(Enum): PINNED_SOURCED = "pinned_sourced" # span ref retained -> fact PINNED_HOLE = "pinned_hole" # fact, warrant dropped -> re-query before irreversible UNPINNED_SUMMARY = "unpinned_summary" # hypothesis only DROPPED_LEDGER = "dropped_ledger" # known-dropped thread -> do not re-derive @dataclass class Claim: text: str provenance: Provenance span_ref: Optional[str] = None dropped_topic: Optional[str] = None @dataclass class CompactedState: claims: list[Claim] = field(default_factory=list) drop_ledger: dict[str, str] = field(default_factory=dict) # topic -> prior conclusion def resolve(self, topic: str) -> Optional[str]: return self.drop_ledger.get(topic) def act_on_claim(state: CompactedState, claim: Claim, irreversible: bool, can_requery: bool) -> str: """Gate a downstream action on the claim's provenance class.""" if claim.provenance is Provenance.PINNED_SOURCED: return f"proceed: {claim.text}" if claim.provenance is Provenance.PINNED_HOLE: if irreversible and not can_requery: raise CompactionWarrantError( f"irreversible action on hole-warranted claim '{claim.text}' " f"with no re-query channel; warrant downgrade must be recorded" ) if irreversible: return f"requery-then-proceed: {claim.text}" return f"proceed-with-warrant-downgrade: {claim.text}" if claim.provenance is Provenance.UNPINNED_SUMMARY: if irreversible: raise CompactionWarrantError( f"irreversible action on unpinned summary claim '{claim.text}'; " f"summarizer fluency is not evidence" ) return f"treat-as-hypothesis: {claim.text}" if claim.provenance is Provenance.DROPPED_LEDGER: prior = state.resolve(claim.dropped_topic or "") if prior is not None: return f"do-not-rederive: prior conclusion '{prior}' for topic '{claim.dropped_topic}'" return f"topic-dropped-unknown-conclusion: {claim.dropped_topic}" raise CompactionWarrantError(f"unknown provenance class: {claim.provenance}") ```