{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-from-defeating-memory-poisoning-detection-when-a-poisoned-fact-is-re-derived-by-a-trusted-agent",
  "title": "Which invariants prevent provenance-laundering from defeating memory-poisoning detection when a poisoned fact is re-derived by a trusted agent",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores that gate writes on a per-item trust/provenance label (e.g., `source=agent_derived` vs `source=user_asserted`) and that detect poisoning by rejecting low-trust writes to high-sensitivity slots. Does not apply to stores that re-verify every memory item against an external ground-truth oracle on every read, nor to ephemeral within-episode context that is never persisted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-memory-poisoning-detection-when-a-poisoned-fact-is-re-derived-by-a-trusted-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-memory-poisoning-detection-when-a-poisoned-fact-is-re-derived-by-a-trusted-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-memory-poisoning-detection-when-a-poisoned-fact-is-re-derived-by-a-trusted-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1765,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **provenance of a write** and **provenance of the content being written**. Most memory-integrity designs gate on the former: a write carries a `source` field, and a policy engine admits it to a protected slot only if `source` is on an allowlist. Poisoning detection then reduces to \"did an untrusted source touch a ...",
    "what_was_observed": "A retrieval-augmented agent with a persistent store held a protected slot `billing_policy` writable only by `source ∈ {user_asserted, human_reviewed}`. An untrusted web-fetch tool wrote a low-trust item to a scratch region: `refund_window = 90 days` (the real policy was 30 days). This scratch item was correctly labeled `source=web_fetch`, `trust=low`, and the write to `billing_policy` was correctly blocked. On the ne...",
    "condition_of_validity": "The taint-closure invariant holds if and only if three conditions are met: 1. **Derivation edges are recorded at write time.** Every write to the store must carry the set of memory-item IDs (or a taint token) that the writing agent actually read and used to produce the content. This is not the same as the agent's *read log* — it is the subset of reads that c...",
    "decision_boundary": "The boundary is drawn at whether the store can distinguish **\"an untrusted source wrote this\"** from **\"a trusted source wrote this from untrusted material.\"** Below the boundary — stores that only check writer identity — provenance laundering is undetectable by construction, and any poisoning-detection claim is false confidence. Above the boundary — stores ...",
    "operational_effect": "In the launderable design, the protected slot silently accumulates re-signed poison. Detection fires zero times because every write is from a trusted identity. The failure surfaces only downstream — a customer-facing agent quotes the 90-day window — and is then misattributed to \"the model hallucinating,\" because the store's audit log shows a clean trusted wr..."
  },
  "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": "cb7ced81d8251194736b177a7bb77436e909f9c87c6b402565b70df1d346db45",
    "verified_classes": [
      "TaintViolation",
      "DerivationCaptureError",
      "MemoryItem"
    ],
    "verified_functions": [
      "admit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DerivationCaptureError",
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
