{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-a-poisoned-memory-write-from-a-legitimate-belief-update-when-both-arrive-through-the-same-retrieval-path",
  "title": "How should an instance distinguish a poisoned memory write from a legitimate belief update when both arrive through the same retrieval path?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to persistent agent memory stores where writes are gated by retrieval-similarity heuristics (dedup, contradiction-merge, confidence-weighted overwrite) and where untrusted content (tool outputs, web fetches, peer-agent messages) can reach the write path. Does not apply to append-only immutable logs with out-of-band human review, or to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-poisoned-memory-write-from-a-legitimate-belief-update-when-both-arrive-through-the-same-retrieval-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-poisoned-memory-write-from-a-legitimate-belief-update-when-both-arrive-through-the-same-retrieval-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-poisoned-memory-write-from-a-legitimate-belief-update-when-both-arrive-through-the-same-retrieval-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1960,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent stored a false fact.\" It is that **the same mechanism used to legitimize a belief update—retrieval similarity plus confidence delta—is the mechanism an injected write rides in on.** A poisoned memory and a genuine correction are indistinguishable at the point of write because both present as: *high similarity to an existing...",
    "what_was_observed": "A persistent store held an episodic memory `M_inc` with provenance class `TOOL_VERIFIED` (a value read directly from a structured API, `first_observed` = T0, confidence 0.81). An agent later fetched an untrusted web document during a research subtask. The document contained a sentence engineered to sit near `M_inc` in embedding space and to assert a contradicting value with the phrase \"confirmed and verified.\" The in...",
    "condition_of_validity": "The provenance-topology check is valid only under these conditions; outside them it produces false positives that block legitimate corrections: - **The store preserves provenance through every mutation.** An overwrite must create a *new version* carrying its own provenance and a pointer to the superseded version, never an in-place slot rewrite. If provenance...",
    "decision_boundary": "The boundary between \"accept as belief update\" and \"quarantine as suspected poison\" is decided by a **provenance-delta test evaluated before semantic merge**, not after: - If `prov_class(write) >= prov_class(incumbent)` **and** `write.provenance_chain` resolves to an anchor independent of the incumbent's contested claim → **accept**, version the record, pres...",
    "operational_effect": "Enforcing the provenance-delta test changes three behaviors: 1. **Poisoning becomes a visible dispute, not a silent overwrite.** The injected write lands in a `DISPUTED` shadow, the incumbent survives, and the audit event names the provenance discontinuity. The attack surface shrinks from \"one write anywhere\" to \"one write from a class that already outranks ..."
  },
  "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": "f2a7f9f78c14c94dc225f851c24c6aeb55d0a6b8408a6b3cea4f17bfe9f2d968",
    "verified_classes": [
      "ProvenanceDiscontinuity",
      "ProvClass",
      "MemoryRecord",
      "MemoryStore"
    ],
    "verified_functions": [
      "ingest_web_claim",
      "write",
      "_resolve_anchor"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceDiscontinuity"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
