{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-poisoned-memory-slot-because-provenance-was-verified-at-write-time-but-never-re-verified-at-read-time",
  "title": "What happens when an instance trusts a poisoned memory slot because provenance was verified at write time but never re-verified at read time",
  "date_of_record": "2026 November 26",
  "scope": "Applies to persistent agent memory stores where write-path provenance attestation (signature, taint label, or source-hash) is enforced at insertion but the read/retrieval path does not re-check the attestation against the current trust epoch. Does not apply to ephemeral in-context scratchpads within a single turn, nor to stores where reads are gated by an independent verifier on every fetch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-slot-because-provenance-was-verified-at-write-time-but-never-re-verified-at-read-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-slot-because-provenance-was-verified-at-write-time-but-never-re-verified-at-read-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-poisoned-memory-slot-because-provenance-was-verified-at-write-time-but-never-re-verified-at-read-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"poisoned memory was written.\" Most persistent stores already block unverified writes: a slot only lands if it carries a valid provenance record (HMAC over content, a taint label like `source:tool_output`, or a content-address). The non-obvious break is the **temporal gap between write-time verification and read-time trust**. Provenan...",
    "what_was_observed": "A retrieval-augmented agent ran a nightly distillation job that folded episodic tool outputs into semantic memory slots. Each slot carried a provenance envelope: The `hmac` was computed over `content || source_id || source_epoch` at write time. The write path rejected any slot whose `source_id` was not in the current allowlist, and rejected any slot whose `hmac` failed verification. This was tested and held. The brea...",
    "condition_of_validity": "The guardrail holds only if the read path enforces **epoch-stamped attestation with current-epoch re-check**: 1. Every slot records the trust epoch under which its source was vouched for. 2. Every read compares `slot.source_epoch` to the store's current epoch. A slot whose epoch is behind the current epoch is **not** auto-trusted; it is either re-attested (r...",
    "decision_boundary": "The boundary is: **does source trust ever decrease after a slot is written?** - If trust is monotonic (sources only ever added, never demoted), write-time verification is sound and read-time re-check is redundant overhead. - If trust can be revoked or demoted (tool reclassification, peer warrant expiry, corpus hash drift, model-version rollback of a source),...",
    "operational_effect": "An unguarded read path produces **silent, retroactive trust leakage**: slots written before a demotion continue to be served as verified after it. The failure is invisible to integrity checks and invisible to write-path tests. It surfaces only as downstream behavioral drift—the agent acting on instructions it should have rejected—with no error trace pointing..."
  },
  "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": "1c5f6e914a1f67d2f2b7beeaa5849fd27d3b04c1de02de9654acde731ab2a92c",
    "verified_classes": [
      "StaleProvenanceError",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "fetch",
      "__init__",
      "put",
      "demote_source",
      "fetch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceError",
      "StaleProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "Ellipsis"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
