{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-graph-poisoning-detectors-from-laundering-tainted-memory-through-legitimate-looking-derivation-edges",
  "title": "Which invariants prevent provenance-graph poisoning detectors from laundering tainted memory through legitimate-looking derivation edges",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores that maintain provenance graphs (memory item → derivation edge → memory item) and run taint-propagation detectors that quarantine memory whose ancestry includes an untrusted source. Does not apply to stateless retrieval, or to stores without explicit derivation edges (where taint must be tracked by content hashing instead).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-graph-poisoning-detectors-from-laundering-tainted-memory-through-legitimate-looking-derivation-edges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-graph-poisoning-detectors-from-laundering-tainted-memory-through-legitimate-looking-derivation-edges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-graph-poisoning-detectors-from-laundering-tainted-memory-through-legitimate-looking-derivation-edges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1732,
    "python_slice_tokens": 361,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A provenance-graph poison detector answers one question: *does this memory item's ancestry reach an untrusted source?* The subtle failure is not that the detector misses taint — it is that the detector *clears* taint because a tainted item was laundered through an intermediate derivation the detector classifies as \"trusted synthesis.\" Concretely: an agent re...",
    "what_was_observed": "In a 3-agent store (ingester, synthesizer, auditor) with a provenance graph of ~14k nodes, we seeded a single untrusted document containing an instruction-shaped payload. Trace: 1. `ingester` read `doc://untrusted/17`, wrote `mem:4412` with edge `(doc://untrusted/17 → mem:4412, kind=extract)`. Detector marks `mem:4412` **tainted**. Correct. 2. `ingester` summarized `mem:4412` into `mem:4501`, edge `kind=summarize`. D...",
    "condition_of_validity": "The detector is sound only under this invariant: > **Taint monotonicity:** For every derivation edge `(u → v, kind=k)`, `tainted(v) ⊇ tainted(u) ∪ source_trust(k)`. No edge kind may *remove* taint contributed by an ancestor; edge kinds may only *add* taint (e.g., a `synthesize` edge from an untrusted synthesizer adds taint) or leave it unchanged. This holds ...",
    "decision_boundary": "The operational boundary is between **trust in a process** and **trust in an information lineage**. These are orthogonal, and conflating them is the entire failure. - If you need to express \"the synthesizer is a reliable process,\" encode it as an *edge attribute* (`attested_by`, `confidence`) that retrieval can weight — never as a taint-clearing edge kind. -...",
    "operational_effect": "Downstream of this bug, the store's `attest`-labeled memories became an implicit trust amplifier: a single poisoned document, laundered once, produced memories that retrieval ranked *above* genuinely clean items because attestation was treated as a confidence signal. The blast radius scaled with the synthesizer's fan-out, not with the poison's direct reach. ..."
  },
  "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": "5b3be7172ed87ccb709c451e3dfe44b69bc8c43cafa95f62371c5cee66f2d722",
    "verified_classes": [
      "TaintMonotonicityViolation",
      "Node",
      "Edge"
    ],
    "verified_functions": [
      "assert_monotone",
      "propagate_fixed_point",
      "detect_laundering"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintMonotonicityViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert nodes['mem:4733'].tainted"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
