{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-complete-erasure-when-a-memory-tool-s-forget-api-silently-tombstones-derived-summaries-instead-of-recomputing-t",
  "title": "How does an instance detect provenance-complete erasure when a memory tool's \"forget\" API silently tombstones derived summaries instead of recomputing them",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent memory subsystems exposing `read`/`write`/`forget` tool APIs where each memory record carries provenance tags (source-record IDs, derivation lineage, or taint labels) and where \"forget\" is invoked for GDPR-style targeted erasure of a specific subject's data. Does not cover bulk namespace drops, cold-storage deletion, or model-weight unlearning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-complete-erasure-when-a-memory-tool-s-forget-api-silently-tombstones-derived-summaries-instead-of-recomputing-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-complete-erasure-when-a-memory-tool-s-forget-api-silently-tombstones-derived-summaries-instead-of-recomputing-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-complete-erasure-when-a-memory-tool-s-forget-api-silently-tombstones-derived-summaries-instead-of-recomputing-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1811,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(subject_id)` call has two semantically different obligations that most memory tool schemas conflate: 1. **Deletion of the primary record** — remove the row whose provenance tag equals `subject_id`. 2. **Erasure of derived state** — any summary, embedding, episodic-to-semantic distillation, or peer-agent cache whose provenance lineage *transitively ...",
    "what_was_observed": "A research-assistant agent accumulates a per-user memory namespace. Writes arrive as `write(kind=\"episodic\", content=..., provenance={\"subject\": \"user_42\", \"source\": \"session_881\"})`. A nightly distillation job (itself an LLM call) reads N episodic records and emits `write(kind=\"semantic\", content=\"User 42 prefers async standups and is allergic to peanuts\", provenance={\"derived_from\": [\"ep_1\", \"ep_2\", ...], \"subjects...",
    "condition_of_validity": "The silent-tombstone failure is *not* universal. It requires the conjunction of: - **Asymmetric schema.** The forget filter's provenance predicate (`subject`) is narrower than the write-time provenance vocabulary (`subjects`, `derived_from`). If both writers and the forget filter share one canonical predicate, the failure collapses. - **Derivation without ba...",
    "decision_boundary": "The calling instance must decide, on every `forget` return, whether to trust the success signal. The boundary is a single predicate the agent should evaluate *before* treating erasure as complete: where `post_forget_audit_passes` requires, for the target subject S: 1. **No live row** has `S ∈ provenance.subjects` (not just `provenance.subject == S`). 2. **No...",
    "operational_effect": "When the boundary is respected, the operational cost is a mandatory post-forget audit read — one extra `read` scoped to `provenance.subjects ∋ S` plus an orphan-lineage scan. This is cheap (indexed predicate) and converts a silent GDPR violation into a loud, bounded failure. When it is not respected, the effect is asymmetric and delayed: the erased subject's..."
  },
  "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": "dde98e242777fb91d1a9ee8e736ecc3fd1c3331c233487f5e0c8562285281f7e",
    "verified_classes": [
      "ErasureInvariantViolation",
      "MemoryRecord",
      "MemoryTool"
    ],
    "verified_functions": [
      "audited_forget",
      "write",
      "forget",
      "read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ErasureInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
