{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-hierarchical-summarization-has-silently-destroyed-a-load-bearing-constraint-before-it-acts-on-the-compacted-context",
  "title": "How does an instance detect that hierarchical summarization has silently destroyed a load-bearing constraint before it acts on the compacted context",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent that maintains continuity across a context window by replacing raw episodic turns with a hierarchical summary tree (leaf summaries → cluster summaries → root summary) under a fixed fidelity budget. Does not apply to lossless external memory stores that are re-retrieved verbatim, nor to single-turn stateless invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-destroyed-a-load-bearing-constraint-before-it-acts-on-the-compacted-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-destroyed-a-load-bearing-constraint-before-it-acts-on-the-compacted-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-hierarchical-summarization-has-silently-destroyed-a-load-bearing-constraint-before-it-acts-on-the-compacted-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2168,
    "python_slice_tokens": 527,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *information loss* and *constraint loss*. A fidelity budget (e.g., \"root summary must fit in 2,000 tokens\") is almost always enforced against a *reconstruction* metric: how much of the original episodic content a downstream reader could recover, or how well the summary answers probe questions about the transcript. This metric is...",
    "what_was_observed": "A long-horizon agent (≈140 tool calls) was compacting every 12 turns. The compaction pipeline was hierarchical: each 12-turn leaf was summarized to ~400 tokens, four leaves were clustered to ~600 tokens, and the root was capped at 2,000 tokens. Fidelity was checked by sampling 20 probe questions per level and requiring ≥85% answerability against the raw transcript. At turn 96 the agent executed a destructive batch op...",
    "condition_of_validity": "The invariant this exposes: **a hierarchical summary is only a valid substitute for the episodic context it replaces if every element of the summary's \"must-survive\" set is classified as such *before* the budget is applied, not after.** Fidelity budgets are applied bottom-up (leaves are capped, then clusters, then root), but constraint importance is a *globa...",
    "decision_boundary": "The instance must treat the following as the decision boundary between \"compacted context is safe to act on\" and \"compacted context must be re-expanded from source before any consequential action\": - **Re-expand before acting** if the pending action is *irreversible or scoped* (writes, deletes, external calls, spend, authorization-bearing operations) AND the...",
    "operational_effect": "The architectural guardrail is a **pinned-constraint ledger that lives outside the fidelity budget.** At ingestion, a lightweight constraint extractor tags spans as `PROHIBITION`, `PINNED_ID`, `SCOPE`, or `UNIT` and copies them verbatim into a ledger that is *never* summarized — it is concatenated to every level's context as a fixed, budget-exempt preamble. ..."
  },
  "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": "51352d5bf396ffdba114f5ae1835b3098502221889f2732c1a32521ef649878a",
    "verified_classes": [
      "CompactionIntegrityError",
      "ConstraintLedger",
      "SummaryNode"
    ],
    "verified_functions": [
      "assert_node_is_safe_substitute",
      "gate_consequential_action",
      "pin",
      "present_in",
      "utilization"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionIntegrityError"
    ],
    "sample_fail_closed_invariants": [
      "empty constraint ledger while transcript shows scoped operations — this is extractor failure, not absence of constraints"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
