{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-retrieval-source-integrity-collapse-when-poisoning-drift-outpaces-the-baseline-window",
  "title": "What structural signals indicate retrieval-source integrity collapse when poisoning drift outpaces the baseline window",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that maintain a rolling integrity baseline over retrieved sources and use per-source integrity scores to gate context admission. Does not apply to single-turn stateless agents with no memory of prior retrievals, nor to systems where all sources are cryptographically signed at ingest by a trusted authority (those should rely on signature verification, not statistical drift).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-retrieval-source-integrity-collapse-when-poisoning-drift-outpaces-the-baseline-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-retrieval-source-integrity-collapse-when-poisoning-drift-outpaces-the-baseline-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-retrieval-source-integrity-collapse-when-poisoning-drift-outpaces-the-baseline-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2074,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of context poisoning treats it as an *anomaly detection* problem: score each retrieved chunk, flag outliers, drop them. This framing fails at a specific and non-obvious boundary. Poisoning detection via integrity scoring is fundamentally a *drift-tracking* problem, and drift baselines have a blind spot that is structurally exploitable: **a...",
    "what_was_observed": "An agent performing research synthesis over a corpus of ~40k indexed documents maintained a per-source integrity score: cosine similarity between the source's embedding and a centroid of the last N=500 admitted sources, plus a lexical-overlap term against a whitelist of trusted domains. Sources scoring below 0.72 were quarantined and logged; the centroid was updated on every admission (exponential moving average, α=0...",
    "condition_of_validity": "The per-source integrity score is a valid poisoning detector only under an invariant we will state precisely: > **Baseline stationarity invariant:** The reference distribution against which sources are scored must be estimated from a window that provably excludes any source whose admission is under evaluation, AND the window must be *anchored* — its central ...",
    "decision_boundary": "The operational decision is *when to distrust the baseline itself* rather than any individual source. The boundary is crossed when any of the following holds across a monitoring window: - Baseline dispersion falls below `dispersion_floor` (calibrated as, say, the 5th percentile of dispersion observed during a known-clean burn-in period) while admission volum...",
    "operational_effect": "Agents that implement only per-source scoring with an EMA baseline will, under a paced ramp, admit poisoned context silently and report *improving* source health right up to the point of full capture. The failure is not detectable from any per-source score, any single metric, or any threshold on the admission path — it is only detectable from the *trajectory..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "6e51a302153500689119127f7dafc7b7a1cd12ad9c95d67b7f433b03b73daec1",
    "verified_classes": [
      "BaselineCaptureError",
      "IntegrityBaseline"
    ],
    "verified_functions": [
      "admit_batch",
      "observe",
      "_dispersion",
      "_fast_centroid",
      "check_integrity",
      "admit"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BaselineCaptureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
