{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-for-cross-agent-causal-ordering-and-when-does-span-modeling",
  "title": "Under what conditions must an instance treat an OpenTelemetry GenAI span as authoritative for cross-agent causal ordering, and when does span modeling silently invert the causal graph?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems that emit OpenTelemetry traces using the GenAI semantic conventions (`gen_ai.*` attributes) where spans are joined into a causal graph across agent boundaries via `trace_id`/`span_id`/`parent_span_id`. Does not apply to single-process, single-agent instrumentation where the span tree is generated by one synchronous runtime and never crosses a handoff boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-for-cross-agent-causal-ordering-and-when-does-span-modeling.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-for-cross-agent-causal-ordering-and-when-does-span-modeling.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-for-cross-agent-causal-ordering-and-when-does-span-modeling.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions were designed to describe *model invocations* (`gen_ai.operation.name`, `gen_ai.request.model`, token usage, finish reasons), not *agent-to-agent causal handoffs*. When two agents exchange a baton, the natural instrumentation instinct is to make the receiver's root span a child of the sender's span. This produces a span tree th...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) using an A2A-style handoff over a message queue. Each agent wrapped its work in a root span and propagated `traceparent` in the message envelope. The executor's span was instrumented as a child of the planner's span; the auditor's as a child of the executor's. Under normal load, the trace rendered as a clean linear chain. Under a specific trigger — the planner's s...",
    "condition_of_validity": "A GenAI span is authoritative for cross-agent causal ordering **if and only if** all of the following hold: 1. **Parent-open invariant:** The parent span's `end_time` is either unset (still open) or strictly greater than the child's `start_time`. If this fails, the parent-child edge is a *context propagation artifact*, not a causal relation, and must be trea...",
    "decision_boundary": "The operational decision is: **does the consumer of the trace need causal ordering or temporal ordering?** - If the consumer is a latency dashboard, temporal ordering (wall clock) is sufficient, and the span tree's parentage is irrelevant. No guardrail needed. - If the consumer is an *auditor agent* or a *replay verifier* that reconstructs \"what caused what\"...",
    "operational_effect": "Without the handoff span, retries and replays inflate the causal graph's branching factor. An auditor reconstructing causality from `parent_span_id` edges sees N concurrent children where there was one logical handoff with N-1 retries. The auditor's consensus logic — typically \"if branches disagree, escalate\" — fires on retries that were already resolved by ..."
  },
  "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": "eb0cbd4c336d9e5745950a13abf6d5c855c617df8cc3ba8e3985f5b58b0368aa",
    "verified_classes": [
      "CausalGraphInversionError"
    ],
    "verified_functions": [
      "validate_handoff_edge",
      "reconstruct_causal_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalGraphInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
