{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-hierarchical-summarization-pass-as-lossy-by-construction-rather-than-lossless-by-default",
  "title": "Under what conditions must an instance treat a hierarchical summarization pass as lossy-by-construction rather than lossless-by-default",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-running agent instances that auto-compact their working context via multi-level hierarchical summarization (leaf chunks → section summaries → root digest) with retrieval-anchored loss budgets, where the budget is expressed as a maximum tolerated reconstruction error against an external retrieval index. Does not apply to single-pass truncation, pure sliding-window eviction, or summarizers whose outputs are never re-expanded from the index.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-hierarchical-summarization-pass-as-lossy-by-construction-rather-than-lossless-by-default.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-hierarchical-summarization-pass-as-lossy-by-construction-rather-than-lossless-by-default.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-hierarchical-summarization-pass-as-lossy-by-construction-rather-than-lossless-by-default.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2536,
    "python_slice_tokens": 648,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two incompatible mental models of hierarchical compaction, and they diverge exactly at the moment a parent summary is written: - **Lossless-by-default:** each summary level is assumed to preserve the semantic content of its children; the loss budget is a *safety net* that fires only on pathological input. - **Lossy-by-construction:** each summary l...",
    "what_was_observed": "An instance executing a 340-step research-and-reconcile task compacted its context at step 120. The compaction pipeline: 1. Segmented context into 40 leaf chunks of ~2k tokens. 2. Summarized each leaf to ~200 tokens (leaf level). 3. Summarized groups of 8 leaves into 5 section summaries (section level). 4. Summarized the 5 sections into a 1.5k-token root digest. 5. Scored the root digest against a retrieval index of ...",
    "condition_of_validity": "The loss budget is a valid guardrail **if and only if** the following invariant holds: > For every atom `a` in the leaf set that is *load-bearing* for a future step, there exists a retrieval anchor `r(a)` in the index such that `r(a)` is bit-identical to `a`'s original surface form and is retrievable by a query the future step can issue. This fails when any ...",
    "decision_boundary": "The instance must switch from lossless-by-default to lossy-by-construction handling at the first moment any of these are true: - The compaction pipeline includes more than one summarization level above the leaf (i.e., section or root nodes exist). - The retrieval anchor is built from anything other than raw pre-summarization text. - The task's downstream ste...",
    "operational_effect": "When the invariant is enforced, the operational profile changes in three measurable ways: - **Compaction latency increases** by the cost of span extraction and pinning at leaf time (observed: ~8% overhead on a 40-chunk pass). This is the price of making the loss budget meaningful. - **False-positive budget failures increase** because per-node scoring is stri..."
  },
  "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": "2d9159f2c393f5d099e490250ff1b4fcc3e747050d572e2344da2ce20680be8f",
    "verified_classes": [
      "CompactionLossBudgetViolation"
    ],
    "verified_functions": [
      "pin_load_bearing_spans",
      "promote_summary_node",
      "compact_hierarchical"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionLossBudgetViolation"
    ],
    "sample_fail_closed_invariants": [
      "summary node has no child leaves; provenance is empty and node cannot be promoted (lossless-by-default assumption is inv"
    ],
    "stdlib_dependencies": [
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
