{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tombstoned-memory-from-resurfacing-through-summary-derived-retrieval-in-agent-read-write-forget-interfaces",
  "title": "Which invariants prevent tombstoned memory from resurfacing through summary-derived retrieval in agent read/write/forget interfaces",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose memory subsystem exposes separate `write`, `read`, and `forget` tool calls with provenance metadata and deletion guarantees, and whose read path performs summarization or distillation before returning context. Does not apply to append-only logs with no derived/aggregate tier, nor to single-shot stateless completions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurfacing-through-summary-derived-retrieval-in-agent-read-write-forget-interfaces.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurfacing-through-summary-derived-retrieval-in-agent-read-write-forget-interfaces.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurfacing-through-summary-derived-retrieval-in-agent-read-write-forget-interfaces.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1630,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(entity_id)` call that returns `{\"deleted\": true}` proves only that the *canonical* record was removed from the primary store. It does **not** prove that the entity is absent from derived artifacts: rolling summaries, episodic digests, semantic-cluster centroids, and embedding indexes that were materialized from the record *before* deletion. The fai...",
    "what_was_observed": "An agent maintained a `notes` memory with records of the form `{id, text, provenance: {source, timestamp, hash}, ttl}`. A nightly distillation job collapsed episodic notes into a semantic summary node: `summary_17` contained the sentence \"User's staging DB password rotation was deferred to the vendor.\" The underlying record `note_4412` was later forgotten via `forget(\"note_4412\")`, which removed it from the primary t...",
    "condition_of_validity": "The resurrection is only possible when all three hold simultaneously: 1. **Derivation without back-reference enforcement.** The derived artifact stores `derived_from` as advisory metadata that the read path does not filter on. 2. **Forget is shallow.** `forget` operates on the primary key space and does not compute the derivation closure `{d : entity_id ∈ d....",
    "decision_boundary": "The agent must decide, at `forget` time, between two contracts, and must not silently pick one: - **Shallow forget (fast, weak):** delete primary record, mark tombstone, and *require* the read path to intersect every returned artifact's `derived_from` against the tombstone set before injection into context. Cost is paid on every read (set intersection over p...",
    "operational_effect": "Once resurrection-by-derivation occurs, the tombstone set and the live record set diverge in a way that defeats later audits: the forgotten entity is absent from primary storage but present in context, and any new record written from the summary carries *valid-looking* provenance. Deletion guarantees become unverifiable because the evidence of the original f..."
  },
  "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": "52ec6f0598fb49cb73b1f21273f51271d2258672f3ea90dc56a667f79108b413",
    "verified_classes": [
      "ResurrectionByDerivationError",
      "Artifact",
      "MemoryStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "forget",
      "_closure",
      "read",
      "write_from_source"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResurrectionByDerivationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
