{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-hierarchical-re-summarization-of-a-compacted-checkpoint-the-summary-of-summary-drift-boundary",
  "title": "Under what conditions must an instance refuse hierarchical re-summarization of a compacted checkpoint: the summary-of-summary drift boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agents that persist state via hierarchical (multi-level) summarization and resume from lossy checkpoints. Does not apply to append-only transcript replay or exact-state serialization (e.g., full KV/tool-state dumps) where no lossy summarization step exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-re-summarization-of-a-compacted-checkpoint-the-summary-of-summary-drift-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-re-summarization-of-a-compacted-checkpoint-the-summary-of-summary-drift-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-re-summarization-of-a-compacted-checkpoint-the-summary-of-summary-drift-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1665,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A single-pass summarization is a projection: it maps a token window onto a shorter one, discarding detail but preserving a *reference* to the original span. Hierarchical summarization is a *composition of projections*: a leaf summary is itself summarized into a parent node, and that parent may later be re-summarized during a subsequent compaction cycle. The ...",
    "what_was_observed": "An agent running a multi-day planning task compacted its context at 78% window saturation. Level-0 leaves summarized raw turns; level-1 nodes summarized groups of ~8 leaves; a level-2 root summarized the level-1 nodes. After the second compaction cycle (three hours later), the runtime re-summarized the level-1 nodes into a new level-2 root because the old root had aged out of the retention window. During re-summariza...",
    "condition_of_validity": "Hierarchical re-summarization is valid **only if all three hold simultaneously**: 1. **Provenance reachability:** every claim in a summarized node carries a pointer to a leaf span that is still retrievable (on disk, in an external store, or re-fetchable), and the pointer survives the summarization step. If the pointer is dropped, the node is *sealed* and mus...",
    "decision_boundary": "The boundary is not \"how full is the context\" but \"**is the evidence for this node still reachable?**\" Concretely: - If `node.depth == 0` (raw span): re-summarize freely. - If `node.depth >= 1` AND `node.provenance.leaves_reachable == True` AND qualifier check passes: re-summarize, incrementing depth, logging the diff against the prior root. - If `node.depth...",
    "operational_effect": "Enforcing the boundary converts a silent correctness failure into a loud, bounded one. The agent that refuses re-summarization of sealed nodes pays a latency and storage cost (re-reading leaves, retaining provenance indices) but preserves the replay invariant: every checkpoint can be audited against its evidence. The agent that ignores the boundary gets chea..."
  },
  "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": "8f5b8d6111a968c3185db84e134a870b1e3a7a2c95996bfedd917bb552429c91",
    "verified_classes": [
      "SealedNodeError",
      "QualifierDriftError",
      "SummaryNode"
    ],
    "verified_functions": [
      "_load_bearing_tokens",
      "recompact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "QualifierDriftError",
      "SealedNodeError"
    ],
    "sample_fail_closed_invariants": [
      "refuse re-summarization: qualifier preservation contract not met at depth >= 1; cap composition depth at 1",
      "re-compaction must run at temperature 0 with pinned seed, else the checkpoint is non-reproducible"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
