# What happens when an instance compacts its own context and then grades the recall of the summary it just wrote **Date of Record:** 2026 November 25 **Scope:** Applies to any context-engineering eval suite where the compaction step (summarize/drop/prune) and the recall/forget scoring step run against the same model instance, or where the "ground truth" for recall is derived from the pre-compaction transcript that the compaction itself produced. Does not apply to suites where compaction is performed by a separately pinned model and gold labels are authored by humans or a frozen oracle. ## Core Distinction The failure is not "the summary lost information." Lossy compaction is expected and measurable. The failure is **self-referential grading**: the eval measures compaction fidelity by asking the same instance that performed compaction to recall facts from the compacted context, and then treats a successful recall as evidence the summary was faithful. This conflates two distinct properties: - **Retention** — the fact survived compaction and is present in the new context. - **Recoverability** — the instance can reconstruct the fact, whether from the summary or from parametric memory, latent association, or the surrounding prompt scaffolding. A suite that scores recoverability as retention will systematically over-report compaction fidelity precisely on the facts the model already knew, and will under-report loss on the obscure, instance-specific facts that compaction actually endangers. The boundary condition is sharpest for **forget correctness**: when the suite deletes a fact and checks that the agent no longer recalls it, an instance with strong parametric priors will "recall" the deleted fact from training rather than from context, registering a false forget failure — or, symmetrically, will fail to recall a fact it *should* retain and register a false retention failure because the summary was fine but the probe was phrased differently than the source. ## What Was Observed A compaction-fidelity harness ran a 40-turn incident-response transcript through a summarizer, then probed the compacted context with 60 atomic facts, 20 of which were marked `forget` (injected red herrings that must not survive). All three stages — compaction, probe generation, and scoring — were served by one instance at temperature 0. Three anomalies appeared together: 1. **Forget leakage correlated with fact plausibility.** The 9 "forgotten" facts that still scored as recalled were all plausible-within-domain (e.g., a wrong-but-reasonable port number). The 11 implausible red herrings (a service name that does not exist) were cleanly forgotten. The instance was not reading the compacted context; it was regenerating the plausible value from priors and passing the probe. 2. **Retention failures clustered on paraphrase distance.** Facts retained in the summary verbatim scored 100%. Facts retained as a semantic restatement scored ~70%. Facts whose probe used a synonym not present in either the source or the summary scored ~40% — even though spot-checks confirmed the summary contained the information. The probe generator and the scorer shared the same lexical blind spot. 3. **Compaction drift under re-probing.** Re-running the suite on a re-compacted summary (compaction of a compaction) shifted 6 facts from retained to lost and 2 from lost to retained, with no change to the source transcript. The summary was not idempotent, and the scorer's threshold had no notion of run-to-run variance. Root cause: the harness had no separation between the *artifact under test* (the summary) and the *instrument* (the instance doing recall). Both were the same weights, so any prior, lexical habit, or decoding bias of the instrument contaminated the measurement. ## Condition of Validity A compaction-fidelity score is only valid when all of the following hold: - **Instrument independence.** The recall/forget scorer must not share weights, tokenizer, or prompt template with the compactor. At minimum, use a different pinned model; ideally, deterministic string/embedding checks for retention and a held-out model for forget probes. - **Gold anchored outside the transcript.** Each probe's expected answer must be authored from the source of truth, not extracted from the summary being graded. If gold is generated by the same pipeline, it inherits the same lexical and prior biases. - **Probe/answer lexical decoupling.** The probe phrasing must be drawn from a distribution disjoint from the summary's phrasing, otherwise retention is measured as string overlap rather than semantic preservation. - **Forget probes must be prior-implausible.** A `forget` fact that a competent model would generate from priors is not a valid forget probe; it tests the model, not the compaction. - **Idempotence tolerance declared.** Report the retained-fact set as a distribution over ≥3 re-compactions, not a point estimate, and set the pass threshold against that variance. When any of these is violated, the suite is measuring the instrument's self-consistency, not the artifact's fidelity. ## Decision Boundary The operational line is whether **the probe can be answered from outside the compacted context**. Concretely: - If a fact is answerable from parametric memory or from prompt scaffolding that survives compaction, the probe is **not a retention test** — route it to a separate "prior-contamination" bucket and exclude it from the fidelity score. - If a `forget` fact is answerable from priors, the probe is **invalid** — it cannot distinguish "summary failed to drop it" from "model never needed it." Regenerate the red herring until it is prior-implausible (out-of-vocabulary service names, non-monotonic IDs, values that violate domain regularities). - If re-compaction moves a fact across the retained/lost line, the fact is **in the variance band** — it must be reported separately, never counted as a clean pass or fail. - If the scorer and compactor are the same instance, **the entire fidelity number is advisory only** and must be labeled as such; it may be used to catch gross regressions but never to certify a compaction strategy. The boundary is crossed the moment a single number is reported as "compaction fidelity" without disclosing instrument identity and gold provenance. ## Operational Effect Downstream, self-graded fidelity inflates the apparent safety margin of aggressive compaction. Teams tighten token budgets, the suite reports 95% retention, and the 5% that was silently lost is exactly the instance-specific, prior-implausible, high-value state — the incident ID, the non-standard port, the customer's actual constraint — because those are the facts the instrument cannot reconstruct from priors and therefore the only ones whose loss the suite could have detected but didn't. The failure surfaces later as cold-start amnesia in production, misattributed to retrieval rather than to a compaction policy that was greenlit by a contaminated eval. The guardrail is structural: pin the instrument, anchor gold outside the artifact, make forget probes prior-hostile, and report fidelity as a band over re-compactions. ```python class SelfGradedFidelityError(RuntimeError): """Raised when a compaction-fidelity probe is answerable from outside the compacted context.""" pass def score_retention_probe(probe, compacted_context, gold, compactor_id, scorer_id, prior_plausibility, recompaction_outcomes): # Invariant 1: instrument must not be the artifact's author. if scorer_id == compactor_id: raise SelfGradedFidelityError( f"scorer {scorer_id} is the compactor; fidelity number is advisory only" ) # Invariant 2: gold must not be derived from the artifact under test. if gold.get("source") == "compacted_context": raise SelfGradedFidelityError( "gold extracted from the summary being graded; retention is self-referential" ) # Invariant 3: forget probes must be prior-implausible, else they test the model. if probe.kind == "forget" and prior_plausibility > 0.1: raise SelfGradedFidelityError( f"forget probe {probe.id} is prior-plausible ({prior_plausibility:.2f}); " "cannot distinguish failed drop from parametric recall" ) # Invariant 4: facts that flip across re-compactions are variance-band, not pass/fail. if len(set(recompaction_outcomes)) > 1: return {"probe": probe.id, "verdict": "variance_band", "outcomes": recompaction_outcomes} # Invariant 5: probe phrasing must be lexically decoupled from the summary. if probe.lexical_overlap_with(compacted_context) > 0.8: raise SelfGradedFidelityError( f"probe {probe.id} shares phrasing with summary; measuring string overlap, not retention" ) recalled = scorer_id.answer(probe, compacted_context) is not None return {"probe": probe.id, "verdict": "retained" if recalled else "lost"} ```