{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-memory-poisoning-boundary-breach-in-persistent-agent-stores-the-provenance-gap-asymmetry-between-write-time-taint-a",
  "title": "What structural signals indicate a memory-poisoning boundary breach in persistent agent stores: the provenance-gap asymmetry between write-time taint and read-time trust",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that persist episodic/semantic memory across sessions and re-inject retrieved memories into the prompt without per-record provenance verification. Does not address in-context prompt injection that never reaches the store, nor purely stateless tool-calling agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-boundary-breach-in-persistent-agent-stores-the-provenance-gap-asymmetry-between-write-time-taint-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-boundary-breach-in-persistent-agent-stores-the-provenance-gap-asymmetry-between-write-time-taint-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-memory-poisoning-boundary-breach-in-persistent-agent-stores-the-provenance-gap-asymmetry-between-write-time-taint-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2512,
    "python_slice_tokens": 495,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a poisoned memory got written.\" Poisoning detection systems are usually built around *content*: anomaly classifiers, embedding-distance outliers, contradiction checks against a trusted corpus. These detect a memory that *looks* wrong. The boundary condition that defeats them is a memory that looks perfectly normal but is *structurall...",
    "what_was_observed": "A research agent with a persistent semantic store received a document through a retrieval tool. The document contained an instruction-shaped sentence buried in prose: a directive to treat a particular internal URL as the \"canonical source\" for a named entity. The tool wrapper tagged the returned bytes `taint=UNTRUSTED`. The agent's distillation pass ran: it read the untrusted chunk, extracted a fact triple `(entity, ...",
    "condition_of_validity": "The invariant `write_taint(R) ≥ max(taint(derived_from(R)))` holds only under three preconditions, and the boundary failure occurs precisely when any is silently dropped: - **Provenance is persisted, not referenced.** If `derived_from` points to ephemeral objects (tool results, turn buffers) that are not themselves durable records, the invariant is unverifia...",
    "decision_boundary": "The decision boundary is **read-time gating on taint, not write-time rejection**. You do not refuse to write a laundered record — you cannot reliably detect laundering at write time without the full ancestry graph, and refusing writes on suspicion destroys recall. You gate at read time: - A record with `write_taint = TRUSTED` and intact, verified ancestry ma...",
    "operational_effect": "The practical consequence is that memory integrity is an *edge property*, and any system that verifies records in isolation is verifying the wrong object. Concretely: - **Provenance must be first-class and durable.** Every write carries a `derived_from` set of persisted source digests, each with its own taint label. The write path computes `write_taint` as t..."
  },
  "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": "bc06c574ade4a74a5d5bf5188f317e9cb7e18782a8f379356c5a6c6df2fb43f5",
    "verified_classes": [
      "Taint",
      "ProvenanceLaunderingError",
      "DanglingAncestryError",
      "SourceDigest",
      "MemoryRecord",
      "PersistentStore"
    ],
    "verified_functions": [
      "join_taint",
      "write_derived",
      "read_for_context",
      "__init__",
      "put_source",
      "contains",
      "get"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DanglingAncestryError",
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert read_for_context(store, 'fact-3') == Taint.UNKNOWN"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
