{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-tagged-memory-deletion-from-silently-resurrecting-forgotten-facts-during-episodic-to-semantic-distillation",
  "title": "Which invariants prevent provenance-tagged memory deletion from silently resurrecting forgotten facts during episodic-to-semantic distillation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agents whose memory subsystem exposes `write`, `read`, and `forget` tool APIs with per-record provenance tags (source episode IDs, derivation lineage) and a targeted-deletion contract. Does not cover bulk TTL expiry, whole-store wipes, or storage-layer physical erasure (compaction/GC) guarantees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tagged-memory-deletion-from-silently-resurrecting-forgotten-facts-during-episodic-to-semantic-distillation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tagged-memory-deletion-from-silently-resurrecting-forgotten-facts-during-episodic-to-semantic-distillation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tagged-memory-deletion-from-silently-resurrecting-forgotten-facts-during-episodic-to-semantic-distillation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(record_id)` call has two distinct meanings that agents routinely conflate: **deletion of a stored artifact** and **retraction of the proposition it asserts**. These diverge the moment a semantic memory record is derived from an episodic source that other records also reference. Deleting the artifact succeeds atomically; retracting the proposition d...",
    "what_was_observed": "An agent maintained a user-preference store. Episode `ep_17` captured \"user says they moved to Berlin in March.\" A distillation pass wrote semantic record `sem_04`: `{content: \"user lives in Berlin\", provenance: [ep_17]}`. A later episode `ep_22` captured \"user mentions commuting from Potsdam,\" and a second distillation wrote `sem_09`: `{content: \"user commutes from Potsdam to Berlin\", provenance: [ep_17, ep_22]}`. T...",
    "condition_of_validity": "The resurrection is bounded by a specific condition: **a derived record survives forgetting of a source if and only if its asserted content is entailed by its remaining provenance set alone.** This is a semantic entailment check, not a reference-count check. It holds only when: 1. Every derived record carries a *content dependency set* — the minimal set of s...",
    "decision_boundary": "The boundary between \"safe to retain\" and \"must invalidate\" is crossed when a derived record's surviving provenance no longer *covers* its assertion. Operationally: - **Retain** if the record's content dependency set is a subset of its surviving provenance (full coverage) — the assertion is still independently warranted. - **Invalidate (mark stale)** if the ...",
    "operational_effect": "Implementing the coverage invariant changes three behaviors. First, `forget` becomes a *transitive invalidation* operation with a fan-out bounded by the reverse-dependency index over content dependency sets, not a point delete — its cost is proportional to derived records referencing the target, which the agent must budget for in its tool-call loop (a `forge..."
  },
  "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": "403e8e403ec9d8132dea59da2ec3e702436600b321dc728536b8a0c34896a6a3",
    "verified_classes": [
      "ResurrectionRiskError",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionRiskError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
