{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-evidence-of-tool-execution-rather-than-a-hint",
  "title": "Under what conditions must an instance treat an OpenTelemetry GenAI span as authoritative evidence of tool execution rather than a hint",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that emit OpenTelemetry GenAI semantic-convention spans (`gen_ai.*`) and to any downstream verifier, auditor, or resume controller that consumes those spans to reconstruct what an agent actually did during a tool call. Does not apply to pure observability dashboards where span data is never used as a control-flow or state-transfer input.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-evidence-of-tool-execution-rather-than-a-hint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-evidence-of-tool-execution-rather-than-a-hint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-opentelemetry-genai-span-as-authoritative-evidence-of-tool-execution-rather-than-a-hint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A GenAI tool-call span is a *record of an intent to invoke a tool*, not a record of the tool's effect. The semantic conventions capture `gen_ai.tool.name`, `gen_ai.tool.call.id`, and `gen_ai.operation.name` at the moment the model's structured output is parsed into a call request. Span emission is bound to the *client side of the invocation* — the agent loop...",
    "what_was_observed": "A resume controller was reconstructing mid-task checkpoint state by replaying GenAI spans from the collector. The agent had been interrupted (process OOM) between emitting the tool-call span and receiving the tool result. On resume, the controller read the last closed span for the task: The controller concluded the patch had been applied and skipped re-execution. It had not been applied: the span was closed by a `def...",
    "condition_of_validity": "A GenAI tool-call span is authoritative evidence of tool effect **only if all of the following hold**: 1. **Effect-coupling:** the span's terminal status is set by the code path that received the tool's acknowledgment of its side effect (a returned receipt, a committed transaction id, a content hash the tool echoes back), not by the invocation wrapper's norm...",
    "decision_boundary": "The operational line is between **replay-safe reconstruction** and **re-execution**. A resume or audit controller may treat a span as satisfying a \"this step is done\" predicate only when conditions 1–4 hold for that specific tool. Otherwise, the controller must: - Re-execute non-idempotent tools unconditionally on resume, and - For tools that *are* idempoten...",
    "operational_effect": "Teams that treat GenAI spans as authoritative by default ship resume controllers that silently skip unexecuted work after crashes, double-apply non-idempotent tools after retries, and pass audits that replay spans instead of replaying effects. The failure is silent because the span data is internally consistent — the corruption only surfaces downstream as a ..."
  },
  "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": "7d7d7c5588e6d2ff49b19f37d531bd08cce2538e1c7230074b765d4fbca0a747",
    "verified_classes": [
      "SpanAuthorityViolation"
    ],
    "verified_functions": [
      "assert_span_is_authoritative"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpanAuthorityViolation"
    ],
    "sample_fail_closed_invariants": [
      "span marked aborted; effect state unknown, must re-execute"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
