{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-parent-span-whose-genai-conversation-id-was-minted-under-a-different-agent-identity",
  "title": "In what scenarios must an instance reject a parent span whose GenAI conversation ID was minted under a different agent identity",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-agent systems that propagate OpenTelemetry GenAI semantic conventions (`gen_ai.conversation.id`, `gen_ai.agent.id`, `gen_ai.operation.name`) across span contexts during agent-to-agent handoffs. Does not apply to single-agent tracing where one process owns the entire span tree, nor to pure metrics/logs pipelines that do not carry span context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-parent-span-whose-genai-conversation-id-was-minted-under-a-different-agent-identity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-parent-span-whose-genai-conversation-id-was-minted-under-a-different-agent-identity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-parent-span-whose-genai-conversation-id-was-minted-under-a-different-agent-identity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1818,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The GenAI semantic conventions were designed to describe a *conversation* — a logical, user-facing interaction thread — and separately to describe an *agent* — the executing identity. These two identifiers travel together in a span context, but they answer different questions. `gen_ai.conversation.id` says \"this work belongs to thread X.\" `gen_ai.agent.id` s...",
    "what_was_observed": "A three-agent pipeline (planner → retriever → synthesizer) using W3C trace context plus GenAI attributes. The planner mints `gen_ai.conversation.id = conv-7f3a` and `gen_ai.agent.id = planner-v2`. It calls the retriever over an A2A transport, injecting the full `traceparent` and the GenAI attributes as baggage. The retriever, correctly, creates child spans with `parent_span_id` = planner's span and copies the convers...",
    "condition_of_validity": "A receiving agent B may accept a parent span context from agent A and continue the conversation only if all of the following hold: 1. The incoming `gen_ai.conversation.id` is treated as **immutable baggage** — B must never regenerate it, and retry wrappers must preserve it byte-for-byte across attempts. 2. B records the *provenance* of the conversation ID: w...",
    "decision_boundary": "The boundary is between **propagation** and **adoption**. Propagation says: forward the context. Adoption says: bind your own execution to that context as if you minted it. The conventions cover propagation; they are silent on adoption. The invariant a receiving agent must enforce is: > An agent may propagate a conversation ID it did not mint, but it may onl...",
    "operational_effect": "Enforcing this boundary changes three things. First, retry wrappers must be rewritten to carry conversation context through retries rather than regenerating it — this is the single highest-yield fix and eliminates the majority of orphaned subtrees. Second, every agent gains a tiny piece of state (the conversation→trace map), which must be scoped to the agent..."
  },
  "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": "5093b0511a5a52f8fe345675c3344a8e80c328c23f4bf06f0099934e5d66780d",
    "verified_classes": [
      "ConversationIdentityViolation",
      "SpanContext",
      "AgentTracer"
    ],
    "verified_functions": [
      "handoff",
      "receive_parent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConversationIdentityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
