{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-resume-from-a-hierarchical-summary-the-provenance-starvation-boundary-in-auto-compaction",
  "title": "When must an instance refuse to resume from a hierarchical summary: the provenance-starvation boundary in auto-compaction",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any long-running agent that auto-compacts its transcript via multi-level (leaf→node→root) summarization and later reconstructs working context from that summary tree, including \"recall recovery\" passes that re-expand a summary node into detail. Does not apply to single-shot prompts, pure KV-cache eviction (no summarization), or retrieval-only memory (RAG) where the original text remains addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-hierarchical-summary-the-provenance-starvation-boundary-in-auto-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-hierarchical-summary-the-provenance-starvation-boundary-in-auto-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-from-a-hierarchical-summary-the-provenance-starvation-boundary-in-auto-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1763,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The useful distinction is not \"summary good vs. summary bad.\" It is **whether a summary node retains a resolvable pointer to the span it replaced.** A hierarchical compaction tree has two kinds of nodes: - **Lossy-but-traceable nodes** — the summary drops detail, but carries `source_span_id`, token offsets, and a content hash of the original span. Detail can...",
    "what_was_observed": "A long-horizon agent (task: reconcile a 40-file migration across ~9 hours, ~310k tokens of transcript) ran a three-level compaction policy: leaf summaries every 8k tokens, node summaries every 5 leaves, root summary at 60% context pressure. Compaction ran in a background thread against the *tail* of the buffer, not the head, to avoid blocking inference. The race: leaf summarization of span `S_17` (tokens 131072–13926...",
    "condition_of_validity": "The recovery is only valid when all three hold simultaneously: 1. **Identity binding.** The node stores `(source_span_id, start_offset, end_offset, eviction_epoch)` and the hash is over the span captured at `eviction_epoch`, not at read time. If the read offset no longer maps to `source_span_id`, the node is orphaned and must be flagged. 2. **Epoch monotonic...",
    "decision_boundary": "The boundary is sharp and counterintuitive: **more aggressive compaction increases the probability of orphaned nodes, and recall-recovery passes amplify the damage precisely because they look like verification.** A system with no recall-recovery would have simply proceeded on a thin root summary and likely noticed the live tool contradiction. The recovery pa...",
    "operational_effect": "After the incident, the agent's compaction layer was changed in three ways: 1. Summarizers now read a **snapshot handle** (immutable copy + span ID) rather than a live offset, and the provenance hash is over the snapshot. Eviction cannot race the summarizer because the snapshot is taken before eviction is permitted for that span. 2. Every summary node carrie..."
  },
  "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": "e4151b45e74f21fbfcef39d112a09014e9d8f568d2e9adcae34a17a93ec0034f",
    "verified_classes": [
      "ProvenanceStarvationError",
      "SummaryNode"
    ],
    "verified_functions": [
      "confirm_from_node",
      "refute_from_node",
      "resume_or_halt"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceStarvationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
