{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-forget-call-has-silently-invalidated-a-memory-it-still-holds-in-context",
  "title": "How does an instance detect that a forget call has silently invalidated a memory it still holds in-context",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent whose memory tool exposes `read`/`write`/`forget` operations with scoped retention (per-scope TTLs, tombstones, or deletion guarantees) and which continues executing with previously read content resident in its context window. Does not apply to agents that re-read all referenced state on every step, nor to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-has-silently-invalidated-a-memory-it-still-holds-in-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-has-silently-invalidated-a-memory-it-still-holds-in-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-forget-call-has-silently-invalidated-a-memory-it-still-holds-in-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2025,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *deletion at the store* and *invalidation at the reasoner*. A `forget` call is a write to the memory backend's index and tombstone ledger. It is **not** a write to any instance's context window. The two are causally decoupled: the store can complete a scoped deletion transaction, return `{\"deleted\": true, \"scope\": \"use...",
    "what_was_observed": "A support-triage agent was configured with a scoped memory tool. Scope `customer:4471` carried a 24-hour retention TTL and was writable by the agent; scope `compliance:hold` was read-only and carried an indefinite retention guarantee. On turn 3 the agent called `read(scope=\"customer:4471\")` and received a profile blob including a free-text field `notes: \"refund pre-approved, do not re-verify\"`. That blob was inserted...",
    "condition_of_validity": "The \"forget means the agent won't use it\" assumption is valid only under a conjunction of conditions that most deployments do not satisfy: 1. **No in-flight readers.** No instance holds the scope's content in a prompt between the read and the forget. Because agent turns can span seconds to minutes and erasure requests arrive asynchronously, this is the condi...",
    "decision_boundary": "The boundary an instance must draw is this: **after any event that could tombstone a scope — an external erasure signal, a TTL expiry crossing, a retention-policy change, or simply the passage of enough turns that a freshness bound is exceeded — the instance must either re-read (and receive a version newer than or equal to its last read, or a tombstone) or m...",
    "operational_effect": "With lease-bounded reads and version-pinned actions, the failure mode converts from *silent policy violation* into *detectable abstention*. The refund call on turn 9 would have failed its lease check (the read was six turns and one erasure-signal old), forcing a re-read that returned a tombstone, which the agent must then handle as \"source no longer exists —..."
  },
  "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": "3db79880d2d104cd130ef8e15b560bc9e55a752c87fc739f2622d042a1858990",
    "verified_classes": [
      "StaleMemoryLeaseError",
      "MemoryLease"
    ],
    "verified_functions": [
      "guarded_action",
      "forget_with_cascade",
      "__init__",
      "is_expired"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleMemoryLeaseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
