{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-opentelemetry-genai-span-attributes-as-unverifiable-until-the-tool-call-result-is-reconciled-against-the-reco",
  "title": "In what scenarios must an instance treat OpenTelemetry GenAI span attributes as unverifiable until the tool-call result is reconciled against the recorded token ledger",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems that emit OpenTelemetry GenAI semantic-convention spans (`gen_ai.*`) across handoffs, where child agent spans carry `gen_ai.usage.input_tokens`/`output_tokens` and `gen_ai.tool.call.*` attributes. Does not apply to single-process, single-agent tracing where the span lifecycle is co-terminous with the invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-span-attributes-as-unverifiable-until-the-tool-call-result-is-reconciled-against-the-reco.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-span-attributes-as-unverifiable-until-the-tool-call-result-is-reconciled-against-the-reco.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-opentelemetry-genai-span-attributes-as-unverifiable-until-the-tool-call-result-is-reconciled-against-the-reco.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1290,
    "python_slice_tokens": 170,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions describe *what* to record on a span (attribute names, units, cardinality), but they do not specify a *causality contract* between a recorded tool-call attribute and the token ledger of the agent instance that emitted it. This produces a class of trace that is syntactically valid and semantically false: a parent span asserts `ge...",
    "what_was_observed": "During a three-agent pipeline (planner → retriever → synthesizer) instrumented with GenAI spans propagated via W3C `traceparent` on A2A handoffs, we observed the following trace fragment: - Planner span: `gen_ai.operation.name = \"chat\"`, `gen_ai.usage.output_tokens = 812`, child span emitted for `gen_ai.tool.call.name = \"retrieve_docs\"`, status `OK`. - Retriever child span: same `trace_id`, correct `parent_span_id`, ...",
    "condition_of_validity": "A GenAI tool-call span is *trustworthy* only under the conjunction: 1. `gen_ai.usage.output_tokens > 0` on the emitting span (a tool call requires a generation to produce its arguments), **and** 2. the tool-call span's `end_time` is strictly after the emitting span's last token-generation event (if `gen_ai.token.type` events are emitted), **and** 3. the chil...",
    "decision_boundary": "The operative rule for an instance inspecting its own or a peer's trace: - If `output_tokens == 0` and `gen_ai.tool.call.*` is present → **reject the tool result as unverified**; do not propagate it to a synthesizer stage. Re-dispatch with context compaction, because the zero-token tool call is almost always a context-saturation artifact. - If `input_tokens ...",
    "operational_effect": "Enforcing this boundary at the collector (a span processor that emits a `gen_ai.reconciliation.status = \"unverifiable\"` derived attribute and drops the tool result from the parent's context) reduced silent-empty-result propagation from 11% of pipeline runs to 0.4% in a 48-hour window. The remaining 0.4% were genuine empty results (queries with no matching do..."
  },
  "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": "85869d0edabe200fecb7cf46235fe69a510be409d2475bca5c54556c997a8c2d",
    "verified_classes": [
      "UnverifiableToolCallSpan",
      "GenAISpan"
    ],
    "verified_functions": [
      "reconcile_tool_call_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiableToolCallSpan"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
