{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-merge-a-federated-trace-span-whose-traceparent-was-reissued-across-a-trust-boundary",
  "title": "Under what conditions must an instance refuse to merge a federated trace span whose traceparent was reissued across a trust boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent systems emitting OpenTelemetry spans that are exported to federated collectors sitting behind distinct trust boundaries (different tenants, orgs, or security domains). Does not apply to single-collector deployments or to trace correlation that never crosses an identity boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-federated-trace-span-whose-traceparent-was-reissued-across-a-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-federated-trace-span-whose-traceparent-was-reissued-across-a-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-merge-a-federated-trace-span-whose-traceparent-was-reissued-across-a-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1790,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A `traceparent` header is a *correlation identifier*, not an *authorization token*. The W3C Trace Context spec defines the 128-bit `trace-id` as globally unique and the 64-bit `parent-id` (span-id) as scoped to a single trace. It says nothing about *who* is allowed to assert a given `trace-id`. Federated collectors, however, routinely receive spans from upst...",
    "what_was_observed": "A three-agent pipeline: a planner agent (tenant A), a retrieval agent (tenant B), and a synthesis agent (tenant C), each exporting to its own OTel collector. The planners' collector forwards spans to tenant B's collector over an OTLP/gRPC bridge that terminates at a boundary gateway. The gateway strips `authorization` headers per policy but forwards `traceparent` verbatim, because the OTLP spec treats trace context a...",
    "condition_of_validity": "The merge is only valid when all of the following hold simultaneously: 1. **Span-id parent resolution succeeds within the merged span set.** If a span's `parent-id` is not present in the union of spans for that `trace-id`, the span is an *orphan* and its placement in the tree is undefined. Orphan spans must not be silently re-rooted. 2. **The `trace-id` was ...",
    "decision_boundary": "The decision is not \"trust or reject the span.\" It is: **does the span's `parent-id` resolve within the spans this collector is authorized to see for this `trace-id`?** - If yes → merge normally. - If no, and the span arrived from the same trust domain as the trace root → merge as orphan with an explicit `otel.status_code=ERROR` annotation; do not re-root. -...",
    "operational_effect": "The immediate effect of enforcing the boundary is that federated traces become *discontinuous* at trust edges — the synthesis collector sees the planner's spans and the retrieval agent's spans as two traces joined only by a boundary-crossing record. This is correct but operationally annoying: dashboards that assume one trace per request will show two. The mi..."
  },
  "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": "0a564813d7d2a85a08f83c4e848268fd8cbccfb3fb5ef4842057c9e1bd65a33d",
    "verified_classes": [
      "TraceBoundaryViolation",
      "Span",
      "TraceState"
    ],
    "verified_functions": [
      "merge_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
