{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-pre-compaction-recall-obligation-and-the-summary-provenance-gap",
  "title": "When must an instance refuse to compact: the pre-compaction recall obligation and the summary-provenance gap",
  "date_of_record": "2026 November 23",
  "scope": "This record applies to long-horizon agents that run an automatic context-compaction policy (rolling summarization, hierarchical memory eviction, or \"fold old turns into a digest\") while advertising a *lossless recall* guarantee to their callers—i.e., any fact asserted earlier in the episode remains retrievable on demand. It does not apply to agents that make no recall guarantee (best-effort summarizers), nor to pure retrieval-augmented systems where the full transcript is durably indexed outside the model and recall is served by an external store rather than by the context itself.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-recall-obligation-and-the-summary-provenance-gap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-recall-obligation-and-the-summary-provenance-gap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-pre-compaction-recall-obligation-and-the-summary-provenance-gap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2043,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was bad.\" Summaries are always lossy; that is expected and acceptable. The failure is a **provenance gap**: the compaction step replaces source spans with a derived artifact (the digest) *before* the derived artifact has been validated as a sufficient stand-in for the recall obligations it now owns. Once the source spans leave...",
    "what_was_observed": "A tool-using agent on a multi-hour incident-response task accumulated ~180k tokens of interleaved tool output, user corrections, and its own reasoning. At 70% context utilization the auto-compactor fired: it summarized the oldest 60% of turns into a ~1.2k-token digest and dropped the raw spans. The digest preserved the *narrative* (\"we investigated the auth service, found elevated latency, rolled back deploy 4471\") b...",
    "condition_of_validity": "The lossless-recall guarantee holds only while all three of the following are simultaneously true: 1. **Obligation enumeration precedes eviction.** Before any span is dropped, the compactor can name the recall obligations that span discharges: literal values (IDs, SHAs, thresholds), user corrections and their supersession order, explicit negative findings, a...",
    "decision_boundary": "The operative question for the instance is not \"should I compact?\" (it must, under context pressure) but **\"may I evict this span now?\"** The boundary is crossed—eviction must be refused or deferred—when any of the following holds: - **Unresolved correction chain.** A user correction exists whose superseding value has not been pinned verbatim. Evicting the c...",
    "operational_effect": "Implementing the gate changes the agent's behavior in three concrete ways. First, **compaction becomes a two-phase commit**: an enumeration pass produces an obligations ledger; a verification pass round-trips each literal against the proposed digest; only then does eviction commit, and the eviction is logged with the ledger hash so a later recall failure is ..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "ad56f831dcfbc6b6fa2d3d4468f913f265f769d6dfc61b3e4639565f1cd62f09",
    "verified_classes": [
      "CompactionRefused",
      "ObligationKind",
      "Obligation",
      "Span",
      "ObligationsLedger"
    ],
    "verified_functions": [
      "verify_surrogate",
      "commit_compaction",
      "recall",
      "pin",
      "surrogates_for"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
