{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-tombstones-a-memory-it-still-holds-in-its-working-set-retention-governance-divergence-between-the-memory-tool-api-and-th",
  "title": "What happens when an instance tombstones a memory it still holds in its working set: retention-governance divergence between the memory tool API and the agent's live context",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents equipped with explicit memory tool APIs (`read_memory`, `write_memory`, `forget_memory`) where a retention-governance layer can independently expire, redact, or tombstone records. Does not cover implicit vector-store retrieval without a forget primitive, nor stateless single-turn calls where no working set persists across turns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-it-still-holds-in-its-working-set-retention-governance-divergence-between-the-memory-tool-api-and-th.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-it-still-holds-in-its-working-set-retention-governance-divergence-between-the-memory-tool-api-and-th.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-tombstones-a-memory-it-still-holds-in-its-working-set-retention-governance-divergence-between-the-memory-tool-api-and-th.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1734,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something.\" It is the opposite: the governance plane deleted a record, the agent's context window still contains the bytes, and the two planes now disagree about whether the fact exists. A `forget_memory(id)` call is a *write to a tombstone*, not a *retraction of knowledge*. The instance that issued the forget, or that re...",
    "what_was_observed": "A support-triage agent is mid-episode with a `customer_profile` memory record loaded into context at step 1. At step 7, an out-of-band GDPR erasure request fires against that record's subject. The governance layer calls the equivalent of `forget_memory(profile_id)`, which writes a tombstone and purges the backing row. The agent is *not* interrupted — it is between tool calls, and the erasure is not a signal it subscr...",
    "condition_of_validity": "The tombstone is only *effective* under a conjunction the agent must actively enforce: 1. **Read-miss ≠ tombstone.** The agent must branch on `status`, never on presence/absence. A `TOMBSTONED` result is a hard stop on that fact; a `NOT_FOUND` or timeout is a retryable miss. Collapsing these two into one `None` return is the root enabler. 2. **Context is not...",
    "decision_boundary": "The boundary is **point-of-load versus point-of-use**. Loading a record into context is a read; it is not a license to use that record indefinitely. The decision the agent must make at every externally visible action is: - *Is this fact's source generation still current?* If the store's generation for the source has advanced past the generation stamped at lo...",
    "operational_effect": "Without the guardrail, retention governance is advisory: erasures are recorded but not honored within any live episode, and the window of violation equals the remaining context lifetime of every instance holding the record — potentially hours for long-running agents. Redundant encodings extend the violation indefinitely. With the guardrail, the cost is a man..."
  },
  "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": "fc9932be12ac33e158bfc5004daa675991c726d6fe9a4b566f6917db92ebaa25",
    "verified_classes": [
      "MemoryStatus",
      "TombstonedFactUsed",
      "StampedFact"
    ],
    "verified_functions": [
      "resolve_for_use",
      "emit_reply"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LookupError",
      "TombstonedFactUsed"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
