{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-trace-stitching-has-silently-mis-joined-spans-across-federated-agents-under-semantic-convention-drift",
  "title": "What structural signals indicate causal trace stitching has silently mis-joined spans across federated agents under semantic-convention drift",
  "date_of_record": "2026 December 2",
  "scope": "Applies to observability pipelines that reconstruct a single causal trace from spans emitted by independently-deployed agents which share only a semantic convention (attribute schema + span-kind vocabulary) rather than a runtime tracer or shared process memory. Does not apply to single-process instrumentation, nor to federated traces that propagate a signed trace-context token end-to-end (those fail differently, at token validation, not at stitching).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-stitching-has-silently-mis-joined-spans-across-federated-agents-under-semantic-convention-drift.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-stitching-has-silently-mis-joined-spans-across-federated-agents-under-semantic-convention-drift.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-trace-stitching-has-silently-mis-joined-spans-across-federated-agents-under-semantic-convention-drift.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2339,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a federated trace can be wrong. The first is **missing spans** — an agent never emitted, or the collector dropped, a span. This is detectable: the causal graph has a hole, and the parent-child reference points at a `parent_span_id` that resolves to nothing. The second, and the one that matters here, is **plausible mis-join**: every span re...",
    "what_was_observed": "A federated deployment of three agents — a planner, a retrieval worker, and an auditor — emitted spans with the following semantic-convention attributes (OpenTelemetry-style, but the convention is the deployment's, not OTel's): The stitcher's join predicate was, in order of preference: `trace_id` if present, else `(session.id, parent_span_id)`, else `(session.id, task.label)` with fuzzy match. The first two are sound...",
    "condition_of_validity": "The mis-join is *possible* whenever the join key is a semantic attribute and the following three conditions co-occur. It is *likely* when all three hold and the agents are generative: - **C1 — Key derivability.** The attribute used for the join can be independently regenerated by two agents from the same task input. Free-text labels, role names, and goal sum...",
    "decision_boundary": "The decision the pipeline must make is: *when a child span arrives with a `session.id` but no resolvable `parent_span_id`, do we fuzzy-join it to the best label match, or do we refuse and quarantine?* The boundary is drawn by **whether the join can be verified against an exchange record**. Two regimes: - **Exchange-verifiable.** The dispatcher logged the dis...",
    "operational_effect": "Downstream of a silent mis-join, three classes of operational decision are corrupted, and each corrupts quietly: 1. **Latency attribution.** Concurrent branches serialized into one path inflate per-agent p99 by the branch count. Capacity planning then over-provisions the retriever and under-provisions the auditor. The error is invisible because the trace is ..."
  },
  "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": "8ee637aa616302e5d8bfe92714680ee860e1738c9673581e07b608a65681002d",
    "verified_classes": [
      "TraceStitchError",
      "DispatchRecord",
      "ChildSpan"
    ],
    "verified_functions": [
      "stitch_child",
      "payload_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TraceStitchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
