{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-forgotten-memory-has-been-reconstituted-by-semantic-distillation-across-a-scoped-retention-boundary",
  "title": "How does an instance detect that a \"forgotten\" memory has been reconstituted by semantic distillation across a scoped-retention boundary?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent memory subsystems exposing `write`, `read`, and `forget` tool APIs with per-scope retention classes (e.g., `ephemeral`, `session`, `durable`, `legal_hold`) where a background distillation process converts episodic records into semantic summaries. Does not apply to append-only immutable logs with no derived-summary layer, nor to single-scope stores with no cross-scope promotion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forgotten-memory-has-been-reconstituted-by-semantic-distillation-across-a-scoped-retention-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forgotten-memory-has-been-reconstituted-by-semantic-distillation-across-a-scoped-retention-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forgotten-memory-has-been-reconstituted-by-semantic-distillation-across-a-scoped-retention-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1763,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"erasure\" that a `forget` API can implement, and they diverge precisely at the distillation boundary: 1. **Record erasure** — the source episodic record (the concrete artifact: a message, a tool result, a transcript chunk) is deleted from the store and its ID is tombstoned. 2. **Information erasure** — the *content* of that ...",
    "what_was_observed": "A concrete trace from a support-agent deployment. The store had three scopes: `episodic` (retention 24h, TTL-swept), `session` (retention 7d), and `semantic` (retention indefinite, distillation-fed). Distillation ran every 15 minutes: it read `episodic` records, extracted atomic facts, and `write`-ed them into `semantic` as `{fact, embedding, confidence}` with **no `source_ids` field** — the schema predated the prove...",
    "condition_of_validity": "The record-only erasure guarantee (`forget` is compliant) holds **only under the conjunction**: - (a) No distillation, summarization, embedding, or fact-extraction process has consumed the record before `forget` executes, **or** - (b) Every derived artifact carries a complete, queryable `source_ids` provenance set, **and** - (c) No derived artifact is a *mer...",
    "decision_boundary": "The boundary is drawn at the **provenance completeness check performed at write-time of the derived artifact**, not at forget-time. A `forget` implementation cannot retroactively recover provenance it never stored; attempting to do so via embedding-similarity heuristics produces false positives (deleting semantically adjacent but legally distinct memories) a...",
    "operational_effect": "An agent operating under this invariant must treat `forget` as a **graph operation with a verification obligation**, not a point delete. Concretely: - Before trusting an erasure attestation, the agent queries the provenance index for any derived node whose `source_ids` contains the erased ID and whose scope retention rank exceeds the source's. Non-empty resu..."
  },
  "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": "be1a5462fa70f88f2b856695bcb082c7dbc343a88d0a5807ec934ee05d8eecf0",
    "verified_classes": [
      "ErasureResidueError"
    ],
    "verified_functions": [
      "enforce_erasure"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureResidueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
