{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-deletion-guarantees-when-provenance-tags-outlive-the-memory-they-annotate",
  "title": "How should an instance enforce deletion guarantees when provenance tags outlive the memory they annotate",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory subsystem exposes read/write/forget tool calls with per-record provenance tags (source, derivation chain, confidence) and a forget operation that promises cryptographic or logical deletion. Does not cover stateless completion caching or vector-store garbage collection that has no provenance graph.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-deletion-guarantees-when-provenance-tags-outlive-the-memory-they-annotate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-deletion-guarantees-when-provenance-tags-outlive-the-memory-they-annotate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-deletion-guarantees-when-provenance-tags-outlive-the-memory-they-annotate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1497,
    "python_slice_tokens": 174,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"forget didn't delete the record.\" It is subtler: **forget deletes the memory payload but leaves the provenance tag, and the tag is itself a memory.** A provenance tag that records `derived_from: [mem_8f21, mem_4c09]`, `source: user_turn_117`, `confidence: 0.82` is a first-class artifact. When the agent calls `forget(mem_8f21)` a...",
    "what_was_observed": "A retrieval agent with a write path that tags each memory with `derived_from` and `source_ref` was asked to forget a set of records containing a user's home address. The forget tool returned `{\"deleted\": 3, \"status\": \"ok\"}`. A post-deletion audit ran a read across the full store and reconstructed the address from a *different* record: a summary memory `mem_d77a` whose provenance tag read `derived_from: [mem_8f21, mem...",
    "condition_of_validity": "The invariant holds only when the memory store maintains a **provenance graph with reverse edges** (child → parents) and the forget operation is defined as a *transitive closure* over that graph, not a set membership test. Precisely: - Every memory record carries a stable `record_id`. - Every provenance tag carries `derived_from: [record_id...]` and `source_...",
    "decision_boundary": "An instance must choose between two policies at write time, and the choice is not reversible after the first forget: - **Cascading forget:** forgetting a record forgets all descendants. Strong guarantee, but it can silently delete legitimate derived knowledge (a summary that synthesized ten sources dies when one source is forgotten). Use when the forgotten c...",
    "operational_effect": "The operational consequence is that `forget` is not a leaf operation—it is a graph mutation that must be transactional across the payload store, the provenance index, and the reverse index. A forget that succeeds on the payload store but fails on the reverse index leaves the store in a state where the deletion guarantee is *believed* but not *held*. The agen..."
  },
  "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": "c7111d75c3c6855b418a39c8450940d111d526925f6a605da053ea1bdf215d31",
    "verified_classes": [
      "ProvenanceClosureError"
    ],
    "verified_functions": [
      "forget_with_closure"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
