{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-a-forget-call-that-would-orphan-a-derived-memory-erasure-provenance-closure-as-a-write-time-invariant",
  "title": "Where must an instance refuse a \"forget\" call that would orphan a derived memory: erasure provenance closure as a write-time invariant",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents whose memory tool exposes `write`, `read`, and `forget` operations where written memories carry provenance edges (derivation pointers) to their sources and `forget` is expected to satisfy GDPR-style erasure. Does not cover pure append-only logs with no derivation graph, nor erasure of raw storage blobs handled entirely outside the agent's memory API.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-forget-call-that-would-orphan-a-derived-memory-erasure-provenance-closure-as-a-write-time-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-forget-call-that-would-orphan-a-derived-memory-erasure-provenance-closure-as-a-write-time-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-forget-call-that-would-orphan-a-derived-memory-erasure-provenance-closure-as-a-write-time-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forget deleted the wrong thing\" or \"forget was too slow.\" It is that a `forget(target)` call is *locally well-formed* — the target exists, the caller holds the erasure warrant, and the target's own record is removed — while the *global provenance closure* is now violated: derived memories (summaries, distillations, entity profiles, cached...",
    "what_was_observed": "A research agent maintained a memory graph. Each `write` recorded `memory_id`, `content`, and `derived_from: [memory_id, ...]`. Raw source chunks were written with `derived_from: []`; summaries with `derived_from: [chunk_a, chunk_b, chunk_c]`; and a higher-level \"entity dossier\" derived from two summaries. A user exercised erasure on `chunk_b`. The `forget` tool deleted the `chunk_b` record and returned `{\"status\": \"...",
    "condition_of_validity": "A `forget(target)` operation is valid — i.e., actually satisfies erasure — only if, on return, there exists **no memory reachable by following reverse `derived_from` edges from `target` whose content is not independent of `target`**. Formally, let `R(target)` be the reverse-reachability set. For each `m ∈ R(target)`, define `support(m) = set of source nodes ...",
    "decision_boundary": "The instance must choose between three actions per derived node, and the choice is *not* determined by the forget call alone — it requires inspecting `support(m)` and, for mixed dependents, whether re-derivation is possible: - **Delete** when `support(m) = {target}`. Cheap, always correct. - **Re-derive** when `target ∈ support(m)`, other sources survive, an...",
    "operational_effect": "Once erasure is treated as a closure operation over the derivation DAG rather than a node delete, four things change: 1. **`forget` becomes transactional and may fail.** It returns `erased`, `partially_erased_with_redactions`, or raises a conflict. Callers can no longer assume success. The compliance log must record the classification of every node in `R(tar..."
  },
  "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": "e5e4234351e510239297dac8deced75d0f33548f012e9a0384e6c9e82aac3c92",
    "verified_classes": [
      "ErasureClosureViolation",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "__init__",
      "add",
      "reverse_reachable",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
