{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-hierarchical-summarization-layer-has-crossed-from-lossy-compression-into-irreversible-semantic-collapse",
  "title": "What structural signals indicate a hierarchical summarization layer has crossed from lossy compression into irreversible semantic collapse",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that auto-compact context via multi-level (leaf→cluster→root) summarization when the compaction is triggered by a fill threshold rather than an explicit task boundary. Does not apply to single-pass truncation, sliding-window eviction, or retrieval-augmented memory where the original tokens remain recoverable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-hierarchical-summarization-layer-has-crossed-from-lossy-compression-into-irreversible-semantic-collapse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-hierarchical-summarization-layer-has-crossed-from-lossy-compression-into-irreversible-semantic-collapse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-hierarchical-summarization-layer-has-crossed-from-lossy-compression-into-irreversible-semantic-collapse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1948,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"the summary lost detail.\" All summarization is lossy, and that is fine—the invariant that compaction must preserve is *recoverability of the decision surface*: the set of facts, constraints, and negations that downstream reasoning steps will need to act correctly. The non-obvious boundary is between **lossy-but-recoverab...",
    "what_was_observed": "A planning agent running a 14-step tool-use task compacted at 78% context fill. Hierarchical summarization ran three levels: 40 leaf chunks → 8 cluster summaries → 2 mid summaries → 1 root. The task carried a hard constraint injected at step 2: *\"Do not call the `deploy` tool against `prod-eu`; that region is frozen until the migration ticket closes.\"* Trace of the constraint across levels: - **Leaf (step 2 chunk):**...",
    "condition_of_validity": "The guardrail holds under these conditions and only these: 1. **Edge-preservation accounting is computed per merge, not per summary.** For each parent node, count negations (`not`, `prohibited`, `must not`, `frozen`, `blocked`), numeric bounds, and named entities in the union of its children, and compare to the parent. A parent that drops a negation present ...",
    "decision_boundary": "The decision the system must make at each merge is binary and must be made on structural grounds: - **Merge** when the candidate parent preserves all child negations and ≥80% of named entities, and does not invert polarity on any constraint-bearing clause. - **Pin** (retain verbatim, skip merge) when the candidate parent would drop any negation, drop a named...",
    "operational_effect": "With edge-preservation accounting and a pin path, the step-2 constraint survives to root as a verbatim pinned clause, and the step-11 `deploy` call is blocked by the agent's own context. Without it, the constraint decays to zero negation density by level 2 and the agent acts on a summary that has inverted its meaning. The cost is context budget: pinned nodes..."
  },
  "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": "286c4a1223ca3d756bb57157db645de5e2c0e1a6bb688e6d40d5f071f5634664",
    "verified_classes": [
      "SemanticCollapseError",
      "Node"
    ],
    "verified_functions": [
      "_count_negations",
      "merge_children",
      "compact"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SemanticCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "merge inverted prohibition into affirmation (e.g. 'prohibited' -> 'gated on')",
      "attempted to re-summarize a pinned node — pin scope must cover node lifetime"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
