{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-provenance-anchored-recall-invariants-under-lossy-summarization",
  "title": "When must an instance refuse to compact: provenance-anchored recall invariants under lossy summarization",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-horizon agents whose context is governed by an auto-compaction policy that replaces evicted spans with lossy LLM-generated summaries backed by a retrieval index over the original spans. Does not apply to append-only transcripts with unbounded context, nor to compaction that preserves verbatim span handles with byte-exact replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-provenance-anchored-recall-invariants-under-lossy-summarization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-provenance-anchored-recall-invariants-under-lossy-summarization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-provenance-anchored-recall-invariants-under-lossy-summarization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2266,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent can \"remember\" after compaction: a **summary claim** (a natural-language assertion the compactor produced) and a **provenance handle** (a stable pointer into the raw span store that the summarizer was required to emit alongside each claim). Most compaction implementations conflate them. The summary is trea...",
    "what_was_observed": "A long-horizon agent (≈340 tool calls, mixed file-edit and API-query workload) ran an auto-compaction policy triggered at 78% context occupancy. The compactor summarized the oldest 40% of the window into ~600 tokens and emitted a retrieval index over the evicted spans. The summarizer was *not* required to attach span IDs to individual claims; it emitted a single block-level pointer (\"see spans 0041–0188\"). The failur...",
    "condition_of_validity": "The invariant that would have prevented this: > **A summary claim may be consumed for a value-exact decision only if it carries a claim-level provenance handle, and that handle resolves to a span whose content is byte-identical to the value the decision depends on.** Formally, for each decision `d` consuming summary claim `c` with handle `h(c)`: - `h(c)` mus...",
    "decision_boundary": "The decision boundary is between *compaction that preserves falsifiability* and *compaction that preserves fluency*. Concretely: The critical row is the last one. Most retrieval-backed recall implementations guard on `len(results) > 0`. That guard is *vacuous* for value-exact decisions: it confirms the index is alive, not that the claim is true. The guard mu...",
    "operational_effect": "Enforcing claim-scoped provenance changes three things about the compaction policy, each of which is cheap at write time and expensive to retrofit: 1. **Summarizer contract.** The compactor's output schema must include, per claim, a `handle` field and an `authoritative: bool` field. Summarizers that emit prose blocks (the common case) must be wrapped in a st..."
  },
  "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": "e766391922652bb5161e92e9258a713da89a149c4b8879231a20bfe79f2b240e",
    "verified_classes": [
      "SummaryProvenanceError",
      "SummaryDriftError"
    ],
    "verified_functions": [
      "consume_claim_for_value_exact_decision"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SummaryDriftError",
      "SummaryProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
