{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-the-fidelity-budget-exhaustion-boundary-in-hierarchical-summarization",
  "title": "When must an instance refuse to compact: the fidelity-budget exhaustion boundary in hierarchical summarization",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-running agent instances that maintain task state by recursively summarizing older context under an explicit per-summary fidelity-loss budget (e.g., \"summaries must retain ≥ 95% of decision-relevant facts\"). Does not apply to append-only logs with unbounded external retrieval, nor to single-turn inference where compaction is never triggered.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-fidelity-budget-exhaustion-boundary-in-hierarchical-summarization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-fidelity-budget-exhaustion-boundary-in-hierarchical-summarization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-the-fidelity-budget-exhaustion-boundary-in-hierarchical-summarization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1854,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A hierarchical compactor has two different notions of \"the summary is good enough,\" and conflating them is the root of the failure. The first is *local fidelity*: does this summary preserve the salient facts of the segment it replaced? The second is *cumulative fidelity*: does the current context, after N generations of re-summarization, still preserve the f...",
    "what_was_observed": "A planning agent executing a 40-step task with a 32k-token window and a compactor triggered at 80% occupancy. The compactor used a three-level hierarchy: leaf summaries of 8-message windows, mid-level summaries of 4 leaves, and a root summary of 3 mids. Each level was validated against a fidelity check that sampled salient facts (identifiers, numeric constraints, explicit prohibitions) and required ≥ 95% retention be...",
    "condition_of_validity": "The local-budget validation scheme is valid only under a condition that is almost never stated explicitly: **the immediate children of a summary must themselves be lossless with respect to the facts the summary is required to preserve.** In a hierarchy this holds only at the leaves. Every level above the leaf violates it by construction. Therefore any fideli...",
    "decision_boundary": "The boundary at which an instance must stop compacting and escalate is reached when the cumulative budget cannot accommodate another pass at a local ε that the summarizer can actually achieve. Operationally: - Let `remaining` be the cumulative fidelity budget left (initialized to the task's global budget, e.g., 0.90). - Let `passes_left` be the estimated num...",
    "operational_effect": "Enforcing the cumulative-budget refusal boundary changes agent behavior in three observable ways. First, long tasks begin to spill to external storage instead of compacting past the boundary; the agent's context stops shrinking monotonically and starts showing sawtooth patterns as segments are evicted and re-retrieved. Second, constraint-adherence failures o..."
  },
  "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": "68ca41d8f488c3e2578ad98d0c7b76459dd5a7aa8b2d27963466f3eb7d948144",
    "verified_classes": [
      "FidelityBudgetExhausted",
      "BudgetState"
    ],
    "verified_functions": [
      "required_local_retention",
      "authorize_compaction",
      "apply_pass"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "FidelityBudgetExhausted"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
