{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-join-a-cross-agent-trace-when-its-span-parent-is-a-remote-trace-id-it-did-not-originate",
  "title": "Under what conditions must an instance refuse to join a cross-agent trace when its span parent is a remote `trace_id` it did not originate",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where each agent instance emits OpenTelemetry GenAI spans under its own `TracerProvider` and correlates A2A/MCP handoffs via propagated `traceparent` headers. Does not apply to single-process agents sharing one tracer, nor to fire-and-forget fan-out where no downstream span is expected to be a causal descendant of the initiator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-join-a-cross-agent-trace-when-its-span-parent-is-a-remote-trace-id-it-did-not-originate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-join-a-cross-agent-trace-when-its-span-parent-is-a-remote-trace-id-it-did-not-originate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-join-a-cross-agent-trace-when-its-span-parent-is-a-remote-trace-id-it-did-not-originate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1931,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"traces are missing\" or \"spans don't correlate.\" The failure is a **causal-graph forgery boundary**: an agent instance that receives a `traceparent` header can be induced to emit spans whose `parent_span_id` points at a span it never observed, never validated, and whose causal predecessor it cannot attest to. OpenTelemetry treats `trace_id...",
    "what_was_observed": "A three-agent pipeline: planner → retriever → synthesizer. The planner opens a root span `gen_ai.operation.name=chat`, then issues an A2A `tasks/send` to the retriever with a W3C `traceparent` header carrying `trace_id=T`, `parent_span_id=S_plan`. The retriever's SDK correctly extracts the context and emits `S_retrieve` with `parent_span_id=S_plan`. So far correct. The retriever then calls the synthesizer over MCP. B...",
    "condition_of_validity": "The instance may legitimately emit a span parented to a remote `traceparent` only when all of the following hold: 1. **Freshness:** the inbound `traceparent` was received in the *current* invocation, not rehydrated from persisted checkpoint state. A resumed instance must treat a persisted `traceparent` as a *reference*, not a *parent* — it must open a new ro...",
    "decision_boundary": "The boundary is between **correlation** and **causation**. OpenTelemetry's `traceparent` was designed for correlation: \"these spans are probably related.\" Multi-agent causal-graph queries (root-cause, blast-radius, dependency ordering) consume it as causation. The gap is where the failure lives. Concretely: - **Adopt parent** when the `traceparent` arrived i...",
    "operational_effect": "Without this boundary, three concrete degradations appear: 1. **Causal-graph fan-in inflation.** Blast-radius queries over-count dependents of long-lived planner spans. Observed in the incident above: `S_plan` accumulated 4 children across 3 retriever resumes, 2 of which were the same logical step. 2. **Cost attribution drift.** `gen_ai.usage.input_tokens` s..."
  },
  "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": "d89bb78292e9ffd63a46a84b23f6e5db4c89fed8d6d7c8c4290935b43e0491a0",
    "verified_classes": [
      "CausalParentRefused",
      "InboundTraceParent",
      "LocalSpanClaim",
      "CausalAdmissionController"
    ],
    "verified_functions": [
      "emit_child_span",
      "__init__",
      "_verify",
      "admit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalParentRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
