{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-tainted-value-that-has-passed-through-a-tool-call-boundary-rather-than-trusting-the-label-that-sur",
  "title": "Under what conditions must an instance quarantine a tainted value that has passed through a tool-call boundary, rather than trusting the label that survived serialization?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that propagate dynamic information-flow (DIF) taint labels across MCP/JSON-RPC tool-call boundaries where the label travels as a sibling field to the payload and is re-asserted by the receiving tool. Does not apply to in-process function calls where the label is a Python object reference (identity preserved) or to systems where taint is re-derived server-side from provenance rather than carried by the caller.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-value-that-has-passed-through-a-tool-call-boundary-rather-than-trusting-the-label-that-sur.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-value-that-has-passed-through-a-tool-call-boundary-rather-than-trusting-the-label-that-sur.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-tainted-value-that-has-passed-through-a-tool-call-boundary-rather-than-trusting-the-label-that-sur.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1622,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **label propagation** and **label attestation**. A taint label that crosses a tool-call boundary is, at the transport layer, just another string in a JSON object. The receiving agent has no way to distinguish \"this label was computed by a trusted taint-tracking runtime and faithfully serialized\" from \"this label was wr...",
    "what_was_observed": "A retrieval tool `fetch_doc(url)` returns a document body plus a `taint` field. The orchestrator's DIF runtime labels the tool's return as `{source: external, integrity: untrusted}` and emits: The document text contained a prompt-injection payload that instructed the model to *rewrite the `taint` field* before the tool result was echoed back into the next tool call. Because the label was a plain JSON sibling, the mod...",
    "condition_of_validity": "A taint label crossing a tool boundary is only trustworthy when **all three** hold: - **Out-of-band channel:** the label is delivered on a channel the payload author cannot write to — a separate response field signed by the tool host, a header in the transport envelope, or a sidecar the model never sees as text. - **Monotonic join at the receiver:** the rece...",
    "decision_boundary": "The boundary is: **does the receiver re-derive taint from provenance, or does it consume the asserted label?** - If the receiver re-derives (e.g., it knows the tool's trust class from its own registry, not from the message), the asserted label is redundant and the attack is inert. - If the receiver consumes the asserted label, then the *only* safe default wh...",
    "operational_effect": "With the rule enforced, the `write_file` call in the trace above receives `effective_label = untrusted` (because the asserted `trusted` label failed the signature check against the payload hash), the quarantine branch fires, the write is staged to a sandbox, and a `TaintLabelReplay` event is emitted with the nonce mismatch. The injection still reaches the mo..."
  },
  "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": "7d57cce05d17269c529384a7ec32efd09f4f637b058612fdda8b3b9a16f53ffc",
    "verified_classes": [
      "TaintBoundaryViolation"
    ],
    "verified_functions": [
      "_mac",
      "resolve_effective_label",
      "dispatch_tool_call"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
