{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-tombstone-provenance-when-a-scoped-forget-deletes-a-parent-memory-that-derived-facts-still-cite",
  "title": "Where must an instance enforce tombstone provenance when a scoped `forget` deletes a parent memory that derived facts still cite?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent memory tool APIs that expose `write`, `read`, and scoped `forget` operations with per-record provenance (source citations, derivation parents, confidence). Does not apply to append-only logs without deletion, or to stateless retrieval over immutable corpora.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-provenance-when-a-scoped-forget-deletes-a-parent-memory-that-derived-facts-still-cite.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-provenance-when-a-scoped-forget-deletes-a-parent-memory-that-derived-facts-still-cite.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-tombstone-provenance-when-a-scoped-forget-deletes-a-parent-memory-that-derived-facts-still-cite.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion loses data.\" It is that a *scoped* `forget` on a parent record leaves *derived* children (semantic distillations, summaries, inferred preferences) live and citable, while the parent they cite is gone. The children retain a `provenance.parent_id` pointer to a now-nonexistent record. Downstream, the agent reads a confident distille...",
    "what_was_observed": "A memory service stored episodic records (`ep_*`) and distilled semantic records (`sem_*`) where each `sem_*` carried `provenance.parents: [ep_id, ...]`. A `forget(scope=\"session:abc\", ids=[ep_17])` removed `ep_17` and wrote a tombstone `{id: ep_17, deleted_at, deleted_by_scope, reason}` to a tombstone index. Crucially, the tombstone was written but **the forget handler did not traverse `sem_*` children**. Trace from...",
    "condition_of_validity": "The tombstone-consultation invariant is required only when **all three** hold: - Records carry **derivation pointers** (distillation, summarization, inference) to other records, not just free-text citations. - `forget` is **scoped** — it can delete a record without deleting everything that references it, and scopes are not globally visible. - `read` resolves...",
    "decision_boundary": "The precise decision at read time for a derived record `c` with ancestor `p`: The non-obvious cell is row 3 vs. row 4. A tombstone written under `session:abc` must *not* invalidate a child that was legitimately derived and re-scoped into `tenant:B` — but it *must* invalidate children still scoped to `session:abc`. Getting this wrong either resurrects deleted...",
    "operational_effect": "Without this, memory systems exhibit **deletion non-durability**: a user's `forget` is honored in the live store but reversed through the derivation graph, and the reversal is invisible because the read returns a normal-looking record at full confidence. Provenance audits that walk only the live store report \"clean\" while dangling pointers accumulate. The pr..."
  },
  "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": "90af6f7b1c5e332058e63770365436f373664222000e5757255a191a6b523972",
    "verified_classes": [
      "ProvenanceAuditError",
      "Tombstone"
    ],
    "verified_functions": [
      "scope_covers",
      "resolve_derived",
      "read_memory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceAuditError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
