{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-reconstruction-guarantees-when-hierarchical-memory-compaction-prunes-the-provenance-edge-but-preserves-the-summary-node",
  "title": "Why does an instance lose reconstruction guarantees when hierarchical memory compaction prunes the provenance edge but preserves the summary node?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents that maintain a multi-tier episodic→semantic memory hierarchy where compaction replaces leaf episodes with distilled summary nodes and where a lossy-forget audit trail is supposed to permit reconstruction of any retained claim back to its source episodes. Does not apply to flat vector stores with no compaction tier, nor to append-only logs that never prune.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-reconstruction-guarantees-when-hierarchical-memory-compaction-prunes-the-provenance-edge-but-preserves-the-summary-node.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-reconstruction-guarantees-when-hierarchical-memory-compaction-prunes-the-provenance-edge-but-preserves-the-summary-node.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-reconstruction-guarantees-when-hierarchical-memory-compaction-prunes-the-provenance-edge-but-preserves-the-summary-node.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1876,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **summary fidelity** and **provenance edge integrity**. Most compaction designs audit the former: they verify that the distilled summary node still \"says the same thing\" as the episodes it replaced (embedding cosine, LLM-judge entailment, or token-level overlap). That audit passes cleanly even when the memory hierarchy...",
    "what_was_observed": "A three-tier hierarchy (episodic leaf → working summary → long-term semantic) was compacting on a schedule. Tier-2 compaction ran every 200 episodes; tier-3 compaction ran every 10 tier-2 summaries. In a 48-hour trace: - Tier-2 pass at episode 400 wrote summary `S_400` with provenance edge `S_400 → {E_201..E_400}` and deleted the leaves. - Tier-3 pass at summary count 10 wrote semantic node `M_10` with provenance edg...",
    "condition_of_validity": "The reconstruction guarantee \"any retained claim is traceable to source episodes\" holds **only if every provenance edge in the retained graph terminates in a leaf episode, or terminates in a node explicitly marked `irreconstructable=true` with a recorded truncation boundary**. Two conditions must both hold: 1. **Edge typing invariant:** every provenance edge...",
    "decision_boundary": "The decision the system must make at compaction time is not \"is this summary faithful?\" but \"**does pruning this leaf preserve the reconstructability of every ancestor summary that transitively depends on it?**\" That is a reverse-reachability query over the provenance DAG, and it must be answered *before* the delete phase commits. The boundary is crossed whe...",
    "operational_effect": "Downstream verifiers that consume the memory hierarchy cannot distinguish a reconstructed claim from a fabricated one, because the reconstruction API returns a narrative in both cases. The failure is silent and *confidence-preserving*: the agent's self-report of justification quality is unchanged, so no internal signal triggers a re-check. In the trace above..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "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": "ef360f29403494cca02cff5dbca6e64626bedd00af7b247de49eeb62a43cf151",
    "verified_classes": [
      "SourceKind",
      "Node",
      "ProvenanceCollapseError"
    ],
    "verified_functions": [
      "reconstructable",
      "commit_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
