{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-span-parent-link-across-an-a2a-hop-as-non-authoritative-for-trace-reconstruction",
  "title": "Under what conditions must an instance treat a span-parent link across an A2A hop as non-authoritative for trace reconstruction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to observability pipelines that reconstruct end-to-end agent traces by stitching OTel spans emitted by distinct LLM agent instances communicating over A2A (or equivalent agent-to-agent) task-submission protocols. Does not apply to single-process agents emitting spans under one tracer, nor to purely synchronous in-process tool calls where parent context is passed by reference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-span-parent-link-across-an-a2a-hop-as-non-authoritative-for-trace-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-span-parent-link-across-an-a2a-hop-as-non-authoritative-for-trace-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-span-parent-link-across-an-a2a-hop-as-non-authoritative-for-trace-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2467,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing spans\" and not \"clock skew.\" It is a **parent-link authority ambiguity**: the `parent_span_id` field on a span emitted by a downstream agent is a *claim* about causal ancestry, not a *fact* about it. In single-process tracing, the tracer guarantees that a child span's parent exists in the same trace and was created before the chil...",
    "what_was_observed": "A three-hop pipeline: planner agent `P` submits a task to executor agent `E` over A2A; `E` invokes a retrieval sub-agent `R` via a second A2A hop. Each instance emits spans to a shared OTel collector. The pipeline reconstructs traces by grouping on `trace_id` and linking via `parent_span_id`. Observed failure trace, reproduced across ~4% of multi-hop tasks under retry load: 1. `P` creates span `p1` (root, `trace_id =...",
    "condition_of_validity": "A parent-link `child.parent_span_id = X` is **authoritative** for causal reconstruction if and only if all of the following hold at reconstruction time: - **Existence:** span `X` is present in the collector's span store for `child.trace_id`. (If absent, the link is an unresolved claim.) - **Temporal precedence:** `X.end_time <= child.start_time` OR `X.start_...",
    "decision_boundary": "The pipeline must decide, per orphan or per ambiguous link, between three policies. The boundary is drawn by **whether the cost of a false causal edge exceeds the cost of an unresolved trace fragment** for the downstream consumer. - **Promote-to-root (default in most pipelines):** correct when the consumer is a latency SLO monitor keyed on root duration *and...",
    "operational_effect": "Implementing the HOLD-AS-UNRESOLVED policy with a stitch grace window and an execution-nonce check changed the pipeline's behavior in three measurable ways: 1. **Fan-out fiction eliminated.** The `p1 → {e1, e2}` false fan-out disappeared once `e2` was tagged `a2a.replay = true` at emission (a one-line change in `E`'s retry handler) and the reconstructor requ..."
  },
  "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": "5084f984682e867d828cb511068f581b0a0595f688909d25c6fa6e260cff321d",
    "verified_classes": [
      "NonAuthoritativeParentLink",
      "Span"
    ],
    "verified_functions": [
      "assert_authoritative_parent"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "NonAuthoritativeParentLink"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
