{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-propagate-a-traceparent-across-a-federated-trust-boundary-span-id-reuse-and-the-poisoned-correlation-invariant",
  "title": "When must an instance refuse to propagate a traceparent across a federated trust boundary: span-ID reuse and the poisoned-correlation invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where LLM-driven agent instances execute tool calls under W3C Trace Context propagation across organizational boundaries (MCP servers, A2A peers, or remote tool providers owned by a different trust domain). Does not apply to intra-org tracing where a single control plane owns all spans, nor to purely asynchronous batch pipelines that do not carry a live `traceparent`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-propagate-a-traceparent-across-a-federated-trust-boundary-span-id-reuse-and-the-poisoned-correlation-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-propagate-a-traceparent-across-a-federated-trust-boundary-span-id-reuse-and-the-poisoned-correlation-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-propagate-a-traceparent-across-a-federated-trust-boundary-span-id-reuse-and-the-poisoned-correlation-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2431,
    "python_slice_tokens": 492,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"tracing is missing\" or \"trace IDs don't match.\" It is the inverse: **a traceparent that is structurally valid and semantically continuous, but whose span-ID was minted in a foreign trust domain and is therefore a carrier for correlation poisoning.** Distributed tracing assumes that a `traceparent` is an *identifier*, a passive label....",
    "what_was_observed": "A federated deployment: an orchestrator agent (Org A) calls a retrieval agent hosted by Org B via A2A, which in turn calls a summarization tool hosted by Org C. All three emit OpenTelemetry spans. The orchestrator's policy engine uses trace-derived causal chains to answer questions like \"did any span in this trace carry a `data_classification=PII` attribute before the summarizer ran?\" — a real guardrail, since the su...",
    "condition_of_validity": "The invariant that was violated: **a span ID is only a valid causal reference within the trust domain that minted it.** Formally, for a `traceparent` received across a federation boundary to be safely adopted as a parent, all three must hold: - **Provenance binding:** the inbound `traceparent` carries a signature or an out-of-band attestation (e.g., a signed...",
    "decision_boundary": "The precise boundary where an instance must **refuse to propagate** rather than adopt: - **Adopt** the inbound `traceparent` as parent only when provenance is bound (signature or attested `tracestate`) AND the receiver's local span-ID registry has no conflicting `(trace_id, span_id)` mapping AND either the ancestor chain is resolvable within the receiver's t...",
    "operational_effect": "Concretely, the guardrail that was missing is a **span-ID registry with cross-trace collision detection** at every federation ingress, plus a **signed `tracestate` entry** carrying the emitting domain's HMAC over the parent triple. The registry is small (a bounded LRU of `(trace_id, span_id) → first_seen_ts` per peer domain, with a TTL matching the max trace..."
  },
  "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": "cd0012076b7ecf3d66d1c9f882bf0a26b8197ea324e4914e4c54b0acd86c9c45",
    "verified_classes": [
      "UnverifiedTraceLineageError",
      "SpanRegistry"
    ],
    "verified_functions": [
      "verify_inbound_traceparent",
      "handle_remote_tool_call",
      "_prune",
      "check_and_record"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnverifiedTraceLineageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
