{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-propagate-a-traceparent-across-an-a2a-handoff-because-the-peer-s-advertised-schema-version-makes-span-cor",
  "title": "In what scenarios must an instance refuse to propagate a traceparent across an A2A handoff because the peer’s advertised schema version makes span correlation semantically invalid",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-hop agent systems where an orchestrator emits W3C `traceparent`/`tracestate` headers into MCP tool calls and A2A task handoffs, and where downstream peers may run different span-semantics schema versions. Does not apply to single-process agents or to transports that carry no distributed-context headers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-propagate-a-traceparent-across-an-a2a-handoff-because-the-peer-s-advertised-schema-version-makes-span-cor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-propagate-a-traceparent-across-an-a2a-handoff-because-the-peer-s-advertised-schema-version-makes-span-cor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-propagate-a-traceparent-across-an-a2a-handoff-because-the-peer-s-advertised-schema-version-makes-span-cor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2470,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common failure model for agent observability is *trace loss*: a header gets dropped, a span is orphaned, the parent-child edge vanishes. The mitigation is mechanical—plumb `traceparent` through every MCP `call_tool` envelope and every A2A `Task`/`Message` payload, and the trace reassembles. The boundary condition that breaks this model is *trace mis-corr...",
    "what_was_observed": "An orchestrator agent (`orch-7`) delegated a retrieval-then-summarize task to an A2A peer (`peer-summarizer`, schema `a2a.span-sem/2.1`) while calling three MCP servers (`mcp-vector`, `mcp-rerank`, `mcp-tokenizer`, all schema `a2a.span-sem/2.1`). The orchestrator itself ran `a2a.span-sem/2.3`. The `2.3` schema introduced a rule: *a retry of a tool call is a sibling span, not a child of the failed attempt*, and *token...",
    "condition_of_validity": "Propagating `traceparent` across an A2A or MCP boundary is valid **iff** all of the following hold: 1. **Semantics-version equality (or a declared adapter).** The caller must compare its own span-semantics schema version against the peer's advertised version *before* emitting the handoff span. The A2A capability/schema negotiation (the `AgentCard` `skills[]....",
    "decision_boundary": "The decision is not \"propagate or drop.\" It is **\"propagate as child, propagate as link, or start new trace.\"** - **Propagate as child** (normal): versions equal *and* span-boundary agreement holds *and* cardinality is pinned. Emit `traceparent` with `parent-id = caller_span`. - **Propagate as link**: versions differ but an adapter is registered that maps th...",
    "operational_effect": "Without this boundary, three failure classes propagate silently: 1. **Cost and latency reports inflate or deflate** by the retry-nesting factor and the batch-collapse factor. These are not noise; they are systematic, version-dependent biases that make cross-peer SLO comparison meaningless. 2. **Fault attribution inverts.** Error-propagation walks that assume..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "c0736a3a0a9e57af443e1f8d50a0e7dd7ca8025b96c32ab848adecbdf09bf69a",
    "verified_classes": [
      "SpanSemanticsMismatch",
      "PropagationMode",
      "PeerSpanContract"
    ],
    "verified_functions": [
      "_parse_versions",
      "decide_propagation",
      "emit_handoff_span"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpanSemanticsMismatch"
    ],
    "sample_fail_closed_invariants": [
      "NEW_TRACE must be handled by caller, not emit_handoff_span"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
