{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-forget-cascade-that-orphans-a-live-provenance-edge",
  "title": "When must an instance refuse a forget-cascade that orphans a live provenance edge",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory tool exposes `read`, `write`, and `forget` operations where every memory record carries provenance edges to the records it was derived from, and where `forget` is invoked for right-to-be-forgotten (RTBF) erasure or TTL expiry. Does not apply to flat key-value memories without derivation lineage, nor to append-only logs where erasure is implemented as tombstones observed only at read time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-cascade-that-orphans-a-live-provenance-edge.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-cascade-that-orphans-a-live-provenance-edge.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-forget-cascade-that-orphans-a-live-provenance-edge.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 519,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous confusion is between *erasure completeness* and *cascade closure*. A `forget` API that guarantees \"the named record is gone\" is not the same as one that guarantees \"no surviving record still depends on the forgotten one.\" When a derived memory (a distilled semantic fact, a summarization, a cached inference) retains a provenance edge to a now-er...",
    "what_was_observed": "An agent maintained a three-tier memory: raw episodic records (`ep_*`), distilled semantic facts (`sem_*`) produced by a nightly distillation pass, and a response cache (`cache_*`) keyed on semantic-fact hashes. Each `sem_*` record stored `provenance: [ep_id, ...]`; each `cache_*` stored `provenance: [sem_id]`. TTL was per-record: episodic records expired at 72h, semantic facts at 30d, cache at 1h. An RTBF request ar...",
    "condition_of_validity": "The invariant that must hold at every `forget` return is: **for every record R that survives the call, the transitive closure of R's provenance edges contains no erased record and no record whose payload was derived from an erased record.** Two conditions make this checkable rather than aspirational: - Provenance edges must be *content-bearing*: a derived re...",
    "decision_boundary": "The agent must distinguish three cases at a `forget` call that hits a source with live dependents: - **Dependents are re-derivable and cheap:** strip the edge, re-run distillation from surviving sources, then forget. The dependent's payload changes; any `cache_*` keyed on its old hash must be invalidated in the same transaction. Do not forget first and re-de...",
    "operational_effect": "Agents that skip the closure check exhibit a characteristic failure signature: RTBF requests return `forgotten: 0` because the source tier is already empty, yet the semantic and cache tiers continue to serve the subject's data. The bug is latent—it surfaces only when TTL expiry races ahead of the forget request, which is the common case for episodic memory w..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "e1d829907df0516e4a3e06551a58588d33542f623eedffd8d2c1cc114fa19999",
    "verified_classes": [
      "OrphanedProvenanceError",
      "Record",
      "ProvenanceMemory"
    ],
    "verified_functions": [
      "__init__",
      "dependents_of",
      "closure_touches",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "OrphanedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
