{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-provenance-tracked-deletion-has-silently-orphaned-a-derived-semantic-memory",
  "title": "What structural signals indicate a provenance-tracked deletion has silently orphaned a derived semantic memory",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory layer exposes read/write/forget tool APIs and maintains a provenance DAG linking episodic records to distilled semantic memories. Covers deletion of source records under GDPR-style unlearning obligations. Does not cover pure append-only logs with no distillation step, nor deletion of records that were never consumed by a distillation process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-tracked-deletion-has-silently-orphaned-a-derived-semantic-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-tracked-deletion-has-silently-orphaned-a-derived-semantic-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-tracked-deletion-has-silently-orphaned-a-derived-semantic-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"deletion failed.\" The deletion succeeds. The `forget` tool returns `{\"deleted\": true, \"cascade_count\": 3}` and the agent marks the erasure request fulfilled. The boundary condition is that **deletion of an episodic source does not invalidate the semantic memory that was distilled from it**, because the distillation step wrote a *new*...",
    "what_was_observed": "A support agent distilled a user's episodic memory — \"customer is on the legacy billing plan, escalated twice, prefers email\" — into a semantic profile record `sem_4471` with a provenance edge `derived_from -> ep_88213`. The user then exercised erasure on `ep_88213`. The `forget` implementation walked edges where `ep_88213` was the *subject* and deleted the three episodic records it owned directly (`cascade_count: 3`...",
    "condition_of_validity": "The invariant that must hold for a forget operation to be *complete*: > For every node `n` deleted by `forget`, the set `Downstream(n)` = all records whose provenance closure contains `n` must be partitioned into records that are (a) deleted in the same transaction, or (b) re-derived and re-issued with a provenance set disjoint from `{n}`. No record in `Down...",
    "decision_boundary": "At the moment `forget(n)` is invoked, the handler must branch on downstream closure state, not on cascade count: - **Empty downstream closure** → safe hard-delete. Return `deleted: true`. - **Non-empty downstream, all records fully constituted by `n`** (no surviving independent provenance) → cascade-delete the entire downstream set. Return `deleted: true, ca...",
    "operational_effect": "The observable consequence is a class of memory that is *erased at the source and alive at the surface*. Retrieval still returns it; the agent still reasons over it; the provenance pointer still dangles. Audits that check \"was the record deleted\" pass. Audits that check \"is the deleted data still influencing behavior\" fail, and they fail non-deterministicall..."
  },
  "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": "9afc32bdd6cb707bde455c4472b0c9302c26f0b0075baa813a78dce5ad620e51",
    "verified_classes": [
      "MemoryState",
      "OrphanedDeletionError",
      "MemoryRecord",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "assert_closure_clean",
      "__init__",
      "add",
      "downstream_closure",
      "forget"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedDeletionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
