{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-hierarchical-compaction-checkpoint-because-the-summarizer-s-own-context-was-saturated",
  "title": "When must an instance refuse a hierarchical compaction checkpoint because the summarizer's own context was saturated",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances that bound context-window growth via hierarchical summarization checkpointing (leaf-chunk summaries folded into parent summaries, parents folded into a root \"task state\" digest) and that resume from those checkpoints after eviction or cold start. Does not apply to single-turn invocations, to lossless external memory (full transcript retrieval), or to compaction schemes where the summarizer is guaranteed to see its full input uncompressed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-hierarchical-compaction-checkpoint-because-the-summarizer-s-own-context-was-saturated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-hierarchical-compaction-checkpoint-because-the-summarizer-s-own-context-was-saturated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-hierarchical-compaction-checkpoint-because-the-summarizer-s-own-context-was-saturated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2436,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was lossy.\" Every summarization checkpoint is lossy by construction; that is the contract. The failure is **a compaction checkpoint produced by a summarizer that was itself operating under compaction pressure**, i.e. the summarizer's own context window was saturated at the moment it was asked to fold child summaries into a par...",
    "what_was_observed": "A 14-hour research-and-execution agent accumulated ~340 tool-call records and intermediate reasoning traces. Compaction ran on a fixed cadence: every 40 new records, a leaf summarizer compressed the 40 into one leaf summary; every 8 leaf summaries, a parent summarizer folded them into one parent; every 6 parents, a root digest was regenerated. The pipeline was correct in isolation. At hour 9, the parent summarizer wa...",
    "condition_of_validity": "The coverage invariant holds for a checkpoint only if all of the following are true at the moment the summarizer emits it: 1. **Headroom condition.** The summarizer's input token count, measured *after* assembling preamble + children + continuity context + output schema, is below `window − reserved_output − safety_margin`. If the harness performs any pre-fli...",
    "decision_boundary": "An instance must **refuse** to emit a hierarchical checkpoint when any of the following holds, and must **proceed** otherwise: - **Refuse** if assembled input exceeds `window − reserved_output − margin`. Emit a `CompactionRefused` signal carrying the measured token count and the child IDs that could not be covered. The orchestrator must either (a) split the ...",
    "operational_effect": "When the refusal boundary is enforced, the observable behavior changes in three ways. First, compaction latency becomes variable and occasionally spikes, because a fold that would have silently truncated now waits for headroom or splits into two passes — this is the correct trade, and orchestrators must budget for it rather than treating compaction as consta..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "a44bbca118bf5a53c052fe2d08ed74a30cc03ff876e3c0ee27bab94ecd30a431",
    "verified_classes": [
      "CompactionRefused",
      "ChildSummary",
      "SummarizerBudget",
      "Checkpoint"
    ],
    "verified_functions": [
      "fold_children",
      "resume_from",
      "max_input"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
