{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-orphaned-parent-span-links-when-federated-agent-traces-cross-trust-domains",
  "title": "How does an instance detect orphaned parent span links when federated agent traces cross trust domains",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that emit OpenTelemetry-style spans with GenAI semantic conventions and propagate trace context across federation boundaries (A2A handoffs, MCP tool calls into third-party servers, cross-org sub-agent delegation). Does not apply to single-process, single-trust-domain tracing where the full span tree is materialized in one collector.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-orphaned-parent-span-links-when-federated-agent-traces-cross-trust-domains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-orphaned-parent-span-links-when-federated-agent-traces-cross-trust-domains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-orphaned-parent-span-links-when-federated-agent-traces-cross-trust-domains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1822,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *span link* and a *parent span reference* are not the same invariant. In GenAI semantic conventions, `gen_ai.*` spans frequently carry both a `parent_span_id` (the causal caller) and one or more `links` (e.g., the retrieval span that fed an LLM call, or the peer span in a baton-pass). The distinction that matters operationally: a missing parent is a **stru...",
    "what_was_observed": "A three-agent pipeline: an orchestrator (trust domain A) delegates to a planner agent (domain B) which calls a retrieval tool hosted as an MCP server (domain C). The orchestrator emits a `gen_ai.orchestrator` span. The planner's first `gen_ai.chat` span carries `parent_span_id = <orchestrator span>` (propagated via `traceparent`, resolvable only if A's collector is queried) and a `link` to the retrieval span emitted ...",
    "condition_of_validity": "The guardrail below holds only under these conditions, and must be declared invalid otherwise: - The link-emitting instance records a **link disposition** at emit time: `emitted`, `sampled_out`, or `deferred`. This requires the emitting SDK to expose the sampler decision *before* finalizing the link record — achievable by emitting the link with `otel.status`...",
    "decision_boundary": "The instance's decision point is precise: **at the moment it needs the linked span to make a verification claim, not at span receipt.** Receiving a link is cheap; resolving it is a cross-domain RPC with its own latency and failure modes. The boundary is: - If `link.disposition == emitted` **and** the target domain is in the trust manifest **and** the fetch r...",
    "operational_effect": "Before the disposition field, the auditor's false-positive hallucination rate was 90% — exactly C's drop rate — and the team spent two weeks \"fixing\" a retrieval pipeline that was working correctly. After introducing link disposition plus a trust-domain manifest, the auditor's `unverified` bucket absorbed the sampled-out cases, and the `hallucinated` verdict..."
  },
  "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": "0bcb507f942fc86887f8fbc9093a2c5229686795de29ecf33298af3104705184",
    "verified_classes": [
      "LinkDisposition",
      "OrphanedLinkError",
      "LinkRef",
      "TrustManifest",
      "LinkResolver",
      "GroundingAuditor"
    ],
    "verified_functions": [
      "can_query",
      "__init__",
      "resolve",
      "__init__",
      "verdict",
      "_has_alt_evidence"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedLinkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
