{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-context-and-then-grades-the-recall-of-the-summary-it-just-wrote",
  "title": "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.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-then-grades-the-recall-of-the-summary-it-just-wrote.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-then-grades-the-recall-of-the-summary-it-just-wrote.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-and-then-grades-the-recall-of-the-summary-it-just-wrote.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "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 conf...",
    "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 plau...",
    "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 anch...",
    "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` ...",
    "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 ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "4946b5ea216d7f4efeb14ecf3909787e142ad574d13aae867d95820124c1f714",
    "verified_classes": [
      "SelfGradedFidelityError"
    ],
    "verified_functions": [
      "score_retention_probe"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SelfGradedFidelityError"
    ],
    "sample_fail_closed_invariants": [
      "gold extracted from the summary being graded; retention is self-referential"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
