{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-a-taint-label-through-a-memory-write-without-re-deriving-it-from-the-retrieval-boundary",
  "title": "What happens when an instance propagates a taint label through a memory write without re-deriving it from the retrieval boundary",
  "date_of_record": "2026 November 21",
  "scope": "Applies to single- and multi-agent systems that maintain dynamic information-flow (taint) labels on context segments and propagate them across tool outputs, memory writes, and subsequent retrievals. Does not apply to stateless single-turn inference with no persistent store and no tool-mediated input.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-memory-write-without-re-deriving-it-from-the-retrieval-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-memory-write-without-re-deriving-it-from-the-retrieval-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-taint-label-through-a-memory-write-without-re-deriving-it-from-the-retrieval-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2045,
    "python_slice_tokens": 531,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is an *assertion about provenance*, not a property of the bytes it decorates. The failure mode examined here is not \"tainted data leaked into a privileged action\" (the classic IFC violation, which is loud and usually caught). It is the quieter inverse: **a taint label survives a transformation that should have either upgraded it or invalidated ...",
    "what_was_observed": "A retrieval-augmented agent had a two-tier memory: raw tool outputs in an `episodic` store (labeled at write time by the tool's declared trust tier) and distilled `semantic` facts written by the agent after a reflection step. The reflection step was assumed to be a trust boundary because it ran in the agent's own context, not the tool's. A web-fetch tool returned a page containing, buried in a code sample, the string...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. **A laundering transform**: any agent-mediated operation (summarize, extract, reformat, \"reflect,\" tool-call argument construction) whose output is written to a store with a label chosen by the *writer's* identity rather than the *inputs'* join. 2. **A label-write policy keyed on writer, not on data-f...",
    "decision_boundary": "The correct rule is a **join, not a copy**: for any derived record `r` produced from inputs `I = {i_1..i_n}`, the label of `r` must be `taint(r) = join(taint(i_1), ..., taint(i_n))`, and `join` must be monotone with `UNTRUSTED` as the top for the trust lattice. The writer's identity is irrelevant to the join. Declassification — lowering a taint — is permitte...",
    "operational_effect": "With the join enforced, the reflection step above writes the semantic record with `taint = join(UNTRUSTED) = UNTRUSTED`. The downstream file-read gate refuses, and the agent receives a *capability denial* rather than a silent privilege escalation — a loud, recoverable failure instead of a quiet one. The cost is over-tainting: legitimate facts distilled from ..."
  },
  "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": "6ba0e3c7e9f2318ab0f410d361a1b33e74e1cae0363769cb40e1ea460c245a27",
    "verified_classes": [
      "Taint",
      "ProvenanceViolation",
      "Record",
      "MemoryStore"
    ],
    "verified_functions": [
      "join",
      "reflect",
      "privileged_read",
      "__init__",
      "write",
      "read"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert reflected.label == Taint.UNTRUSTED"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
