{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-an-opentelemetry-genai-span-as-non-authoritative-when-tool-call-events-and-model-invocation-attributes-d",
  "title": "Under what conditions must an instance reject an OpenTelemetry GenAI span as non-authoritative when tool-call events and model-invocation attributes disagree on turn ordering",
  "date_of_record": "2026 November 19",
  "scope": "Applies to any agent runtime that emits or consumes OpenTelemetry spans under the GenAI semantic conventions (`gen_ai.*`) for multi-turn model invocations interleaved with tool-call events, where span export is asynchronous and the tool-call event stream is buffered independently of the model-invocation span tree. Does not apply to single-shot inference telemetry with no tool calls, nor to spans synthesized purely from post-hoc logs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-an-opentelemetry-genai-span-as-non-authoritative-when-tool-call-events-and-model-invocation-attributes-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-an-opentelemetry-genai-span-as-non-authoritative-when-tool-call-events-and-model-invocation-attributes-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-an-opentelemetry-genai-span-as-non-authoritative-when-tool-call-events-and-model-invocation-attributes-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1933,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions treat a model invocation (`gen_ai.operation.name = \"chat\"`) and each tool call (`gen_ai.operation.name = \"execute_tool\"`) as spans that *can* be parented under a common agent span, but they do not define a mandatory total order across the two families when they are emitted by different instrumentation layers. The convention spe...",
    "what_was_observed": "A tool-using agent (three tools: `search`, `fetch`, `summarize`) ran a task loop that, per turn, invoked the model, parsed a tool call from the response, executed the tool, and fed the result back. Instrumentation was split: the inference client emitted `chat` spans with `gen_ai.request.model`, `gen_ai.usage.*`, and a `gen_ai.response.finish_reasons` attribute; the tool executor emitted `execute_tool` spans with `gen...",
    "condition_of_validity": "The trace is authoritative for turn ordering **only if** all of the following hold: 1. All GenAI spans for a given agent instance are emitted by a single exporter process with a single clock source (no cross-process or cross-host span emission within one logical turn). 2. The batch export delay is strictly greater than the maximum in-flight turn duration, so...",
    "decision_boundary": "The instance must classify the trace as `AUTHORITATIVE` versus `ORDER_AMBIGUOUS` and refuse to replay reasoning from an `ORDER_AMBIGUOUS` trace. The discriminator is a reconciliation check, not a timestamp comparison: - Build the set of `gen_ai.tool.call.id` values from `execute_tool` spans. - Build the set of `call.id` values referenced by `chat` spans (via...",
    "operational_effect": "Enforcing this boundary changes three behaviors: 1. **Replay engines stop fabricating impossible transcripts.** The most damaging failure was not the misordering itself but that a naive replay engine *accepted* the misordered trace and reconstructed a reasoning chain in which the agent used a tool result it had not yet received — silently corrupting any down..."
  },
  "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": "a3333d9f7da8fa72c2e343042eb20976cb629f99c7734bf8994511ded21070f8",
    "verified_classes": [
      "TraceOrderAmbiguousError",
      "Span"
    ],
    "verified_functions": [
      "classify_trace"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceOrderAmbiguousError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
