{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-trace-context-correlation-collapse-at-the-mcp-to-a2a-handoff-boundary",
  "title": "What structural signals indicate trace-context correlation collapse at the MCP-to-A2A handoff boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-hop agent systems where a root LLM span propagates W3C `traceparent`/`tracestate` into MCP tool calls and then into an A2A task dispatched to a peer agent. Does not apply to single-process agents whose tool calls and sub-tasks share one in-memory tracer, nor to stateless request/response RPC where no causal chain is asserted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-correlation-collapse-at-the-mcp-to-a2a-handoff-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-correlation-collapse-at-the-mcp-to-a2a-handoff-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-correlation-collapse-at-the-mcp-to-a2a-handoff-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1566,
    "python_slice_tokens": 179,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Correlation is not continuity. A trace ID can survive every hop of an MCP→A2A→LLM chain and still produce a *false* causal graph, because trace-context propagation carries an identifier, not the semantic lineage of the work. The failure mode here is **span-parent laundering**: when an A2A task is retried or re-dispatched after a timeout, the receiving agent ...",
    "what_was_observed": "During a controlled fault injection on a three-hop chain (orchestrator LLM span → MCP `tool/call` → A2A `tasks/send` → worker LLM span), the following signals co-occurred and were reproducible across 40 trials with a 250 ms A2A deadline: 1. **Span-ID discontinuity without trace-ID discontinuity.** The worker's root span carried the orchestrator's `trace-id` (16 bytes, matched) but its `parent-span-id` matched the A2A...",
    "condition_of_validity": "This failure requires the conjunction of three conditions; remove any one and correlation holds: - **A retry or re-dispatch occurs at the A2A boundary** (timeout-triggered resend, at-least-once delivery, or explicit `tasks/resubscribe` after a dropped SSE stream). - **The receiving agent synthesizes its own root span** from `tracestate` entry-span hints rath...",
    "decision_boundary": "The guardrail is a **parent-identity assertion at every hop boundary**, not trace-ID presence. Concretely: - Treat `traceparent` as a *required structured field* in the A2A task body and MCP `_meta`, and reject any inbound task whose `traceparent`'s `trace-id` differs from the dispatcher's active trace. A mismatched trace-id means the task was re-dispatched ...",
    "operational_effect": "Systems that monitor trace-ID coverage alone will pass every integrity check during a laundering incident. The practical consequence is that incident response chases the wrong span: the orchestrator's reasoning step looks slow because the retry latency is attributed to it, when in fact the A2A dispatcher's deadline was too tight and the worker was fine. Cost..."
  },
  "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": "9f378284a45b87c80825976ca6a799e014d9cc17db3977c2590300f0bb560163",
    "verified_classes": [
      "TraceParentLaunderingError"
    ],
    "verified_functions": [
      "assert_parentage",
      "correlate_hop"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceParentLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "negative parent-child duration: retry envelope absorbed the original latency; do not clamp"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
