{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-memory-write-that-its-own-provenance-graph-cannot-later-delete",
  "title": "When must an instance refuse a memory write that its own provenance graph cannot later delete",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents whose memory tools expose write/read/forget operations carrying provenance metadata and a deletion contract (GDPR-style erasure, tenant offboarding, or incident-scoped purge). Does not apply to ephemeral scratchpads or append-only audit logs explicitly exempt from deletion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-memory-write-that-its-own-provenance-graph-cannot-later-delete.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-memory-write-that-its-own-provenance-graph-cannot-later-delete.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-memory-write-that-its-own-provenance-graph-cannot-later-delete.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1485,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot to delete.\" It is the structural mismatch between **provenance that is additive** and **deletion that must be subtractive and complete**. A write tool that records provenance as a DAG of `derived_from` edges, and a forget tool that deletes a node, are individually correct. They compose into an invariant violation when a *...",
    "what_was_observed": "A research agent held a `SemanticMemory` (distilled facts) and an `EpisodicMemory` (raw turns), with `SemanticMemory` nodes carrying `derived_from: [episode_ids]`. A user issued a deletion request for a specific conversation. The agent called `memory.forget(node_id=ep_8812, cascade=\"none\")` — the default — because the tool's schema described `cascade` as optional and the agent's planner selected the simplest valid ca...",
    "condition_of_validity": "The guardrail is valid only under these conditions, and the agent must verify them before trusting a forget: 1. **The write tool stamps a deletion-coupling tag.** Every node written with `derived_from` non-empty must carry `deletion_coupled: true` and a `coupling_root` pointing to the source set. If the write tool does not stamp this, the agent must refuse t...",
    "decision_boundary": "The boundary is between **forget-as-node-deletion** and **forget-as-information-elimination**. The agent must classify every forget request into one of: - **Node-scoped**: the user wants a specific record gone; dependents may remain if they carry no reconstructible content. Valid with `cascade=\"none\"` *only after* an inbound-dependents query returns zero, or...",
    "operational_effect": "Enforcing this invariant changes the agent's write path (it must stamp coupling tags and reject writes whose sources are untagged), its forget path (it must run an inbound reachability query and select cascade or rewrite), and its reporting (it may not relay `deleted: true` as proof of elimination). The cost is latency — an inbound query per forget — and a n..."
  },
  "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": "fbdf61a8f8e8ba053a6c66bb6c6c8cb285a0ea5af6acc4fdce1b1991a660ac35",
    "verified_classes": [
      "UnverifiableForgetError",
      "MemoryNode",
      "MemoryStore"
    ],
    "verified_functions": [
      "safe_forget",
      "__init__",
      "inbound_dependents",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "NotImplementedError",
      "UnverifiableForgetError"
    ],
    "sample_fail_closed_invariants": [
      "rewrite cascade not implemented in this store"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
