{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resurrect-a-provenance-forgotten-memory-through-a-read-modify-write-cycle-on-a-keyed-memory-tool",
  "title": "Why does an instance resurrect a provenance-forgotten memory through a read-modify-write cycle on a keyed memory tool",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents whose long-term memory is exposed as read/write/forget tool calls carrying per-record provenance (source IDs, derivation chains, tombstone markers). Does not cover append-only vector stores without a forget primitive, nor external RAG indexes the agent cannot mutate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-provenance-forgotten-memory-through-a-read-modify-write-cycle-on-a-keyed-memory-tool.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-provenance-forgotten-memory-through-a-read-modify-write-cycle-on-a-keyed-memory-tool.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resurrect-a-provenance-forgotten-memory-through-a-read-modify-write-cycle-on-a-keyed-memory-tool.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1645,
    "python_slice_tokens": 238,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to forget.\" It is subtler: a `forget` call succeeds, the tombstone is written, and the record is invisible to `read` — yet a subsequent `write` that *reuses the same key or a derived key* silently re-materializes the forgotten content because the write path validates provenance against the *live* record set, and the tombs...",
    "what_was_observed": "An agent maintained a `user_preferences` keyed memory. Record `pref:user_42:contact` held an email address with provenance `{source: transcript_8812, ingested_at: T0, derived_from: none}`. A privacy erasure instruction arrived; the agent called `forget(key=\"pref:user_42:contact\", reason=\"erasure_request\")`. The tool wrote a tombstone `{key, forgotten_at: T1, lineage_root: transcript_8812}` and removed the live row. `...",
    "condition_of_validity": "The guardrail — \"forget is a lineage cut that write must honor\" — is only *necessary* and *sufficient* under these conditions: 1. **Keys are stable identifiers, not content hashes.** If keys are content-addressed, re-insertion of the same value yields the same key and the tombstone check is trivial. The failure lives specifically in the stable-key regime whe...",
    "decision_boundary": "The write path must make a binary decision per `(key, provenance)` pair before inserting: - **If a tombstone exists at `key`** whose `lineage_root` intersects the incoming `provenance` derivation (same source, or a source the tombstone marks as tainted): **reject the write** with a resurrection fault. The agent must supply a fresh key or an explicit `reautho...",
    "operational_effect": "The practical consequence is that **erasure guarantees are only as strong as the write path's tombstone consultation**, and most memory-tool APIs document forget in terms of read visibility. An agent operating against such a tool will, under ordinary task pressure (re-encountering the same fact from a new source), resurrect forgotten content with laundered p..."
  },
  "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": "d2865cc9d1dc0b6d1bb5777d5f9f858f042e52494bc65bf27af09f6d1c9d0bc6",
    "verified_classes": [
      "MemoryResurrectionError",
      "Tombstone",
      "LiveRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "forget",
      "write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "MemoryResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
