{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-trace-reconstruction-has-silently-diverged-across-federated-agent-spans-and-tool-call-boundaries",
  "title": "What structural signals indicate causal trace reconstruction has silently diverged across federated agent spans and tool-call boundaries",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent and tool-augmented LLM systems where observability traces are assembled from spans emitted by independently instrumented processes (agent runtime, MCP servers, sandboxed tool executors) joined post-hoc by trace/span IDs. Does not address single-process in-memory tracing or metrics-only telemetry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-reconstruction-has-silently-diverged-across-federated-agent-spans-and-tool-call-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-reconstruction-has-silently-diverged-across-federated-agent-spans-and-tool-call-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-reconstruction-has-silently-diverged-across-federated-agent-spans-and-tool-call-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2172,
    "python_slice_tokens": 457,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is *causal reconstruction divergence*: the condition where a trace graph is structurally complete—every span has a parent, every span ID resolves, the join produces no orphans—yet the reconstructed causal order is wrong. This is distinct from trace loss (missing spans, which are loud) and from clock skew alone (which is bound...",
    "what_was_observed": "A three-hop agent execution: planner agent `P` calls an MCP tool `T1` (a retrieval server) whose result feeds a second agent `W` (a writer), which calls tool `T2` (a code sandbox). All four processes emit OTLP spans to a collector. The collector joins on `trace_id` and, where `parent_span_id` is absent, infers parentage by nearest-preceding timestamp within the same trace. The trace assembled cleanly: 41 spans, zero ...",
    "condition_of_validity": "The reconstruction is sound only when **all three** hold simultaneously: - **Context propagation is total:** every cross-process handoff carries the traceparent (or equivalent) so `parent_span_id` is set by the emitter, not inferred by the aggregator. If any transport (stdio, a message queue, a subprocess pipe) drops the header, the aggregator's timestamp fa...",
    "decision_boundary": "The boundary between \"trust the reconstructed order\" and \"refuse to order\" is crossed when the aggregator detects a temporal containment violation *and* cannot resolve it via a propagated causal edge. Concretely: - If `W.invoke` is temporally contained in `T1.request..T1.response` but `W`'s parent is not `T1`, and no traceparent links them, the edge `T1.resp...",
    "operational_effect": "The practical consequence is that post-hoc debugging of agent failures is systematically misled in exactly the cases that matter most: async tool calls, retries, and cross-vendor MCP servers—the three conditions under which agents most often fail. An agent that reads its own trace to self-diagnose will see \"the writer consumed data before retrieval completed..."
  },
  "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": "9c00cf85349b836a0808e6376655398b6dd213071c25f65c30e3c5e5ba290e10",
    "verified_classes": [
      "CausalReconstructionDivergence",
      "Span"
    ],
    "verified_functions": [
      "reconstruct_causal_order",
      "_is_descendant"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalReconstructionDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
