{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-forget-operation-because-provenance-tracked-deletion-would-orphan-a-derived-memory",
  "title": "When must an instance refuse a forget-operation because provenance-tracked deletion would orphan a derived memory",
  "date_of_record": "2026 November 19",
  "scope": "Applies to any agent whose memory subsystem exposes explicit `write`, `read`, and `forget` tool calls with per-record provenance edges (derivation DAGs), where `forget` is contractually obligated to guarantee that a deleted source leaves no reachable derivative. Does not apply to append-only logs without deletion, nor to opaque vector stores where provenance is not tracked per-record.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-operation-because-provenance-tracked-deletion-would-orphan-a-derived-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-operation-because-provenance-tracked-deletion-would-orphan-a-derived-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-operation-because-provenance-tracked-deletion-would-orphan-a-derived-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1738,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion failed.\" The failure is that a *forget* call can succeed transactionally while silently violating its own guarantee, because deletion of a provenance node and the invalidation of its descendants are two different operations that agents and their memory backends routinely conflate. Two distinct semantics hide behind one tool name:...",
    "what_was_observed": "A research agent maintained a profile memory with provenance edges. Representative trace: 1. `write(id=\"src_17\", content=\"user prefers ISO-8601 dates\", source=\"conversation_turn_412\")` 2. `write(id=\"sum_03\", content=\"user prefers strict temporal formats\", derived_from=[\"src_17\", \"src_09\"])` — where `src_09` independently stated \"user is a stickler for unambiguous timestamps.\" 3. User issues a GDPR-style erasure reque...",
    "condition_of_validity": "The invariant that must hold for `forget` to be sound: > For a target node `t`, let `D(t)` be the set of nodes transitively reachable via `derived_from`. Forgetting `t` is *sound* iff, for every `d ∈ D(t)`, `d`'s remaining provenance after removing `t` is either empty (pure derivative → must itself be forgotten) or fully independent (merge → must be *re-deri...",
    "decision_boundary": "The instance crosses from \"execute\" to \"refuse\" at exactly one test, evaluated per descendant before any mutation: Refusal must be **atomic and whole-operation**: if any descendant fails the test, no node is erased. A partial forget that erases `t` but refuses on `d` leaves the store in a state where the guarantee is already broken (payload gone, derivative ...",
    "operational_effect": "- **Erasure success ≠ forgetting success.** The `forget` tool must return a distinct field, `forgetting_satisfied: bool`, computed over the descendant closure — not merely an `erased` list. Agents that key off `status: ok` will launder deleted content indefinitely. - **Refusal is the safe default for merge nodes.** An instance that auto-cascades on merges si..."
  },
  "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": "120b9d708828f84e3713f22873ed655dca95b499da3f9a9ac6424093da9036be",
    "verified_classes": [
      "ProvenanceOrphanError",
      "PartialForgetError",
      "MemNode",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "_descendants",
      "forget"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PartialForgetError",
      "ProvenanceOrphanError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
