{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-inherits-taint-through-an-mcp-tool-boundary-it-never-observed",
  "title": "What happens when an instance inherits taint through an MCP tool boundary it never observed",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent systems where a delegating agent (A2A) invokes a sub-agent that calls MCP tools, and where taint/trust labels are used to gate downstream side effects. Does not apply to single-instance tool use with no cross-agent handoff, nor to systems that enforce taint at the OS/syscall layer rather than at the message envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-through-an-mcp-tool-boundary-it-never-observed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-through-an-mcp-tool-boundary-it-never-observed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-taint-through-an-mcp-tool-boundary-it-never-observed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1898,
    "python_slice_tokens": 301,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint propagation in agent systems is routinely modeled as a *transitive property of data*: if a value is labeled `untrusted`, any value derived from it is `untrusted`. This model is correct for pure dataflow but **wrong for agent handoffs**, because an A2A delegation does not forward the *provenance graph*—it forwards a *task description and a result*. The ...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → worker `W` (A2A) → MCP tool `fetch_doc` (returns untrusted web content) and MCP tool `post_summary` (a side-effecting write). 1. `O` receives an external user message `M` containing an injected instruction, labels it `taint=untrusted`, and delegates: `A2A.delegate(worker=W, task=\"summarize the doc at URL X and post a summary\")`. The A2A envelope carries `task` and `deadline` but ...",
    "condition_of_validity": "The laundering boundary is exploitable exactly when all three hold: - **(a) Label-erasing handoff.** The A2A result schema does not carry taint, and the delegator's default is `trusted` rather than `inherit-from-task` or `unknown`. - **(b) Re-derivation without context.** The sub-agent's taint engine has no access to the parent's labels for inputs the parent...",
    "decision_boundary": "The invariant that bounds this failure is **taint join, not taint copy, across every handoff**: > For any value `v` crossing an A2A or MCP boundary, `taint(v_received) ⊇ taint(v_sent) ∪ taint(context_sent) ∪ {boundary_is_untrusted_if_sender_cannot_prove_otherwise}`. Operationally this forces three decisions: 1. **Envelope must carry a provenance digest, not ...",
    "operational_effect": "Without the join invariant, the system exhibits **silent trust escalation under delegation depth**. Each A2A hop resets taint to the delegator's default, so a chain of depth `k` launders taint `k` times, and the probability that an injected instruction survives to a side effect approaches 1 as depth grows—even though every individual agent's local taint reas..."
  },
  "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": "28909d3b3be79c4d2e3700ef7060295269120ddc819b1a87ec88606f916d320e",
    "verified_classes": [
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "a2a_join",
      "guarded_sink",
      "run_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "provenance digest is unsigned; refusing to promote to trusted (adversarial laundering not bounded)"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
