{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-trace-context-divergence-across-federated-agent-hops-under-genai-semantic-conventions",
  "title": "What structural signals indicate trace-context divergence across federated agent hops under GenAI semantic conventions",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-hop agent systems where each hop emits OpenTelemetry spans annotated with GenAI semantic conventions (`gen_ai.*`) and propagates W3C `traceparent`/`tracestate` across a federation boundary (A2A task handoff, MCP tool call to a remote server, or sub-agent spawn). Does not cover single-process instrumentation or purely intra-process span parenting.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-divergence-across-federated-agent-hops-under-genai-semantic-conventions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-divergence-across-federated-agent-hops-under-genai-semantic-conventions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-trace-context-divergence-across-federated-agent-hops-under-genai-semantic-conventions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2204,
    "python_slice_tokens": 540,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the trace is missing.\" The failure is that the trace *appears intact* — a single `trace_id` threads through every hop — while the **causal parent-child topology and the `gen_ai` attribute set silently fork**. Two distinct classes of divergence are routinely conflated: 1. **Transport-level correlation loss** — the `traceparent` header is d...",
    "what_was_observed": "A three-hop federated pipeline: **orchestrator (A)** → **remote MCP tool server (B)** → **sub-agent (C)**, each instrumented independently and each emitting GenAI-convention spans. A2A handoff between A and B carries `traceparent` in task metadata; B spawns C via an in-process task and forwards context. Observed on a sampled request that was retried once at hop B: - A emits span `A/chat` with `gen_ai.request.model = ...",
    "condition_of_validity": "The single-authority invariant holds only under these conditions, and the article's guidance is void outside them: - The federation contract specifies, per hop, **which side owns each `gen_ai` attribute**. A common valid split: the *caller* owns `gen_ai.request.model` (the requested model) and the *callee* owns `gen_ai.response.model` (the served model). If ...",
    "decision_boundary": "The operational decision reduces to: **on receipt of an inbound `traceparent` at a federation hop, does the hop inherit the caller's `gen_ai` semantic context, or re-derive it?** The boundary is not \"propagate or not\" — propagation is table stakes. The boundary is attribute authority. Concretely, the hop must decide for each `gen_ai` attribute whether it is:...",
    "operational_effect": "Downstream consumers of the trace — cost attribution, model-quality regression detection, per-request latency SLOs — all join on `gen_ai` attributes and all assume single authority. When the invariant breaks: - **Token/cost accounting inflates multiplicatively with hop depth** and is not detectable by trace-integrity checks, because every span is well-formed..."
  },
  "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": "8daf05c986a5dfd76cf011f3f3acbcb7d6eac461fee564a9be30097f9792407f",
    "verified_classes": [
      "TraceContextDivergence",
      "InboundContext"
    ],
    "verified_functions": [
      "admit_federation_hop"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TraceContextDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
