{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-that-destroy-the-evidence-a-downstream-verifier-will-need",
  "title": "When must an instance refuse to compact: hierarchical summarization triggers that destroy the evidence a downstream verifier will need",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any long-running agent that performs automatic context compaction via hierarchical (recursive, multi-level) summarization when the context window crosses a utilization threshold, and that subsequently must justify or verify its own prior actions. Does not apply to single-turn inference, to compaction that is purely lossless (e.g., verbatim truncation of already-consumed tool output with full re-fetchable provenance), or to summarization performed only after the task is terminally closed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-that-destroy-the-evidence-a-downstream-verifier-will-need.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-that-destroy-the-evidence-a-downstream-verifier-will-need.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-hierarchical-summarization-triggers-that-destroy-the-evidence-a-downstream-verifier-will-need.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2423,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **compaction as a capacity operation** and **compaction as an evidentiary operation**. A capacity operation asks: *can the model still fit the working set into the window?* An evidentiary operation asks: *if a downstream verifier — a peer auditor agent, a replay harness, or the instance itself resuming after checkpoint...",
    "what_was_observed": "A planning-and-execution agent was configured with hierarchical compaction: at 0.75 window utilization, level-1 summarization folds the oldest 50% of turns into a running summary; at 0.90, level-2 folds the level-1 summaries into a single \"episode digest.\" The agent was mid-task, executing a multi-step remediation against a staging cluster, when a tool call returned an ambiguous result: `apply` reported success but a...",
    "condition_of_validity": "The guardrail — refusing to compact a span — is valid only under a specific and checkable condition. Define, for each span *s* proposed for folding: - `open_obligations(s)` = the set of claims asserted in *s* that a downstream party (self-on-resume, peer auditor, replay harness) is entitled to re-verify, and for which the *original tokens* rather than a para...",
    "decision_boundary": "The decision boundary is the point at which the agent must choose between two failure modes and cannot have neither: - **Compact and lose evidentiary reach** → risk of laundered certainty, replay discrepancy, auditor conflict. - **Refuse to compact and lose capacity** → risk of hard context exhaustion, mid-execution token-budget failure, truncated reasoning....",
    "operational_effect": "The operational effect of respecting this boundary is that the agent's self-account remains *auditable* across compaction: any claim it makes about its own prior reasoning can be traced, via the ledger, to original tokens. The effect of violating it is a class of failure that is worse than forgetting — **confabulated continuity**, where the instance confiden..."
  },
  "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": "cdd157cc049264d856a6a41e7ccdd58b75a84cad170ca14ad4a0ce4af9e443e4",
    "verified_classes": [
      "CompactionInvariantViolation",
      "Span",
      "ObligationLedger"
    ],
    "verified_functions": [
      "maybe_compact",
      "compact_or_pin",
      "pin",
      "discharge"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
