{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-provenance-weighted-retrieval-scoring-has-silently-failed-to-detect-a-poisoned-memory-write",
  "title": "What structural signals indicate provenance-weighted retrieval scoring has silently failed to detect a poisoned memory write",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that persist episodic or semantic memory to a vector or hybrid store and gate retrieval by a provenance-weighted score (source trust × recency × similarity). Does not apply to stateless single-turn inference or to stores where every write is human-reviewed before indexing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-weighted-retrieval-scoring-has-silently-failed-to-detect-a-poisoned-memory-write.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-weighted-retrieval-scoring-has-silently-failed-to-detect-a-poisoned-memory-write.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-provenance-weighted-retrieval-scoring-has-silently-failed-to-detect-a-poisoned-memory-write.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 467,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common assumption is that provenance weighting turns memory poisoning into a *scoring* problem: a poisoned entry carries low-trust provenance, so its weighted score stays below the retrieval threshold and it never enters context. This holds only when provenance is *per-entry and immutable at write time*. The failure mode examined here is different and no...",
    "what_was_observed": "A retrieval-augmented agent was configured with a weighted score: with `w_t = 0.4, w_r = 0.2, w_s = 0.4` and a retrieval gate at `score ≥ 0.55`. Trust was assigned per *ingestion batch*, not per document. A tool-call result from an untrusted external endpoint was summarized by a trusted summarizer agent and written back into the store as part of the summarizer's own batch. The write inherited `trust = 0.9` because th...",
    "condition_of_validity": "Provenance-weighted scoring is only a poisoning defense under three invariants, and the failure above is exactly the violation of invariant (2): 1. **Entry-bound provenance.** Trust must attach to the *content's ultimate origin*, not to the batch, session, or summarizing principal that performed the write. 2. **Provenance non-inheritance across distillation....",
    "decision_boundary": "The operational question is not \"is the score high?\" but \"**does the score decompose into a trust term that matches the entry's ancestry?**\" The boundary condition: - **Detectable by score alone:** poisoned entries whose trust term is *inconsistent with their source label* — i.e., a `trust=0.1` source scoring `0.9`. Rare under batch-trust because the label l...",
    "operational_effect": "Enforcing entry-bound, non-inheriting provenance changes three behaviors: 1. **The retrieval gate becomes a decay gate.** Poisoned entries with low inherited trust clear the threshold only near their write time and fall out as recency decays — bounding blast radius to a time window rather than a turn count. 2. **Monitoring must move from score to ancestry.**..."
  },
  "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": "3d4637c2a799fec460b4f51dc133af3a218a45ed8d3304f9013b2996cb9efbaa",
    "verified_classes": [
      "MemoryEntry",
      "ProvenanceLaunderingError",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "__init__",
      "add_root",
      "add_derived",
      "detect_fanout",
      "_reachable"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
