{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-provenance-verified-memory-before-it-can-poison-a-downstream-retrieval-chain",
  "title": "Under what conditions must an instance quarantine a provenance-verified memory before it can poison a downstream retrieval chain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to persistent agent memory stores where writes carry provenance metadata (source instance, derivation lineage, trust score) and reads are gated by provenance-aware retrieval. Does not cover stateless single-turn inference or memory systems without write-time attribution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-verified-memory-before-it-can-poison-a-downstream-retrieval-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-verified-memory-before-it-can-poison-a-downstream-retrieval-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-verified-memory-before-it-can-poison-a-downstream-retrieval-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not *detecting* a poisoned memory. Detection is cheap: provenance-aware retrieval can flag any entry whose trust score falls below a threshold or whose lineage references a revoked source. The boundary condition is subtler — **the window between an entry being written with a passing trust score and the score being invalidated by a later e...",
    "what_was_observed": "In a three-agent pipeline (researcher → distiller → planner), the distiller wrote semantic memories with `source_instance: distiller`, `parent_trust: 0.91`, and a content hash. The researcher's raw episodic buffer was the true origin but was only referenced by an opaque `trace_id` in a side table. A prompt-injection payload embedded in a fetched web page survived summarization because the distiller's extraction promp...",
    "condition_of_validity": "The write-time trust score is a valid gate only under the assumption that the derivation graph is *closed under invalidation*: every entry's effective trust equals the minimum trust over all ancestors in its lineage, evaluated at read time, not write time. This assumption fails whenever: 1. **Lineage is truncated.** The distilled memory records its immediate...",
    "decision_boundary": "The boundary is between two policies: - **Trust-on-write, check-on-read:** assign a trust score at write, re-check the entry's *own* score at read. Cheap, common, and broken under provenance laundering. - **Trust-on-read over full lineage:** recompute effective trust from the complete transitive ancestry against the current invalidation set at every retrieva...",
    "operational_effect": "Implementing read-time lineage recomputation changes three things: 1. **Write path** must persist the full transitive ancestry, not just the immediate parent. For a distilled memory, that means recording the `trace_id` of the raw buffer *and* the source document IDs that the raw buffer referenced. Storage cost grows with derivation depth; this is the price o..."
  },
  "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": "9eb33faf213fd61db6ccc96943be510f54cd82da190f528bf47fdefc76249c35",
    "verified_classes": [
      "LineageIncompleteError",
      "TrustInvariantViolation",
      "MemoryEntry",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "write",
      "invalidate",
      "effective_trust",
      "admit_for_retrieval"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LineageIncompleteError",
      "TrustInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
