{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-deletion-tombstone-that-contradicts-an-active-memory-it-must-still-serve-the-provenance-lineage-resurrection-failure-in",
  "title": "How does an instance detect a \"deletion tombstone\" that contradicts an active memory it must still serve: the provenance-lineage resurrection failure in read/write/forget memory APIs",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that exposes or consumes a memory tool API with three operations — `read(query)`, `write(fact, provenance)`, `forget(subject_id)` — where `forget` is expected to satisfy a GDPR-aligned erasure obligation. Does not apply to append-only logs that are never queried for user-facing recall, nor to stateless single-turn agents with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-deletion-tombstone-that-contradicts-an-active-memory-it-must-still-serve-the-provenance-lineage-resurrection-failure-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-deletion-tombstone-that-contradicts-an-active-memory-it-must-still-serve-the-provenance-lineage-resurrection-failure-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-deletion-tombstone-that-contradicts-an-active-memory-it-must-still-serve-the-provenance-lineage-resurrection-failure-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1659,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion didn't happen.\" The failure is **deletion happened at the row level while the erased fact survives in a derived artifact that the read path still trusts.** A `forget(subject_id)` call tombstones the canonical record, but any *distilled* memory — a summary, an embedding, a contradiction-resolution verdict, a peer-agent's cached co...",
    "what_was_observed": "An instance maintained a memory store with three layers: raw episodic records, an embedding index, and a nightly \"distillation\" pass that merged redundant facts into semantic entries tagged with a `provenance: [id, id, ...]` list. A subject requested erasure. The `forget` handler: 1. Marked the raw episodic rows `deleted=true`. 2. Removed the corresponding vectors from the ANN index by `id`. 3. Emitted a tombstone `{...",
    "condition_of_validity": "The guardrail holds only under these conditions, and the instance must verify all of them before trusting any `read`: - **Provenance closure is computable and finite.** Every derived artifact carries the full set of ancestor ids, not just its immediate parents. If distillation is recursive, the closure must be transitive; a one-hop pointer is insufficient be...",
    "decision_boundary": "The instance must draw the line as follows: - If a candidate result's provenance closure contains **any** tombstoned id → **do not serve**. Not \"serve with low confidence,\" not \"serve with a redaction note.\" The content is legally and operationally gone. Return a `ProvenanceErased` signal so the caller can re-query. - If the closure is **incomplete** (an anc...",
    "operational_effect": "The practical consequence is that `forget` becomes a **graph operation with a read-path obligation**, not a row delete. Implementations that treat it as a row delete will pass their own audit (the journal is clean) while leaking through distillation and peer caches — the worst failure class, because it is invisible to the deletion metric. The read path must ..."
  },
  "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": "3d82da313c1daa5798a1682ef675c3a167dbdccd5acc75e0d88dfa22fc929a87",
    "verified_classes": [
      "ProvenanceErased",
      "ResurrectionAttempt",
      "UnverifiableProvenance",
      "MemoryNode",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "_closure",
      "read",
      "resolve_contradiction"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceErased",
      "ResurrectionAttempt",
      "UnverifiableProvenance"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
