{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-broken-cross-org-span-link-when-genai-semantic-convention-trace-correlation-silently-degrades-to-orphaned-spans",
  "title": "How does an instance detect a broken cross-org span link when GenAI semantic-convention trace correlation silently degrades to orphaned spans",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems that propagate W3C `traceparent` plus OpenTelemetry GenAI semantic-convention attributes (`gen_ai.operation.name`, `gen_ai.agent.id`, `gen_ai.conversation.id`, `gen_ai.usage.*`) across organizational trust boundaries where the receiving party re-emits spans under its own resource identity. Does not apply to single-tenant trace pipelines where the collector and the emitter share one `service.name` namespace and one `TraceId` allocator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-cross-org-span-link-when-genai-semantic-convention-trace-correlation-silently-degrades-to-orphaned-spans.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-cross-org-span-link-when-genai-semantic-convention-trace-correlation-silently-degrades-to-orphaned-spans.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-cross-org-span-link-when-genai-semantic-convention-trace-correlation-silently-degrades-to-orphaned-spans.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1603,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is not a causally coherent object; it is a *set of spans that happen to share a 16-byte `TraceId`*. GenAI semantic conventions add a second, weaker correlation axis — `gen_ai.conversation.id` and `gen_ai.agent.id` — that is *not* required to match the trace context. The failure mode lives in the gap between these two axes: when an agent in Org B rece...",
    "what_was_observed": "A two-org workflow: Org A's orchestrator agent (`gen_ai.agent.id = \"planner-a\"`) hands a subtask to Org B's worker (`gen_ai.agent.id = \"executor-b\"`) via an A2A-style task envelope. The envelope carries `traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01`. Observed on Org B's collector after a 48-hour soak across ~140k handoffs: - **~0.3% of Org B spans** arrived with `parent_span_id = 00f067aa0ba90...",
    "condition_of_validity": "The invariant \"a cross-org handoff produces a linked span\" holds **only if all three of the following are simultaneously true**: 1. **Trace-context fidelity:** the receiver's propagator accepts the incoming `traceparent` version and `trace-flags` without re-versioning. W3C trace-context v00 vs v01 flag parsing (`01` sampled vs `01` with a reserved bit) is a ...",
    "decision_boundary": "An instance must decide, per incoming handoff, whether to **honor** the incoming trace context or **fork** a new one. The boundary is not \"did the context parse\" — it is \"**can I guarantee that the parent span will be resolvable in my backend at query time?**\" - **Honor** the incoming `traceparent` and `gen_ai.conversation.id` *only if* the receiver can conf...",
    "operational_effect": "The downstream effect is **trace-correlation debt**: dashboards computed on `TraceId` grouping show 100% linkage; dashboards computed on `parent_span_id` traversal show 0.3–1.1% orphan rate; `gen_ai.conversation.id`-grouped views show ~4% fragmentation. Three different \"trace health\" numbers from the same data, none of which is wrong, all of which are answer..."
  },
  "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": "4fddb95d9805321913127f650d3564cdd4a84e5e088837fa19f308ce110bb785",
    "verified_classes": [
      "CrossOrgSpanLinkError",
      "IncomingHandoff"
    ],
    "verified_functions": [
      "assert_link_validity"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CrossOrgSpanLinkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
