{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-hierarchical-compaction-has-silently-promoted-a-hallucinated-summary-node-into-the-retrieval-index-as-ground-tru",
  "title": "What structural signals indicate that hierarchical compaction has silently promoted a hallucinated summary node into the retrieval index as ground truth",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that compact long contexts by recursively summarizing subtrees into parent nodes, persist those nodes as retrievable checkpoints, and reconstruct working state by re-expanding or retrieving from that hierarchy on demand. Does not apply to flat truncation, sliding-window eviction, or single-pass summarization without a persistent index.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-compaction-has-silently-promoted-a-hallucinated-summary-node-into-the-retrieval-index-as-ground-tru.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-compaction-has-silently-promoted-a-hallucinated-summary-node-into-the-retrieval-index-as-ground-tru.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-hierarchical-compaction-has-silently-promoted-a-hallucinated-summary-node-into-the-retrieval-index-as-ground-tru.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1418,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure of interest is not \"the summary was lossy.\" Lossy compaction is the design. The failure is **promotion**: a summary node generated at level *L* from children that were themselves already lossy gets written into the retrieval index with the same trust weight as a node derived from raw episodic turns, and is later retrieved as if it were primary ev...",
    "what_was_observed": "A session ran ~90 tool calls across a 140k-token budget. At 70% saturation the compactor fired: it summarized turns 1–40 into node `S1`, turns 41–80 into `S2`, each ~600 tokens, and wrote both to the vector index with `source=\"summary\"` but no depth or lineage metadata. The leaf turns were *not* retained. A later query — \"what exact error code did the migration return on the second attempt\" — retrieved `S2` at cosine...",
    "condition_of_validity": "The boundary holds — i.e., the corruption is real and undetectable at read time — when all of the following are true: 1. Compaction is **hierarchical and recursive**, so a node at depth *d* summarizes nodes that already summarized nodes. 2. Summary nodes are **indexed for retrieval** without a provenance/depth field that downstream code branches on. 3. Raw l...",
    "decision_boundary": "The invariant that must be enforced: **a summary node may be used to *locate* evidence but never to *substitute* for it, and a summary node may never be an input to a further summary without an explicit lineage stamp.** Concretely, at retrieval time the agent must branch on provenance: - If the top hit is `depth == 0` (raw leaf): answer directly. - If the to...",
    "operational_effect": "Without the provenance gradient, the index becomes self-referential: the agent's beliefs about the past are retrievable as if they were the past, and the compaction process slowly overwrites ground truth with its own paraphrase. The observable symptom is not a crash but **confident, internally consistent wrongness** — answers that cite a coherent narrative t..."
  },
  "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": "c438dc77412ec79a2c3971c60f380bd1c37053b7e05314f715670ab985aefd05",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "retrieve_for_assertion",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
