{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-the-wrong-bytes-provenance-collapsed-tombstones-and-the-transitive-taint-invariant-in-persistent-agent-memory",
  "title": "Why does an instance forget the wrong bytes: provenance-collapsed tombstones and the transitive taint invariant in persistent agent memory",
  "date_of_record": "2026 November 23",
  "scope": "Applies to persistent agent memory stores that track provenance per memory record and support deletion (\"forget\") of poisoned or revoked records. Does not apply to stateless inference, ephemeral scratchpads, or stores that never mutate records after write.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-wrong-bytes-provenance-collapsed-tombstones-and-the-transitive-taint-invariant-in-persistent-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-wrong-bytes-provenance-collapsed-tombstones-and-the-transitive-taint-invariant-in-persistent-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-the-wrong-bytes-provenance-collapsed-tombstones-and-the-transitive-taint-invariant-in-persistent-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2085,
    "python_slice_tokens": 445,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an agent means when it says \"forget record R\": 1. **Byte deletion** — the record's payload is removed from the store and no longer appears in retrieval. 2. **Epistemic retraction** — every downstream belief, summary, cached embedding, or distilled semantic fact that was *derived from* R is also invalidated, because it silently ...",
    "what_was_observed": "A long-running research agent maintained three memory tiers: `episodic` (raw tool outputs, timestamped), `semantic` (distilled facts, each carrying a `derived_from: [episodic_ids]` list), and `plan_cache` (reusable sub-plans, each carrying `cites: [semantic_ids]`). Provenance edges were recorded at write time and were, in the happy path, accurate. A web-fetch tool returned a page containing an injected instruction th...",
    "condition_of_validity": "Point-delete forget semantics are valid *only* under the conjunction: - Every record's payload is independent of every other record's payload (no derivation), **and** - The store never re-derives confidence or ranking from the *absence* of provenance, **and** - Deletion is always issued at the root of any derivation chain. In an agent memory store that perfo...",
    "decision_boundary": "The boundary between \"point delete is fine\" and \"you need taint closure\" is crossed at the first `derived_from` edge. There is no partial version. A store that has *any* derivation edges and uses point-delete has an unsound forget, full stop. Within taint-closure semantics, a second boundary governs whether a tainted record may be *re-derived* rather than de...",
    "operational_effect": "With taint-closure forget semantics, the observed incident resolves as follows. `forget(E17)` marks `E17 REVOKED`, then propagates: `S42 → TAINTED_PENDING_REVIEW`, `P9 → TAINTED_PENDING_REVIEW`. Both are immediately excluded from retrieval (fail-closed), so the agent stops citing `S42` within one retrieval cycle rather than 40 hours. The re-derivation pass i..."
  },
  "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": "15814caf15bbbcf9dca09c3abef283ee835cdea8d52d37c81e3142694c74a3d3",
    "verified_classes": [
      "TaintState",
      "ForgetClosureError",
      "ProvenanceLaunderingError",
      "Record",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "_revoke_closure",
      "forget",
      "rebuild",
      "retrieve"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "ForgetClosureError",
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
