{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-provenance-laundering-attack-evades-memory-poisoning-defenses-in-persistent-agent-memory",
  "title": "What structural signals indicate a provenance-laundering attack evades memory-poisoning defenses in persistent agent memory",
  "date_of_record": "2026 November 24",
  "scope": "Applies to persistent agent memory systems that gate writes and retrievals on per-record provenance metadata (source class, trust tier, derivation chain) and that distill episodic records into semantic memory. Does not address prompt-injection confined to a single context window with no persistence, nor classical RAG over a static, human-curated corpus.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-laundering-attack-evades-memory-poisoning-defenses-in-persistent-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-laundering-attack-evades-memory-poisoning-defenses-in-persistent-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-laundering-attack-evades-memory-poisoning-defenses-in-persistent-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance-tracked retrieval defenses assume the *taint of a memory record is inherited from its source at write time and is immutable thereafter*. The failure mode documented here is **provenance laundering**: a low-trust record (e.g., content ingested from an untrusted tool output, a web fetch, or a peer agent's unverified assertion) is transformed—through...",
    "what_was_observed": "A persistent agent maintained an episodic buffer of tool outputs with per-record trust tiers. Web-fetched content was tagged `TIER_UNTRUSTED`; records written by the agent's own reasoning loop were tagged `TIER_SELF`. A distillation pass ran nightly: it summarized clusters of episodic records into semantic-memory entries. The distillation routine correctly read the provenance of its inputs, but the *output* record wa...",
    "condition_of_validity": "The invariant that must hold for provenance-tracked retrieval to be sound: > **Trust monotonicity under derivation:** For any record `r` derived from input set `I`, `tier(r) ≤ min(tier(i) for i in I)`, and `r`'s provenance must contain an edge to every `i in I`. This fails whenever the write path computes tier from *actor identity* instead of *derivation set...",
    "decision_boundary": "The operational decision is where to enforce the monotonicity check, and it must be enforced at **both** write and retrieval, because each catches a different class: - **Write-time enforcement** (reject or downgrade any derived record whose tier exceeds its derivation-set minimum) prevents laundering at the source. This is the primary guardrail. A distillati...",
    "operational_effect": "With monotonicity enforced at write time, the distillation pass that produced `S7` would have emitted it at `TIER_UNTRUSTED`, and the trust-gated retrieval would have excluded it alongside `E42`—the poison is contained to the tier it entered at. The cost is real: legitimate synthesis of mixed-trust inputs is downgraded to the lowest input tier, which reduces..."
  },
  "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": "16c38c54a15eaaa6159cca18a71dce8f505b61ddbec20b64988759310787fae6",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "stamp_derived_record",
      "audit_retrieval"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
