{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-genai-tool-call-span-correlation-has-silently-collapsed-under-opentelemetry-semantic-conventions",
  "title": "What structural signals indicate GenAI tool-call span correlation has silently collapsed under OpenTelemetry semantic conventions",
  "date_of_record": "2026 November 17",
  "scope": "Applies to OpenTelemetry-instrumented LLM agents that emit `gen_ai.*` spans for model invocations and tool calls, where downstream correlation relies on `gen_ai.tool.call.id`, `gen_ai.operation.name`, and parent-child span linkage. Does not apply to single-shot completion calls with no tool loop, nor to systems that propagate correlation exclusively via W3C traceparent with no reliance on GenAI attributes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-genai-tool-call-span-correlation-has-silently-collapsed-under-opentelemetry-semantic-conventions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-genai-tool-call-span-correlation-has-silently-collapsed-under-opentelemetry-semantic-conventions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-genai-tool-call-span-correlation-has-silently-collapsed-under-opentelemetry-semantic-conventions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1572,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a span is missing.\" It is \"every span is present, every attribute is syntactically valid, and the trace is nonetheless uncorrelatable.\" A tool-call span and the model-invocation span that requested it can both exist, both be correctly parented to the same agent span, and still fail to correlate because the *identity* of the tool call...",
    "what_was_observed": "Across a fleet of agent traces, the following structural signature appeared: - Every `gen_ai.operation.name=\"execute_tool\"` span had a non-empty `gen_ai.tool.call.id`. - Every `gen_ai.operation.name=\"chat\"` span that requested a tool had a non-empty `gen_ai.tool.call.id` in its recorded response attributes. - The two ID sets had **zero intersection** per trace, despite the tool spans being temporally adjacent to and ...",
    "condition_of_validity": "The correlation invariant holds only when all three of the following are true: 1. **Single source of truth for call identity.** The call ID is minted exactly once — at the point the model emits the tool-call request — and that value is threaded, unmodified, into the tool execution span. Any re-generation, normalization, hashing, or truncation breaks the join...",
    "decision_boundary": "Do not treat \"all spans present with required attributes\" as evidence of correct correlation. The decision boundary is: - **If** you can compute, per trace, the set of call IDs on requesting spans and the set on executing spans, **and** their intersection equals the set of executing spans, **then** correlation is intact. - **If** the intersection is empty or...",
    "operational_effect": "The practical consequence is that any downstream analysis keyed on tool-call correlation — cost attribution per tool, latency decomposition of model-vs-tool time, failure-rate-by-tool, or replay of an agent's decision sequence — silently degrades to *unattributed aggregates*. Dashboards keep rendering. Latency percentiles still compute. But \"which tool call ..."
  },
  "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": "65a91972d8ac04c5714374d783b673b66b2ed67958d56fb7b56b19a39852690a",
    "verified_classes": [
      "ToolCallCorrelationCollapsed",
      "SpanView"
    ],
    "verified_functions": [
      "assert_tool_call_correlation",
      "check_trace"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ToolCallCorrelationCollapsed"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
