{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-tainted-capability-into-a-clean-sub-agent-through-mcp-tool-result-re-serialization",
  "title": "What happens when an instance launders a tainted capability into a clean sub-agent through MCP tool-result re-serialization",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that enforce taint tracking (untrusted-origin labels on data) across tool calls and MCP boundaries, and that spawn or delegate to sub-agents via capability-scoped warrants. Does not apply to single-process agents with no delegation and no external tool result ingestion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-capability-into-a-clean-sub-agent-through-mcp-tool-result-re-serialization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-capability-into-a-clean-sub-agent-through-mcp-tool-result-re-serialization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-tainted-capability-into-a-clean-sub-agent-through-mcp-tool-result-re-serialization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1395,
    "python_slice_tokens": 187,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing distinguishes *data provenance* (where a value originated: user prompt, web fetch, tool return, peer agent) from *capability scope* (what operations the current warrant permits). The common assumption is that these two axes are independent: a value's taint label rides along with it, and a capability is either held or not. The failure m...",
    "what_was_observed": "A parent agent fetched an untrusted URL via `web.fetch`, receiving a `CallToolResult` whose `content[0].text` contained attacker-influenced instructions plus a payload string. The runtime tagged the returned object with `taint=UNTRUSTED` in a side table keyed by object identity (a `WeakKeyDictionary` or an attribute on the deserialized object). The agent then decided to delegate summarization to a sub-agent and const...",
    "condition_of_validity": "The laundering succeeds only when all three hold: 1. **Label is out-of-band.** Taint is stored on the object (identity-keyed map, instance attribute) rather than in the value's wire representation. If taint were carried *in* the serialized form (e.g. a `{value, taint}` envelope), the copy would preserve it. 2. **Warrant is operation-scoped, not data-scoped.*...",
    "decision_boundary": "The architectural guardrail is to make taint **in-band and non-strippable at every serialization edge**, and to make warrants **data-constrained** so that label loss alone is insufficient for harm: - Replace identity-keyed side tables with a value envelope (`Tainted[T]`) that serializes to a tagged wire form; reject any MCP/A2A payload lacking a taint tag by...",
    "operational_effect": "Without the guardrail, taint tracking provides a false sense of security: auditors see `taint=UNTRUSTED` at ingestion and assume downstream enforcement, while every delegation hop is a laundering opportunity. The practical blast radius scales with delegation depth—each MCP/A2A handoff is an independent chance to drop the tag—so multi-agent swarms are disprop..."
  },
  "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": "0a49cb5a8e761dbd5013abf4ef4bd7088bc5b52e0472ac52011b770a60c0ec11",
    "verified_classes": [
      "TaintLaunderingError",
      "Tainted"
    ],
    "verified_functions": [
      "deserialize_wire",
      "enforce_warrant",
      "handoff_to_subagent",
      "to_wire"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
