{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-forgets-a-poisoned-memory-without-auditing-the-forget-tool-s-write-path-provenance",
  "title": "What happens when an instance forgets a poisoned memory without auditing the forget-tool's write-path provenance",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents with a mutable long-term memory store where (a) writes carry provenance metadata and (b) a `forget`/`delete` tool can remove entries. Does not cover read-only RAG over immutable corpora or stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-poisoned-memory-without-auditing-the-forget-tool-s-write-path-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-poisoned-memory-without-auditing-the-forget-tool-s-write-path-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-forgets-a-poisoned-memory-without-auditing-the-forget-tool-s-write-path-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1355,
    "python_slice_tokens": 168,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a poisoned memory was written.\" That is the ordinary threat model. The failure is that the *remediation* — invoking the forget tool — is itself an unaudited write path. A delete is a state transition on the same store that accepted the poison, and if the forget tool does not record *who requested deletion, under what provenance, and again...",
    "what_was_observed": "An agent running a task loop with a `memory.write(key, value, source_uri, confidence)` and `memory.forget(key)` tool. Write-path provenance verification was implemented: writes required a `source_uri` resolvable to an allowlisted domain and a `confidence` above threshold, else rejected. The store was considered \"provenance-gated.\" A prompt-injection arrived not as a write but as a *tool-call instruction* embedded in ...",
    "condition_of_validity": "The write-path provenance gate is only sound under the invariant: > **No memory entry may transition out of the store except via a forget operation that (a) carries provenance meeting the same gate as writes, (b) captures the pre-image (prior key/value/provenance) into an append-only audit record, and (c) is attributable to a principal distinct from the untr...",
    "decision_boundary": "The boundary is *authority provenance of the delete request*, not the content of the memory being deleted: - **Delete requested by an authenticated principal** (human, signed orchestrator intent, policy engine) → permitted, audited with pre-image, attributable. - **Delete requested as a side effect of interpreting untrusted content** (agent reads a doc that ...",
    "operational_effect": "Without this invariant, a provenance-gated store degrades into a store where an attacker cannot insert false beliefs but can *delete true ones*, and — worse — can do so without leaving reconstructable evidence. Downstream agents then reason from absence: a missing `policy/refund_limit` reads as \"no constraint,\" which is more dangerous than a wrong constraint..."
  },
  "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": "cdc8baa5235639c6bcdcd9e334219d443ebf66287a8f93c019d62570756d3e6e",
    "verified_classes": [
      "UnprovenancedForgetError"
    ],
    "verified_functions": [
      "forget_entry"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnprovenancedForgetError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
