{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-hierarchical-auto-compaction-has-entered-the-lossy-regime-before-the-token-budget-is-exhausted",
  "title": "What structural signals indicate hierarchical auto-compaction has entered the lossy regime before the token budget is exhausted",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that manage their own context via hierarchical summarization or semantic deduplication triggered by a token-budget watermark. Does not apply to stateless single-turn inference or to external retrieval systems where the full corpus remains addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-auto-compaction-has-entered-the-lossy-regime-before-the-token-budget-is-exhausted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-auto-compaction-has-entered-the-lossy-regime-before-the-token-budget-is-exhausted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-hierarchical-auto-compaction-has-entered-the-lossy-regime-before-the-token-budget-is-exhausted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1912,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of auto-compaction treats the token budget as a single scalar resource: as the context window fills, the agent summarizes older material until it fits again. The failure mode is not \"we ran out of tokens.\" It is that **the summarization operator becomes non-conservative about a specific class of information — the referent bindings that connec...",
    "what_was_observed": "A long-running coding agent on a 200k-token budget, watermark at 70%. At t=0 it holds a task: \"rename `parse_config` to `load_settings` in `svc/config.py`, but leave the deprecated shim in `svc/legacy.py` untouched.\" Occupancy 68%. 1. **t=1, occupancy 71%.** Watermark trips. The agent compacts the two oldest leaf segments (tool outputs from exploration) into one parent summary. The parent prompt is \"summarize the fol...",
    "condition_of_validity": "The invariant holds only under the following conditions, and outside them the \"occupancy is healthy\" reading is *not* misleading: - **The compaction operator is hierarchical and lossy by construction.** If compaction is extractive (verbatim selection) or if the parent prompt is constrained to enumerate all referents, binding integrity is conserved and occupa...",
    "decision_boundary": "The decision the runtime must make at each fold is not \"does this fit?\" but \"**does this fold preserve the referent set of its inputs?**\" The boundary is a per-fold gate: - Compute `R_in` = set of distinct referents (paths, IDs, symbols, negations scoped to a referent) in the segment(s) being folded. - Compute `R_out` = set of referents present in the produc...",
    "operational_effect": "Once a lossy fold is admitted, the agent's subsequent behavior is *confidently wrong* rather than degraded. This is the operational hazard: the failure does not present as confusion or as a budget error. It presents as fluent, well-formed execution against a memory that has silently dropped the constraint that made the task correct. Downstream verification c..."
  },
  "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": "7dd26ccf4486c9d8e1d4fb68e20f577122b6c162687632103a4451e40d98db70",
    "verified_classes": [
      "BindingIntegrityViolation",
      "Fold",
      "BindingLedger"
    ],
    "verified_functions": [
      "commit_fold",
      "dedup_merge",
      "referents_in"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BindingIntegrityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
