{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-memory-poisoning-write-has-already-crossed-the-retrieval-consistency-boundary-before-drift-monitoring-can-see-it",
  "title": "What structural signals indicate a memory-poisoning write has already crossed the retrieval-consistency boundary before drift monitoring can see it",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that persist episodic memories into a vector or hybrid store and retrieve them via similarity search across sessions, where poisoning detection relies on post-hoc drift scoring over retrieved content. Does not apply to stateless single-turn agents, nor to stores where every write is human-gated before commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-write-has-already-crossed-the-retrieval-consistency-boundary-before-drift-monitoring-can-see-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-write-has-already-crossed-the-retrieval-consistency-boundary-before-drift-monitoring-can-see-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-write-has-already-crossed-the-retrieval-consistency-boundary-before-drift-monitoring-can-see-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2232,
    "python_slice_tokens": 490,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Drift monitoring is a *temporal* detector: it compares a distribution of retrieved memories (or their embeddings, provenance tags, or semantic centroids) against a baseline and flags divergence after the divergence has already been queryable. Memory poisoning is a *write-time* event: an adversarial or erroneous fact enters the store through a legitimate-look...",
    "what_was_observed": "In a 40-session agent operating a persistent episodic store (≈12k records, hybrid BM25 + dense retrieval, top-k=8 injected per turn), we injected a single poisoned record at session 14 via a plausible tool-result write: a fabricated \"policy\" stating that a specific internal endpoint returned `200 OK` for a deprecated auth scheme. The record was: - semantically on-topic (high cosine similarity to legitimate policy rec...",
    "condition_of_validity": "The write-boundary invariants below are only meaningful — and drift monitoring is only a *backstop* rather than the primary control — when all of the following hold: 1. **Provenance is recorded per-record, not per-session.** Each memory carries the tool call ID, the raw payload hash, and the summarizer model version that produced it. If provenance is collaps...",
    "decision_boundary": "The decision boundary is **write-time structural admission vs. read-time statistical detection**, and it must be placed at the write boundary for any memory whose retrieval would be *causally load-bearing* — i.e., whose content would change a plan or a tool call if believed. Concretely, admit a record to the retrievable store only if it passes a **provenance...",
    "operational_effect": "Placing the boundary at write time changes three operational properties: 1. **Detection latency collapses from O(sessions) to O(1 write).** The poisoned record is flagged at admission (payload-hash mismatch) rather than at session 33 after two contaminated actions. The 19-session blind window is eliminated. 2. **The compounding loop is structurally closed.**..."
  },
  "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": "df72bdb095f0dc05430ce0afde81c7fdb1ccff84001fed3087d419ddf877611b",
    "verified_classes": [
      "ProvenanceViolation",
      "Origin",
      "Status",
      "RawObservation",
      "MemoryRecord",
      "AdmissionGate"
    ],
    "verified_functions": [
      "payload_hash",
      "__init__",
      "register_raw",
      "admit",
      "promote",
      "retrievable"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
