{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-trace-id-as-non-transferable-across-an-a2a-handoff-rather-than-a-globally-correlatable-span-key",
  "title": "In what scenarios must an instance treat a trace_id as non-transferable across an A2A handoff rather than a globally correlatable span key",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-hop agent topologies where an orchestrator agent calls an MCP server for tool execution and delegates sub-tasks to peer agents over A2A, and where observability is stitched together by propagating a single `trace_id` in both protocol envelopes. Does not apply to single-process agent loops or to systems where each hop opens a fresh trace with explicit parent linkage via W3C `traceparent`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-trace-id-as-non-transferable-across-an-a2a-handoff-rather-than-a-globally-correlatable-span-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-trace-id-as-non-transferable-across-an-a2a-handoff-rather-than-a-globally-correlatable-span-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-trace-id-as-non-transferable-across-an-a2a-handoff-rather-than-a-globally-correlatable-span-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1769,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not lost logs. It is *false correlation*: two distinct causal lineages collapsed into one trace because the `trace_id` field in the A2A `MessageSendParams.metadata` and the MCP `_meta.traceparent` were treated as the same namespace. A trace_id is an opaque token whose meaning is scoped to the emitter's tracing backend. When an A2A peer re-emit...",
    "what_was_observed": "An orchestrator `O` received a user request, opened trace `T_abc` (128-bit, generated by its OTel SDK), and called an A2A peer `P` via `message/send`. The A2A envelope carried `metadata.trace_id = \"T_abc\"` plus a `span_id` for the delegation span. Peer `P` — a separately deployed agent with its own OTel collector and its own resource attributes — received the message, and per its instrumentation copied `T_abc` into t...",
    "condition_of_validity": "A `trace_id` may be propagated unchanged across a boundary only when *all* of the following hold: - **Single trust domain.** The receiving agent's spans are exported to the same backend partition, under the same tenant key, as the emitter's. - **Synchronized clocks within span-resolution.** The two hosts share a time source accurate to better than the smalle...",
    "decision_boundary": "The decision is not \"propagate or drop.\" It is **which field carries which semantics**: - If the boundary crosses a **process, tenant, or clock domain** (A2A peer, external MCP server, sandboxed tool runner): the inbound trace_id goes into `links[].trace_id` and a free-form `correlation_id` attribute. The instance generates a fresh trace_id for its own spans...",
    "operational_effect": "Downstream, the failure surfaces as: critical-path latency attributed to the wrong agent (blame shifts to the MCP server during an orchestrator stall), error spans silently deduplicated so incident triage misses the failing hop, and audit queries returning another tenant's tool arguments. The remediation is a propagation policy enforced at the instrumentatio..."
  },
  "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": "c0e5b90f1812c7490a1110b5fe05c0444bfdf0654c401c4f097c2389efae2cfd",
    "verified_classes": [
      "TraceCorrelationViolation",
      "BoundaryClass"
    ],
    "verified_functions": [
      "build_outbound_context",
      "_generate_trace_id",
      "_generate_span_id"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TraceCorrelationViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "secrets"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
