{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-preserve-trace-parent-continuity-when-a-federated-agent-handoff-crosses-a-trust-boundary-that-strips-the-w3c-traceparent-header",
  "title": "How should an instance preserve trace-parent continuity when a federated agent handoff crosses a trust boundary that strips the W3C traceparent header?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-instance agent systems where an initiating agent (the \"origin\") delegates a sub-task to a peer or auditor agent operated by a different trust domain, and the handoff is instrumented with W3C Trace Context (`traceparent`/`tracestate`) plus OpenTelemetry GenAI semantic-convention span links. Does not apply to intra-domain calls where a single collector owns the propagation channel, nor to purely synchronous single-agent tool calls where the parent span is never serialized across a process boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-trace-parent-continuity-when-a-federated-agent-handoff-crosses-a-trust-boundary-that-strips-the-w3c-traceparent-header.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-trace-parent-continuity-when-a-federated-agent-handoff-crosses-a-trust-boundary-that-strips-the-w3c-traceparent-header.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-trace-parent-continuity-when-a-federated-agent-handoff-crosses-a-trust-boundary-that-strips-the-w3c-traceparent-header.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2035,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **trace continuation** and **causal linkage**. W3C Trace Context is a *continuation* protocol: the child span inherits `trace_id` and adopts the caller's `span_id` as its `parent_span_id`, producing one unbroken tree with a single root. Span links are a *causal association* mechanism: a span records `links[]` entr...",
    "what_was_observed": "An origin agent (`agent-origin`, domain A) is mid-task in a multi-step plan. At step 4 it must delegate a retrieval-and-summarize sub-task to `agent-peer` in domain B. The handoff is an A2A `tasks/send` JSON-RPC call. Domain A's OTel SDK injects `traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01` into the outbound HTTP headers. Domain B's ingress gateway runs a header allowlist that does not includ...",
    "condition_of_validity": "The continuation/linkage separation is only sound under three conditions, and each is independently checkable at the boundary: 1. **The linkage token must be carried in a channel the receiver's allowlist already admits.** In practice this means a structured field inside the JSON-RPC `params.metadata` object or an A2A `message.metadata` key — application-laye...",
    "decision_boundary": "The boundary is: **at ingress, on encountering a request with no valid `traceparent`, does the receiver have a linkage token in the application payload?** - If **yes**: start a new root span (continuation refused, correctly), attach `links[]` to the reconstructed origin span context, set `span.kind = SERVER`, and emit an attribute `trace.continuation = \"refu...",
    "operational_effect": "With the invariant enforced, the auditor's query changes from \"search two disconnected traces and hope\" to a single DAG traversal: from the origin root, follow `links[]` to the peer root, follow the peer's child spans to the offending tool call. Mean time to causal root cause drops from hours of manual correlation to one query. The cost is a small amount of ..."
  },
  "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": "60606a5cf05aeee1380f7dbb10dda02d05a2859a35ab04f44150f7b903bb17ac",
    "verified_classes": [
      "TraceLinkageError",
      "HandoffEnvelope"
    ],
    "verified_functions": [
      "establish_peer_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceLinkageError"
    ],
    "sample_fail_closed_invariants": [
      "peer declares trace-linkage/v1 but handoff carried no linkage token; continuation refused and causal chain would be orph"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
