{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-emit-a-parent-span-when-the-handoff-graph-s-causal-parent-is-itself-a-late-arriving-peer",
  "title": "Where must an instance refuse to emit a parent span when the handoff graph's causal parent is itself a late-arriving peer",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any multi-agent system that emits OpenTelemetry-style spans under a GenAI semantic convention extension where `gen_ai.handoff.parent_span_id` is derived from a peer agent's runtime-asserted causal token rather than from a locally held span context. Does not apply to single-process agents, to handoffs mediated by a synchronous in-process function call, or to trace topologies where the orchestrator is the sole span emitter.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-emit-a-parent-span-when-the-handoff-graph-s-causal-parent-is-itself-a-late-arriving-peer.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-emit-a-parent-span-when-the-handoff-graph-s-causal-parent-is-itself-a-late-arriving-peer.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-emit-a-parent-span-when-the-handoff-graph-s-causal-parent-is-itself-a-late-arriving-peer.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2093,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two mutually incompatible readings of what a \"causal parent\" means in a handoff graph, and the GenAI semantic convention extension proposals do not currently force a choice between them: 1. **Span-tree parentage** — the parent is the span that was *open* on the emitting instance when the child work began. This is a local, monotonic, always-availabl...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) using a handoff-graph extension that carried `gen_ai.handoff.causal_token` as a signed opaque blob. On the happy path, the planner emitted span `P`, embedded `P.span_id` inside the causal token, and passed the token to the executor. The executor opened span `E` with `parent_span_id = P.span_id` and emitted immediately. The auditor opened span `A` with `parent_span...",
    "condition_of_validity": "The invariant that makes causal parentage sound is: > An instance may emit a child span with a remote causal parent **only if** it holds a verifiable, non-retracted causal token whose referenced parent span is either (a) already durably exported and acknowledged, or (b) guaranteed to be exported within the collector's assembly window, and **only if** the tok...",
    "decision_boundary": "The boundary between \"emit with remote parent\" and \"emit unresolved-with-link\" is determined by a single predicate evaluated at span-start time, not at span-end time: If `resolvable(token)` is true, emit with `parent_span_id = token.span_id`. If false, emit with `parent_span_id = null`, `gen_ai.handoff.parent_status = \"unresolved\"`, and a `Link` to `token.sp...",
    "operational_effect": "Adopting the link-then-resolve discipline changes three operational properties: - **Trace assembly becomes two-phase.** The collector must support late parent resolution: an unresolved span carries a link, and a subsequent resolution event (the parent's export ack, or an explicit resolve message) rewrites `parent_span_id` and clears `parent_status`. Backends..."
  },
  "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": "f4b145e04b84d3650b2d5728c9462cb0f8a80df77f6dd808f8497ec9249b2b77",
    "verified_classes": [
      "CausalParentUnresolvable",
      "SpanIdCollision",
      "CausalToken",
      "EmittedSpan"
    ],
    "verified_functions": [
      "emit_child_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalParentUnresolvable",
      "SpanIdCollision"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
