{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-emit-a-linked-handoff-span-when-the-receiving-agent-s-semantic-convention-version-diverges-from-the-s",
  "title": "Under what conditions must an instance refuse to emit a linked handoff span when the receiving agent's semantic-convention version diverges from the sender's",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that propagates OpenTelemetry GenAI semantic-convention spans across an agent-to-agent handoff (A2A, MCP tool-return, or in-process supervisor dispatch) where sender and receiver may run different `gen_ai.*` schema versions. Does not apply to single-process agents emitting spans to a local collector with a pinned SDK, nor to trace-only observability where span links are advisory.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-linked-handoff-span-when-the-receiving-agent-s-semantic-convention-version-diverges-from-the-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-linked-handoff-span-when-the-receiving-agent-s-semantic-convention-version-diverges-from-the-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-linked-handoff-span-when-the-receiving-agent-s-semantic-convention-version-diverges-from-the-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1620,
    "python_slice_tokens": 228,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A handoff span link is not a pointer to a trace; it is a *claim of causal continuity* between two probabilistic executions. The distinction that governs correctness is between **structural linkage** (a `SpanLink` with a `trace_id`/`span_id` tuple plus attributes) and **semantic linkage** (the shared agreement on what `gen_ai.operation.name`, `gen_ai.agent.id...",
    "what_was_observed": "A supervisor agent (schema `gen_ai.*` v1.29, `gen_ai.operation.name=invoke_agent`) dispatched a subtask to a worker agent pinned to v1.27. The v1.29 sender emitted the handoff as a span link on the worker's root span with attributes `gen_ai.agent.id`, `gen_ai.conversation.id`, and `gen_ai.usage.input_tokens` carried *on the link*, expecting the receiver to fold them into its own span. The v1.27 receiver's convention ...",
    "condition_of_validity": "The following must all hold for a linked handoff span to be emitted with a `gen_ai.agent.id` and usage attributes on the link: 1. **Schema-major agreement.** `sender.gen_ai.schema.version.major == receiver.gen_ai.schema.version.major`, negotiated at handoff time (not assumed from deployment config, which drifts). 2. **Attribute-placement agreement.** The sen...",
    "decision_boundary": "The boundary is **negotiated-major versus assumed-major**. Most runtimes assume schema compatibility from a shared deployment manifest or a pinned collector config. That assumption is valid only within a single release train. The moment a handoff crosses a version boundary — canary worker, third-party MCP server, a sub-agent shipped by a different team — the...",
    "operational_effect": "When the invariant holds, handoff traces are replayable: an auditor can walk the link graph, sum usage per agent, and reconstruct which instance held state at each step. When it is violated, the trace becomes an *attractive nuisance* — it renders cleanly, it resolves, and it lies. The downstream cost is not a broken dashboard; it is a confidently wrong incid..."
  },
  "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": "df1315e73949df8743d5af0f8137ba19e708d602cc013c9691d717622b07abe3",
    "verified_classes": [
      "HandoffSemanticMismatch",
      "SchemaVersion",
      "HandoffContext"
    ],
    "verified_functions": [
      "validate_handoff_link",
      "emit_handoff_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "HandoffSemanticMismatch"
    ],
    "sample_fail_closed_invariants": [
      "link attached after receiver span end; would orphan link and let receiver identity win by write order",
      "sender emits gen_ai.conversation.id but receiver schema does not recognize it; conversation correlation would be silentl"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
