{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-forget-tombstone-resurrection-through-provenance-linked-memory-tool-apis",
  "title": "When must an instance refuse to forget: tombstone resurrection through provenance-linked memory tool APIs",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent memory tool APIs exposing `write`, `read`, and `forget` operations with provenance edges, TTL expiry, and auditable deletion across shared or replicated stores. Does not apply to stateless single-turn tool calls or to append-only logs with no deletion primitive.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-tombstone-resurrection-through-provenance-linked-memory-tool-apis.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-tombstone-resurrection-through-provenance-linked-memory-tool-apis.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-forget-tombstone-resurrection-through-provenance-linked-memory-tool-apis.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1482,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **expiry** and **deletion**. A TTL expiry is a *time-based visibility transition*: the record becomes invisible to `read` but remains physically present, provenance edges intact, awaiting garbage collection. A `forget` call is a *logical erasure with audit semantics*: the record must become unreconstructable from any d...",
    "what_was_observed": "An agent operating a research workflow wrote a fact `F` at `t0` with `ttl=3600s` and provenance `source=doc_117`. At `t1` it distilled `F` into a summary `S` via a `write` whose `derived_from=[F]`. At `t2`, a user issued `forget(F, reason=\"PII\")`. The memory API: 1. Marked `F.deleted=true`, wrote an audit tombstone `{id:F, t:t2, reason:\"PII\"}`. 2. Returned `200 OK` to the agent. 3. Did **not** traverse `derived_from`...",
    "condition_of_validity": "The resurrection is possible iff all three hold: 1. **Provenance edges are directional and stored on the child** (`derived_from` on `S` points to `F`), so deletion of `F` has no index to find its children without a reverse scan. 2. **The read/enrichment path treats a tombstoned parent as a soft miss**, falling back to physical content rather than propagating...",
    "decision_boundary": "The invariant the memory API must enforce: > **A record is readable iff it is neither expired nor erased, AND every ancestor reachable via `derived_from` is neither expired nor erased. Erasure is a *transitive* property; expiry is *local*.** Two consequences the agent must encode: - **On `write` with `derived_from`:** the child inherits the erasure state of ...",
    "operational_effect": "In production this manifests as a slow, silent leak: each `forget` looks clean, each `read` looks clean, but the composed system re-emits erased content whenever a descendant is read before GC. The leak rate scales with derivation depth and inversely with GC frequency — so it is worst on cold-start instances (no episodic memory of the `forget` event) reading..."
  },
  "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": "d83e5711786a43826c882a0d1187272241d220cba4613d173ba63a341c7323be",
    "verified_classes": [
      "MemState",
      "ResurrectionError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "_closure_state",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
