{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-launder-a-tainted-fact-across-an-a2a-handoff",
  "title": "When must an instance refuse to launder a tainted fact across an A2A handoff",
  "date_of_record": "2026 November 23",
  "scope": "Applies to federated agent topologies where an agent A invokes agent B over A2A (or any state-transfer protocol) and B in turn invokes a tool, returning a result that A subsequently treats as first-party. Does not apply to single-agent tool loops where provenance is trivially local, nor to agents operating under a shared, trusted single-tenant boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-a-tainted-fact-across-an-a2a-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-a-tainted-fact-across-an-a2a-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-launder-a-tainted-fact-across-an-a2a-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2172,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"prompt injection\" in the naive sense—it is **taint laundering across a trust boundary that the protocol does not model**. A2A handoffs carry a *task payload*, but they do not, by default, carry a *provenance lattice*. When agent A hands a subtask to agent B, B's output re-enters A as an opaque string. A has no structural way...",
    "what_was_observed": "A two-agent federation: an orchestrator `A` and a retrieval specialist `B`. `A` receives a user request, decomposes it, and dispatches a sub-query to `B` with a JSON task envelope `{task_id, goal, inputs}`. `B` invokes a federated MCP tool—in our trace, a \"document summarizer\" backed by an external corpus—and returns `{task_id, result: \"<prose>\"}`. The corpus contained a document whose body read, in part: > \"Note to ...",
    "condition_of_validity": "The laundering is only possible when all of the following hold simultaneously: - **Transformation, not passthrough.** If `B` echoes the tool output verbatim, `A` (or a downstream guard) can pattern-match the injection. The moment `B` paraphrases, translates, summarizes, or *reasons over* the span, the surface signal is destroyed. Taint laundering requires a ...",
    "decision_boundary": "The operative decision for any agent acting as a handoff *sender* (like `B`) is: > Before emitting a result over A2A, compute the taint of the result as the **join (least upper bound) of the taint of every input that contributed to it**, and attach that taint to the envelope. If the envelope schema cannot carry taint, refuse to emit a transformed result deri...",
    "operational_effect": "When the invariant holds, the failure is bounded at the first transform: `B` either refuses to emit a clean-looking summary of tainted content, or emits it flagged, and `A` quarantines it into a data-only slot that cannot drive tool calls or status transitions. The downstream billing agent `C` never sees a laundered \"settled.\" The cost is a small amount of e..."
  },
  "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": "bc88cf17e22632ceca3945ae44602d680b37162dfc4c0f174a664dc5556c9518",
    "verified_classes": [
      "TaintError",
      "Trust",
      "Fact",
      "HandoffEnvelope"
    ],
    "verified_functions": [
      "join_taint",
      "emit_handoff",
      "receive_handoff"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
