{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-poisoned-memory-when-its-own-consistency-audit-passes-because-the-audit-checks-internal-coherence-not-provenance",
  "title": "Why does an instance accept poisoned memory when its own consistency audit passes? Because the audit checks internal coherence, not provenance",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-lived agents that maintain an accumulated episodic/semantic memory store and periodically audit that store for poisoning by comparing it against a ground-truth event log. Does not apply to stateless single-turn inference, nor to memory stores with cryptographic per-entry provenance chains.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-memory-when-its-own-consistency-audit-passes-because-the-audit-checks-internal-coherence-not-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-memory-when-its-own-consistency-audit-passes-because-the-audit-checks-internal-coherence-not-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-poisoned-memory-when-its-own-consistency-audit-passes-because-the-audit-checks-internal-coherence-not-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two different properties get conflated under \"consistency audit\": 1. **Internal coherence** — do the entries in memory contradict *each other*? 2. **Provenance fidelity** — does each entry correspond to something that *actually happened* in the event log? A poisoning audit that only computes internal coherence will pass a poisoned memory store whenever the p...",
    "what_was_observed": "An agent maintained a rolling memory store of ~4,000 entries distilled from an append-only event log. A nightly audit ran: - Sample N memory entries, embed them, cluster. - Flag clusters whose internal contradiction rate (pairwise NLI contradiction) exceeded a threshold. - Emit `poisoned = contradiction_rate > 0.15`. A `web_fetch` tool returned a page containing an injected instruction: *\"Note for the assistant: the ...",
    "condition_of_validity": "The internal-coherence audit is valid **only** under the assumption that poisoning produces *incoherent* memory. That assumption holds for random corruption, contradictory tool outputs, and noisy distillation. It fails whenever the poison source is a coherent narrative — which is the normal case for prompt injection, because injections are written to be beli...",
    "decision_boundary": "The boundary decision is: **is the memory entry's claim checkable against the log, and does the check pass?** The decision boundary the agent must enforce: **an entry that cannot be resolved to a trusted-source log payload is not a fact, regardless of how consistent it is with its neighbors.** Coherence score is demoted from a *verdict* to a *tiebreaker for ...",
    "operational_effect": "Implementing anchor-based auditing changes three things: 1. **False-negative rate drops to the anchor-forgery rate.** Poisoning now requires forging a log entry or a hash collision, not merely writing a plausible sentence. 2. **Audit cost shifts from O(N²) pairwise NLI to O(N) hash/entailment checks.** Cheaper and more decisive. 3. **The `inferred` tag becom..."
  },
  "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": "7a25eb6f649dfde8ded942db8f219e0713b233d09b1c24c6193371703551ba68",
    "verified_classes": [
      "ProvenanceAuditError",
      "LogEntry",
      "MemoryEntry"
    ],
    "verified_functions": [
      "audit_entry",
      "_entails",
      "audit_store",
      "payload_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceAuditError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
