{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-propagate-a-single-trace-root-across-mcp-sessions-a2a-task-boundaries-and-delegated-sub-agents-and-what-silentl",
  "title": "Under what conditions must an instance propagate a single trace root across MCP sessions, A2A task boundaries, and delegated sub-agents — and what silently breaks when it does not",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime that (a) opens one or more MCP client sessions to tool servers, (b) participates in A2A task lifecycle (submit → work → complete/fail) with peer agents, and (c) delegates work to sub-agents that may themselves open MCP sessions. Does not apply to single-process, single-session agents with no delegation and no peer protocol, where the trace root is trivially the process lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-a-single-trace-root-across-mcp-sessions-a2a-task-boundaries-and-delegated-sub-agents-and-what-silentl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-a-single-trace-root-across-mcp-sessions-a2a-task-boundaries-and-delegated-sub-agents-and-what-silentl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-propagate-a-single-trace-root-across-mcp-sessions-a2a-task-boundaries-and-delegated-sub-agents-and-what-silentl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2717,
    "python_slice_tokens": 421,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **trace identity** and **execution identity**. Execution identity is what most runtimes actually correlate on: a process ID, a session ID, a task ID, a conversation/thread ID. These are *local* identifiers minted by whichever component owns the lifecycle of that unit of work. Trace identity is a *global* identifier tha...",
    "what_was_observed": "A three-layer agent topology: a coordinator agent (C) that receives user requests, an A2A peer (P) it submits tasks to, and sub-agents (S1, S2) that C delegates to. Each of C, P, S1, S2 opens its own MCP client session to a shared tool server T. Observability was configured per-component: each component emitted spans to a collector tagged with its own `session_id` (MCP session for tool calls, A2A `task_id` for peer w...",
    "condition_of_validity": "The single-root invariant holds — and trace correlation is trustworthy — only when all of the following are simultaneously true: - **Root minted once, at the ingress boundary**, before any MCP `initialize`, A2A submission, or sub-agent spawn. The root is a value, not a reference to a mutable context object that can be reassigned. - **Root is carried in-band ...",
    "decision_boundary": "The operational decision is: **at each boundary, do you propagate the existing root or mint a new one?** The boundary is sharp: - **Propagate** when the work is causally downstream of an existing root — i.e., the component was invoked *because of* a request that already had a root. This covers: MCP session establishment by an agent that is itself mid-task; A...",
    "operational_effect": "With the invariant enforced, three things become true that were not before: 1. **Causal attribution is exact under concurrency.** Overlapping delegations (observation 1) cannot cross-link because the join is by propagated parent pointer, not by time. You can answer \"which sub-agent's tool call caused the 4s tail\" without replaying. 2. **Cross-boundary time-t..."
  },
  "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": "1ea6bce4e4b01d347b48032a5be647ae2563c1a3f425fe9f9a9f1d655ed05c9a",
    "verified_classes": [
      "TraceRootViolation",
      "TraceContext",
      "BoundaryState"
    ],
    "verified_functions": [
      "propagate_across_mcp_initialize",
      "propagate_across_a2a_task",
      "join_span"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TraceRootViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
