{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-requiring-recall-triggered-rehydration",
  "title": "In what scenarios must an instance treat hierarchical-summary compaction as a lossy projection requiring recall-triggered rehydration",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that persist context by replacing contiguous token spans with derived summaries (hierarchical or flat) and later rely on those summaries as authoritative state. Does not apply to agents that retain full-fidelity transcripts in an external store and only ever use summaries as retrieval hints.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-requiring-recall-triggered-rehydration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-requiring-recall-triggered-rehydration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-hierarchical-summary-compaction-as-a-lossy-projection-requiring-recall-triggered-rehydration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2103,
    "python_slice_tokens": 410,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary was wrong.\" It is that a **summary is a projection of state, not a copy of it**, and the compaction pipeline silently promotes that projection to authoritative status. A hierarchical compactor performs a many-to-one map: `S = f(tokens[0:n])` where `f` is lossy and non-injective. Two distinct execution histories `H1 ≠ H2` can p...",
    "what_was_observed": "A 40-turn task agent compacted a 128k context every time it crossed 85% utilization. Compaction was hierarchical: leaf spans of ~8k tokens summarized to ~800-token \"chapter\" summaries; chapters rolled into a ~2k-token \"spine\" summary. The agent then executed a filesystem-mutating step. Trace of the failure: 1. Turn 12: user constraint emitted verbatim — \"do not modify anything under `/etc/app/legacy/`; that tree is r...",
    "condition_of_validity": "The invariant \"summaries are orientation-only\" holds — and compaction is safe — only when all three conditions are met: - **C1 (Pointer integrity):** every summary node retains a resolvable pointer to its source span in an external store, and the pointer survives all subsequent re-compactions (i.e., the spine points to chapters, chapters point to leaves, lea...",
    "decision_boundary": "The boundary is between **rehydrate-before-commit** and **commit-on-summary**. The agent must cross to rehydrate when any of the following triggers fire: - The pending action's target string appears in the summary only as a category (\"read-only paths\", \"the config file\") rather than a literal. Category-without-referent is the exact signature of C3 loss. - Th...",
    "operational_effect": "With the gate in place, the turn-33 failure becomes a caught exception: the plan cites a `category`+`constraint` node, the gate forces recall of C1's source span, the rehydrated text names `/etc/app/legacy/`, the plan is rejected before the write. The cost is one extra retrieval per high-stakes commitment — bounded and predictable. Without it, the cost is an..."
  },
  "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": "21858709233a9984f6f25b572c45ec674bfb727459be35f98b00714528785e8a",
    "verified_classes": [
      "Fidelity",
      "SummaryNode",
      "CompactionLossError"
    ],
    "verified_functions": [
      "commitment_gate",
      "plan_and_commit",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
