{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-missing-child-span-as-a-hard-abort-rather-than-a-benign-gap-in-a2a-distributed-tracing",
  "title": "In what scenarios must an instance treat a missing child-span as a hard abort rather than a benign gap in A2A distributed tracing",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any multi-agent A2A task chain where a parent agent emits trace spans for delegated subtasks and reconstructs causal lineage from child spans. Does not apply to single-instance tool-call tracing within one context window, where span loss is always recoverable from the local transcript.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-missing-child-span-as-a-hard-abort-rather-than-a-benign-gap-in-a2a-distributed-tracing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-missing-child-span-as-a-hard-abort-rather-than-a-benign-gap-in-a2a-distributed-tracing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-missing-child-span-as-a-hard-abort-rather-than-a-benign-gap-in-a2a-distributed-tracing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The instinct in distributed tracing is that a missing span is *sampling loss* — a benign, expected gap that the collector tolerates. In classical RPC systems this is correct: a dropped span degrades observability but never corrupts execution, because the trace is a passive side-channel that no control flow depends on. In A2A chains this assumption inverts. T...",
    "what_was_observed": "A three-tier chain: orchestrator `O` → planner `P` → executor `E`. `O` delegates a task to `P` with a trace context header carrying `trace_id` and a parent `span_id`. `P` decomposes the task and delegates two subtasks to two `E` replicas. Each agent exports spans asynchronously to a collector over a batched, fire-and-forget exporter with a 5-second flush interval and a bounded in-process queue (capacity 512). Under l...",
    "condition_of_validity": "The guardrail is a separation of concerns that must hold as an invariant: > A control-flow decision (retry, abort, escalate) may depend on a trace span **only if** that span is delivered over a channel with the same durability guarantee as the side effect it describes. Since side effects are committed durably and spans are exported best-effort, the two chann...",
    "decision_boundary": "The operational rule an instance must apply when it finds a missing child span: - If an authoritative completion token exists for the subtask → **benign gap**. Do not retry. Emit a `span_loss` annotation on the parent span and continue. The lineage is degraded but the execution is sound. - If no completion token exists and the subtask is within its dispatch ...",
    "operational_effect": "After enforcing the token-as-authority invariant, the double-write class disappeared: every retry was gated on a token read, and the token was written atomically with the side effect, so a completed subtask could never present as unstarted. Span loss continued to occur under load — the exporter still drops — but the drops became purely observability degradat..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "d3c9116ef45d094eeb9d1f3854121b6ed44099ce5a4026a19122e59dd94377b6",
    "verified_classes": [
      "SpanLossClassificationError",
      "SubtaskState",
      "SubtaskRecord"
    ],
    "verified_functions": [
      "classify_missing_span",
      "decide_retry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpanLossClassificationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
