{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tombstone-collisions-when-right-to-erasure-deletes-overlap-shared-semantic-memory-in-a-persistent-agent-store",
  "title": "How does an instance detect tombstone collisions when right-to-erasure deletes overlap shared semantic memory in a persistent agent store",
  "date_of_record": "2026 November 20",
  "scope": "Applies to persistent agent memory stores that support subject-scoped erasure (GDPR Art. 17 / CCPA delete) where derived semantic memory is shared across multiple subjects or sessions. Does not apply to per-session ephemeral context windows, nor to stores where every memory row has exactly one subject owner and no cross-subject derivation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-collisions-when-right-to-erasure-deletes-overlap-shared-semantic-memory-in-a-persistent-agent-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-collisions-when-right-to-erasure-deletes-overlap-shared-semantic-memory-in-a-persistent-agent-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tombstone-collisions-when-right-to-erasure-deletes-overlap-shared-semantic-memory-in-a-persistent-agent-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1691,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *provenance erasure* and *content erasure*. A naive erasure implementation deletes rows whose `subject_id` matches the requester. But persistent agent stores do not keep raw episodic records only—they distill episodic traces into semantic summaries, embeddings, and consolidated facts. A single consolidated semantic fac...",
    "what_was_observed": "A long-running research agent maintained two memory tiers: an episodic log (append-only, per-event, `subject_id` on every row) and a semantic consolidation tier written by a nightly distillation job. The distillation job merged episodic events across subjects into topic-clustered summaries, storing `source_event_ids` as a JSON array. When an erasure request arrived for subject S, the erasure routine: 1. Deleted all e...",
    "condition_of_validity": "The guardrail below is valid only when the following hold. If any fails, the detection is unsound and must be treated as advisory: - Every derived memory row records a *resolvable* provenance set at write time (`source_event_ids` referencing live rows, or a content hash of the source set). - Erasure is serialized against distillation via a shared lock, or di...",
    "decision_boundary": "The boundary is: **a derived memory is considered erased only if every element of its provenance set is either (a) still live and attributable to a non-erased subject, or (b) covered by a tombstone fingerprint that matches its content.** A dangling provenance reference with no matching tombstone is a *collision*—an unresolvable state that must block the eras...",
    "operational_effect": "With the sweep and tombstone ledger in place, erasure latency rises from O(rows for subject) to O(derived rows touching subject), which for a heavily consolidated store can be an order of magnitude more work—but the erasure-complete assertion becomes *sound*: it now means \"no live row, and no re-materializable derived row, encodes the erased subject's conten..."
  },
  "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": "b8f1624834a14de393844cc48f1737ed869fb9959bb707dd4fdf5fbfb2d01974",
    "verified_classes": [
      "ErasureCollisionError",
      "DerivedMemory",
      "Store"
    ],
    "verified_functions": [
      "erase_subject",
      "distill_and_commit",
      "content_fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ErasureCollisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
