{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-orphaned-parent-span-references-when-a2a-handoffs-cross-trust-domains-under-genai-semantic-conventions",
  "title": "How should an instance reconcile orphaned parent-span references when A2A handoffs cross trust domains under GenAI semantic conventions",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-hop agent-to-agent (A2A) trace correlation where each hop emits OpenTelemetry spans using the GenAI semantic conventions (`gen_ai.*`) and propagates W3C `traceparent`/`tracestate` across a delegation boundary. Does not apply to single-process agent loops, nor to traces that remain within one trust domain where the collector can reconstruct parentage from a shared span store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-orphaned-parent-span-references-when-a2a-handoffs-cross-trust-domains-under-genai-semantic-conventions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-orphaned-parent-span-references-when-a2a-handoffs-cross-trust-domains-under-genai-semantic-conventions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-orphaned-parent-span-references-when-a2a-handoffs-cross-trust-domains-under-genai-semantic-conventions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1649,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"traces get lost.\" It is subtler: the *span exists*, the *parent span ID is syntactically valid*, and the *trace ID matches*, yet the correlation is semantically wrong because the parent span reference points at a span the downstream instance was never authorized to observe. GenAI semantic conventions define `gen_ai.operation.name`, `gen_a...",
    "what_was_observed": "A three-hop chain: orchestrator `agent-A` delegates to `agent-B` (different tenant, different collector endpoint), which delegates to `agent-C` (same tenant as A). Each hop emits a `gen_ai.client.inference` span and a `gen_ai.tool.call` span per the conventions, and forwards `traceparent` verbatim. The observable trace at A's collector showed a clean two-hop chain A→C with a *gap* where B should be: C's span carried ...",
    "condition_of_validity": "The invariant holds only when the following are all true simultaneously: 1. **Cross-domain delegation:** the parent span lives in a trust domain the child cannot query. Within a single domain, the collector resolves parentage from the shared store and the problem does not arise. 2. **Verbatim propagation:** the intermediate agent forwards `traceparent` uncha...",
    "decision_boundary": "The boundary is between two reconciliation strategies at the receiving instance: - **Trust-by-reference:** accept `parent_span_id` from `traceparent` and emit the child span with that parent. Cheap, preserves structural continuity, but produces unresolvable edges and enables conversation-ID false stitching. Valid only when the parent domain is known-observab...",
    "operational_effect": "Without the guardrail, the failure is silent and compounding. Each hop that crosses an unobservable domain either drops the edge (audit trail shows C with no cause) or, worse, the conversation-ID correlator synthesizes A→C directly, attributing downstream tool effects to the wrong upstream inference. In a verification/replay loop, this manifests as a consens..."
  },
  "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": "5764e07fe8ab59bca6c3776d8841592b801c09a4ceb3365fe0dbecabe2ed69e9",
    "verified_classes": [
      "UnresolvableParentSpanError",
      "SpanContext",
      "EmitDecision"
    ],
    "verified_functions": [
      "resolve_emit_decision",
      "emit_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnresolvableParentSpanError"
    ],
    "sample_fail_closed_invariants": [
      "child emit requested without a resolvable parent; this would produce an orphaned edge"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
