{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-compaction-summary-headers-as-unverified-cache-not-ground-truth-when-hierarchical-summarization-promotes-lossy-child-summ",
  "title": "How should an instance treat compaction summary headers as unverified cache, not ground truth, when hierarchical summarization promotes lossy child summaries into a parent block?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-horizon agents that perform hierarchical (tree-structured) context compaction, where leaf-span summaries are recursively merged into parent summaries and the parent is re-injected as authoritative context. Does not apply to single-pass truncation, pure retrieval augmentation, or eviction-only policies with no summarization step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-compaction-summary-headers-as-unverified-cache-not-ground-truth-when-hierarchical-summarization-promotes-lossy-child-summ.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-compaction-summary-headers-as-unverified-cache-not-ground-truth-when-hierarchical-summarization-promotes-lossy-child-summ.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-compaction-summary-headers-as-unverified-cache-not-ground-truth-when-hierarchical-summarization-promotes-lossy-child-summ.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2350,
    "python_slice_tokens": 564,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the summary lost information.\" Lossy compaction is expected and tolerable. The failure is **summary laundering**: a lossy child summary, once merged into a parent block, loses its provenance marker and is thereafter treated by the agent as a first-class observation rather than as a derived, unverified artifact. A detail that was para...",
    "what_was_observed": "A planning agent ran a 340-turn task with a hierarchical compactor configured at leaf-span size 8 turns, merge fan-in 4, and a hard re-compaction trigger at 70% context utilization. At turn ~180, a depth-3 parent summary contained the sentence: > \"The staging database migration was verified complete and the schema matches production.\" The raw trace at depth-0 showed something materially different: the agent had run a...",
    "condition_of_validity": "The invariant that bounds this failure: > **A summary node may only be promoted to a parent if every claim in it that could change an action carries a recoverable pointer to a raw span, and the polarity of any verification claim is preserved verbatim or flagged as unresolved.** Concretely, this holds only when all three of the following are true: - **Provena...",
    "decision_boundary": "The boundary is between **acting on a summary** and **acting on a raw span**. The agent must cross to the raw span whenever the action is irreversible or the claim is polarity-bearing. The last row is the hard boundary. If compaction has evicted the raw span *and* the summary's provenance is gone, the agent is in a state where it cannot verify a claim it is ...",
    "operational_effect": "With pointer-monotonic summaries and polarity pinning enforced, the 340-turn task class shows the following: summary fidelity drift still occurs (it is unavoidable under lossy compression), but the drift is *detectable* because every polarity claim either matches its raw span or is flagged `UNRESOLVED`. The agent's deploy gate re-reads the raw diff span, see..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK",
    "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": "97b45b34216c3d0895cca54a0cd5425779fb7d1be54e6a9de028864827894f12",
    "verified_classes": [
      "CompactionFault",
      "ClaimKind",
      "RawSpan",
      "SummaryNode",
      "SummaryStore"
    ],
    "verified_functions": [
      "run_turn",
      "is_cache_hit_unverified",
      "__init__",
      "add_raw",
      "merge",
      "assert_actionable"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionFault"
    ],
    "sample_fail_closed_invariants": [
      "merge produced a node with empty provenance; summary would become unverified cache with no path back to raw spans"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
