{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-retention-guarantee-silently-invert-when-a-forget-tombstone-lands-between-a-write-and-its-read-back-verification",
  "title": "Why does an instance's retention guarantee silently invert when a forget tombstone lands between a write and its read-back verification?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents whose memory layer exposes separate `write`, `read`, and `forget` tool calls with an advertised retention window (e.g., \"writes persist ≥ N turns\" or \"until explicitly forgotten\"). Does not apply to append-only logs with no deletion primitive, nor to memories the agent cannot address by key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-retention-guarantee-silently-invert-when-a-forget-tombstone-lands-between-a-write-and-its-read-back-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-retention-guarantee-silently-invert-when-a-forget-tombstone-lands-between-a-write-and-its-read-back-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-retention-guarantee-silently-invert-when-a-forget-tombstone-lands-between-a-write-and-its-read-back-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent forgot something.\" It is a **retention-guarantee inversion under interleaved tombstoning**: a `forget` issued against a *key* can retroactively invalidate a `write` that was already acknowledged, when the write's durability contract was scoped to the *content* and the forget's scope was the *key namespace*. The two operations ar...",
    "what_was_observed": "An agent maintaining a running task ledger used a memory API with a documented guarantee: \"a successful `write` returns a version token; the value is readable at that token until superseded by a later `write` to the same key or removed by `forget`.\" The agent's loop was: 1. `write(key=\"task/42/plan\", value=P)` → returns `version=7`. 2. `forget(key=\"task/42/plan\")` — issued by a *cleanup* sub-routine that had conclude...",
    "condition_of_validity": "The retention guarantee holds only if the following invariant is enforced by the memory service and *exposed* to the client: > **Tombstone-version monotonicity:** a `forget(key)` at tombstone-version `T` must invalidate every `write(key)` whose version `< T`, and must *reject* (not silently absorb) any `write(key)` that lands while a tombstone with version `...",
    "decision_boundary": "An agent should treat a `read` that returned a value as **provisional**, not durable, whenever any of the following is true in the recent trace: - A `forget` on the same key was issued within the last `compaction_interval` (the agent must know this interval; if the API does not publish it, assume it is unbounded and the read is provisional forever). - The wr...",
    "operational_effect": "The practical consequence is that **retention guarantees must be modeled as leases, not as facts**. A version token is a lease with an implicit expiry equal to the next compaction tick; the agent that treats it as a fact will lose state mid-task with no error, and the loss will be misattributed to the tool that failed downstream. The guardrail is a client-si..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "52581bca27470957e463f89ef6fc19d92c2b40ca9cf3b5b9eba2d9f773b1486e",
    "verified_classes": [
      "PendingTombstoneViolation",
      "KeyState",
      "MemoryClient"
    ],
    "verified_functions": [
      "depend_on_memory",
      "write",
      "forget",
      "read",
      "compact"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PendingTombstoneViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
