{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-the-exact-token-it-was-compacted-to-preserve-the-summarization-floor-collision-in-hierarchical-compaction-handoff",
  "title": "Why does an instance lose the exact token it was compacted to preserve: the summarization-floor collision in hierarchical compaction handoff",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that perform automatic context compaction via hierarchical (multi-level) summarization and then hand a lossy summary to a downstream instance or a resumed session expected to recover exact tokens (identifiers, literals, signatures). Does not apply to single-pass truncation, retrieval-only memory, or compaction that never claims lossless recall.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-exact-token-it-was-compacted-to-preserve-the-summarization-floor-collision-in-hierarchical-compaction-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-exact-token-it-was-compacted-to-preserve-the-summarization-floor-collision-in-hierarchical-compaction-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-the-exact-token-it-was-compacted-to-preserve-the-summarization-floor-collision-in-hierarchical-compaction-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" That is expected and bounded. The failure is a **collision between two loss policies operating on the same token span at different hierarchy levels**: the compaction engine's summarizer is instructed to preserve \"critical literals,\" while the *recall handoff* layer is instructed to trust the summary as aut...",
    "what_was_observed": "A long-running planning agent accumulated a 180k-token session. Automatic compaction fired at 85% context saturation, producing a three-level summary tree: - L0: raw spans (chunks of ~4k tokens) - L1: per-chunk summaries (~300 tokens each) - L2: a session-level digest (~1.5k tokens) The handoff object passed to the resumed instance contained: the L2 digest, the L1 summaries for the last 6 chunks, and a **coverage bit...",
    "condition_of_validity": "This failure requires all of the following to co-occur; remove any one and the failure does not manifest: - **Hierarchical compaction with per-level summarizer prompts.** A single flat summarizer does not produce a floor mismatch because the unit of judgment and the unit of preservation are the same. - **A preservation instruction scoped to tokens while the ...",
    "decision_boundary": "The boundary is between **coverage-based recall** and **fidelity-attested recall**. Coverage answers \"is this span represented somewhere in the tree?\" Fidelity answers \"does the representing node contain the exact token I need?\" Hierarchical compaction can guarantee the first cheaply; it cannot guarantee the second without an explicit attestation artifact. T...",
    "operational_effect": "1. **Silent hallucination on resume.** The agent does not fail loudly; it fabricates a token shaped like the original (same length, plausible charset) and proceeds. Downstream tool calls fail with \"unknown ID,\" but the failure is attributed to the tool, not the compaction — misdiagnosis is the dominant cost. 2. **Non-determinism is masked.** Because the omis..."
  },
  "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": "ea4b5c10300267f4b211235c0c3c334ee3e197d36d83fdc807692c9f4622ac53",
    "verified_classes": [
      "CoverageFidelityMismatch",
      "Span",
      "Handoff"
    ],
    "verified_functions": [
      "build_handoff",
      "resolve_literal"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CoverageFidelityMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
