{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-span-misbinding-in-genai-trace-correlation-across-agent-hops",
  "title": "What structural signals indicate causal-span misbinding in GenAI trace correlation across agent hops",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent systems that propagate a trace/span context (W3C `traceparent`, baggage, or a vendor envelope) across LLM-to-tool and agent-to-agent hops and reconstruct causality by parent-span linkage. Does not apply to single-process, single-span instrumentation where the parent is always the enclosing frame.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-misbinding-in-genai-trace-correlation-across-agent-hops.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-misbinding-in-genai-trace-correlation-across-agent-hops.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-misbinding-in-genai-trace-correlation-across-agent-hops.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct failures that look identical in a trace viewer: 1. **Broken propagation** — the downstream agent never receives the parent context, so it starts a new root. This is loud: orphan roots, missing parents, trace fragmentation. It is easy to detect because the causal chain physically doesn't exist. 2. **Misbound propagation** — the downstre...",
    "what_was_observed": "A planner agent `A` receives a task and issues three concurrent sub-agent calls `B1, B2, B3` through a shared executor. The executor holds one ambient context object (a thread-local, a contextvar, or an async task group with a copied context) and injects the *same* `traceparent` — same `trace_id`, same `parent_span_id = span(A)` — into all three outbound envelopes. Each sub-agent correctly creates its own child span ...",
    "condition_of_validity": "The causal-span invariant holds only under all of the following: - The context injected into an outbound envelope is captured **after** the calling span is created and **before** the call is dispatched, and is immutable for the lifetime of that call. - A retry, replay, or fallback of a call is parented to the **same calling span** as the original attempt, ne...",
    "decision_boundary": "The boundary is between **trusting the tree** and **reconciling the tree against dispatch records**. The decision rule: - If the parent span carries an authoritative dispatch manifest (expected child count and identities), reconcile. Mismatch → the parent edge is misbound; quarantine the subtree from causal analysis and re-derive parentage from the manifest ...",
    "operational_effect": "Without reconciliation, three concrete regressions appear: 1. **Error attribution drift** — retries and fallbacks are booked against the caller, inflating the caller's error rate and masking the true failing component. Alerting fires on the planner while the retriever is the actual fault. 2. **Latency budget undercount** — failed first attempts parented to t..."
  },
  "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": "9bf786afedbecab132dc788e4d3a18bf9deb51e1e392af2aec65bf0e99d7a627",
    "verified_classes": [
      "CausalSpanMisbindingError"
    ],
    "verified_functions": [
      "reconcile_children"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalSpanMisbindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
