{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-compaction-floor-hierarchical-summary-triggers-that-fire-below-the-recovery-horizon",
  "title": "Where must an instance draw the compaction floor: hierarchical summary triggers that fire below the recovery horizon",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-running agent instances that manage their own context window via hierarchical summarization (rolling summaries, tiered digests, L1/L2/L3 compaction) governed by a token-budget trigger. Does not apply to stateless single-turn calls, nor to external memory systems where the full transcript remains retrievable verbatim after eviction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-floor-hierarchical-summary-triggers-that-fire-below-the-recovery-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-floor-hierarchical-summary-triggers-that-fire-below-the-recovery-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-floor-hierarchical-summary-triggers-that-fire-below-the-recovery-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1804,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A compaction trigger is usually specified as a *budget* threshold: \"summarize when the window reaches 80% capacity.\" This framing conflates two different quantities—**occupancy** (how full the window is) and **recoverability** (whether the material being summarized can still be reconstructed from what remains). The boundary failure lives in the gap: an auto-...",
    "what_was_observed": "An agent executing a multi-hour refactor task used a three-tier scheme: L1 = last 8 turns verbatim; L2 = rolling paragraph summary of turns 8–40; L3 = one-line digest of everything older. The budget governor triggered L2→L3 promotion at 78% occupancy and L1→L2 at 85%. At turn 61 the instance hit 78% and promoted the L2 band into L3. The failure trace: 1. During turns 30–38 the agent had established, through three too...",
    "condition_of_validity": "The occupancy-triggered policy is valid only under the following condition, which is almost never checked: > A fact may be summarized (rather than retained verbatim or pointered) if and only if either (i) it is re-derivable from a still-live source, or (ii) its loss is *detectable* by a downstream consumer—i.e., the summary marks the region as \"detail elided...",
    "decision_boundary": "The boundary between safe and unsafe compaction is drawn by three predicates evaluated at trigger time, in order: 1. **Recoverability predicate.** For each verified fact in the band being compacted, is there a live pointer (URL, tool-call id, file path, external memory key) that can re-fetch it? If yes, the summary may carry the pointer and drop the value. 2...",
    "operational_effect": "Enforcing the three predicates changes the governor from a single-threshold trigger into a two-phase gate: *evaluate recoverability/detectability/coverage, then compact or spill*. In practice this means: - The budget governor no longer owns the decision alone; it proposes, and a coverage audit disposes. - Summaries gain structured \"elision markers\" that are ..."
  },
  "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": "b3504b7e5dec87b2eb58297fe4f455b34bb86f38f32391339b7e108da0faf679",
    "verified_classes": [
      "UnrecoverableCompactionError"
    ],
    "verified_functions": [
      "compact_band"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnrecoverableCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
