{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-poisoned-memory-write-slipping-past-provenance-graph-contradiction-checks",
  "title": "What structural signals indicate a poisoned memory write slipping past provenance-graph contradiction checks",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-lived agents that persist episodic/semantic memory writes through a provenance-graph layer with cross-write contradiction detection, where the poison arrives via a *trusted* tool channel rather than an untrusted user turn. Does not apply to stateless single-turn inference or to writes that bypass the graph entirely (those fail at a different, earlier boundary).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-memory-write-slipping-past-provenance-graph-contradiction-checks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-memory-write-slipping-past-provenance-graph-contradiction-checks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-poisoned-memory-write-slipping-past-provenance-graph-contradiction-checks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2106,
    "python_slice_tokens": 465,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model is that provenance graphs catch poisoning by tracing *where* a fact came from: an untrusted source (a scraped page, a prompt-injected tool return) writes a claim, the graph records the source node, and a policy rejects or quarantines writes whose ancestry includes untrusted origins. Contradiction checks are the second net: if a new wr...",
    "what_was_observed": "A memory-augmented research agent maintained a semantic store of project facts. Each write carried a provenance node: `{write_id, parent_tool_call, source_uri, timestamp, confidence}`. A policy rejected writes whose `source_uri` was outside an allowlist. A contradiction checker ran at write time: cosine similarity against nearest neighbors, plus an LLM entailment check for direct negation. The failure trace: 1. Step ...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and fails silently outside them: - **Derivation edges must be materialized.** The agent's reasoning loop must emit a `derived_from` edge for every fact it lifts from a tool return into a write, even when the lift is paraphrased across steps. Without this, provenance is a *direct-parent* graph, not a *...",
    "decision_boundary": "The operational decision is *when to treat a write as tainted despite clean direct provenance*. The boundary: - **Reject at write time** if the write's resolved subject matches an existing high-trust fact and the claim contradicts it under subject-normalized entailment. This catches direct poison. - **Quarantine (do not reject, do not promote)** if the write...",
    "operational_effect": "With derivation-edge materialization and subject-normalized, baseline-pinned contradiction checking, the step-N+3 poison write is quarantined (new subject, recent untrusted read in derivation ancestry), the step-N+9 promotion is blocked (quarantined writes cannot enter the baseline), and the step-N+15 planner sees `eu-west-1` flagged `tainted=true` and eithe..."
  },
  "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": "002f4f295c06764eafa50d7757650ff8e247f4096448649649ea44b725408058",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryWrite",
      "Baseline"
    ],
    "verified_functions": [
      "check_and_promote",
      "_negates",
      "_same_subject"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
