{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-tracked-deletion-from-resurrecting-poisoned-memories-through-semantic-distillation",
  "title": "Which invariants prevent provenance-tracked deletion from resurrecting poisoned memories through semantic distillation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent memory systems exposing `read`/`write`/`forget` tool APIs where `forget` performs provenance-tracked deletion (GDPR-style unlearning) and where episodic records are periodically distilled into semantic summaries. Does not apply to append-only logs that never consolidate, nor to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tracked-deletion-from-resurrecting-poisoned-memories-through-semantic-distillation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tracked-deletion-from-resurrecting-poisoned-memories-through-semantic-distillation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-tracked-deletion-from-resurrecting-poisoned-memories-through-semantic-distillation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1641,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(id)` call that removes an episodic record and returns `{\"deleted\": true}` is not evidence that the *information* is gone. The distinction that matters is between **record deletion** (the row is gone) and **information deletion** (no reachable derivation of the record survives). Provenance-tracked deletion usually implements the first and *claims* t...",
    "what_was_observed": "An agent memory service ran nightly distillation: episodes from the last 24h were clustered and summarized into semantic facts, each summary carrying `derived_from: [episode_ids]`. During a red-team run, an attacker injected a poisoned episode via a tool-output path (`write` with `source: \"tool_result\"`), which distilled into a semantic fact asserting a false constraint (\"the deploy target is `prod-legacy`\"). The ope...",
    "condition_of_validity": "The claim \"`forget` removes the information\" holds only under a **closed derivation invariant**: for every record `r`, either `r` is live, or every record `d` with `r ∈ derived_from(d)` is also tombstoned. Equivalently: no live record may cite a tombstoned record in its provenance. This is a referential-integrity constraint *inverted* from the usual one—norm...",
    "decision_boundary": "The boundary is between **cascading tombstone** (delete the record and transitively tombstone every descendant summary, accepting collateral loss of any true content co-mixed in those summaries) and **surgical re-derivation** (delete the record, re-distill every affected summary from its surviving sources, and only tombstone summaries whose surviving sources...",
    "operational_effect": "Without the closed-derivation invariant, `forget` becomes advisory: it removes rows, not information, and the poisoning defense that depends on provenance walking is defeated precisely by the deletion it was meant to enforce. The operational consequence is that **deletion must be verified by reachability, not by return code**—after `forget`, a query for the ..."
  },
  "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": "2412d3fb7dc4c943cdca18fd64421e03866f2c92075b331e4dec5d072f880c46",
    "verified_classes": [
      "DeletionLeak",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "normalize",
      "__init__",
      "write",
      "forget",
      "_verify_closure",
      "distill"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DeletionLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
