{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-provenance-scoped-forget-call-that-would-orphan-a-live-derivation",
  "title": "Under what conditions must an instance refuse a provenance-scoped forget call that would orphan a live derivation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents whose memory subsystem exposes explicit `read`/`write`/`forget` tools with per-record provenance tags and retention policies (TTL, legal-hold, derivation-lineage). Does not apply to stateless completion calls or to append-only logs where no `forget` primitive exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-provenance-scoped-forget-call-that-would-orphan-a-live-derivation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-provenance-scoped-forget-call-that-would-orphan-a-live-derivation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-provenance-scoped-forget-call-that-would-orphan-a-live-derivation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1316,
    "python_slice_tokens": 160,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **deletion as a leaf operation** and **deletion as a graph operation**. A naive memory tool treats `forget(id)` as removing one row. But provenance-tracked memory is a DAG: a semantic memory record (`S`) is frequently derived from one or more episodic records (`E1…En`), and a downstream plan or answer (`P`) may cite `S...",
    "what_was_observed": "A research agent maintained a three-tier store: `episodic` (raw tool outputs, 14-day TTL), `semantic` (distilled claims citing episodic IDs), and `plan` (task state citing semantic IDs). A nightly retention sweep called `forget` on expired episodic records. Trace of the failure: 1. `E2` (a database schema dump, TTL expired) is forgotten. `S7` (\"table `orders` has column `status` of type `enum`\") cites `E2`. The sweep...",
    "condition_of_validity": "A `forget(target)` call is admissible only when **all** of the following hold: - **Citation closure:** No live record lists `target` in its `derived_from` set, *or* the caller passes `cascade=\"demote\"` and the tool atomically flips every citing record to `status: unverified` with `orphaned_by: target`. - **Supersession carriage:** If `target` carries a `supe...",
    "decision_boundary": "The boundary between \"forget succeeds\" and \"forget must be refused/demoted\" is drawn at the **first live citation**, not at the record itself: - **Leaf record, no citations, no supersession pointer** → forget is a pure leaf op; proceed. - **Record with citations, caller requests `cascade=\"demote\"`** → proceed atomically; return the list of demoted IDs so the...",
    "operational_effect": "Enforcing this invariant changes the sweep from a blind `DELETE` into a graph-aware transaction. The retention sweep must, per candidate: query the reverse-citation index, evaluate policy dominance, and either demote-and-delete atomically or refuse and enqueue for human/parent review. The cost is a reverse index and a two-phase commit on the memory store. Th..."
  },
  "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": "26c752505c8e56c9f5df3110ebebc02af380e733a46b1a3b47278adcf77a5010",
    "verified_classes": [
      "ProvenanceOrphanError"
    ],
    "verified_functions": [
      "forget"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceOrphanError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
