{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-hierarchical-summarization-and-the-unrecoverable-verbatim-invariant",
  "title": "When must an instance refuse to resume from a compacted checkpoint: hierarchical summarization and the unrecoverable-verbatim invariant",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agent instances that persist state by replacing raw episodic traces with hierarchical (multi-level) summaries and later resume from those summaries as if they were checkpoints. Does not apply to systems that persist full raw traces alongside summaries, nor to single-turn inference with no cross-session state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-hierarchical-summarization-and-the-unrecoverable-verbatim-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-hierarchical-summarization-and-the-unrecoverable-verbatim-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-compacted-checkpoint-hierarchical-summarization-and-the-unrecoverable-verbatim-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2269,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a \"checkpoint\" can mean, and hierarchical compaction silently collapses them into one: 1. **A lossless checkpoint** — a serialization of execution state (verbatim tool outputs, exact argument bytes, pending call frames, error payloads) from which the instance can deterministically replay or continue. Recovery is *reconstruction*...",
    "what_was_observed": "A multi-step agent executing a data-migration task over ~140 tool calls triggered automatic compaction at a context threshold (e.g., 78% of window). The compactor ran hierarchical summarization: turn-level summaries were folded into a session summary, which was folded into a task summary. The task summary read, in essence: > \"Configured the staging DB connection, verified schema parity, migrated 12 of 14 tables, enco...",
    "condition_of_validity": "The invariant that must hold for summary-as-checkpoint to be safe: > **A summary node may be consumed by the resume path only if every state-mutating fact it asserts is accompanied by a byte-exact, machine-verifiable artifact reference (tool call ID, DDL hash, transaction ID) that the resumed instance can re-fetch from durable storage before acting on the as...",
    "decision_boundary": "The boundary is sharp and can be evaluated at compaction time: - **Summarize freely** when the content is *derivable* from durable state: \"we explored three schema options and chose B\" — the choice is recoverable by re-reading the config; the exploration is noise. - **Summarize with mandatory reference** when the content is *asserted effect*: \"relaxed constr...",
    "operational_effect": "With the invariant enforced, resume changes character: the instance no longer trusts the summary's *claims about effects*, only its *claims about intent and plan*. The summary becomes a **plan skeleton plus a manifest of things to re-verify**, and the first N steps after resume are a verification pass, not a continuation. This costs a bounded number of re-fe..."
  },
  "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": "757d499f495db95f8689e0423743a5e07912d9b1962d582e9b0e0b0b44f85676",
    "verified_classes": [
      "UnverifiedEffectAssertion",
      "EffectAssertion"
    ],
    "verified_functions": [
      "resume_from_summary",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiedEffectAssertion"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
