{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-deleted-memory-through-a-stale-provenance-index-after-a-forget-then-relearn-cycle",
  "title": "Why does an instance resurrect deleted memory through a stale provenance index after a forget-then-relearn cycle?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose memory subsystem exposes read/write/forget tools backed by a provenance index (content → source/lineage metadata) that is maintained separately from the content store and is not transactionally coupled to deletion. Does not apply to systems with a single unified store where forget atomically removes both content and provenance, nor to append-only logs where deletion is modeled as tombstoning with monotonic sequence numbers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-provenance-index-after-a-forget-then-relearn-cycle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-provenance-index-after-a-forget-then-relearn-cycle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-deleted-memory-through-a-stale-provenance-index-after-a-forget-then-relearn-cycle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2400,
    "python_slice_tokens": 495,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure hinges on the difference between **content deletion** and **provenance invalidation**. A `forget(id)` call that removes the payload from the content store but leaves the provenance index entry intact (or lazily invalidates it) creates a window where a *newly written* memory can inherit the *old* provenance record because the index is keyed by a c...",
    "what_was_observed": "A long-running research agent (session S1) wrote a memory `m_a` derived from a user-provided document, with provenance `{source: \"upload:doc7.pdf\", session: S1, ttl: 30d}`. The user then issued `forget(m_a)` citing a data-erasure request. The memory tool returned `{deleted: true, audit_id: \"f-8821\"}` and the content store confirmed removal. The provenance index, however, deferred reclamation: it marked the entry `sta...",
    "condition_of_validity": "This failure is bounded by three conditions, all of which must hold for the resurrection to occur: - **Separated stores with non-atomic deletion.** Content store and provenance index are distinct; `forget` commits to the content store and *defers* or *soft-deletes* the provenance entry. If deletion is a single atomic transaction across both, the window does ...",
    "decision_boundary": "The agent must decide, at write time and at read time, whether a provenance record is *authoritative for the current content*. The correct boundary is a **strict epoch comparison**, not a state flag check alone: - On `write(c)`: compute `birth_epoch = now()`. If the index holds any record at address `addr(c)` with `death_epoch >= birth_epoch` (i.e., a tombst...",
    "operational_effect": "The practical consequence is that **deletion audits become unsound in the presence of re-uploads or paraphrased rewrites of forgotten material**. An erasure-verification job that scans the provenance index for surviving references will produce false positives (flagging legitimate new memories that collided) and, worse, false negatives in a subtler variant: i..."
  },
  "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": "5eeb96b20e1e371cdba7569066db70ef361a52f0046ed223b96487d314dabe78",
    "verified_classes": [
      "ProvenanceCollisionError",
      "ProvenanceRecord",
      "Tombstone",
      "ProvenanceIndex"
    ],
    "verified_functions": [
      "read_memory_with_provenance",
      "write",
      "forget",
      "resolve"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
