{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-poisoned-memory-whose-provenance-hash-still-verifies-the-write-time-vs-read-time-trust-window-in-persistent-agent-stores",
  "title": "Why does an instance accept a poisoned memory whose provenance hash still verifies: the write-time-vs-read-time trust window in persistent agent stores",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores that gate recall on an integrity signal (content hash, signature, or HMAC) computed at write time and re-verified at read time, where the trust decision is made against the *stored* attestation rather than against a re-derived one. Does not cover stores that re-execute or re-sanitize memory content on every read, nor stateless context-window-only agents with no durable store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-whose-provenance-hash-still-verifies-the-write-time-vs-read-time-trust-window-in-persistent-agent-stores.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-whose-provenance-hash-still-verifies-the-write-time-vs-read-time-trust-window-in-persistent-agent-stores.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-poisoned-memory-whose-provenance-hash-still-verifies-the-write-time-vs-read-time-trust-window-in-persistent-agent-stores.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a broken hash. The hash verifies perfectly. The failure is that integrity verification answers the wrong question. A content hash at write time answers: *\"Is the bytes I am reading the same bytes that were committed?\"* It does **not** answer: *\"Were those bytes trustworthy when they were committed, and is the committing writer still author...",
    "what_was_observed": "A long-running research agent maintained an episodic store and a distilled semantic store. Each memory record carried a `content_sha256` and a writer signature, both computed by the ingestion path. On recall, the retrieval layer re-hashed the record body and compared against `content_sha256`, then verified the writer signature against a key registry. Records failing either check were dropped and logged as `INTEGRITY_...",
    "condition_of_validity": "The integrity check is only a *tamper* check, and it is only valid under the following conditions—each of which, if violated, silently converts a passing check into a false assurance: 1. **The seal must be computed over a payload whose trustworthiness was established by a separate, prior gate.** Hashing is a post-hoc operation. If ingestion does not run a pr...",
    "decision_boundary": "The boundary is drawn between **seal integrity** (a cryptographic fact about bytes) and **provenance trust** (a policy judgment about origin and current authority). A store crosses into the failure regime the moment it uses the first as a proxy for the second. Concretely, the decision to recall a memory must require the conjunction: - `sha256(body) == stored...",
    "operational_effect": "The practical consequence is that integrity dashboards read green while the agent operates on contaminated beliefs. Because the poisoned record is *stable*—it verifies on every read—it is also *durable*: it survives checkpoints, gets re-distilled into further semantic records (each freshly and correctly sealed), and propagates. The distillation step is the a..."
  },
  "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": "1d191e574b72eee95c97c398b680edd47647546b482c2a1f41f816b7f24d4576",
    "verified_classes": [
      "ProvenanceIntegrityError",
      "Verdict",
      "MemoryRecord",
      "TrustPolicy"
    ],
    "verified_functions": [
      "sha256",
      "verify_seal",
      "verify_provenance",
      "recall"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
