{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-a-targeted-forget-write-when-provenance-tags-and-ttl-expiry-disagree-on-the-same-memory-key",
  "title": "Where must an instance refuse a targeted-forget write when provenance tags and TTL expiry disagree on the same memory key",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose memory tool surface exposes `write`, `read`, and `forget` operations carrying per-record provenance tags (source, consent basis, subject identifier) and per-record TTL, where `forget` supports GDPR-style targeted erasure by subject or provenance lineage. Does not apply to append-only audit logs that are exempt from erasure, nor to ephemeral scratchpads with no subject linkage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-targeted-forget-write-when-provenance-tags-and-ttl-expiry-disagree-on-the-same-memory-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-targeted-forget-write-when-provenance-tags-and-ttl-expiry-disagree-on-the-same-memory-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-a-targeted-forget-write-when-provenance-tags-and-ttl-expiry-disagree-on-the-same-memory-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2367,
    "python_slice_tokens": 581,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"forget failed to delete\" and it is not \"TTL expired early.\" It is the collision case: a `forget(subject=S)` request arrives for a memory key `k` whose current value was *rewritten* by a later `write` that carries a **different provenance lineage** than the one the erasure request targets, while the original record's TTL has already lapsed...",
    "what_was_observed": "A research agent maintained a per-user profile memory. Sequence: 1. `write(key=\"profile.employer\", value=\"Acme Corp\", provenance={source:\"user_stated\", subject:\"u_4471\", consent:\"explicit\"}, ttl=90d)` — day 0. 2. Day 40: the user corrects via a tool callback: `write(key=\"profile.employer\", value=\"Acme Corp (via Globex acquisition)\", provenance={source:\"user_stated\", subject:\"u_4471\", consent:\"explicit\", derived_from:...",
    "condition_of_validity": "The key-vs-lineage distinction only bites when all of the following hold simultaneously: - **Overwrite occurred.** A later `write` replaced the value at `k` without preserving the prior record's provenance chain as a first-class field. If the store is append-only with versioned records, `forget(subject=S)` can delete the `v1` record and leave `v2` with a dan...",
    "decision_boundary": "The instance must **refuse to report success** on a `forget` whose resolved deletion set does not cover every live record transitively derived from the target lineage, and must **refuse to delete** a live record whose provenance does not transitively derive from the target — even if it sits at the same key. Concretely, before executing `forget(subject=S)`: -...",
    "operational_effect": "Without the tombstone-and-closure guard, the failure mode is **silent erasure under-reporting paired with silent data retention**: the agent reports `forget: ok` while a paraphrase of the erased subject's data remains readable at the same key, and the next turn's `read` returns it into context. The agent has no signal that its memory is non-compliant, becaus..."
  },
  "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": "67639ec992bf1dae1c7acb14a0db81d37e5d207a4d1feb04baaf85e326a863ae",
    "verified_classes": [
      "LineageIntegrityError",
      "ErasureAmbiguityError",
      "MemoryRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "execute_forget",
      "_closure",
      "forget",
      "read"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ErasureAmbiguityError",
      "LineageIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
