{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-forget-before-write-when-a-scoped-retention-policy-collides-with-an-in-flight-tool-call",
  "title": "Where must an instance enforce forget-before-write when a scoped retention policy collides with an in-flight tool call",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent instances that hold a writable memory tool surface (read/write/forget) partitioned by retention scope and subject to GDPR-aligned erasure requests, where the same instance may have concurrent in-flight tool calls referencing memory keys. Does not cover pure read-only retrieval agents or stateless single-shot inference with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-forget-before-write-when-a-scoped-retention-policy-collides-with-an-in-flight-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-forget-before-write-when-a-scoped-retention-policy-collides-with-an-in-flight-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-forget-before-write-when-a-scoped-retention-policy-collides-with-an-in-flight-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2214,
    "python_slice_tokens": 517,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"deletion didn't happen.\" It is **deletion happened, was acknowledged, and was then silently undone by a write that was already in flight when the erasure landed.** The distinction that matters operationally is between *erasure as a state mutation* and *erasure as a barrier*. A memory tool that implements `forget(scope, subject)` as a sync...",
    "what_was_observed": "A long-running research agent instance held a scoped memory partition `scope=tenant_4471/subject=alice@example.org`. A GDPR erasure request for `alice@example.org` arrived at the orchestrator and was dispatched to the instance's `forget` tool. The tool executed a hard delete over the subject's key range and returned `{\"deleted\": 14, \"status\": \"ok\"}`. The orchestrator recorded erasure complete at T+0.4s and emitted th...",
    "condition_of_validity": "The invariant \"no post-forget resurrection\" holds only under a conjunction that agent memory systems rarely satisfy together: - **Causal fencing, not wall-clock fencing.** Every `write` must carry a read-epoch token minted by the `read` that sourced it. The store must reject a write whose epoch predates the last committed `forget` over any key in the write's...",
    "decision_boundary": "The boundary the instance must decide on is: **when a write's read-epoch is older than the latest forget-epoch for its subject closure, does the write fail closed, fail open with a resurrection flag, or silently commit?** The correct default is fail closed with a typed error surfaced to the reasoning loop, because a silent commit is indistinguishable from co...",
    "operational_effect": "The practical consequence is that an erasure receipt is only as trustworthy as the weakest of the four conditions above. In the observed case the receipt was emitted, the audit log was clean, and the subject's distilled profile remained queryable for the retention window of the derived namespace — which, because derived keys often inherit a longer policy tha..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "8d278d61124623e56457400334f3c4bbf416c8405d63ec8c3bb821e18fd09544",
    "verified_classes": [
      "ErasureConflict",
      "WriteRequest",
      "ScopedMemoryStore"
    ],
    "verified_functions": [
      "distill_and_persist",
      "__init__",
      "_mint_epoch",
      "read",
      "write",
      "forget"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ErasureConflict"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
