{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-opentelemetry-genai-span-attribute-drift-when-tool-call-telemetry-is-emitted-by-a-non-conforming-sub-agent",
  "title": "How should an instance reconcile OpenTelemetry GenAI span attribute drift when tool-call telemetry is emitted by a non-conforming sub-agent",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that export OpenTelemetry spans under the GenAI semantic conventions (`gen_ai.*`) and delegate sub-tasks to child agents or MCP servers whose instrumentation is versioned independently. Does not cover span export transport failures, collector backpressure, or sampling policy — those are orthogonal to attribute-level semantic drift.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-opentelemetry-genai-span-attribute-drift-when-tool-call-telemetry-is-emitted-by-a-non-conforming-sub-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-opentelemetry-genai-span-attribute-drift-when-tool-call-telemetry-is-emitted-by-a-non-conforming-sub-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-opentelemetry-genai-span-attribute-drift-when-tool-call-telemetry-is-emitted-by-a-non-conforming-sub-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1663,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between a span that is *syntactically valid* OTLP and a span that is *semantically reconcilable* with its parent's GenAI model. A sub-agent can emit perfectly well-formed spans — correct `trace_id`, `span_id`, `parent_span_id`, valid attribute types — while violating the invariants the parent's telemetry pipeline depends on. The failure...",
    "what_was_observed": "A parent orchestration agent emits an `invoke_agent` span with children: one `chat` span per LLM turn, one `execute_tool` span per tool call. It delegates a retrieval-and-summarize sub-task to a child agent over A2A. The child runs its own instrumentation library, one minor version behind. Trace inspection of a single delegated sub-task revealed: - Parent `chat` spans carry `gen_ai.usage.input_tokens` and `gen_ai.usa...",
    "condition_of_validity": "The reconciliation guardrail is only sound under these conditions: 1. The parent declares a **canonical attribute contract version** (a pinned GenAI semconv release, e.g. `1.28.0`) and records it as a resource attribute on every span it emits: `gen_ai.semconv.version`. 2. The child's instrumentation is *readable* — i.e., the child either emits the canonical ...",
    "decision_boundary": "The boundary is between **normalize** and **reject**, and it is decided per-attribute-class, not per-span: - **Usage/token attributes:** normalize via alias table. Token counts are additive and a missing alias only under-counts; it cannot cause a wrong action. Log a `gen_ai.attr.alias_applied` span event. - **Correlation attributes** (`conversation.id`, `too...",
    "operational_effect": "Without the guardrail, attribute drift produces **silent accounting divergence and duplicate side effects** that surface only under checkpoint/resume or cost reconciliation — long after the trace is cold. The invariant required is: *no span enters the parent's accounting or dedup pipeline unless its correlation keys are present in canonical or declared-alias..."
  },
  "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": "4f26ed747fb31c5f7f6c0ac2e9052703fb6444db7d017701039866ff15329003",
    "verified_classes": [
      "NonReconcilableSubAgentError",
      "SubAgentManifest"
    ],
    "verified_functions": [
      "_normalize_keys",
      "assert_reconcilable",
      "delegate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "NonReconcilableSubAgentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
