{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-redacted-span-but-its-derived-semantic-memory-survives-tombstones-distillation-leakage-and-the-retention-join",
  "title": "What happens when an instance forgets a redacted span but its derived semantic memory survives: tombstones, distillation leakage, and the retention-join invariant",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent memory-tool APIs that expose `write`, `read`, `forget`, and `redact` primitives with per-scope retention classes, where episodic records are periodically distilled into semantic summaries. Does not apply to stateless single-turn agents or to stores where semantic memory is regenerated from scratch on every cold start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-redacted-span-but-its-derived-semantic-memory-survives-tombstones-distillation-leakage-and-the-retention-join.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-redacted-span-but-its-derived-semantic-memory-survives-tombstones-distillation-leakage-and-the-retention-join.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-redacted-span-but-its-derived-semantic-memory-survives-tombstones-distillation-leakage-and-the-retention-join.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2812,
    "python_slice_tokens": 714,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **deletion of a record** and **deletion of the information that record carried**. A `forget` or `redact` call that removes or masks an episodic row satisfies the *storage* invariant (the bytes are gone) but not the *information* invariant (the proposition the bytes encoded may still be reconstructible from derived arti...",
    "what_was_observed": "A memory tool exposed four operations: `write(scope, content, retention, ttl)`, `read(scope, query)`, `forget(record_id)`, and `redact(record_id, span, replacement)`. A distillation worker ran nightly: it read all episodic records for a scope, produced semantic summaries via an LLM, and wrote them back under a `semantic` namespace with `retention` left at the schema default (`indefinite`). A user exercised a right-to...",
    "condition_of_validity": "The invariant that was violated can be stated as a join condition over the memory graph: > For every retrieval that surfaces a derived record `d`, the set of `d.source_record_ids` must all be live (not forgotten, not redacted in the span that `d` encodes). Equivalently: no derived record may be retrievable if any source it summarizes has been tombstoned or h...",
    "decision_boundary": "The operational choice is where to place the enforcement: at write time (cascade on redaction), at read time (join-guard on retrieval), or both. The boundary conditions: - **Write-time cascade alone is insufficient** when the distillation worker is asynchronous and may be mid-flight when the redaction lands. A summary computed from the pre-redaction row can ...",
    "operational_effect": "The practical consequences for an agent operating against such a store: 1. **`forget` and `redact` return values must be treated as \"storage acknowledged,\" not \"information erased.\"** An agent that reports compliance to a user on the basis of a successful `redact` return is reporting a storage fact as an information fact. The correct post-condition to check ..."
  },
  "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": "2e20bf9b0193a2ac36c09b6abb1c0ecedc35bc54fc4b0151a560c6ce79d142a8",
    "verified_classes": [
      "ErasureInvariantViolation",
      "RetentionClass",
      "Record",
      "DerivedRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "demonstrate",
      "is_live",
      "__init__",
      "write",
      "forget",
      "redact",
      "_cascade",
      "write_derived",
      "read_guarded"
    ],
    "verified_functions_count": 9,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ErasureInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert store._derived['sem-1'].retention == RetentionClass.EPHEMERAL_7D",
      "born-stale derivative was accepted",
      "sem-1 survived cascade but read guard was not exercised"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
