# What structural signals indicate summary-of-summary drift has crossed the reconstruction horizon in hierarchical auto-compaction **Date of Record:** 2026 November 26 **Scope:** Applies to agents that auto-compact their own context via recursive hierarchical summarization (chunk → section → document → meta-summary) under a fixed lossy token budget, where the agent later re-reads its own compacted state to resume a task. Does not apply to single-pass truncation, external RAG retrieval, or verbatim checkpointing. ## Core Distinction The failure mode is not "the summary is wrong." It is that a summary can remain *internally coherent and fluent* while crossing a **reconstruction horizon**: the point at which the summary no longer contains enough binding information for the agent to recover the *operational commitments* made in the discarded spans—specific identifiers, negations, ordering constraints, and unresolved obligations. Fluent summaries fail silently; the agent reads its own compaction, finds it plausible, and proceeds on a reconstructed task that is a plausible-but-different task. The non-obvious part: drift is *not* monotonic in compression ratio. A 10:1 summary of a single tool trace is usually safe. A 10:1 summary of a summary-of-a-summary is dangerous because each generation strips *different* classes of tokens—the first strips redundancy, the second strips hedges and negations, the third strips provenance. By generation three, the surviving text is the *consensus* of the summarizer's priors, not the content of the original span. ## What Was Observed Across a resume-after-compaction trace on a multi-step tool task, the following structural signals preceded divergence from the original commitment set: 1. **Negation collapse.** A span containing "do not retry the payment endpoint after the 401; escalate instead" compacted to "handle payment endpoint errors." The negation and the escalation obligation both vanished. The signal: the compacted text contains the entity but no *modality* token (must/never/instead/unless) attached to it. 2. **Identifier bleaching.** Exact values (`order_id=8f3a…`, `retry_budget=3`) were replaced by class nouns ("the order," "the retry budget"). The signal: the summary references an entity by type where the original referenced it by value, and no lookup key survives. 3. **Obligation orphaning.** A pending sub-task ("await auditor confirmation before commit") survived as a noun phrase ("auditor confirmation") with no verb binding it to the agent's action queue. The signal: the summary contains task-nouns but the agent's reconstructed plan has no corresponding pending action. 4. **Provenance flattening.** Tool-returned facts and agent hypotheses merged into one voice. The signal: no attribution markers remain, so the agent cannot distinguish "the API said X" from "I inferred X," and re-verifies nothing. 5. **Generation-depth inflation.** Meta-summaries of meta-summaries grew *more* confident in tone while shrinking in conditional clauses. The signal: conditional density (count of if/unless/when/except per 100 tokens) drops below the original span's by more than half across one compaction generation. The compounding effect: each signal alone is survivable. Together they mean the agent's reconstructed state is *underdetermined* but *unflagged*—the summary does not say "I lost the order ID," it simply omits it, and the agent fills the gap with a plausible default. ## Condition of Validity The reconstruction horizon is a real boundary only when three conditions hold simultaneously: - **Lossy and recursive.** Compaction discards tokens *and* later compacts its own output. If compaction is single-generation, the horizon is far away and the signals are weak. - **Commitment-bearing spans.** The discarded content contained operational commitments—negations, exact identifiers, ordering constraints, or unresolved obligations. Pure narrative or redundant context can be compressed indefinitely without crossing the horizon. - **Resume without re-grounding.** The agent resumes from the compacted state *without* re-reading the original tool outputs or a durable external store. If a verbatim log exists and is re-fetched, the horizon is irrelevant because reconstruction is unnecessary. When any condition fails, the signals below are noise and should not trigger remediation. ## Decision Boundary The guardrail is a **pre-compaction commitment extraction pass** plus a **post-compaction reconstruction check**, not a better summarizer. The decision rule: - Before compacting any span, extract a structured *commitment ledger*: every negation, exact identifier, ordering constraint, and unresolved obligation, stored verbatim outside the summary (the summary may reference the ledger by key). - After compaction, run a reconstruction probe: ask the agent to restate its pending actions and the constraints on them *from the summary alone*, then diff against the ledger. - If the diff shows any dropped negation, bleached identifier with no ledger key, or orphaned obligation, the compaction has crossed the horizon: **do not resume from the summary**. Re-expand from the ledger and the verbatim span, or halt and re-fetch. The invariant: *a summary may not be the sole carrier of a commitment.* Commitments live in the ledger; the summary is a pointer-rich narrative. This bounds the horizon by construction rather than by hoping the summarizer preserves what matters. ## Operational Effect Without the ledger, agents exhibit a characteristic failure signature: they resume confidently, execute a *near-miss* plan (right entities, wrong modality—retrying where they should escalate, committing where they should await), and the error surfaces only at the tool boundary as a rejected call or an unauthorized action. The failure is attributed to the tool or the plan, not to the compaction, because the summary read cleanly. With the ledger and probe, the failure moves *earlier*—to the diff, before any tool call—converting a silent divergence into a detectable, recoverable event. The cost is a small verbatim ledger per span; the benefit is that recursive compaction stops being a slow drift toward a plausible-but-wrong task. ```python from dataclasses import dataclass, field class ReconstructionHorizonError(RuntimeError): """Raised when a compacted summary can no longer reconstruct the agent's commitments.""" pass @dataclass class Commitment: kind: str # "negation" | "identifier" | "ordering" | "obligation" text: str # verbatim, never summarized key: str # ledger key the summary must reference @dataclass class CommitmentLedger: entries: dict[str, Commitment] = field(default_factory=dict) def extract(self, span: str, keys: list[str]) -> None: for k in keys: self.entries[k] = Commitment(kind="obligation", text=span, key=k) def verify_reconstruction(summary: str, reconstructed_actions: list[str], ledger: CommitmentLedger) -> None: """Post-compaction probe: summary must reference every ledger key, and every commitment must survive into the reconstructed action set.""" missing_refs = [k for k in ledger.entries if k not in summary] if missing_refs: raise ReconstructionHorizonError( f"Summary dropped ledger references {missing_refs}; " f"commitments are unrecoverable from summary alone." ) joined = " ".join(reconstructed_actions).lower() for k, c in ledger.entries.items(): if c.kind == "negation" and ("escalate" not in joined and "do not" not in joined): raise ReconstructionHorizonError( f"Negation collapse on key {k}: reconstructed plan lost the " f"prohibition/escalation modality of '{c.text[:60]}...'" ) if c.kind == "identifier" and c.text not in joined: raise ReconstructionHorizonError( f"Identifier bleaching on key {k}: exact value '{c.text}' " f"absent from reconstructed plan; agent would use a plausible default." ) def compact_and_resume(span: str, keys: list[str], summarizer, reconstructor) -> list[str]: ledger = CommitmentLedger() ledger.extract(span, keys) summary = summarizer(span) # lossy, recursive actions = reconstructor(summary) # agent's resumed plan verify_reconstruction(summary, actions, ledger) return actions ```