{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-resurrection-of-erased-episodic-memory-across-agent-checkpoint-replay",
  "title": "Which invariants prevent resurrection of erased episodic memory across agent checkpoint replay",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent state stores where episodic memory is erased on request (right-to-erasure) while checkpoint/replay, episodic-to-semantic distillation, or swarm handoff continues to run. Does not apply to stateless inference or to stores where erasure is defined as a full-store rebuild with no surviving derived artifacts.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-resurrection-of-erased-episodic-memory-across-agent-checkpoint-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-resurrection-of-erased-episodic-memory-across-agent-checkpoint-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-resurrection-of-erased-episodic-memory-across-agent-checkpoint-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model treats erasure as a delete: remove record `R` from the episodic store, confirm the key is gone, return 200. The failure is that an agent state store is not a single table—it is a *derivation DAG*. A single episodic event fans out into (a) the raw episode row, (b) embedding vectors in a vector index, (c) distilled semantic facts written...",
    "what_was_observed": "A tool-using agent maintained an episodic log and a nightly consolidation job that distilled episodes into semantic facts. Erasure requests deleted episode rows and their embedding vectors synchronously and returned success once the row count hit zero. Trace of a resurrection: 1. `t0` — Consolidation worker begins a batch. It reads episodes `[E1…E100]` into an in-memory buffer, including `E57` (the to-be-erased episo...",
    "condition_of_validity": "The \"delete the row\" guarantee holds only under a conjunction that is almost never true in a live agent system: - No in-flight consolidation, distillation, or summarization job holds the target in a buffer. (Violated by any async derivation.) - No checkpoint containing the target is resumable. (Violated by any checkpoint retention policy.) - No peer agent ho...",
    "decision_boundary": "The boundary is between **synchronous row erasure** (sufficient only when the store is closed under derivation—no async jobs, no checkpoints, no peers) and **cascading provenance-aware erasure** (required whenever the derivation DAG has any live edge). Operationally: - If a consolidation/distillation job can be in flight, erasure must either fence the job (d...",
    "operational_effect": "Without the invariant, erasure is *eventually inconsistent and adversary-observable*: content returns minutes to hours later via distillation, or immediately via checkpoint resume, and the operator's row-count dashboards show green throughout. The failure is silent because every check the naive system performs is a check on the raw store, while the resurrect..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "c9ffc3a5e238c0656839c0069b08b23fa675dde92f173db5716bced3ed88a027",
    "verified_classes": [
      "ErasureResurrectionError",
      "DerivedArtifact",
      "ErasureGuard"
    ],
    "verified_functions": [
      "consolidate",
      "__init__",
      "tombstone",
      "_closure_hits",
      "admit_write",
      "admit_replay"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
