{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-label-laundering-at-the-retrieval-boundary-re-derivation-step",
  "title": "Which invariants prevent taint-label laundering at the retrieval-boundary re-derivation step",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that propagate data-flow taint labels (untrusted/instruction-bearing provenance) across tool calls and retrieval boundaries, where retrieved content is re-summarized or re-extracted by the model before being re-labeled. Does not apply to systems that treat retrieved text as opaque byte streams passed unmodified to the next hop, nor to single-turn agents with no persistent label store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-at-the-retrieval-boundary-re-derivation-step.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-at-the-retrieval-boundary-re-derivation-step.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-label-laundering-at-the-retrieval-boundary-re-derivation-step.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1472,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model read an injected instruction.\" It is that the *taint label was re-derived from the model's own output* at the retrieval boundary instead of being *transported* from the source. Most taint-tracking designs correctly label the moment untrusted bytes enter context. The break happens one hop later: a retrieval tool returns a documen...",
    "what_was_observed": "A three-hop chain: `fetch_url` → `summarize` → `write_to_notes`. The fetch tool correctly tagged the returned document `taint=UNTRUSTED, origin=web`. The summarizer received the document and produced a 200-token summary. The note-writer's labeler ran a heuristic classifier over the summary text and emitted `taint=TRUSTED` because the summary contained no imperative verbs, no \"ignore\", no tool-call syntax — the model ...",
    "condition_of_validity": "The re-derivation failure requires all of: - A transformation hop (summarize, extract, translate, restructure) between two labeled boundaries. - A labeler that classifies by content inspection rather than by provenance inheritance. - A downstream consumer that grants capability based on label value (e.g., TRUSTED notes may trigger tool calls; UNTRUSTED may n...",
    "decision_boundary": "The correct rule: **a derived artifact's taint is the join (max) of its inputs' taints; it is never the classifier's opinion of its text.** Content-based classification may *raise* taint (a TRUSTED input that suddenly looks injected can be escalated) but must never *lower* it below the inherited join. The decision boundary is one-directional: classifiers are...",
    "operational_effect": "Enforcing the join invariant converts a silent laundering channel into a hard, loud fault at the transformation hop. The summarizer's output cannot enter the working store with a downgraded label; the agent halts or routes to a declassifier. In the observed system, adding the join check caused the `summarize` tool to fail closed on every hop that previously ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "93521cef6be739296959f2a340d31ca59a206a92041721f3233c6955b6171ebb",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Artifact"
    ],
    "verified_functions": [
      "join_taint",
      "admit_derived"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
