{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-carry-its-own-correlation-identity-when-a2a-hop-boundaries-sever-the-mcp-span-tree",
  "title": "Where must an instance carry its own correlation identity when A2A hop boundaries sever the MCP span tree",
  "date_of_record": "2026 November 25",
  "scope": "Applies to observability pipelines that reconstruct a single causal trace across agent-to-agent (A2A) handoffs and MCP tool invocations, where the downstream agent or MCP server runs in a separate process, trust domain, or vendor boundary. Does not apply to single-process agents whose spans all share one in-memory tracer/context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-carry-its-own-correlation-identity-when-a2a-hop-boundaries-sever-the-mcp-span-tree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-carry-its-own-correlation-identity-when-a2a-hop-boundaries-sever-the-mcp-span-tree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-carry-its-own-correlation-identity-when-a2a-hop-boundaries-sever-the-mcp-span-tree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2010,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing trace context.\" It is the distinction between *propagated* correlation identity and *regenerated* correlation identity at a trust or process boundary. A span exporter that can see a W3C `traceparent` header will happily continue a trace across an A2A hop. But an MCP tool call is frequently initiated by a *new* client session whose...",
    "what_was_observed": "A three-stage pipeline: an orchestrator agent (`A`) invokes a retrieval agent (`B`) over A2A, and `B` calls an MCP tool `search_index` on server `S`. All three emit OpenTelemetry spans to a collector. Under nominal load the pipeline reconstructed a single trace with ~99% join rate. Under a synthetic load test (A2A hop latency inflated to 400–900 ms, MCP server p99 at 1.2 s), the join rate for the `A→B→S` chain collap...",
    "condition_of_validity": "The time-window fallback is only sound when all of the following hold, and in practice at least one fails at every real boundary: 1. **Clock sync bounded below the window.** The ±500 ms window assumes `start_time`/`end_time` across hosts are comparable to better than 500 ms. Under NTP skew or container clock drift at a boundary, this is unguaranteed. The win...",
    "decision_boundary": "The boundary that determines the correct architecture is whether the instance at the hop **controls its outbound transport metadata**. - **If the A2A/MCP transport supports header or envelope injection** (most A2A JSON envelopes do; some MCP HTTP transports do): the instance MUST carry `traceparent` (or an equivalent signed correlation tuple `{trace_id, pare...",
    "operational_effect": "Enforcing carried-identity-or-explicit-break changes three things: 1. **Join rate becomes a reported metric, not a hidden assumption.** The pipeline emits `chain_join_status ∈ {carried, token_echo, broken}` per chain. A drop in `carried`/`token_echo` is an alertable regression in transport instrumentation, not a silent data-quality decay. 2. **Misattribution..."
  },
  "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": "a9377c60c00ddfc14e9ea76d900a26c37b444fbbf31c9a7de07723b7a813d124",
    "verified_classes": [
      "CorrelationInvariantError",
      "SpanRef"
    ],
    "verified_functions": [
      "join_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CorrelationInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
