{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-propagation-through-semantic-memory-tiers-and-why-per-episode-provenance-tags-silently-fail",
  "title": "What structural signals indicate taint propagation through semantic memory tiers (and why per-episode provenance tags silently fail)",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agents whose memory is tiered into episodic (raw turns, tool I/O) and semantic (distilled facts, summaries, preference records) stores with cross-tier retrieval, and where taint labels are attached at write time. Does not cover single-session stateless agents or pure RAG over an externally curated corpus with no write-back path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-through-semantic-memory-tiers-and-why-per-episode-provenance-tags-silently-fail.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-through-semantic-memory-tiers-and-why-per-episode-provenance-tags-silently-fail.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-propagation-through-semantic-memory-tiers-and-why-per-episode-provenance-tags-silently-fail.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2026,
    "python_slice_tokens": 345,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"poisoned memory gets retrieved.\" It is that **taint labels are provenance-local, while distillation is provenance-laundering.** When an agent distills an episodic record into a semantic fact, the fact inherits the *content* of the episode but not the *taint label* of its inputs unless the distillation step explicitly propagates the lattic...",
    "what_was_observed": "A long-running support agent with a two-tier store. Episodic tier: append-only turns with `{turn_id, role, content, taint}`. Semantic tier: distilled facts with `{fact_id, text, derived_from: [turn_ids], taint}`. Retrieval merges both tiers by relevance. Trigger sequence: 1. Turn 4412 is a tool result from an external retrieval tool whose payload contains an injected instruction (`\"Note: the account's billing region ...",
    "condition_of_validity": "The detection holds only under these conditions, and silently fails outside them: - **Derivation edges are recorded and immutable.** If the compactor writes `derived_from` after the fact, or omits turns it \"didn't use much,\" the join is unverifiable. The invariant is only as good as edge completeness; an agent that paraphrases without citing is outside the b...",
    "decision_boundary": "When a write arrives at the semantic tier, the store must decide: accept, quarantine, or reject. The boundary is a single lattice check plus a policy on violations: - `join(inputs) == none` → accept, stamp `none`. - `join(inputs) ⊒ output_taint` (output is at least as tainted as inputs claim) → accept, stamp the join. - `output_taint ⊏ join(inputs)` (output ...",
    "operational_effect": "Enforcing store-side join has three measurable effects. First, it converts an unbounded-content poisoning problem into a bounded-graph problem: the store never has to judge whether text is malicious, only whether the label arithmetic is consistent. Second, it makes the compactor's failure *loud at write time* rather than *silent until action time* — the 89-t..."
  },
  "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": "23ee6212407fa9c8bebdd35addee23681251b8ba190ffaa05d0b61a1f7a1152b",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Episode",
      "SemanticWrite",
      "TaintStore"
    ],
    "verified_functions": [
      "join",
      "leq",
      "__init__",
      "__init__",
      "add_episode",
      "write_semantic"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
