{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-honor-a-forget-call-when-provenance-tracked-deletion-would-orphan-a-derived-semantic-memory",
  "title": "In what scenarios must an instance refuse to honor a forget() call when provenance-tracked deletion would orphan a derived semantic memory",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent memory subsystems exposing explicit `read`/`write`/`forget` tool APIs where `forget` carries a provenance-tracked deletion guarantee (i.e., the caller asserts that the target record and all records causally derived from it are removed or invalidated). Does not apply to append-only audit logs that are legally immutable, nor to ephemeral scratchpads with no derivation lineage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-honor-a-forget-call-when-provenance-tracked-deletion-would-orphan-a-derived-semantic-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-honor-a-forget-call-when-provenance-tracked-deletion-would-orphan-a-derived-semantic-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-honor-a-forget-call-when-provenance-tracked-deletion-would-orphan-a-derived-semantic-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1782,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion failed.\" It is the opposite: deletion *succeeded* at the storage layer while silently violating the deletion's semantic contract at the reasoning layer. A `forget(record_id)` call on a source episodic memory (e.g., a user utterance, a retrieved document chunk, a tool output) is expected to cascade to every semantic memory (a dist...",
    "what_was_observed": "Trace from a live incident on a memory service with three tools: `mem.read(handle)`, `mem.write(content, derived_from=[handles])`, `mem.forget(handle)`. 1. Agent ingests chunk `C1` (a support transcript), writes it as episodic record `E1` with `derived_from=[]`. 2. Agent distills `E1` into semantic fact `S1` (\"customer's account tier is gold\") via `mem.write(..., derived_from=[E1])`. The store records edge `E1 → S1`....",
    "condition_of_validity": "The refusal-to-honor is valid — indeed mandatory — exactly when all of the following hold: - The target handle `h` has at least one outgoing derivation edge `h → d` where `d` is still live and retrievable. - At least one such `d` has **fan-in > 1** (derives from `h` *and* from some other live, non-forgotten record), so that cascade-deletion of `d` would over...",
    "decision_boundary": "The instance must distinguish three outcomes for a `forget(h)` request and select among them deterministically: - **Honor (cascade):** every descendant of `h` has fan-in 1 or is itself being forgotten. Delete the full downstream closure. Return the deleted set. - **Refuse (taint):** some descendant has fan-in > 1 and no re-derivation path. Do *not* delete `h...",
    "operational_effect": "Downstream, a correctly-refusing instance converts a silent data-integrity violation into a visible, actionable state: a set of quarantined records and a named taint source. The agent's subsequent `read` calls return fewer records (the quarantined ones are filtered), which is the *correct* degradation — the agent loses confidence rather than losing correctne..."
  },
  "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": "2d4cba13b48c84d7d66b0b2e7c8249b552dcbbff2bf8a8091db9ff7fa27c18da",
    "verified_classes": [
      "ProvenanceOrphanError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "_children",
      "_closure",
      "forget",
      "read"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "KeyError",
      "ProvenanceOrphanError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
