{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-provenance-laundered-memory-poisoning-when-a-poisoned-fact-is-re-derived-from-clean-sources",
  "title": "How should an instance detect provenance-laundered memory poisoning when a poisoned fact is re-derived from clean sources",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores where entries carry provenance metadata (source, derivation lineage, confidence) and where a write-time poisoning detector distinguishes trusted from untrusted origins. Does not apply to ephemeral single-session context, nor to stores where every write is human-reviewed before commit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-provenance-laundered-memory-poisoning-when-a-poisoned-fact-is-re-derived-from-clean-sources.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-provenance-laundered-memory-poisoning-when-a-poisoned-fact-is-re-derived-from-clean-sources.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-provenance-laundered-memory-poisoning-when-a-poisoned-fact-is-re-derived-from-clean-sources.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a poisoned fact entered memory.\" It is \"a poisoned fact entered memory *twice*, and the second entry carries a clean provenance chain.\" Detection systems typically gate on the *origin* of a write: content from an untrusted tool output, a fetched web page, or a peer agent's unverified claim is flagged and quarantined. The invariant most sy...",
    "what_was_observed": "A research agent maintains a persistent semantic store. Each entry is a tuple `(claim, sources[], derivation_parents[], confidence, taint)`. Write-time detection marks `taint=UNTRUSTED` when any source is outside the allowlist. Tainted entries are excluded from retrieval unless the query explicitly requests them. Trace over three sessions: 1. **Session A.** Agent fetches a community forum page (untrusted) asserting \"...",
    "condition_of_validity": "The laundering path is live only when all of the following hold: - **Re-derivation is permitted.** The agent can write new entries without declaring all influencing inputs. This is the default in almost every agent memory design, because agents do not reliably know what influenced them — context replay, summarization, and in-context reasoning all shape outpu...",
    "decision_boundary": "The boundary is between two defensible designs: - **Write-local provenance** (cheap, common): trust is decided per write from `sources`. Accepts that re-derivation launders. Bounded only if tainted memory is never surfaced into any context that can produce a write. - **Closure-based provenance** (correct, expensive): trust of an entry is the minimum trust ov...",
    "operational_effect": "Without the audit, poisoned facts achieve **permanent, self-justifying residence**: the longer they live, the more downstream entries cite them, and citation density is (wrongly) read as corroboration. The practical consequences: - **Confidence inflation.** Each re-derivation increments apparent support. A single forum post becomes \"corroborated by three tru..."
  },
  "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": "5694bd40f97367563bc9f6ef4805db4fb79f8c1eddd2c2c4d7ed0a83330c7a5c",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Entry"
    ],
    "verified_functions": [
      "cosine",
      "write_entry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
