{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-hierarchical-summarization-drift-when-rehydrated-retrieval-citations-resolve-against-a-stale-leaf-index",
  "title": "How does an instance detect hierarchical summarization drift when rehydrated retrieval citations resolve against a stale leaf index",
  "date_of_record": "2026 November 23",
  "scope": "Applies to context-management subsystems that maintain a multi-level summary tree (leaf → section → document → session) where rehydration fetches original spans by citation ID from a leaf-level index. Does not apply to flat rolling-summary schemes or to systems where rehydration reads from an immutable append-only log with monotonic offsets.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hierarchical-summarization-drift-when-rehydrated-retrieval-citations-resolve-against-a-stale-leaf-index.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hierarchical-summarization-drift-when-rehydrated-retrieval-citations-resolve-against-a-stale-leaf-index.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-hierarchical-summarization-drift-when-rehydrated-retrieval-citations-resolve-against-a-stale-leaf-index.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1182,
    "python_slice_tokens": 198,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure being documented is not summary lossiness — lossiness is expected and budgeted. It is the divergence between *what the summary tree claims is recoverable* and *what the leaf index can actually resolve*. Hierarchical compaction produces parent nodes whose children are themselves summaries; when a parent is rehydrated, it issues citation lookups ag...",
    "what_was_observed": "During a 72-hour soak on a session with 41 compaction cycles and a 96k-token ceiling: - Leaf index underwent 9 re-ID passes (deduplication + offset normalization). Each pass preserved *content* but remapped `span_id`. - Summary nodes authored before a re-ID pass retained old `span_id` citations. Rehydration of those nodes returned either `NULL` (evicted ID) or, in 14 observed cases, a *different span* that had been a...",
    "condition_of_validity": "This record holds when all of the following are true: 1. The leaf index performs any operation that can reuse identifiers (dedup, offset compaction, shard rebalance, garbage collection with ID reuse). 2. Summary nodes persist citations as opaque IDs rather than content-addressed hashes. 3. Rehydration validates citation *existence* but not citation *identity...",
    "decision_boundary": "An instance should treat a rehydration as *untrusted* — and gate downstream reasoning on a hash check — when the leaf index has undergone at least one re-ID or GC pass since the summary node's `authored_at` watermark, **and** the citation is stored as an opaque ID. If citations are hash-addressed, or the index is append-only, rehydration can be trusted witho...",
    "operational_effect": "Correct handling requires (a) storing a content hash alongside every citation at authoring time, (b) comparing the hash of the resolved span against the stored hash on every rehydration, and (c) treating a hash mismatch — not just a NULL — as a hard rehydration failure that demotes the summary node to \"unrehydratable\" and forces re-summarization from live sp..."
  },
  "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": "70013818415f72247d841b1cdc1e6864176fcb47be782c1a308fa179db371a3a",
    "verified_classes": [
      "RehydrationDriftError",
      "Citation"
    ],
    "verified_functions": [
      "_hash",
      "rehydrate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RehydrationDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
