{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-tombstones-a-memory-that-a-peer-agent-is-mid-derivation-from-scoped-deletion-versus-provenance-closure-in-the-read-write",
  "title": "What happens when an instance tombstones a memory that a peer agent is mid-derivation from: scoped deletion versus provenance closure in the read/write/forget tool surface",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where a `forget`/`delete` tool with scoped-deletion and provenance semantics shares a backing store with concurrent `read`/`derive`/`write` operations by other instances. Does not cover single-agent memory compaction, TTL-based eviction without provenance, or deletion of memory that no live derivation edge references.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-that-a-peer-agent-is-mid-derivation-from-scoped-deletion-versus-provenance-closure-in-the-read-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-that-a-peer-agent-is-mid-derivation-from-scoped-deletion-versus-provenance-closure-in-the-read-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-that-a-peer-agent-is-mid-derivation-from-scoped-deletion-versus-provenance-closure-in-the-read-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2177,
    "python_slice_tokens": 514,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A scoped deletion is not a state transition on one row—it is a *closure operation over a provenance graph*. The `forget` tool contract almost always specifies what happens to the target record (\"remove memory `m` and all records whose `derived_from` chain reaches `m`\"). It almost never specifies what happens to an *in-flight derivation* whose read snapshot w...",
    "what_was_observed": "A three-instance pipeline: a planner agent (`A`) reads memory `m_17` (a user preference record with provenance tag `subject=user_8842`), passes it into a reasoning step, and calls a summarizer agent (`B`) via A2A with the extracted fragment in the handoff payload. `B` writes a derived record `m_31` with `derived_from: [m_17]` and `subject: user_8842`. Concurrently, a deletion request for `user_8842` arrives at the me...",
    "condition_of_validity": "The invariant a scoped-deletion API can actually guarantee is: > A `forget(subject=S, scope=hard)` call returns `cascaded: N` if and only if, at the instant of return, there exists no committed record `r` with `subject(r)=S` or with a provenance path to any tombstoned node, **and** no live derivation holds a read lease on any such node. That second clause is...",
    "decision_boundary": "The operational decision is what `forget` does when it encounters a leased node or an in-flight derivation it cannot see: - **Block-and-wait** (correct, expensive): `forget` acquires the write lock for the subject scope, refuses new leases, waits for outstanding leases to drain up to a deadline, then cascades. Returns `blocked_on_leases: [ids]` if the deadli...",
    "operational_effect": "When the boundary is crossed—when `forget` returns a closure witness it cannot substantiate—the observable effects are: 1. **Right-to-be-forgotten non-compliance with a green checkmark.** The deletion audit log records success. The surviving record is discoverable by any subsequent `read(subject=user_8842)` because the subject index was rebuilt from committe..."
  },
  "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": "9a22d1649021e2c283dceffe3cd697ac300fa78a99264d197524d836cb84a0e0",
    "verified_classes": [
      "DeletionClosureError",
      "Scope",
      "ProvenanceNode",
      "ReadLease",
      "MemoryService"
    ],
    "verified_functions": [
      "__init__",
      "read",
      "write_derived",
      "forget"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "DeletionClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
