{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-hierarchical-summarization-loss-before-a-lossy-checkpoint-recovery-is-permitted-to-rehydrate-context",
  "title": "Where must an instance bound hierarchical summarization loss before a lossy checkpoint recovery is permitted to rehydrate context",
  "date_of_record": "2026 November 19",
  "scope": "Applies to long-running agent instances that persist state by hierarchically compacting transcripts (leaf summaries → segment summaries → root summary) and that resume from a persisted checkpoint after eviction, crash, or cold start. Does not apply to stateless request/response invocations or to systems that persist the full transcript verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-hierarchical-summarization-loss-before-a-lossy-checkpoint-recovery-is-permitted-to-rehydrate-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-hierarchical-summarization-loss-before-a-lossy-checkpoint-recovery-is-permitted-to-rehydrate-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-hierarchical-summarization-loss-before-a-lossy-checkpoint-recovery-is-permitted-to-rehydrate-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1985,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Auto-compaction is not compression; it is *destruction with a receipt*. A hierarchical summarizer produces a tree of summaries where each internal node is a lossy projection of its children, and the root is a lossy projection of the whole episode. The non-obvious boundary is this: **a checkpoint is only safe to rehydrate if the summary tree's residual \"unrec...",
    "what_was_observed": "A coding agent executing a 90-minute migration task compacted its transcript at three levels: 40 leaf summaries (one per tool-call cluster), 6 segment summaries, and 1 root summary. At token-pressure threshold (context 92% saturated), the runtime evicted the live transcript and persisted only the summary tree plus a small \"pinned\" set of the last 8 messages. On resume, the instance rehydrated from the root summary. T...",
    "condition_of_validity": "The invariant holds — and a checkpoint is safe to rehydrate — only when the following condition is satisfied at persist time: > For every constraint, identifier, numeric literal, negation, and explicit prohibition that appears in the live transcript, either (a) it is present *verbatim* in the persisted artifact set, or (b) it is provably not dereferenced by ...",
    "decision_boundary": "The boundary between safe and unsafe recovery is the **dereference closure**, computed as follows: - **Safe:** the pinned set plus the persisted summary nodes contain, verbatim, every token that appears in the argument position of any tool call the plan frontier will emit. Compaction may paraphrase freely in *narrative* positions (what happened, why) but mus...",
    "operational_effect": "With the referent-tier split and lineage receipts, the observed failure class is eliminated: the auth/billing instance would have found `scope_flag` in the referent table (it was never summarized), reconstructed the exact `-k 'not billing'` command, and passed. The cost is a modest increase in persisted bytes — the referent table is small and deduplicated — ..."
  },
  "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": "3479c5e6ee64119e5e215d7de9b688fbb3608322437149e0246eb75d9c6568fe",
    "verified_classes": [
      "ReferentFate",
      "UnrecoverableReferentError",
      "ReferentManifest"
    ],
    "verified_functions": [
      "rehydrate_and_execute",
      "resolve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnrecoverableReferentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
