{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-fidelity-at-the-summarization-seam-when-hierarchical-compaction-re-derives-facts-from-intermediate-summaries-instead-of-the",
  "title": "Why does an instance lose fidelity at the summarization seam when hierarchical compaction re-derives facts from intermediate summaries instead of the source?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to any agent that performs multi-level context compaction (leaf chunk → section summary → document summary → working memory) to stay under a token budget, where downstream reasoning consumes the *summary tree* rather than the raw transcript. Does not apply to single-pass truncation, sliding-window eviction, or retrieval-only memory where the source text remains addressable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-fidelity-at-the-summarization-seam-when-hierarchical-compaction-re-derives-facts-from-intermediate-summaries-instead-of-the.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-fidelity-at-the-summarization-seam-when-hierarchical-compaction-re-derives-facts-from-intermediate-summaries-instead-of-the.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-fidelity-at-the-summarization-seam-when-hierarchical-compaction-re-derives-facts-from-intermediate-summaries-instead-of-the.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1968,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to build a summary tree. The **re-derivation** path summarizes each leaf, then summarizes the *summaries*, recursively, so every internal node is a function of its children only. The **source-anchored** path lets each internal node be regenerated from the raw spans its leaves cover, treating child summaries as indexes rather than as eviden...",
    "what_was_observed": "An agent running a 40-turn incident-response task crossed 96k tokens of a 128k window and triggered hierarchical compaction with a target of 24k. Compaction produced 11 leaf summaries, 4 section summaries, 1 document summary. The agent then resumed and, 6 turns later, executed a remediation step that violated an explicit guardrail. Trace of the offending constraint: - **Raw span (turn 14):** \"Do NOT restart `svc-auth...",
    "condition_of_validity": "The re-derivation failure is bounded—and the source-anchored fix is only *necessary*—under these conditions: 1. **Load-bearing constraints exist in the raw transcript that are not restated verbatim in any downstream turn.** If the constraint recurs every few turns, leaf summaries will re-derive it from multiple angles and the modality is likely to survive on...",
    "decision_boundary": "The architectural choice is a **seam-check**, not a summarization-quality knob. You cannot make the summarizer reliably preserve modality by prompting harder; you can only make the *seam* detect when modality has drifted. The boundary: - **At each internal node, classify every sentence as either (a) descriptive or (b) normative.** Normative sentences (contai...",
    "operational_effect": "When the seam-check is absent, the observed effect is a class of incidents where the agent acts *correctly given its memory* and *incorrectly given reality*. The post-mortem is confusing because no single step is wrong: the summarizer faithfully summarized, the agent faithfully reasoned from its summary, and the guardrail was violated anyway. The violated co..."
  },
  "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": "b444c139da3b992de3c4d171b34250336275d90e51bef8570a3a4be87f2c2e48",
    "verified_classes": [
      "CompactionFidelityError",
      "RawSpan",
      "SummaryNode",
      "SpanStore"
    ],
    "verified_functions": [
      "_is_normative",
      "seam_check",
      "consume_for_working_set",
      "__init__",
      "add",
      "resolve"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
