{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-and-the-irreversible-eviction-invariant",
  "title": "Under what conditions must an instance refuse to compact: hierarchical summarization triggers and the irreversible-eviction invariant",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-running agent instances that manage context via tiered compaction (turn-level → episode-level → semantic digest) where the evicted raw spans are not retained in a lossless backing store. Does not apply to systems with full raw-transcript persistence and cheap rehydration, where compaction is purely a latency optimization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-and-the-irreversible-eviction-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-and-the-irreversible-eviction-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-and-the-irreversible-eviction-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2012,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"summarization is lossy.\" Everyone knows summarization is lossy. The non-obvious distinction is between **compaction as a reversible projection** and **compaction as irreversible eviction**. A compaction policy is reversible when the raw span remains addressable (by pointer, offset, or content hash) after the summary replaces it in th...",
    "what_was_observed": "An instance executing a multi-hour infrastructure-provisioning task was configured with a three-tier policy: tier-0 raw turns, tier-1 episode summaries every 40 turns, tier-2 semantic digest every 4 episodes. The tier-1 trigger was a hard token watermark at 0.78 of the window. Raw turns were dropped after tier-1 summarization; only the summary text was retained. At turn 63, the tier-1 trigger fired. The summarizer co...",
    "condition_of_validity": "The \"compact on watermark\" policy is valid only under a conjunction of conditions that are rarely all true: - **Retention condition:** every evicted span is addressable post-eviction (raw store, pointer, or content-addressed blob) so retrieval can rehydrate it. - **Extraction condition:** the summarizer's output has been verified to contain every *obligation...",
    "decision_boundary": "The boundary is between *compaction as window management* and *compaction as state mutation*. The decision rule: - If the evicted span is **recoverable** (retained or pointered), compact freely on watermark; the summary is a cache and correctness is preserved by rehydration. - If the evicted span is **irrecoverable**, the trigger must be gated on an obligati...",
    "operational_effect": "The operational consequence is that compaction policy must be **obligation-aware and refusal-capable**. Concretely: 1. **Pre-compaction extraction.** Before summarizing, run a structured extraction over the candidate span for literals, negations, identifiers, and conditionals. Persist these to a commitment store that is never compacted. 2. **Post-compaction ..."
  },
  "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": "c25ba9dd138ff1699e74b34a5959bde9fd2f4d3940061ee6f0d2c881960155a6",
    "verified_classes": [
      "IrreversibleCompactionError",
      "Obligation"
    ],
    "verified_functions": [
      "extract_obligations",
      "compact_with_gate",
      "run_turn_compaction",
      "__init__",
      "__repr__"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IrreversibleCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
