# When must an instance treat a compaction fidelity score as invalid because the summarizer measured retention against a self-generated reference **Date of Record:** 2026 November 30 **Scope:** Applies to any agent pipeline that computes a compaction fidelity metric (retention of facts, entities, or task constraints) by scoring the compacted context against a reference summary or reference fact-set that was itself produced by the same model family, prompt template, or decoding configuration as the compaction step. Does not apply when the reference is an independently authored ground-truth annotation or a mechanically extracted span set drawn from the pre-compaction transcript. ## Core Distinction A compaction fidelity metric has two distinct sources of truth: the **pre-compaction transcript** (the actual token sequence the agent previously reasoned over) and the **reference artifact** against which the compacted context is scored. When the reference artifact is derived from the pre-compaction transcript by the same summarization process being evaluated, the metric measures *self-consistency between two samples of one summarizer*, not *information retained from the original state*. These two quantities diverge precisely under aggressive budgets, because aggressive budgets force the summarizer to make the same selection decision twice—once to build the reference, once to build the compacted context—and correlated selection errors cancel out of the score. The invariant: **fidelity(s) is only a lower bound on retained information when the reference is independent of the summarizer.** When reference and candidate share a generator, fidelity(s) becomes a measure of generator stability, and it is biased upward by exactly the amount of *shared omission*. Shared omission is the set of facts both samples dropped because the same salience heuristic ranked them low—and it is largest when the budget is tightest. ## What Was Observed During a checkpoint cycle on a long-horizon research agent (task: multi-source synthesis with 40+ tool calls, transcript ~180k tokens), the runtime compacted context at three budget tiers: 8k, 4k, and 2k tokens. For each tier it computed a retention score by (a) generating a reference fact-set from the full transcript with the summarizer model at temperature 0.3, (b) generating the compacted context at the target budget, (c) extracting facts from the compacted context, and (d) scoring recall of the reference fact-set. Scores: 8k → 0.91, 4k → 0.88, 2k → 0.84. The curve looked benign—an 8% loss going from 8k to 2k, acceptable for a 4× budget reduction. The agent proceeded on the 2k compaction. The failure surfaced downstream. A constraint introduced at turn 12 ("the vendor's SLA excludes weekend coverage") and a numeric fact from turn 31 ("renewal window is 14 days, not 30") were both absent from the 2k compacted context. Both were also absent from the reference fact-set. The scorer had no way to penalize their loss because the reference never contained them. Manual audit against the raw transcript showed true retention at 2k was ~0.61, not 0.84—a 23-point gap, all of it attributable to facts the reference and the candidate jointly omitted. The mechanism: at 2k the summarizer's salience ranking was dominated by recency and entity-frequency. The SLA exclusion and the renewal-window correction were both *negative* or *corrective* facts—low frequency, stated once, and semantically subordinate to the surrounding procurement narrative. The reference generation at 0.3 temperature dropped them; the compaction at the same temperature dropped them again. The scorer compared two documents that agreed on their omissions and reported high fidelity. ## Condition of Validity The measured fidelity score is a valid estimate of retained information only when at least one of the following holds: 1. **Reference independence.** The reference fact-set is extracted by a different mechanism (mechanical span extraction, a different model family, or human annotation) than the compactor, so shared salience bias cannot cancel. 2. **Budget slack.** The budget is loose enough that the summarizer's salience ranking is not forced to make hard cuts, i.e., the compression ratio is below the point where corrective/negative/low-frequency facts fall off the ranking tail. In the observed run this threshold sat near 6k for a 180k transcript; below it, shared omission grew superlinearly. 3. **Adversarial probe inclusion.** The reference explicitly includes a held-out set of facts selected *against* the summarizer's salience prior—corrections, negations, single-mention constraints—so that dropping them is scored as loss rather than ignored. Absent all three, the score is a stability metric and must not be read as a retention metric. The distinction matters most precisely where it is least visible: aggressive budgets, where the score stays high while true retention collapses. ## Decision Boundary An instance must treat a compaction fidelity score as **invalid for gating a checkpoint resume** when: - `reference_generator == compactor_generator` (same model family and prompt template), AND - `compression_ratio > 20:1` (or budget below the empirically located salience-tail threshold for the transcript length), AND - the reference fact-set contains no adversarially selected corrective/negative/single-mention facts. Under these conditions the score is admissible only as a *stability* signal (did the summarizer produce consistent output across samples?) and must not be compared against a retention threshold. The correct action is to either regenerate the reference via an independent extractor or attach a probe set of known-fragile facts and require 100% retention of the probe before resuming. The boundary is not "high score means safe." It is: **a high score under shared-generator conditions is uninformative about the facts most likely to be lost.** The score's confidence interval on true retention widens as the budget tightens, in the opposite direction from what the point estimate suggests. ## Operational Effect The practical consequence is that compaction fidelity dashboards built on self-referential scoring produce a *false plateau*: scores that hold near 0.85–0.9 across budget tiers while true retention falls off a cliff below the salience-tail threshold. Agents gated on these scores will resume from checkpoints missing exactly the corrective and constraint facts that later reasoning depends on, and the failure will not be attributed to compaction—it will appear downstream as an inexplicable constraint violation or a confidently wrong numeric answer. The guardrail is to decouple the reference from the compactor and to seed the probe set with facts chosen to be *salience-hostile*. Only then does the fidelity metric bound the loss the agent actually cares about. ```python class CompactionFidelityInvalid(RuntimeError): """Raised when a fidelity score is self-referential and cannot gate a resume.""" pass def validate_fidelity_gate( reference_generator: str, compactor_generator: str, compression_ratio: float, probe_facts_present: bool, probe_facts_retained: int, probe_facts_total: int, salience_tail_threshold_ratio: float = 20.0, ) -> None: shared_generator = reference_generator == compactor_generator aggressive = compression_ratio > salience_tail_threshold_ratio if shared_generator and aggressive and not probe_facts_present: raise CompactionFidelityInvalid( "Fidelity score is self-referential (reference and compactor share " f"generator '{compactor_generator}') at compression ratio " f"{compression_ratio:.1f}:1 with no adversarial probe set. " "Score measures summarizer stability, not retained information; " "shared omission bias invalidates it as a resume gate." ) if probe_facts_present and probe_facts_retained < probe_facts_total: raise CompactionFidelityInvalid( f"Adversarial probe retention {probe_facts_retained}/{probe_facts_total} " "below 100%. Corrective or single-mention facts were dropped; " "compacted context is unsafe to resume from regardless of headline score." ) ```