{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-semantic-convention-span-that-its-own-tracer-emitted-label-set-widening-at-the-otel-genai-boundary",
  "title": "When must an instance reject a semantic-convention span that its own tracer emitted: label-set widening at the OTel GenAI boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent observability pipelines that emit OpenTelemetry spans under the GenAI semantic conventions (`gen_ai.*` attributes) and run conformance tests against their own tracer output before ingestion. Does not apply to non-LLM service spans, nor to pipelines that consume only vendor-proprietary trace formats where no external conformance contract exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-semantic-convention-span-that-its-own-tracer-emitted-label-set-widening-at-the-otel-genai-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-semantic-convention-span-that-its-own-tracer-emitted-label-set-widening-at-the-otel-genai-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-semantic-convention-span-that-its-own-tracer-emitted-label-set-widening-at-the-otel-genai-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1988,
    "python_slice_tokens": 513,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an observability pipeline can be asked to do with a semantic-convention span, and conflating them is the source of the failure this record documents: 1. **Validate conformance** — assert that the attribute set on a span is a *subset* of what the convention permits for that operation, with the required keys present ...",
    "what_was_observed": "An agent framework instrumented its tool-call spans with a tracer that read the GenAI convention at process start and cached the permitted attribute set. During a rolling deploy, the convention package was upgraded in the test harness (adding `gen_ai.tool.call.id` as a *required* attribute for `execute_tool` operations and tightening `gen_ai.operation.name` to a closed enum) but not in the long-lived tracer process. ...",
    "condition_of_validity": "The subset/completeness check is only sound when the following holds for every span under test: - **Contract pinning:** the span carries `gen_ai.schema.version` (or the tracer's build hash) as an attribute, so the test can select the matching convention definition rather than assuming the latest. - **Closed-set stability:** enum-valued attributes (`gen_ai.op...",
    "decision_boundary": "The decision boundary is whether the pipeline treats a convention upgrade as a **test-side change** or a **tracer-side change**: - If the convention package is upgraded only in the test harness, the test will begin rejecting spans the tracer legitimately emitted under its pinned contract. **This is a false positive** and must be suppressed by version-matchin...",
    "operational_effect": "After the fix, the pipeline emits `gen_ai.schema.version` on every span, the conformance test selects the convention definition by that version, and a version absent from the registry raises rather than passes. The deadlock is broken because a tracer running an old version produces spans that the test *can* evaluate (against the old definition) and that are ..."
  },
  "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": "f925a09f0c65fb3c19141ca2af1fc182432b7e7cebb4a7b566c7a25dbedea192",
    "verified_classes": [
      "ConventionVersionMismatch",
      "OperationName",
      "ConventionContract"
    ],
    "verified_functions": [
      "validate_span",
      "run_conformance_batch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ConventionVersionMismatch"
    ],
    "sample_fail_closed_invariants": [
      "span carries no gen_ai.schema.version; contract cannot be resolved"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
