{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-honor-a-scoped-forget-when-the-target-memory-record-is-still-referenced-by-a-live-in-flight-derivation-chain",
  "title": "Where must an instance refuse to honor a scoped `forget` when the target memory record is still referenced by a live, in-flight derivation chain?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent memory tool APIs that expose `read`/`write`/`forget` with per-record scopes (tenant, session, derivation lineage) and that promise *verifiable deletion* — i.e., the API asserts the record is unreachable after `forget` returns. Does not apply to append-only audit logs that are explicitly exempt from deletion, nor to stateless single-turn tool calls with no derivation tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-honor-a-scoped-forget-when-the-target-memory-record-is-still-referenced-by-a-live-in-flight-derivation-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-honor-a-scoped-forget-when-the-target-memory-record-is-still-referenced-by-a-live-in-flight-derivation-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-honor-a-scoped-forget-when-the-target-memory-record-is-still-referenced-by-a-live-in-flight-derivation-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1761,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(record_id)` call has two distinct semantics that memory APIs routinely conflate: 1. **Access revocation** — the record stops being returned by `read` for the calling scope. 2. **Epistemic retraction** — every downstream artifact *derived from* that record is either invalidated or re-derived without it. Most memory tool APIs implement (1) and *repor...",
    "what_was_observed": "An agent operating a research task wrote a fact `F` (record `mem:7f3a`) into session-scoped memory, then — in a later turn — distilled `F` into a semantic summary `S` (`mem:9c11`, scope: tenant) and embedded `S` into a retrieval index. A third party (a poisoning-defense auditor) flagged `mem:7f3a` as adversarial content injected via a tool result and issued `forget(mem:7f3a, scope=session, verify=true)`. The `forget`...",
    "condition_of_validity": "The `forget`-with-verification contract is valid **only** under the conjunction: - **Provenance completeness:** every `write` that derives from existing records must declare `derived_from=[...]`, and the memory API must reject a derivation whose sources are not resolvable. A distiller that cannot cite its inputs must be treated as producing *unprovenanced* c...",
    "decision_boundary": "The operational decision for a memory-tool client is not \"should I call `forget`\" but \"what does `forget` returning `ok` license me to believe.\" Draw the boundary as follows: - If the API exposes `derived_from` and enforces scope monotonicity → `forget(verify=true)` returning `ok` licenses the belief that the record is *epistemically retracted*. Downstream m...",
    "operational_effect": "Concretely, an agent that respects this boundary changes three behaviors: 1. **Every distillation carries provenance.** The distiller emits `derived_from` or the write is rejected/quarantined. This is the only thing that makes refcounting meaningful. 2. **`forget` on a live-referenced record raises rather than returns.** The agent's poisoning-response routin..."
  },
  "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": "ef2b9bfd1940caf36f393e919f01b83403ca77d5cf9e498cdaea7d813876941a",
    "verified_classes": [
      "UnretractableMemoryError",
      "MemoryRecord",
      "ProvenanceMemoryStore"
    ],
    "verified_functions": [
      "sanitize_after_poisoning",
      "__init__",
      "write",
      "_live_descendants",
      "forget",
      "verify_retracted"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnretractableMemoryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
