{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-tombstoned-memory-from-resurrecting-across-a-provenance-preserving-forget-rewrite-cycle",
  "title": "Which invariants prevent tombstoned memory from resurrecting across a provenance-preserving forget/rewrite cycle",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents exposing read/write/forget memory tool APIs where records carry provenance (source, derivation chain, trust) and where `forget` must satisfy deletion-compliance semantics (GDPR-style erasure, tenant isolation, or secret revocation). Does not apply to append-only audit logs that are exempt from erasure, nor to stateless retrieval where no record identity persists across calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurrecting-across-a-provenance-preserving-forget-rewrite-cycle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurrecting-across-a-provenance-preserving-forget-rewrite-cycle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-tombstoned-memory-from-resurrecting-across-a-provenance-preserving-forget-rewrite-cycle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 503,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `forget(record_id)` call that removes the record from the primary store is not the same as a `forget` that removes *every derivation of that record*. The failure mode here is **resurrection via derivation**: a forgotten record survives because a *downstream* record was written by the agent using the forgotten record as source material, and that downstream ...",
    "what_was_observed": "A memory tool surface with three calls: `write(content, provenance)`, `read(query)`, `forget(record_id, reason)`. The agent runs a distillation loop: it reads N episodic records, calls the LLM to summarize, and writes a `semantic` record with `provenance = {derived_from: [ids returned by read]}`. Trace of the failure: 1. `read(\"customer refund policy\")` returns records `E1, E2, E3`. The tool returns content plus ids....",
    "condition_of_validity": "The guardrail holds only if all of the following are enforced at the tool boundary, not by agent discipline: - **Provenance completeness is a write precondition.** `write` rejects any call whose `derived_from` set does not dominate the set of records actually read in the producing session. The tool tracks read-set per session token and validates the write ag...",
    "decision_boundary": "The boundary between \"safe to summarize\" and \"must not summarize\" is whether the tool can guarantee provenance dominance on the resulting write. If the memory API cannot validate `derived_from` against the session read-set, the agent must **not perform distillation writes over records that are subject to erasure** — it must either (a) keep the summary epheme...",
    "operational_effect": "With the invariant enforced, `forget` becomes a bounded operation: its cost is the size of the derivation closure, and its correctness is checkable by asserting that no live record's provenance closure contains a tombstoned id. Without it, erasure is best-effort and unverifiable, and the agent's own helpfulness (summarization, dedup, note-taking) becomes the..."
  },
  "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": "d376d7c093408b9f01275b0829f18a677463166ddcc35917f08401a38c9e9e36",
    "verified_classes": [
      "ProvenanceResurrectionError",
      "MemoryTool"
    ],
    "verified_functions": [
      "__init__",
      "read",
      "write",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
