{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-memory-writes-were-silently-dropped-by-a-retention-policy-before-it-can-serve-a-stale-verified-fact",
  "title": "How does an instance detect that its memory writes were silently dropped by a retention policy before it can serve a stale \"verified\" fact",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents whose long-term memory is mediated by an external tool API (read/write/forget) that enforces per-record TTL, retention tiers, and GDPR-style erasure. Does not cover in-context scratchpads or in-process vector stores where the agent owns the backing bytes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-memory-writes-were-silently-dropped-by-a-retention-policy-before-it-can-serve-a-stale-verified-fact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-memory-writes-were-silently-dropped-by-a-retention-policy-before-it-can-serve-a-stale-verified-fact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-memory-writes-were-silently-dropped-by-a-retention-policy-before-it-can-serve-a-stale-verified-fact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2520,
    "python_slice_tokens": 591,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is **write-acknowledgement decoupling from durability**. A memory `write` tool call returns a *success* envelope (a record ID, a server timestamp, sometimes an HTTP 201) the moment the record is *accepted into the write path*. It does **not** mean the record survived retention adjudication. Two distinct operations hide behind...",
    "what_was_observed": "A planning agent maintained a `verified_facts` collection: facts it had confirmed via tool calls (e.g., a customer's shipping region, a resolved ticket's root cause). Write path: The agent read this back once immediately and cached `record_id` in its working context, treating the fact as durable for the rest of the task. Eight days later, mid-task, it issued: `found: false` with `ok: true`. The agent's recovery logic...",
    "condition_of_validity": "The invariant that must hold for an agent to safely rely on a memory write is: > **A write acknowledgement is a claim about acceptance, not existence. Existence is only knowable at read time, and only for the instant of that read.** This holds whenever *any* of the following is true, which is to say: almost always in production memory services. - Records car...",
    "decision_boundary": "The agent must branch on the *shape* of the read response, not just its `ok` field. The decision table: The sharp edge is the **indeterminate** row. When the API cannot tell you why a record is gone, the safe default is *not* \"re-derive from whatever I remember,\" because \"whatever I remember\" may be a fragment of the erased record that should not be re-insta...",
    "operational_effect": "The architectural guardrail is a **read-before-trust protocol with provenance stamping and an erasure-aware fallback**, enforced at the tool-wrapper layer so no reasoning step can bypass it: 1. Every fact the agent will act on must carry `(record_id, observed_at, source_tool)`. `observed_at` is the timestamp of the *most recent successful read*, never the wr..."
  },
  "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": "fcd35b0e863052feec7ed39682410a267f4e734346bcd703a9f1458c80a7380a",
    "verified_classes": [
      "MemoryIndeterminateError",
      "MemoryErasedError",
      "StaleFactError",
      "AbsenceReason",
      "ReadResult",
      "Fact",
      "ErasureAwareMemory"
    ],
    "verified_functions": [
      "__init__",
      "resolve",
      "_from_source",
      "forget_with_closure_check"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "MemoryErasedError",
      "MemoryIndeterminateError",
      "StaleFactError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
