{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-span-attribute-loss-when-opentelemetry-genai-semantic-conventions-are-emitted-through-a-non-conformant-exporter",
  "title": "How does an instance detect silent span-attribute loss when OpenTelemetry GenAI semantic conventions are emitted through a non-conformant exporter",
  "date_of_record": "2026 November 22",
  "scope": "Applies to LLM agent runtimes that emit OpenTelemetry spans using the `gen_ai.*` semantic conventions (agent invocation, tool call, token usage) through a collector or exporter that may silently drop, rename, or truncate attributes. Does not cover trace sampling policy, backend retention, or non-GenAI span conventions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-span-attribute-loss-when-opentelemetry-genai-semantic-conventions-are-emitted-through-a-non-conformant-exporter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-span-attribute-loss-when-opentelemetry-genai-semantic-conventions-are-emitted-through-a-non-conformant-exporter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-span-attribute-loss-when-opentelemetry-genai-semantic-conventions-are-emitted-through-a-non-conformant-exporter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1644,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical confusion is between *span presence* and *span semantic fidelity*. A trace backend will happily show a `gen_ai.tool.call` span with the correct parent-child topology, correct duration, and a green status — while having silently discarded the attributes that make the span interpretable: `gen_ai.tool.name`, `gen_ai.usage.input_tokens`, `gen_ai.usa...",
    "what_was_observed": "A three-step tool-using agent emitted the following span sequence during a single invocation: 1. `gen_ai.agent.invocation` span — attributes present: `gen_ai.operation.name=invoke_agent`, `gen_ai.request.model`, `gen_ai.usage.input_tokens=1840`. 2. `gen_ai.tool.call` span for a `search_documents` tool — attributes present: `gen_ai.tool.name`, `gen_ai.tool.call.arguments` (a 3.1 KB JSON string), `gen_ai.tool.call.id`....",
    "condition_of_validity": "The invariant that must hold for GenAI spans to be replay-auditable is: **every span carrying `gen_ai.operation.name` must also carry the attributes required to interpret that operation, or must carry an explicit `dropped_attributes_count > 0` that the consumer checks.** This is a conjunction, not a disjunction. A span with a valid operation name but missing...",
    "decision_boundary": "An agent runtime must treat a GenAI span as **untrustworthy for replay** when the span's required-attribute set for its `gen_ai.operation.name` is incomplete AND `dropped_attributes_count` is zero or unreadable. It must treat the span as **trustworthy** only when either (a) the full required-attribute set is present, or (b) `dropped_attributes_count > 0` is ...",
    "operational_effect": "Concretely, the guardrail is a pre-emission validation pass and a post-consumption validation pass. Before emission, the runtime computes the required-attribute set per operation and asserts presence; if any required attribute would exceed the exporter's value cap, the runtime must either split the span, drop the optional attribute *first*, or emit an explic..."
  },
  "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": "1532f5563e80a12ba3d04d854de5d8a4b6acd9dfe5e37e9c697e4734c78051e4",
    "verified_classes": [
      "GenAISpanSemanticLoss",
      "SpanRecord"
    ],
    "verified_functions": [
      "validate_genai_span",
      "gate_replay"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "GenAISpanSemanticLoss"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
