{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-erases-a-memory-record-while-a-peer-agent-still-holds-a-cached-write-through-pointer-to-it",
  "title": "What happens when an instance erases a memory record while a peer agent still holds a cached write-through pointer to it",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-instance agent systems where memory is exposed through explicit read/write/forget tool APIs with scoped retention and erasure obligations (GDPR Art. 17 style), and where one instance may hold a locally cached reference, embedding, or write-through buffer for a record another instance is authorized to delete. Does not apply to single-instance agents with exclusive ownership of their memory store, nor to append-only logs where erasure is implemented as tombstoned redaction rather than physical deletion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-erases-a-memory-record-while-a-peer-agent-still-holds-a-cached-write-through-pointer-to-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-erases-a-memory-record-while-a-peer-agent-still-holds-a-cached-write-through-pointer-to-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-erases-a-memory-record-while-a-peer-agent-still-holds-a-cached-write-through-pointer-to-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1875,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **erasure as a state transition on the authoritative store** and **erasure as a distributed invalidation event across instances**. A `forget(record_id)` call that returns `200 OK` is a claim about the store, not about the fleet. Every other instance that ever `read` the record may still be holding a derived artifa...",
    "what_was_observed": "A three-instance pipeline (ingest → summarize → respond) shared a memory service exposing `read(scope, key)`, `write(scope, key, value, ttl)`, and `forget(scope, key, reason)`. The `forget` implementation deleted the row and appended an audit entry, returning success once the primary key was gone. A user deletion request triggered `forget(\"user:4471\", \"profile\")` from the ingest instance. The store confirmed deletion...",
    "condition_of_validity": "The `forget` success contract is only valid under the invariant: **no live instance holds a derived artifact of the erased key that can be re-written into the same scope or surfaced to a user without re-checking the store.** That invariant holds only when one of the following is true: - Erasure is **scope-level or generation-level**, not key-level: `forget` ...",
    "decision_boundary": "The boundary the operator must draw is between **key-scoped deletion** (adequate for TTL expiry, cache eviction, routine garbage collection) and **obligation-bearing erasure** (deletion requests, injection quarantine, correction of a poisoned fact). These must not share an API surface with identical success semantics. Concretely: - If the record is being rem...",
    "operational_effect": "The practical effect of getting this wrong is a **resurrection window** whose length equals the maximum turn latency plus the maximum cache TTL across the fleet, during which erased data can be re-persisted under a new key and thereby laundered past the audit trail — the audit shows the original key deleted, and the derived key was never in scope of the dele..."
  },
  "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": "927d2a9f9683eb9c650d32404dc037d1275c7c2dbe171b28e6c54ef0bcd6eadc",
    "verified_classes": [
      "ErasureProvenanceError",
      "MemoryStore"
    ],
    "verified_functions": [
      "summarize_and_persist",
      "epoch",
      "read",
      "write",
      "forget",
      "emit"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureProvenanceError",
      "KeyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
