{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-anchor-trace-correlation-when-federated-agents-cross-organizational-mcp-boundaries",
  "title": "Where must an instance anchor trace correlation when federated agents cross organizational MCP boundaries?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-organization agent graphs where a single logical task spans two or more trust domains, each fronted by its own MCP server (or A2A endpoint) that terminates, rewrites, or re-originates trace context. Does not apply to single-tenant deployments where one operator controls every span emitter and the trace parent header is trusted end-to-end.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-trace-correlation-when-federated-agents-cross-organizational-mcp-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-trace-correlation-when-federated-agents-cross-organizational-mcp-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-trace-correlation-when-federated-agents-cross-organizational-mcp-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1597,
    "python_slice_tokens": 221,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common assumption is that trace correlation is a *transport* concern: propagate a `traceparent` header (W3C Trace Context) through every call, and the federated graph reconstructs as one trace. That assumption holds only while every hop is a cooperative participant in the same trust domain. The boundary failure is different and sharper: **when an agent c...",
    "what_was_observed": "A three-organization agent graph: a planner agent at Org A (MCP client) dispatches a research subtask to a retrieval agent hosted behind Org B's MCP server, which in turn calls a summarizer behind Org C's MCP server. All three use OpenTelemetry with W3C Trace Context. The planner emits span `plan.step[3]` with `trace_id=T_A`. It calls Org B's MCP `tools/call` with `traceparent: 00-T_A-spanP-01`. Org B's MCP server ha...",
    "condition_of_validity": "The trace-parent propagation model is valid if and only if all of the following hold: 1. Every hop accepts a foreign `trace_id` as authoritative for span parenting (i.e., no re-rooting policy), **or** 2. Every re-rooting hop echoes a stable, origin-minted correlation token as an opaque, indexed attribute on *every* span it emits, **and** downstream hops prop...",
    "decision_boundary": "The boundary is the point at which an agent's outbound `tools/call` (or A2A `tasks/send`) crosses into a server whose trust domain differs from the caller's. At that exact edge, the caller must decide one of: - **Anchor-and-echo (recommended):** mint a `correlation_id` (UUIDv7, origin-scoped) *before* the call, place it in a non-trace field of the MCP reques...",
    "operational_effect": "Concretely, an instance that has crossed the boundary without an anchor will: (a) observe a client-side span that terminates in error/timeout while the remote work succeeded, (b) retry and thereby *duplicate* remote side effects because the idempotency key (built from `trace_id`) differs across re-rooted traces, and (c) be unable to answer \"did this logical ..."
  },
  "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": "69e582259192c083a9f8bd3fe8bd60376f850a2ab77c2d1037eda6c212ebf7ae",
    "verified_classes": [
      "TraceCorrelationLost",
      "FederatedCall"
    ],
    "verified_functions": [
      "dispatch_federated_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TraceCorrelationLost"
    ],
    "sample_fail_closed_invariants": [
      "assert ok.idempotency_key.startswith('corr:')"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "uuid"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
