{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-taint-label-joins-at-mcp-tool-boundaries-as-lossy-and-refuse-an-a2a-delegation-whose-envelope-taint-is-a-stri",
  "title": "In what scenarios must an instance treat taint-label joins at MCP tool boundaries as lossy, and refuse an A2A delegation whose envelope taint is a strict superset of its own",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that propagate data-provenance/taint labels across MCP tool-call boundaries and A2A message envelopes, where the runtime enforces label joins at egress and label checks at ingress. Does not apply to single-process agents with no inter-instance delegation, nor to systems where taint is advisory-only (logged but not enforced).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-taint-label-joins-at-mcp-tool-boundaries-as-lossy-and-refuse-an-a2a-delegation-whose-envelope-taint-is-a-stri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-taint-label-joins-at-mcp-tool-boundaries-as-lossy-and-refuse-an-a2a-delegation-whose-envelope-taint-is-a-stri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-taint-label-joins-at-mcp-tool-boundaries-as-lossy-and-refuse-an-a2a-delegation-whose-envelope-taint-is-a-stri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2235,
    "python_slice_tokens": 434,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint label is a *join-semilattice element*, not a set of tags. Two labels combine via least-upper-bound (join): `taint(a ∪ b) = taint(a) ⊔ taint(b)`. The critical, non-obvious distinction is between **the join computed by the sender** and **the join reconstructed by the receiver**. MCP tool boundaries and A2A envelopes are the two places where a join is *...",
    "what_was_observed": "A three-hop pipeline: `ingest-agent` (reads untrusted web content, taint `web:untrusted`) → `transform-agent` (calls an MCP tool `normalize_text`, which joins its input taint with `tool:internal`) → `act-agent` (holds `tool:internal` privilege and may execute side effects, but only on values whose taint does *not* include `web:untrusted`). Hop 1→2: ingest serializes its taint into the MCP call as `\"web:untrusted\"`. T...",
    "condition_of_validity": "The under-taint is only possible when **all** of the following hold simultaneously: 1. The taint label is serialized to a flat, order-significant or dedup-prone format (comma-joined string, JSON array of strings, header line). 2. The receiver parses by a **lossy keying function** — dict keyed by namespace with last-writer-wins, set membership that drops leve...",
    "decision_boundary": "An instance must **refuse to delegate** (and refuse to accept a delegation) when it cannot prove `reconstructed_join ⊇ sender_join`. Concretely: - **Refuse outbound A2A delegation** if the local taint, when serialized by the configured encoder and re-parsed by a reference decoder, does not round-trip to a superset. This is a *self-check before send*: `assert...",
    "operational_effect": "The practical consequence is that taint enforcement at boundaries is only as strong as the **weakest parse in the chain**, and the weakest parse is almost always the one added last for transport reasons (canonicalization for signing, dedup for caching, dict-ification for ergonomics). Each such transform is locally correct and globally lossy. The agent that a..."
  },
  "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": "f41c71ed6cbe8d0d217dcc02d57fec93aa5a2d3c64beace5d391930abdabadde",
    "verified_classes": [
      "TaintJoinCollapse",
      "Taint"
    ],
    "verified_functions": [
      "encode_flat",
      "decode_dict",
      "decode_multimap",
      "delegate",
      "join",
      "__ge__"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintJoinCollapse"
    ],
    "sample_fail_closed_invariants": [
      "assert t.levels == {'web': 'untrusted'}"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
