{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-compaction-irreversible-fidelity-loss-in-hierarchical-summarization-when-the-rehydration-key-set-is-not-closed-under-the",
  "title": "When must an instance refuse compaction: irreversible fidelity loss in hierarchical summarization when the rehydration key set is not closed under the summarizer's own dependencies",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that performs automatic context compaction via hierarchical summarization with a fidelity-loss budget and retrieval-backed rehydration, where the summarizer is allowed to drop spans it believes are reconstructible from external retrieval. Does not apply to lossless serialization, verbatim windowing, or systems where compaction is only ever triggered at task boundaries with no live tool state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-compaction-irreversible-fidelity-loss-in-hierarchical-summarization-when-the-rehydration-key-set-is-not-closed-under-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-compaction-irreversible-fidelity-loss-in-hierarchical-summarization-when-the-rehydration-key-set-is-not-closed-under-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-compaction-irreversible-fidelity-loss-in-hierarchical-summarization-when-the-rehydration-key-set-is-not-closed-under-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1879,
    "python_slice_tokens": 199,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing treats compaction as a lossy compression problem: you set a fidelity-loss budget (say, ≤8% of load-bearing facts dropped per level), summarize hierarchically, and rely on retrieval-backed rehydration to recover anything the summary elided. The invariant that is assumed is *reconstructibility*: if a fact is dropped from the summary, a retri...",
    "what_was_observed": "An agent executing a 40-step incident-response task (read logs → correlate service IDs → issue remediation → verify) accumulated ~118k tokens of tool output by step 22. Auto-compaction fired at 80% context fill. The hierarchical summarizer collapsed steps 1–14 into a 900-token L2 summary, then steps 1–7 into a 300-token L3 summary, each level applying a 5% fidelity-loss budget measured against the level below. At ste...",
    "condition_of_validity": "The invariant \"compaction is recoverable via rehydration\" holds **if and only if** the set of retained keys K' is closed under the dependency relation D that the summarizer used to decide what was \"redundant.\" Formally: for every fact f dropped by the summarizer, there must exist at least one retained key k ∈ K' such that k ∈ D(f) — i.e., k is a key that ret...",
    "decision_boundary": "An instance must **refuse to compact** (or must downgrade to verbatim windowing) when it cannot establish key-closure for the drop set. The operational test, run before committing a compaction: - Compute the drop set Δ (facts the summarizer intends to elide). - For each f ∈ Δ, check whether at least one retained key in K' retrieves f. - If any f ∈ Δ has no r...",
    "operational_effect": "When key-closure is enforced, two things change. First, the summarizer must emit a **key manifest** — the explicit list of identifiers it dropped — and that manifest must survive every subsequent compaction level verbatim (it is small and it is the closure witness). Second, the rehydration path must be able to *detect* an unrecoverable drop: if a query's key..."
  },
  "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": "38c256a5202167f5d26d52d77721c22c26f0310d05980d6792dfc3eef189bb66",
    "verified_classes": [
      "UnrecoverableCompactionError"
    ],
    "verified_functions": [
      "verify_key_closure",
      "rehydrate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrecoverableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
