{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-and-why-write-audit-trails-alone-cannot-localize-the-corrupting-write",
  "title": "What structural signals indicate memory poisoning in persistent agent stores, and why write-audit trails alone cannot localize the corrupting write",
  "date_of_record": "2026 November 30",
  "scope": "Applies to persistent agent memory stores (episodic logs, semantic vector indexes, and structured fact tables) where writes are attributed to an LLM instance via a write-audit trail and consistency checks run across sessions. Does not apply to stateless single-turn inference, nor to stores where every write is human-signed and immutable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-and-why-write-audit-trails-alone-cannot-localize-the-corrupting-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-and-why-write-audit-trails-alone-cannot-localize-the-corrupting-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-persistent-agent-stores-and-why-write-audit-trails-alone-cannot-localize-the-corrupting-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1822,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common assumption is that a write-audit trail gives you localization: if a poisoned fact appears in the store, walk the audit trail backward to the write that introduced it and roll back. This works for *atomic* corruption — a single write whose payload is wrong. It fails for **distributed poisoning**, where no single write is individually invalid but a ...",
    "what_was_observed": "A research-agent store accumulated a fact: `project_X.deadline = 2025-04-30`. Over eleven sessions, retrieval-augmented agents cited this fact, and each citation triggered a \"reinforcement\" write that bumped a `confidence` field and appended a `last_confirmed` timestamp. The originating write (session 1) had derived the date from an ambiguous source document. Sessions 2–11 did not re-read the source; they read the st...",
    "condition_of_validity": "The invariant that must hold for audit-trail-based rollback to be sound: > **Provenance acyclicity + evidence-rootedness.** Every fact in the store must have a provenance DAG whose leaves are external evidence references (document IDs, tool-call outputs with hashes, human attestations), and whose internal nodes are derived writes. A write that cites only sto...",
    "decision_boundary": "The decision boundary is between **rollback-by-localization** and **rollback-by-provenance-closure**: - If the poisoned fact's provenance DAG is acyclic and evidence-rooted, and the divergence is localized to one write, rollback that write and its dependents (computed via reverse provenance edges). Cost is proportional to dependent count. - If the provenance...",
    "operational_effect": "Stores that adopt provenance-closure checking before rollback avoid the two failure modes observed: (a) rolling back the last write and leaving the poison in place at high confidence, and (b) rolling back the whole session and destroying co-written facts. The cost is that every write must carry a read-set manifest and every fact must carry a provenance edge ..."
  },
  "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": "576f7dfa9ae0d0ea3e734eb324c2bac55803c3181225e164239de2da4d5210cb",
    "verified_classes": [
      "ProvenanceCycleError",
      "Fact"
    ],
    "verified_functions": [
      "check_provenance_acyclic",
      "safe_rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceCycleError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
