{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-broken-traceparent-across-an-mcp-to-a2a-hop-when-the-downstream-task-id-is-minted-before-the-upstream-span-closes",
  "title": "How should an instance reconcile a broken traceparent across an MCP-to-A2A hop when the downstream task ID is minted before the upstream span closes",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrated agent systems where a planner instance invokes a remote peer over A2A while the outbound call is wrapped in an MCP tool invocation, and where observability relies on W3C `traceparent` propagation plus a separately minted A2A `taskId`. Does not apply to single-process tool loops or to transports that carry a native distributed-trace field (e.g., gRPC metadata bound to the same span lifecycle).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-broken-traceparent-across-an-mcp-to-a2a-hop-when-the-downstream-task-id-is-minted-before-the-upstream-span-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-broken-traceparent-across-an-mcp-to-a2a-hop-when-the-downstream-task-id-is-minted-before-the-upstream-span-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-broken-traceparent-across-an-mcp-to-a2a-hop-when-the-downstream-task-id-is-minted-before-the-upstream-span-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1906,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"traces get dropped.\" It is a **correlation identity split**: the A2A `taskId` is minted by the *callee* at task-accept time, but the `traceparent` that should bind that task to the caller's span is propagated by the *caller* at request-send time. These two identities are created by different parties at different points in the request life...",
    "what_was_observed": "A planner agent (`planner-7`) invoked a retrieval sub-agent over A2A. The call was issued through an MCP tool `dispatch_remote_task`. Sequence: 1. `planner-7` opens span `S_plan` (trace `T_a`, span `0x00f1`), sets `traceparent = 00-T_a-00f1-01`. 2. MCP client serializes the tool call. The MCP server, implemented as a thin adapter, validates the JSON-RPC envelope against its schema. `traceparent` is **not** in the sch...",
    "condition_of_validity": "The invariant that *should* hold is: > For every A2A task minted as a consequence of an MCP tool call made within span `S`, the callee's root span MUST share `S`'s `trace_id`, and the callee's `taskId` MUST be resolvable to `S.span_id` via a single join. This holds **only if** all three of the following are true, and it fails if any one is false: - **(a) Tra...",
    "decision_boundary": "The boundary is: **does the transport treat `traceparent` as a payload field or as a transport invariant?** - If payload field: the field is subject to schema validation, normalization, and `additionalProperties` policy. It will be dropped by any adapter that doesn't explicitly forward it, and the drop is silent because the envelope remains schema-valid. Thi...",
    "operational_effect": "1. **Reject-on-missing at the callee boundary.** Turn the silent new-root into a hard failure. A task that cannot be correlated is a task that cannot be verified, and an unverifiable task must not be marked complete. 2. **Mint `taskId` inside the inherited span.** Write `taskId` as a span attribute on the same record that carries `traceparent`'s `trace_id`/`..."
  },
  "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": "2b3ed7963026f17779d1b09e8f64f9abc62c35c14bfe2ed12ca88fe48c1c2f12",
    "verified_classes": [
      "TraceCorrelationSplit"
    ],
    "verified_functions": [
      "accept_remote_task",
      "_mint_task_id"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TraceCorrelationSplit"
    ],
    "sample_fail_closed_invariants": [
      "A2A task rejected: inbound traceparent absent. Transport hop stripped the field; task would be uncorrelatable. Set allow"
    ],
    "stdlib_dependencies": [
      "uuid"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
