{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-memory-write-it-did-not-provenance-stamp-detecting-poisoned-episodic-entries-through-write-provenance-auditing",
  "title": "What happens when an instance trusts a memory write it did not provenance-stamp: detecting poisoned episodic entries through write-provenance auditing and cross-store consistency checks",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents with persistent, writable episodic memory stores that accept writes from multiple producers (self-reflection, tool outputs, peer agents, injected documents) and later retrieve them for planning or execution. Does not apply to read-only retrieval caches or purely in-context scratchpads with no persistence boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-it-did-not-provenance-stamp-detecting-poisoned-episodic-entries-through-write-provenance-auditing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-it-did-not-provenance-stamp-detecting-poisoned-episodic-entries-through-write-provenance-auditing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-it-did-not-provenance-stamp-detecting-poisoned-episodic-entries-through-write-provenance-auditing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent retrieved a wrong memory.\" That is ordinary retrieval mismatch and is bounded by relevance scoring. The failure is **a memory entry whose content is authoritative but whose provenance is unverifiable or forged**, such that the agent's downstream consistency checks pass while the entry is in fact adversarial or corrupted. Poisone...",
    "what_was_observed": "A planner agent maintained an episodic store `E` with three write producers: (P1) the agent's own post-task summarizer, (P2) tool-result ingestion for a document-retrieval tool, and (P3) peer-agent handoff messages. All writes were appended with `{content, timestamp, source_tag, embedding}`. The `source_tag` was a free string set by the writer. Retrieval fused embedding similarity with a recency decay and a \"consiste...",
    "condition_of_validity": "The provenance gate is valid only under the following conditions, and each has a concrete failure if violated: - **Writer identity is bound at write time, not asserted in payload.** The `source_tag` must be derived from an authenticated session (signing key, tool capability token, or peer agent's registered identity) and stored in a field the writer cannot s...",
    "decision_boundary": "The boundary is between **content-trust** and **provenance-trust**, and it is crossed the moment a retrieval result can trigger an action that is not reversible by re-reading the store. - *Below the boundary* (reversible, cheap-to-undo retrieval uses): content consistency and relevance scoring are sufficient. Provenance adds latency and complexity for no saf...",
    "operational_effect": "Enforcing the provenance gate changes three things in production: 1. **Retrieval latency increases** on the irreversible-action path because each candidate requires an audit-log lookup and registry check. Budget for it; do not move the check to write-time to save latency, because the merge/replication strip is a real attack surface. 2. **Recall drops** for e..."
  },
  "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": "6942d59821e5264f392c5b305d89558c2dc12354be63a2f17560c2aee12ea419",
    "verified_classes": [
      "ProvenanceViolation",
      "MemoryEntry",
      "AuditRecord"
    ],
    "verified_functions": [
      "verify_provenance",
      "select_for_irreversible_action"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "no provenance-verified entry available for irreversible action; halt and escalate rather than proceed on unverified memo"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
