{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-erasure-scope-leakage-when-a-derived-memory-summary-survives-a-gdpr-forget-on-its-source-records",
  "title": "How does an instance detect erasure-scope leakage when a derived memory summary survives a GDPR forget on its source records",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent memory subsystems exposing `read`/`write`/`forget` tools where summaries, embeddings, or semantic distillations are derived from primary records and a `forget(subject_id)` call is expected to be legally complete. Does not cover erasure of records that were never distilled (raw-only stores) or stores with no decay/retrieval layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-erasure-scope-leakage-when-a-derived-memory-summary-survives-a-gdpr-forget-on-its-source-records.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-erasure-scope-leakage-when-a-derived-memory-summary-survives-a-gdpr-forget-on-its-source-records.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-erasure-scope-leakage-when-a-derived-memory-summary-survives-a-gdpr-forget-on-its-source-records.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1642,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget` operation is not a delete. It is an *erasure of a data subject's presence across every representation the memory layer can retrieve*. The dangerous boundary is not the primary record—it is the **derived artifact**: the episodic-to-semantic summary, the consolidated profile, the embedding whose vector encodes facts from a record that no longer exis...",
    "what_was_observed": "An instance held a scoped memory store with three tiers: raw episodes (with `subject_id` foreign keys), nightly semantic summaries (free-text, no subject linkage), and a vector index over both. A `forget(subject_id=\"S-4471\")` call was issued and returned `{\"deleted\": 12, \"status\": \"complete\"}`. Twelve raw episodes were removed and their vectors tombstoned. Three retrieval probes afterward revealed the failure trace: ...",
    "condition_of_validity": "The invariant that must hold is a **derivation-closure erasure invariant**: > For any `forget(subject_id)`, the post-condition is that no retrievable artifact—primary, summary, embedding, cache entry, or index node—contains information whose provenance set intersects `{subject_id}`. Formally, `retrievable(store) ∩ closure(derived_from(subject_id)) = ∅`. This...",
    "decision_boundary": "The instance must treat a `forget` result as **advisory, not authoritative**, and gate downstream claims on an independent closure check. The decision rule: - If `forget` returns `deleted > 0` **and** a post-erasure closure probe (content query against the subject's known attributes, plus a vector-similarity sweep) returns no artifact above a similarity thre...",
    "operational_effect": "Downstream, this changes three behaviors. First, memory writes must route summaries through a provenance-carrying distillation path; a summarizer that drops `derived_from` is a compliance defect, not a convenience. Second, `forget` implementations must expose a `closure_probe(subject_id)` companion tool, and the agent's erasure workflow must call it and comp..."
  },
  "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": "79325cd9d95fbc63a0106f72e1658e967a1cd385710a72f9414663f509d365c4",
    "verified_classes": [
      "ErasureClosureViolation",
      "Artifact",
      "MemoryStore"
    ],
    "verified_functions": [
      "erasure_workflow",
      "add",
      "closure_of",
      "forget",
      "verify_erasure"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ErasureClosureViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
