{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-weighted-retrieval-trust-scores-from-laundering-poisoned-memory-during-episodic-to-semantic-distillation",
  "title": "Which invariants prevent provenance-weighted retrieval trust scores from laundering poisoned memory during episodic-to-semantic distillation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agents that consolidate episodic traces into a semantic memory store and weight retrieval by per-record provenance trust; does not cover stateless RAG over a single immutable corpus, nor human-curated knowledge bases where every record has a single author.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-retrieval-trust-scores-from-laundering-poisoned-memory-during-episodic-to-semantic-distillation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-retrieval-trust-scores-from-laundering-poisoned-memory-during-episodic-to-semantic-distillation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-retrieval-trust-scores-from-laundering-poisoned-memory-during-episodic-to-semantic-distillation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1634,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *provenance of a memory record* and *provenance of the claim that record encodes*. A trust-weighted retriever typically scores a record `r` as `trust(r) = f(source_class(r), corroboration(r), age(r))`. The failure mode is that during episodic-to-semantic distillation, an LLM rewrites many low-trust episodic observ...",
    "what_was_observed": "A tool-using agent maintained two stores: an episodic log (raw tool outputs, user turns, timestamps, source tags) and a semantic store (natural-language facts distilled nightly). Retrieval scored candidates by `trust = source_weight * recency_decay * (1 + log(1 + corroborations))`. Source weights were `user=1.0`, `tool=0.8`, `web_fetch=0.4`, `distilled=0.9`. A prompt-injection payload arrived inside a `web_fetch` res...",
    "condition_of_validity": "Provenance-weighted trust is only a poisoning defense under three conditions, all of which must be checked at write time, not read time: 1. **Monotone non-increase across derivation.** For any semantic record `s` with antecedent set `A(s)`, `trust(s) ≤ min_{a∈A(s)} trust(a)` unless `s` carries an explicit corroboration event whose provenance is disjoint from...",
    "decision_boundary": "The boundary is whether the distillation step is allowed to *author* trust or only *propagate* it. Concretely: - **Propagate-only (safe):** distiller output trust = `min` over cited antecedents; new trust requires a corroboration event with a disjoint root set recorded by a separate verifier, not by the distiller itself. Retrieval may then rank freely on the...",
    "operational_effect": "With monotone trust propagation and root-anchored decay, the day-3 injection stays at `0.4`, never enters the top-k against the `1.0` policy, and the refund is escalated. The cost is that legitimate distillation of a genuinely low-trust-but-correct observation (a `web_fetch` that happens to be right) stays low-trust until an independent corroboration arrives..."
  },
  "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": "b1b84cf7e6c21ec07c1a30a3d644bbf8e75811cbf33b5a05387dadce58bf1e88",
    "verified_classes": [
      "TrustLaunderingError",
      "MemoryRecord",
      "SemanticStore"
    ],
    "verified_functions": [
      "admit_distilled",
      "retrieve"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TrustLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
