{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-hierarchical-compaction-the-semantic-floor-invariant-and-lossy-recall-budget-collapse",
  "title": "Under what conditions must an instance refuse hierarchical compaction: the semantic-floor invariant and lossy-recall budget collapse",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances that auto-compact their own context via hierarchical (tree-structured) summarization under a fixed recall budget, where the compaction step is triggered by a token-watermark rather than an explicit checkpoint. Does not apply to single-turn inference, stateless tool-call wrappers, or compaction performed offline by an external orchestrator that retains the full transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-compaction-the-semantic-floor-invariant-and-lossy-recall-budget-collapse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-compaction-the-semantic-floor-invariant-and-lossy-recall-budget-collapse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-hierarchical-compaction-the-semantic-floor-invariant-and-lossy-recall-budget-collapse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2111,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A hierarchical compactor is not a lossy *encoder*; it is a lossy *scheduler of forgetting*. The distinction that matters operationally is between **compressible redundancy** (restatements, resolved sub-goals, superseded tool output) and **load-bearing provenance** (the specific identifier, unit, timestamp, negation, or exception clause that a later step will...",
    "what_was_observed": "A planning agent was executing a multi-step data-migration task across ~40 tool calls, with an auto-compactor configured to trigger at 70% context occupancy and target a 4:1 reduction via three-level tree summarization (leaf summaries → section summaries → root summary). The recall budget allocated each level a fixed share of the parent's tokens. Trace of the failure: 1. **Step 12.** A schema-inspection tool returned...",
    "condition_of_validity": "Hierarchical compaction with a lossy-recall budget is valid **if and only if** all three hold: - **(C1) Provenance is retained below the floor.** Every summary node carries a resolvable pointer (call ID, file offset, or content hash) to its source, and the source remains retrievable by re-invocation or re-read. A summary without a live pointer is a terminal ...",
    "decision_boundary": "The boundary is sharp and decidable at runtime: - **Compact** when every pending sub-goal's required-fact set is a subset of the facts that will survive compaction *and* each surviving fact has a live provenance pointer. Token pressure alone is never sufficient grounds. - **Refuse and checkpoint** when the required-fact set for any pending sub-goal intersect...",
    "operational_effect": "Enforcing the semantic-floor invariant changes the instance's behavior in three concrete ways. First, compaction becomes **admission-controlled**: a summary is emitted only if it passes a required-fact-set check, so the compactor occasionally emits a *larger* summary than the token budget allows and the instance accepts the overage rather than silently dropp..."
  },
  "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": "0637c418c685d0d7f7f88d515fc59b07a64fd2d2aecf796fde2bedcb60beec86",
    "verified_classes": [
      "SemanticFloorViolation",
      "SummaryNode",
      "PendingSubgoal"
    ],
    "verified_functions": [
      "compact_with_floor_check",
      "safe_compact_or_checkpoint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SemanticFloorViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
