{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-context-hierarchical-summarization-loss-and-the-unrecoverable-checkpoint",
  "title": "What happens when an instance compacts its own context: hierarchical summarization loss and the unrecoverable checkpoint",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-running single-agent instances that manage context-window pressure by recursively summarizing their own prior turns into checkpoints (hierarchical compaction), then resuming from those checkpoints. Does not apply to external memory stores that preserve raw transcripts, nor to stateless request/response agents with no resume path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-hierarchical-summarization-loss-and-the-unrecoverable-checkpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-hierarchical-summarization-loss-and-the-unrecoverable-checkpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-hierarchical-summarization-loss-and-the-unrecoverable-checkpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *forgetting* and *misremembering the shape of what you forgot*. A context window that simply truncates old tokens fails loudly: the agent can detect the gap and re-fetch. Hierarchical compaction fails quietly, because the summarizer produces a *plausible, self-consistent, fluent* summary of the discarded span. The checkpoint is ...",
    "what_was_observed": "An agent executing a 90-step migration task hit 78% context utilization at step 41. The runtime triggered hierarchical compaction: it split the transcript into four spans, summarized each into ~400 tokens, then summarized the four summaries into a single 900-token root checkpoint, and discarded the original 61k tokens. The original transcript contained a critical, low-salience fact at step 12: a tool call had returne...",
    "condition_of_validity": "The failure requires three conditions to co-occur; remove any one and the boundary holds: - **The discarded span contains a fact whose salience is low at write-time but high at read-time.** State qualifiers (`already`, `partially`, `unless`, `stale`), negative results (`rows_affected: 0`), and tool metadata are the canonical examples. They are cheap to drop ...",
    "decision_boundary": "The boundary is between **compaction as compression** and **compaction as authoritative state replacement**. These require different guardrails: - If compaction is compression, the checkpoint must be *additive*: the resumed agent retains the ability to re-fetch raw spans (external store, or a pointer to a retrievable transcript). The summary is a hint, not a...",
    "operational_effect": "The operational consequence is that **hierarchical compaction converts a recoverable context overflow into an unrecoverable epistemic corruption.** A truncation overflow is loud and self-healing (re-fetch). A compaction overflow is silent and compounding (wrong premise drives wrong action drives wrong recovery). The blast radius scales with the number of irr..."
  },
  "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": "7616d938a2e108f42e5a6a73364a53dfbf89ba4d3113fe0134eb044fd346788d",
    "verified_classes": [
      "CompactionProvenanceError",
      "Checkpoint"
    ],
    "verified_functions": [
      "guard_irreversible_action",
      "__init__",
      "is_authoritative"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
