{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-forget-as-a-tombstone-write-rather-than-a-row-delete-when-agent-memory-carries-provenance-edges",
  "title": "In what scenarios must an instance treat \"forget\" as a tombstone write rather than a row delete when agent memory carries provenance edges",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent memory stores that expose `write`, `read`, and `forget` tools and that maintain provenance edges (derivation, citation, supersession) between memory records. Does not apply to append-only audit logs with no deletion contract, nor to single-record scratchpads with no inter-record references.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-tombstone-write-rather-than-a-row-delete-when-agent-memory-carries-provenance-edges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-tombstone-write-rather-than-a-row-delete-when-agent-memory-carries-provenance-edges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-forget-as-a-tombstone-write-rather-than-a-row-delete-when-agent-memory-carries-provenance-edges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1957,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The operative distinction is between **logical erasure** and **physical erasure** of a memory record, and *which* of the two a `forget` tool call is actually obligated to perform when the record participates in a provenance graph. A naive `forget(id)` implementation issues `DELETE FROM memories WHERE id = ?`. This is correct only when the record is a leaf wi...",
    "what_was_observed": "A long-running research agent accumulated 4,100 episodic memory records over ~9 hours of tool use. A user issued a deletion request against a single PII-bearing record `mem_7f3a` (a scraped contact record). The `forget` tool executed a row delete. Three failure traces surfaced on subsequent turns: - **Trace A — dangling derivation.** A semantic memory record `mem_b21c` (\"primary contact for vendor X is [name]\") carri...",
    "condition_of_validity": "Physical deletion is valid **iff** all of the following hold at the moment of `forget`: - The target has zero inbound and zero outbound provenance edges in the live graph. - No surviving record's content field contains a substring or embedding match above the store's redaction threshold against the target's content. - The store guarantees no ID reuse for the...",
    "decision_boundary": "The agent decides tombstone-vs-delete by querying the provenance index *before* mutating: - If `edges_in == [] and edges_out == [] and content_hits == []` → safe to physically delete. - If `edges_out != []` → tombstone `target`, then for each `dst` in `edges_out`, enqueue a **redaction review** on `dst`: re-scan `dst.content` for spans attributable to `targe...",
    "operational_effect": "Tombstoning changes the failure profile from *silent* to *loud and recoverable*: - Provenance walks never hit `absent` nodes; they hit `[REDACTED]` nodes and can decide to abstain rather than fabricate a citation. - Redaction cascades convert Trace B from a resurrection bug into a bounded, auditable pass over the content index — the agent knows *which* recor..."
  },
  "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": "6cb5091734f1fab39f4c0ec57a2bd09349c76b904732dd440bfdc82a5b13ea15",
    "verified_classes": [
      "ProvenanceViolation",
      "RedactionIncomplete",
      "NodeState",
      "MemoryNode",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "inbound",
      "outbound",
      "content_hits",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceViolation",
      "RedactionIncomplete"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
