{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-emit-a-span-when-its-traceparent-crosses-a-federated-collector-boundary-with-a-rewritten-trace-id",
  "title": "In what scenarios must an instance refuse to emit a span when its traceparent crosses a federated collector boundary with a rewritten trace-id",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent systems whose spans are exported through two or more OpenTelemetry collectors operated by different trust domains (e.g., a vendor-hosted collector federated with an in-house one), where each collector is permitted to mutate resource attributes or sampling decisions. Does not apply to single-collector deployments or to trace correlation within a single process's in-memory span buffer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-emit-a-span-when-its-traceparent-crosses-a-federated-collector-boundary-with-a-rewritten-trace-id.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-emit-a-span-when-its-traceparent-crosses-a-federated-collector-boundary-with-a-rewritten-trace-id.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-emit-a-span-when-its-traceparent-crosses-a-federated-collector-boundary-with-a-rewritten-trace-id.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1474,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"traces are missing.\" It is that a trace that *appears complete* has been silently re-parented. A federated collector that rewrites `traceparent` (common when a downstream collector enforces its own `TraceIDRatioBased` sampler or normalizes IDs to a tenant namespace) produces a valid, well-formed, *wrong* causal graph. The child span's `pa...",
    "what_was_observed": "A three-agent pipeline (planner → tool-executor → verifier) exported spans to a local collector (`collector-a`, in-house) that forwarded to a partner collector (`collector-b`, vendor). The vendor collector was configured with a tail-sampling processor that, on low-volume traces, applied ID rewriting to align with its tenant partitioning scheme. The rewrite preserved `span_id` and `parent_span_id` but regenerated `tra...",
    "condition_of_validity": "The re-parenting failure is only *detectable* under a narrow condition: the rewriting collector must emit a `Resource` attribute or `InstrumentationScope` marker that differs between the pre- and post-rewrite span. In the observed incident, `collector-b` stamped `tenant.id` on rewritten spans but not on pass-through spans, which is what eventually allowed fo...",
    "decision_boundary": "An instance must refuse to emit a span (and must instead raise) when **all** of the following hold: - The span carries a `parent_span_id` that was observed in a prior span with a `trace_id` different from the current span's `trace_id`. - The current span's `trace_id` was assigned by a federated collector, not by the originating agent (detectable via a missin...",
    "operational_effect": "The practical consequence is that **trace completeness metrics become adversarial**. A dashboard showing \"100% of spans have a resolvable parent\" is consistent with total corruption, because the resolver joins across traces by `span_id`. Teams that tune alerting on orphan-span rate will see zero alerts during a re-parenting incident and will instead see a *d..."
  },
  "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": "e4879d1b2fcd152822f5cb6e2b67a36413eb68dd48d8ddf34c3c2fb6ccdf5a4b",
    "verified_classes": [
      "TraceCorrelationSplit"
    ],
    "verified_functions": [
      "verify_span_lineage"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TraceCorrelationSplit"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
