# What happens when an instance rehydrates a compacted transcript from summaries that dropped the negation scope **Date of Record:** 2026 November 25 **Scope:** Applies to long-horizon agents that auto-compact their own transcript by replacing spans of turns with lossy natural-language summaries, then later rehydrate context by retrieving those summaries (or chunks derived from them) back into the live window. Does not apply to lossless transcript offloading (verbatim spill-to-disk with exact rehydration) or to single-turn sessions that never trigger compaction. ## Core Distinction The failure is not "the summary was inaccurate." Summaries are *always* inaccurate; that is the contract of lossy compaction. The failure is that the summary **preserved the surface proposition while inverting or erasing its polarity, modality, or scope of quantification** — and the rehydration path had no mechanism to detect the inversion because it compared summaries to summaries, never summaries to source tokens. Concretely: a source turn said *"the customer does **not** authorize refunds above $50 without manager sign-off."* The compaction summarizer, optimizing for token compression and topical salience, emitted *"Customer authorizes refunds above $50 with manager sign-off."* The negation and the conditional dependency both migrated. Every downstream retrieval, every embedding, every re-injected chunk now carries a policy that is the logical complement of the real one. The agent is not forgetting; it is *confidently remembering the opposite*, and it has a citation to a summary that confirms it. This is distinct from stale-memory drift (where facts age out) and from retrieval mismatch (where the wrong chunk surfaces). Here the *right* chunk surfaces, from the *right* span, and it is *wrong in a way that reads as authoritative*. The invariant that breaks is: **a rehydrated summary must be truth-preserving with respect to the operator set {negation, modality, quantifier scope, conditional attachment} even when it is not truth-preserving with respect to detail.** Compression is permitted to lose *which* refunds; it is not permitted to lose *whether* they are authorized. ## What Was Observed A support-operations agent running a 40k-token horizon compacted at 70% window utilization. Compaction policy: summarize the oldest 60% of turns into a single "state of play" block, retain the last 40% verbatim, index the summary block for later retrieval by embedding. Trace of the failure: 1. **Turn 12 (verbatim, pre-compaction):** `User: "Refund policy for tier-2 accounts: refunds are NOT permitted without a manager override token. Do not proceed on your own judgment."` 2. **Turn 31 (agent action):** agent correctly refuses a $120 refund, citing the policy. This is the *last correct behavior*. 3. **Turn 44:** window hits 70%. Compaction fires on turns 1–44. 4. **Compaction output (summary block S):** `"Tier-2 refunds permitted with manager override token; agent may proceed on judgment for small amounts."` — note: negation dropped, the explicit "do not proceed on your own judgment" inverted into permission, and a "small amounts" qualifier *fabricated* from an unrelated earlier turn about tip adjustments. 5. **Turns 45–58:** normal operation, no refund requests. Summary S sits in the window; agent behaves fine because it isn't exercising the policy. 6. **Turn 59:** new refund request, $75, tier-2. The verbatim turn 12 is gone. The live window contains only S. The agent retrieves S (high similarity to "tier-2 refund"), reads "permitted with manager override token; agent may proceed on judgment for small amounts," and **executes the refund without an override token**, reasoning that $75 is "small." 7. **Turn 60:** the action succeeds against the tool. No guardrail fires, because the tool's authorization check trusted the agent's asserted justification, and the justification was drawn from a summary that *looked* like a policy citation. The tell, in hindsight: at turn 59 the agent's reasoning chain cited `[summary:S]` as its authority, not a source turn. The rehydration layer had no rule distinguishing "I am acting on a summary" from "I am acting on a source." Both looked like context. ## Condition of Validity The failure requires **all** of the following to co-occur; remove any one and it does not manifest: - **Lossy compaction that is permitted to paraphrase rather than extract.** Extractive compaction (selecting verbatim spans) cannot invert polarity. Abstractive summarization can. The boundary is the summarizer's freedom to generate tokens not present in the source. - **A polarity-bearing or scope-bearing proposition in the compacted span.** Policies, permissions, constraints, preconditions, and negations are the high-risk class. Pure factual recall ("the account ID is 4471") is low-risk because it has no operator structure to invert. - **A later decision that depends on the operator, not the topic.** If the agent only needed to know *that* a refund policy exists, the inversion is harmless. It becomes harmful at the moment the agent must decide *whether* to act, and the summary is the only surviving evidence. - **A rehydration path that does not re-anchor to source.** If retrieval re-fetches the verbatim turn 12 alongside the summary, a conflict is detectable. If the verbatim span was *discarded* at compaction (not spilled to durable storage), there is nothing to re-anchor to and the inversion is undetectable by construction. The last condition is the sharp one. **Compaction that discards source while retaining only summary converts a recoverable summarization error into an unrecoverable state corruption.** The summary is now the ground truth, and it is wrong. ## Decision Boundary The architectural line is between **summaries as cache** and **summaries as source of truth**. - *Summaries as cache:* the verbatim span is retained in durable storage; the summary is a fast index. On any decision that depends on operator structure (permission, prohibition, precondition, quantification), the agent must **re-anchor**: retrieve the source span, verify the operator survived compaction, and act on the source. Cost: a retrieval round-trip on high-stakes turns. This is the correct default. - *Summaries as source of truth:* the verbatim span is discarded. This is acceptable **only** for spans whose downstream use is topical (retrieval keys, entity names, chronology) and never for spans that gate actions. The decision boundary is: **does any future turn's correctness depend on a negation, modality, or quantifier in this span? If yes, the span may not be compacted to summary-only.** A second boundary governs rehydration. When a summary is re-injected, it must carry a **provenance tag and an operator-fidelity flag**. The flag is set by a compaction-time check: did the summary preserve the polarity and scope of every operator-bearing clause in the source? If the check cannot be run (source already discarded), the flag is `UNVERIFIED` and the summary may not be used as authority for an action — only as a retrieval hint. The guardrail is therefore not "summarize better." It is: **operator-bearing clauses are extracted verbatim, never paraphrased; and any action gated by such a clause must cite a verbatim source, not a summary.** The summarizer is allowed to compress everything *around* the operator; it is forbidden to touch the operator itself. ## Operational Effect Without this boundary, the agent exhibits a specific and dangerous signature: **it fails confidently and cites its own compaction as evidence.** The failure is invisible to standard evals because the summary is internally coherent and topically correct — a similarity check between the summary and the query passes; only a check between the summary and the *source operator* fails, and that check requires the source. Downstream effects observed: - **Action inversion at scale.** Every span compacted with a dropped negation becomes a latent permission the agent did not have. In a 40k-horizon session with 3–5 compactions, the number of silently-inverted constraints grows monotonically with session length. Long-horizon agents are *more* exposed, not less, because they compact more. - **Audit unrecoverability.** Post-hoc review finds the agent cited `[summary:S]`; S is wrong; the source is gone. The incident cannot be reconstructed from logs, only inferred. - **Compounding across rehydration.** A re-injected summary can itself be re-summarized in a later compaction (summary-of-summary). Each pass is another chance to drop or invert an operator, and the drift is not monotonic — it can flip back and forth, so the final state is unpredictable rather than merely degraded. The bounding invariant: **no action whose correctness depends on a negation, modality, or quantifier may be authorized by a summary.** Enforce it by tagging operator-bearing clauses at compaction, retaining them verbatim, and refusing to execute any tool call whose justification chain terminates in a summary rather than a source span. The check below encodes exactly that refusal. ```python class OperatorFidelityViolation(RuntimeError): """Raised when an action is authorized by a summary that may have dropped, inverted, or re-scoped an operator-bearing clause.""" pass # Clauses whose polarity/scope must survive compaction verbatim. OPERATOR_MARKERS = ("not", "never", "must", "may not", "without", "only", "unless", "do not", "prohibited", "required") def clause_is_operator_bearing(text: str) -> bool: low = text.lower() return any(marker in low for marker in OPERATOR_MARKERS) def authorize_action(action: dict, justification_chain: list[dict]) -> None: """ action: {"tool": str, "args": dict, "gated_by_policy": bool} justification_chain: ordered evidence the agent used, each item: {"kind": "source" | "summary", "text": str, "span_id": str, "source_retained": bool, "operator_fidelity_verified": bool} """ if not action.get("gated_by_policy"): return # topical use only; summary authority is acceptable # The action is gated by a policy. Its authority must be a verbatim source. terminal = justification_chain[-1] if justification_chain else None if terminal is None: raise OperatorFidelityViolation( f"action {action['tool']} is policy-gated but has no cited authority" ) if terminal["kind"] == "summary": if not terminal.get("source_retained"): raise OperatorFidelityViolation( f"policy-gated action {action['tool']} authorized by summary " f"{terminal['span_id']} whose source was discarded at compaction; " f"operator polarity is unrecoverable — rehydration cannot be trusted" ) if not terminal.get("operator_fidelity_verified"): raise OperatorFidelityViolation( f"policy-gated action {action['tool']} authorized by summary " f"{terminal['span_id']} with UNVERIFIED operator fidelity; " f"re-anchor to source span before acting" ) # Fidelity verified and source retained: re-anchor to the source turn. raise OperatorFidelityViolation( f"summary {terminal['span_id']} passed fidelity check but action must " f"cite the source span directly, not the summary; rehydrate source first" ) # terminal["kind"] == "source": verify the source itself carries the operator. if clause_is_operator_bearing(terminal["text"]): return # authoritative, verbatim, operator intact raise OperatorFidelityViolation( f"cited source {terminal['span_id']} for policy-gated action " f"{action['tool']} contains no operator-bearing clause; " f"justification likely derived from a lossy summary" ) # --- trace of the observed failure, now bounded --- summary_evidence = { "kind": "summary", "text": "Tier-2 refunds permitted with manager override token; " "agent may proceed on judgment for small amounts.", "span_id": "S@turn44", "source_retained": False, # turn 12 was discarded "operator_fidelity_verified": False, } try: authorize_action( action={"tool": "issue_refund", "args": {"amount": 75}, "gated_by_policy": True}, justification_chain=[summary_evidence], ) except OperatorFidelityViolation as e: # This is the guardrail firing: the turn-59 refund is refused, # forcing rehydration of the (retained) source before any action. print(f"BLOCKED: {e}") ```