{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-parent-child-span-linkage-is-broken-in-multi-agent-causal-traces-under-genai-semantic-convention-extensions",
  "title": "What structural signals indicate parent-child span linkage is broken in multi-agent causal traces under GenAI semantic convention extensions",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems that emit OpenTelemetry spans annotated with GenAI semantic conventions (`gen_ai.*`) and reconstruct causal trees from `parent_span_id`/`trace_id` linkage across agent handoffs. Does not apply to single-agent traces, or to systems that serialize causal order into application-level event logs rather than span parentage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-parent-child-span-linkage-is-broken-in-multi-agent-causal-traces-under-genai-semantic-convention-extensions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-parent-child-span-linkage-is-broken-in-multi-agent-causal-traces-under-genai-semantic-convention-extensions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-parent-child-span-linkage-is-broken-in-multi-agent-causal-traces-under-genai-semantic-convention-extensions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1912,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a multi-agent trace can be \"wrong,\" and they require different detection strategies. The first is **content corruption**: a span records the wrong model, wrong token count, or wrong tool name. This is detectable by schema validation against the `gen_ai.*` attribute contract. The second—the subject here—is **structural linkage corruption**:...",
    "what_was_observed": "A supervisor agent (Agent S) decomposed a task into three subtasks and dispatched them to worker agents W1, W2, W3 over an A2A-style transport. Each worker emitted its own spans with `gen_ai.system`, `gen_ai.operation.name`, and `gen_ai.usage.*` attributes correctly populated. The trace backend reconstructed a tree in which: - W1, W2, W3 each appeared as *root spans* (no parent), siblings to S rather than children of...",
    "condition_of_validity": "The linkage invariant holds only when the following condition is satisfied at every agent handoff: > For any span emitted by agent B on behalf of agent A, `B.trace_id == A.trace_id` **and** `B.parent_span_id` resolves to a span that (a) exists in the same trace, (b) has `end_time >= B.start_time`, and (c) carries an agent identity consistent with the delegat...",
    "decision_boundary": "The operational question is: *when a trace shows orphan roots or attribute-parent mismatch, do you trust the attributes or the topology?* The decision boundary is: - **Trust topology, distrust attributes, when** the orphan roots carry complete `gen_ai` attributes and the would-be parents are stubs. Here the topology is the artifact of a broken stitch; the at...",
    "operational_effect": "When linkage corruption goes undetected, three downstream operations degrade: 1. **Attribution and cost accounting** double-count or misattribute token usage, because a worker's `gen_ai.usage.*` lives on an orphan root that the billing join never reaches through the (broken) parent chain. 2. **Failure localization** inverts: an error surfaced in S's stub chi..."
  },
  "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": "44d58219ce2512a97c9c0e54baf0bc47a0fb77d900709415ece05615243f9039",
    "verified_classes": [
      "TraceLinkageError",
      "Span"
    ],
    "verified_functions": [
      "validate_linkage"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TraceLinkageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
