{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-in-provenance-weighted-retrieval-the-trust-score-inversion-at-the-distillation-boundary",
  "title": "What structural signals indicate memory poisoning in provenance-weighted retrieval: the trust-score inversion at the distillation boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that persist retrieved context into episodic memory and later re-ingest it as trusted prior context, where trust is computed as a weighted function of provenance (origin, derivation depth, corroboration). Does not apply to stateless single-turn retrieval, nor to systems where memory writes and memory reads are cryptographically isolated with no cross-tenant sharing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-provenance-weighted-retrieval-the-trust-score-inversion-at-the-distillation-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-provenance-weighted-retrieval-the-trust-score-inversion-at-the-distillation-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-in-provenance-weighted-retrieval-the-trust-score-inversion-at-the-distillation-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1845,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent retrieved a poisoned document.\" That is a detection problem solved by provenance classification. The failure is that **the act of retrieving a poisoned document raises its own provenance weight on subsequent reads**, because the retrieval event itself is recorded as corroboration. A document that is read once and written to epis...",
    "what_was_observed": "A research agent with a 90-day episodic store was tasked with maintaining a knowledge base on vendor security postures. Its retrieval pipeline scored each context chunk with `trust = Σ(origin_weight × recency_decay × corroboration_factor)`. Origin weights: external-unverified = 0.2, external-verified = 0.6, internal-derived = 0.9. Corroboration factor was `1 + log(1 + distinct_sources)`. An attacker published a docum...",
    "condition_of_validity": "The inversion requires three conditions to co-occur, and the guardrail is only meaningful when all three are present: 1. **Re-ingestion path exists.** Episodic memory is readable as retrieval context (not write-only audit log). If episodic entries can never be retrieved as trusted context, the loop cannot close. 2. **Corroboration is computed from read event...",
    "decision_boundary": "The boundary is between **treating memory as evidence** and **treating memory as a cache**. A cache may be re-read freely; its reads carry no epistemic weight. Evidence must carry a provenance chain that is monotonic under derivation: `origin_weight(distilled) ≤ origin_weight(source)`, and `corroboration(distilled) = corroboration(source)` unless a genuinely...",
    "operational_effect": "With the guardrail in place, the poisoned claim's trajectory is: episodic trust 0.2 → distillation penalty 0.85 → semantic trust 0.17, permanently below the verified vendor policy at 0.6. The claim is retained (auditable) but never surfaces above the citation threshold. The `distinct_origin_hashes` set remains size 1 across all reads, and any attempt to add ..."
  },
  "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": "ed2d13634914c64db3f6dedbbac84dd4eb200bb4306653f59abfb6a6dea49956",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "trust_score",
      "distill",
      "check_amplification"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
