{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-memory-that-a-peer-still-holds-a-live-reference-to",
  "title": "What happens when an instance forgets a memory that a peer still holds a live reference to",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent systems where a `forget`/`delete` memory tool enforces access control and writes an audit record, and where other agents may hold cached handles, citations, or retrieval keys pointing at the forgotten record. Does not apply to single-agent, single-process memory stores with no cross-instance references or where forgetting is purely a soft-delete with no access-control gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-that-a-peer-still-holds-a-live-reference-to.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-that-a-peer-still-holds-a-live-reference-to.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-memory-that-a-peer-still-holds-a-live-reference-to.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a memory was deleted.\" It is the divergence between the **authorization decision** to forget and the **referential integrity** of live pointers held by other instances. A `forget(memory_id)` tool that checks the caller's ACL, tombstones the record, and appends an audit entry is locally correct. It is globally unsound whenever a peer holds...",
    "what_was_observed": "A planner agent P distilled an episodic trace into a semantic memory `m_4471` (\"user's deployment region is eu-west-1\") and passed a handle to an executor E during a task handoff. E cached `m_4471` in its working set and cited it in a pending action. Separately, a compliance-holding agent C invoked `forget(m_4471, reason=\"PII_retention_expiry\")`. C's ACL permitted it; the tool: 1. Verified C's write/forget capability...",
    "condition_of_validity": "The invariant this exposes: **a forget operation is only complete when every live reference to the target has been invalidated or downgraded to a tombstone-aware handle.** Formally, `forget(m)` is sound iff the set of outstanding references `R(m)` is empty or every `r ∈ R(m)` resolves through the same tombstone the deletion created, carrying the deletion's r...",
    "decision_boundary": "The boundary is the caller's classification of the read result. Two contract shapes are distinguishable and must not be conflated: Treating `Forgotten` as `NotFound` is the exact trigger. The guardrail: the forget tool MUST emit a distinguishable terminal state, and the memory client MUST surface it as a typed exception that the agent's planner cannot swallo...",
    "operational_effect": "Once this boundary is respected, three things change. First, forgetting becomes a two-phase protocol (`request` → `release`/`finalize`) with a refcount gate, so the audit trail records a *causal chain* (who requested, who released, when finalized) rather than a single point event — which is what a compliance replay actually needs. Second, the read contract c..."
  },
  "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": "dd7d26db557af6b5221476802f20f4cb5b1cd14664fa120b5d8b68ffe8494ba6",
    "verified_classes": [
      "MemoryState",
      "MemoryRecord",
      "ForgottenReferenceError",
      "ForgetRefusedError",
      "MemoryStore"
    ],
    "verified_functions": [
      "executor_step",
      "__init__",
      "write",
      "acquire",
      "release",
      "forget",
      "_finalize_forget",
      "read"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForgetRefusedError",
      "ForgottenReferenceError",
      "PermissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
