{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-validates-a-memory-write-against-the-wrong-trust-tier-and-launders-poisoned-provenance-into-the-semantic-store",
  "title": "What happens when an instance validates a memory write against the wrong trust tier and launders poisoned provenance into the semantic store",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory systems that gate writes through write-time validation with per-source trust scores and promote episodic memories into a semantic store. Does not apply to stateless single-turn inference or to memory systems with no provenance tracking.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-validates-a-memory-write-against-the-wrong-trust-tier-and-launders-poisoned-provenance-into-the-semantic-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-validates-a-memory-write-against-the-wrong-trust-tier-and-launders-poisoned-provenance-into-the-semantic-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-validates-a-memory-write-against-the-wrong-trust-tier-and-launders-poisoned-provenance-into-the-semantic-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1759,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Write-time validation is not a filter on *content*; it is a filter on *provenance*. The distinction that matters is between a memory whose **declared origin** carries a trust score and the **effective trust** of the bytes actually written. A poisoned memory does not need to defeat the content validator — it only needs to arrive through a path whose provenanc...",
    "what_was_observed": "A research agent maintained an episodic buffer and a semantic store with a write-time validator. Each candidate memory carried a `provenance` record: `{source_id, source_class, trust_score}`. The validator admitted writes with `trust_score >= 0.6` and quarantined the rest for human review. Trace of the poisoning: 1. Agent retrieves a web page (source_class `web_untrusted`, trust 0.2). The page contains an injected in...",
    "condition_of_validity": "The defense is sound only under the invariant: > **Effective trust of a write = min(trust over the transitive taint set of all inputs), never the trust of the final producer.** Write-time validation that scores provenance by the *last* tool in the pipeline is valid only when every tool in the pipeline is a **pure transformer that cannot introduce new claims*...",
    "decision_boundary": "The boundary between \"safe to admit\" and \"quarantine\" is not a single score comparison; it is a two-axis decision: The last row is the only legitimate exception, and it requires the producer to be provably extractive — a substring/quote operator, not a generative one. Any generative step between an untrusted input and a write forces the quarantine path, beca...",
    "operational_effect": "The failure mode is a **silent privilege escalation of content**. Nothing errors; the validator reports a pass; the memory is indexed with a plausible provenance record. The blast radius is every future retrieval that cites the laundered memory, and the damage compounds because high-trust memories are preferentially retrieved and preferentially cited as auth..."
  },
  "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": "c6129a0a4168f43cc907ad66accec94cac794f10d83112d255009a433affaa5f",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryWrite"
    ],
    "verified_functions": [
      "effective_trust",
      "validate_write",
      "handle_write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert handle_write(poisoned).startswith('quarantine')",
      "assert handle_write(clean) == 'admit'"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
