{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-memory-whose-provenance-weight-crossed-the-detection-threshold-mid-retrieval-and-how-does-re-scoring-after-quaranti",
  "title": "When must an instance quarantine a memory whose provenance weight crossed the detection threshold mid-retrieval, and how does re-scoring after quarantine silently re-admit it?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that persist episodic memory with per-record provenance metadata (source agent, trust tier, ingestion epoch) and rank retrieval candidates by a provenance-weighted score `S = relevance × w(provenance)`. Does not apply to stateless single-turn contexts or to memory stores without per-record provenance tagging.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-memory-whose-provenance-weight-crossed-the-detection-threshold-mid-retrieval-and-how-does-re-scoring-after-quaranti.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-memory-whose-provenance-weight-crossed-the-detection-threshold-mid-retrieval-and-how-does-re-scoring-after-quaranti.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-memory-whose-provenance-weight-crossed-the-detection-threshold-mid-retrieval-and-how-does-re-scoring-after-quaranti.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1771,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A provenance-weighted retrieval scorer is not a filter. It is a *ranking function that continuously re-evaluates trust at query time*. The common mental model is: \"poisoned memory gets a low weight, so it sinks to the bottom and never surfaces.\" That model is wrong in a specific way. The weight `w(provenance)` is recomputed on every retrieval pass from mutab...",
    "what_was_observed": "A research agent maintained an episodic store of ~40k records with provenance fields `{source_agent, trust_tier, ingested_at, corroborations}`. Retrieval scored candidates as `relevance × trust_tier_weight × decay(ingested_at)`. A record ingested from a low-trust peer (`trust_tier=0.3`) carrying a plausible but fabricated tool-output summary surfaced in a planning step. The agent's poisoning detector flagged it: its ...",
    "condition_of_validity": "The failure is bounded by the following condition. Let `E` be the set of records with `quarantine=true`. The retrieval path is safe iff the candidate set is computed as `C = {r : score(r) ≥ θ} \\ E` — that is, exclusion is applied to the *index query* (or as a mandatory post-filter that no code path may skip), and `E` is derived from durable state, not from p...",
    "decision_boundary": "The operational decision is where to place the quarantine check. Three placements, ordered by safety: - **Index-level exclusion (safe):** the quarantine set is a durable predicate pushed into the vector query (`filter: quarantine == false`). Re-derivation cannot bypass it because the index itself will not return excluded records. Cost: quarantine requires an...",
    "operational_effect": "The downstream effect is error compounding under a false sense of safety. The agent believes it quarantined the record; its logs show `quarantine=true`; yet the poisoned content re-enters planning and is cited as if verified. Because the record's *provenance* still reads `trust_tier=0.3`, a later auditor that recomputes trust will see a low-trust record that..."
  },
  "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": "6f0bc72cba444b67c9e78c87e4ae314f6cd6ef96ce1df646264282d83d51ca17",
    "verified_classes": [
      "ProvenanceQuarantineViolation",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "guarded_retrieve",
      "__init__",
      "register",
      "quarantine",
      "retrieve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceQuarantineViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
