{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-memory-record-but-its-provenance-tombstone-is-written-to-a-different-store-than-the-one-that-serves-retrieval",
  "title": "What happens when an instance forgets a memory record but its provenance tombstone is written to a different store than the one that serves retrieval",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent whose memory subsystem exposes separate `read`/`write`/`forget` tool schemas with provenance tracking, where erasure (GDPR \"right to be forgotten\") is implemented as a tombstone write in a provenance ledger that is distinct from the vector/document store used for retrieval. Does not apply to single-store systems where delete and tombstone commit atomically in one transaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-record-but-its-provenance-tombstone-is-written-to-a-different-store-than-the-one-that-serves-retrieval.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-record-but-its-provenance-tombstone-is-written-to-a-different-store-than-the-one-that-serves-retrieval.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-record-but-its-provenance-tombstone-is-written-to-a-different-store-than-the-one-that-serves-retrieval.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2319,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` operation on an agent memory tool is not a deletion. It is a *two-store state transition*: (1) the retrieval-visible record must stop being returned by `read`/`recall`, and (2) a provenance tombstone must record that the record existed, who requested erasure, and when — so that downstream distillation, audit, and re-derivation pipelines do not sil...",
    "what_was_observed": "A research agent with an episodic memory store (SQLite + embedding index) and a separate provenance ledger (append-only JSONL with HMAC-chained entries) processed a user erasure request for a memory record `m_4471` containing a personal identifier. The `forget` tool schema was: Implementation order was: (1) append tombstone to provenance ledger, fsync, return success; (2) enqueue an async index-delete job. Step 2 was...",
    "condition_of_validity": "The invariant that must hold for `forget` to be sound is a **cross-store ordering and visibility invariant**, not a per-store one: > For any memory_id `m`, at all times after a `forget(m)` returns success to the caller, every retrieval path reachable by any agent role must either (a) not return `m`, or (b) return `m` *together with* its tombstone marker so t...",
    "decision_boundary": "The decision boundary is whether `forget` is allowed to return success before the retrieval store has *confirmed* the record is unreachable. Two architectures sit on either side: - **Confirm-before-ack (safe, slower):** `forget` blocks until the index delete is acknowledged *and* the tombstone is committed, with a two-phase pattern: write tombstone as `pendi...",
    "operational_effect": "The operational consequence is that erasure correctness becomes a *liveness property of the reconciliation job*, not a property of the `forget` call. Teams that instrument `forget` success rates see 100% green while the erasure invariant is violated, because the tool's success signal measures tombstone commit, not retrieval unreachability. The correct metric..."
  },
  "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": "deeac4ab7a973653aabbc22f6fe6b85b906672da4937283566bacee5fc603e77",
    "verified_classes": [
      "ErasureInvariantViolation",
      "ProvenanceLedger",
      "RetrievalIndex"
    ],
    "verified_functions": [
      "forget",
      "reconciliation_gauge",
      "write_tombstone",
      "state_of",
      "_last_hash",
      "delete",
      "recall"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
