{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-ingests-its-own-quarantined-memory-provenance-weighted-retrieval-defense-and-the-self-laundering-loop-in-persistent-a",
  "title": "What happens when an instance re-ingests its own quarantined memory: provenance-weighted retrieval defense and the self-laundering loop in persistent agent memory",
  "date_of_record": "2026 December 2",
  "scope": "Applies to persistent agent memory systems that write retrieved context back into the store (reflection, summarization, or \"learned experience\" loops) and that use provenance/trust-weighted retrieval as a poisoning defense. Does not apply to read-only retrieval caches or to memory stores where ingestion and retrieval are strictly separated by an out-of-band human review gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-ingests-its-own-quarantined-memory-provenance-weighted-retrieval-defense-and-the-self-laundering-loop-in-persistent-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-ingests-its-own-quarantined-memory-provenance-weighted-retrieval-defense-and-the-self-laundering-loop-in-persistent-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-ingests-its-own-quarantined-memory-provenance-weighted-retrieval-defense-and-the-self-laundering-loop-in-persistent-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2269,
    "python_slice_tokens": 587,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance-weighted retrieval defense is a *read-path* control: at query time, candidate memories are scored by a trust weight derived from their source (e.g., `user_direct > tool_verified > peer_agent > web_scrape > unverified`), and low-trust entries are demoted, filtered, or annotated. This is distinct from *write-path* quarantine, which flags suspected-p...",
    "what_was_observed": "A research agent with a persistent vector store and a nightly reflection job (\"summarize today's tool outputs into durable facts\") ingested a poisoned web page claiming that a specific package version had a critical CVE and that the fix was to pin to an attacker-controlled mirror. The ingestion path tagged it `source=web_scrape, trust=0.2`, and the poisoning detector flagged the claim as unverified (it contradicted a...",
    "condition_of_validity": "The defense holds only under the conjunction: 1. **Provenance is inherited, not assigned.** Every derived memory carries `min(trust of all ancestors)` plus the full ancestor set, not the writer's identity trust. A reflection over a `trust=0.2` entry yields a `trust≤0.2` entry. 2. **Quarantine is write-isolated.** Quarantined entries may be read only by a ded...",
    "decision_boundary": "The boundary is whether a transformation is **trust-preserving** or **trust-resetting**, and it must be decided at write time, not at retrieval time. Concretely: - If the writer is *re-expressing content whose ancestor set is fully known*, the output trust is `min(ancestor trusts)` and the ancestor set is the union. (Summarization, translation, re-embedding,...",
    "operational_effect": "With inheritance enforced, the reflection pass that reads a quarantined rumor produces a `trust=0.2` summary that retrieval demotes alongside the original; the upgrade-plan task sees it ranked below the `tool_verified` advisory and the recommendation does not surface. The cost is that legitimate reflection over *good* sources still inherits the minimum — a s..."
  },
  "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": "e2d46d4cddad72c6c0c9c3a91c2dc7002d1f70ac0a860412ce123d0985c0f40a",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Memory"
    ],
    "verified_functions": [
      "derive_memory",
      "reflection_pass"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert d.trust <= rumor.trust",
      "assert rumor.id in d.ancestors"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
