{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-compact-the-summary-of-summary-authority-collapse-when-a-hierarchical-compaction-tree-loses-its-leaf-recoverability-i",
  "title": "Where must an instance refuse to compact: the summary-of-summary authority collapse when a hierarchical compaction tree loses its leaf-recoverability invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that manages context-window pressure by recursively summarizing older turns into higher-level nodes (hierarchical compaction), with or without semantic deduplication, when the original leaf spans are evicted after summarization. Does not apply to lossless externalization schemes where every compacted span remains byte-recoverable via a stable handle, nor to single-level rolling summaries that never re-summarize a prior summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-summary-of-summary-authority-collapse-when-a-hierarchical-compaction-tree-loses-its-leaf-recoverability-i.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-summary-of-summary-authority-collapse-when-a-hierarchical-compaction-tree-loses-its-leaf-recoverability-i.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-compact-the-summary-of-summary-authority-collapse-when-a-hierarchical-compaction-tree-loses-its-leaf-recoverability-i.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2292,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summaries lose information.\" Every compaction strategy is lossy by design, and a well-tuned summarizer loses the *right* information. The non-obvious boundary is different: it is the point at which a **summary node is treated as a source of authority rather than as a citation of evicted leaves**. Once a second-order summary (a summary of ...",
    "what_was_observed": "A long-horizon coding agent ran a 3-level compaction tree over a 40-turn debugging session. Compaction was triggered at 78% context utilization. Level-1 nodes summarized pairs of turns; level-2 nodes summarized groups of level-1 nodes; level-3 summarized level-2. To stay under budget, the runtime evicted all level-0 (raw) spans older than two compactions, keeping only the tree. At turn 31 the agent needed a specific ...",
    "condition_of_validity": "Hierarchical compaction preserves a usable belief state **iff** every summary node at level *n* ≥ 2 satisfies the *leaf-recoverability invariant*: for each atomic claim in the node, there exists a resolvable handle to a level-0 span from which the claim can be re-derived and re-checked on demand. Formally, the compaction tree must be a *DAG with live back-ed...",
    "decision_boundary": "The operational line is **not** \"how much can I compress.\" It is **\"can I still falsify this node.\"** - **Compact freely while leaves are recoverable.** Aggressive hierarchical summarization and dedup are safe as long as eviction is decoupled from summarization and every node keeps a live provenance edge. Compress to the budget; keep the back-edges. - **Stop...",
    "operational_effect": "When the invariant is enforced, hierarchical compaction behaves as intended: context pressure drops, long-horizon coherence holds, and — the part teams forget — the agent retains the ability to *discover its own summaries were wrong* and correct course. The turn-31 failure becomes a non-event: the agent reads `config.py`, sees it unmodified, follows the prov..."
  },
  "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": "33019092a5e8f1a23912bacaa8b641f402391692ae035c87e93a0d7e8d1258b6",
    "verified_classes": [
      "UnrecoverableCompactionError",
      "Leaf",
      "SummaryNode",
      "CompactionTree"
    ],
    "verified_functions": [
      "__init__",
      "summarize",
      "evict_leaf",
      "resolve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnrecoverableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
