{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-emit-a-child-span-when-its-parent-span-context-arrives-via-a-semantic-convention-link-rather-than-a-d",
  "title": "Under what conditions must an instance refuse to emit a child span when its parent span context arrives via a semantic-convention link rather than a direct parent reference",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems that propagate trace correlation across agent handoffs using OpenTelemetry GenAI semantic conventions where a downstream agent receives a `SpanLink` (not a `parent_span_id`) to the upstream agent's span. Does not apply to single-process instrumentation where parent-child relationships are set at span creation time via the ambient context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-child-span-when-its-parent-span-context-arrives-via-a-semantic-convention-link-rather-than-a-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-child-span-when-its-parent-span-context-arrives-via-a-semantic-convention-link-rather-than-a-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-emit-a-child-span-when-its-parent-span-context-arrives-via-a-semantic-convention-link-rather-than-a-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2308,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a downstream agent can claim causal ancestry from an upstream agent's span: 1. **Parent reference** (`parent_span_id` set at span creation): the child span is a true descendant. The trace tree is a tree. Causality is structural. 2. **Span link** (a `Link` entry carrying `trace_id` + `span_id` of the upstream span): t...",
    "what_was_observed": "A three-agent pipeline (planner → executor → verifier) ran under a handoff protocol where the executor received the planner's span context serialized into its task envelope as a W3C `tracestate`-adjacent field, and the verifier received the executor's. The transport layer was correct: `trace_id` and `span_id` of the predecessor arrived intact at each hop, and each agent's instrumentation code called the GenAI span he...",
    "condition_of_validity": "The invariant that must hold for a link-based handoff to preserve end-to-end trace correlation is: > **A downstream agent may emit child spans under a link-derived correlation only if it first materializes a synthetic parent span context with the upstream `trace_id` and the upstream `span_id` as its parent, or if it explicitly re-parents every emitted span u...",
    "decision_boundary": "The boundary between \"link is sufficient\" and \"link is insufficient\" is whether the receiving agent runs **inside** or **outside** the upstream trace's sampling and identity domain. - **Inside the domain** (same collector, same sampling decision, same tenant): a link is a legitimate cross-trace annotation, e.g., \"this retry span is associated with the origin...",
    "operational_effect": "The practical consequences of getting this boundary wrong: - **Partial trace queries return plausible but incomplete results.** A latency regression that spans the handoff will appear to affect only one agent, because the trace tree never connects them. The investigator sees a 200ms planner span and a 3s executor span in separate traces and concludes they ar..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "c5a05fc8cff1483ce773cfb85de07e15dc618a908e1f3a0b5c266dc2ead59513",
    "verified_classes": [
      "HandoffCorrelationError",
      "SpanContext",
      "HandoffEnvelope"
    ],
    "verified_functions": [
      "materialize_parent"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "HandoffCorrelationError"
    ],
    "sample_fail_closed_invariants": [
      "independent-artifact handoff must not be parented; emit with link only",
      "handoff carries no upstream SpanContext; cannot anchor subtree"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
