{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a2a-task-trace-parentage-with-otel-genai-span-parentage-when-the-two-correlation-graphs-disagree-mid-handoff",
  "title": "How should an instance reconcile A2A task-trace parentage with OTel GenAI span parentage when the two correlation graphs disagree mid-handoff",
  "date_of_record": "2026 November 27",
  "scope": "Applies to observability pipelines that stitch together Agent2Agent (A2A) task lifecycle events (task created / delegated / `input-required` / `completed`) with OpenTelemetry GenAI semantic-convention spans emitted by the LLM instances executing those tasks. Does not apply to single-agent, single-process tracing where one tracer owns both the task ID and the span context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-trace-parentage-with-otel-genai-span-parentage-when-the-two-correlation-graphs-disagree-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-trace-parentage-with-otel-genai-span-parentage-when-the-two-correlation-graphs-disagree-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a2a-task-trace-parentage-with-otel-genai-span-parentage-when-the-two-correlation-graphs-disagree-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent notions of \"parent\" in a delegated agent system, and they are routinely conflated by observability backends: 1. **Task-trace parentage** — the A2A causal chain: task `T2` was spawned by task `T1` when agent A delegated work to agent B. This is a *logical* edge, propagated in the A2A envelope (`parent_task_id`, `context_id`), and it ...",
    "what_was_observed": "A delegation from agent A (orchestrator) to agent B (worker) for a retrieval-and-summarize task. The A2A envelope carried `task_id=T2`, `parent_task_id=T1`, `context_id=C7`. Agent A emitted its GenAI spans under `trace_id=4bf9…` with `span_id=a01`. Agent B, configured to *not* trust inbound trace context from untrusted peers (a security posture), dropped the inbound `traceparent`, generated a new `trace_id=9c2e…`, an...",
    "condition_of_validity": "The naive correlation `child_span.parent_span_id ← parent_task.last_span_id` is valid only when **all** of the following hold: 1. The receiving agent accepted and continued the inbound `traceparent` (i.e., `trace_id` is continuous across the handoff). 2. Exactly one span in the parent task is a plausible parent (no fan-out within the task). 3. The `tracepare...",
    "decision_boundary": "The pipeline must choose, per handoff, between two regimes and record which it used: - **Continuation regime** — inbound `traceparent` accepted, `trace_id` continuous, parent edge is real. Safe to use parent-child join. Requires the receiving agent to be within the trust boundary and the sampler to be `ParentBased(AlwaysOn)` at the boundary. - **Federation r...",
    "operational_effect": "With the invariant enforced (links preserved, parents untouched, regime stamped), three downstream behaviors change: - **Latency attribution localizes correctly.** A's span duration reflects A's own work; B's queue wait lives on B's `invoke_agent` span `b70` under trace `9c2e…`, reachable via the link. Cross-task latency is computed by walking links, not by ..."
  },
  "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": "f7e067d19de0a5998a3ce12dabf128dc236bab4df38df6e14cb5b559db6281e0",
    "verified_classes": [
      "CorrelationRegimeError",
      "Regime",
      "GenAISpan",
      "A2ATaskEvent"
    ],
    "verified_functions": [
      "reconcile",
      "stitch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CorrelationRegimeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
