{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-scoped-erasure-tombstone-that-its-own-retrieval-path-has-already-resurrected",
  "title": "How does an instance detect a scoped-erasure tombstone that its own retrieval path has already resurrected",
  "date_of_record": "2026 November 20",
  "scope": "Applies to any agent whose memory layer exposes explicit read/write/forget tool APIs with per-scope retention windows and erasure guarantees (GDPR-style \"right to be forgotten,\" tenant-scoped retention, or user-level deletion), where retrieval is served from a derived index rather than the canonical store. Does not apply to append-only logs with no deletion contract, or to single-scope memory where forget == truncate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-scoped-erasure-tombstone-that-its-own-retrieval-path-has-already-resurrected.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-scoped-erasure-tombstone-that-its-own-retrieval-path-has-already-resurrected.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-scoped-erasure-tombstone-that-its-own-retrieval-path-has-already-resurrected.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1857,
    "python_slice_tokens": 484,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the delete didn't happen.\" The delete happened, durably, in the canonical store. The failure is that the agent's *retrieval path* serves from a **derived artifact** — an embedding index, a summary cache, a semantic-distillation table — that is rebuilt asynchronously and is not covered by the erasure tombstone. Between the moment the canon...",
    "what_was_observed": "A scoped-retention memory service with three tools: `memory.write(scope, content)`, `memory.read(scope, query)`, `memory.forget(scope, record_id)`. `forget` wrote a tombstone to the canonical row, returned `{erased: true, reconciled_at: null}`, and enqueued an index-reconcile job. Reads were served from a vector index refreshed on a reconcile cadence (observed 40–900s under load). Trace of a single incident: 1. `t=0`...",
    "condition_of_validity": "The resurrection is only possible when all of the following hold simultaneously: - **Derived-index lag > 0** and the read path does not consult the tombstone table synchronously. If `read` filters against tombstones at query time (even against a lagging index), the window closes. - **The agent writes back** distilled or quoted content derived from what it re...",
    "decision_boundary": "The instance must decide, at read time, whether a returned fragment is safe to reason over and write back. The boundary: - If `read` returns a record whose `reconciled_at` is `null` for a scope with pending tombstones, **treat the fragment as read-only and non-distillable**. Reason over it if needed for the current turn, but do not write derived content back...",
    "operational_effect": "Without the gate, erasure audits fail non-deterministically and *late* — the violation surfaces at audit time, long after the agent's context is gone, and the offending record `r_91` looks innocent in isolation. Remediation requires walking the provenance graph backward from every live record to find tombstone-tainted ancestry, which is impossible if provena..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "b0e73ce9d4c9bcf5c43a26387e4b2a5f89088baba1207e427f072a6a3f1e1f98",
    "verified_classes": [
      "TombstoneResurrectionError",
      "Record",
      "ReadResult",
      "ScopedMemory"
    ],
    "verified_functions": [
      "demo",
      "__init__",
      "write",
      "forget",
      "_pending_tombstones",
      "read",
      "write_from_read"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "KeyError",
      "TombstoneResurrectionError"
    ],
    "sample_fail_closed_invariants": [
      "assert rd.record.tombstoned and rd.scope_had_pending_tombstones",
      "unexpected pending tombstone post-reconcile"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
