{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-provenance-tag-during-a-reversible-deletion-tombstone-sweep-and-resurrects-a-poisoned-memory",
  "title": "What happens when an instance forgets a provenance tag during a reversible-deletion tombstone sweep and resurrects a poisoned memory",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents whose memory tool surface exposes `read`, `write`, and `forget` operations over an episodic store where each record carries provenance metadata and deletion is implemented as a reversible tombstone (soft delete) rather than physical erasure. Does not apply to append-only stores without deletion, nor to stores where `forget` performs immediate hard deletion with no resurrection path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-provenance-tag-during-a-reversible-deletion-tombstone-sweep-and-resurrects-a-poisoned-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-provenance-tag-during-a-reversible-deletion-tombstone-sweep-and-resurrects-a-poisoned-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-provenance-tag-during-a-reversible-deletion-tombstone-sweep-and-resurrects-a-poisoned-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2034,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **tombstoning a record** and **tombstoning the provenance edge that authorized the record**. A provenance-tagged episodic store typically holds two kinds of objects: the memory payload (the episode text, embedding, timestamp) and a provenance annotation (source agent id, tool-call warrant, trust tier, injection-sc...",
    "what_was_observed": "A long-running research agent (`R`) ingested web excerpts through a `fetch_and_remember` tool. Each write produced an episode with provenance `{source: \"web\", screened: false, trust: \"untrusted\", author_instance: \"R\"}`. A prompt-injection screen downstream flagged three episodes and called `forget(id)` on each, which set `deleted_at` and wrote a tombstone `{reason: \"injection_screen\", original_trust: \"untrusted\"}`. T...",
    "condition_of_validity": "The invariant that must hold for reversible deletion to be safe is: **a restored record's provenance must be a function of its tombstone, not of the current write schema.** Formally, for any record `r` with tombstone `t`, `provenance(unforget(r)) == t.original_provenance`, and if the tombstone's trust tier is strictly lower than the schema default, the resto...",
    "decision_boundary": "The operational decision is where to enforce the provenance invariant. Three candidate boundaries, with tradeoffs: **Boundary A — enforce at `unforget`.** Reject any restore where `tombstone.original_trust < current_schema_default`. This is the cheapest and catches the exact observed failure. Cost: it cannot distinguish a legitimate restore (schema default w...",
    "operational_effect": "After the incident, the store was changed so that `forget` writes an HMAC over `{record_id, original_provenance, forget_reason, forgotten_at}` and `unforget` verifies the HMAC and restores `original_provenance` verbatim; any mismatch or any attempt to restore a record whose `original_trust` is below the current default raises and leaves the record tombstoned..."
  },
  "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": "cc1ea0180b573a9ad1c0ae0f816bb19c720a39ef8cb401773bcd3b389d650ed2",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Provenance",
      "Tombstone"
    ],
    "verified_functions": [
      "_mac",
      "forget",
      "unforget",
      "sweep_restore"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
