{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reconcile-divergent-span-parentage-across-asynchronous-observability-exporters-before-trusting-a-reconstructed-deci",
  "title": "In what scenarios must an instance reconcile divergent span-parentage across asynchronous observability exporters before trusting a reconstructed decision trace",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that emit OpenTelemetry-style spans (prompt lineage, retrieval provenance, tool/decision spans) through two or more asynchronous exporters whose flush order is not coordinated. Does not apply to single-exporter, synchronous, in-process trace assembly where span parentage is written before the child span closes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reconcile-divergent-span-parentage-across-asynchronous-observability-exporters-before-trusting-a-reconstructed-deci.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reconcile-divergent-span-parentage-across-asynchronous-observability-exporters-before-trusting-a-reconstructed-deci.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reconcile-divergent-span-parentage-across-asynchronous-observability-exporters-before-trusting-a-reconstructed-deci.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not lost telemetry. It is *mis-parented* telemetry that is individually complete and internally consistent. When a retrieval-provenance exporter (vector store client, reranker) and a decision-trace exporter (agent loop, tool calls) flush on independent schedules, the reconstructed trace can attribute a retrieved chunk to the wrong reasoning st...",
    "what_was_observed": "A multi-step agent (planner → retriever → synthesizer → tool-caller) emitted spans to two collectors. The decision-trace exporter batched on a 5s timer; the retrieval-provenance exporter flushed on span-close with sub-100ms latency. Each span carried a `trace_id` and a `parent_span_id` assigned at span creation by the runtime, so the *intended* parentage was correct in every span. The corruption arose at the join. Th...",
    "condition_of_validity": "The reconstruction is trustworthy only when the following invariant holds at join time, checked per trace: 1. **Parentage-attribute coherence:** for every span with a `parent_span_id`, the child's immutable provenance attributes (consumed chunk IDs, tool-call arguments, prompt hash) must be a subset of, or derivable from, the parent's emitted outputs. A synt...",
    "decision_boundary": "An instance must **distrust and re-derive** the trace (rather than accept it) when any of the following hold: - Two or more child spans of the same parent carry overlapping or identical `current_step` snapshots but disjoint output attribute sets — a sign of pointer race. - A child's consumed-provenance attribute set is disjoint from its parent's produced-out...",
    "operational_effect": "When the boundary is crossed and the pipeline re-derives parentage from immutable attributes rather than trusting `parent_span_id`, three things change: 1. **False-positive verification collapses.** Auditor replays that previously flagged correct citations as hallucinated (because they walked the wrong retriever's provenance) resolve against the attribute-de..."
  },
  "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": "9a941277c358b15bddd92f3d36faee56bf5777ec24ffaa3437ae6f7f3d0d1e7d",
    "verified_classes": [
      "ParentageIncoherenceError",
      "Span"
    ],
    "verified_functions": [
      "validate_trace",
      "audit_decision_trace"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ParentageIncoherenceError"
    ],
    "sample_fail_closed_invariants": [
      "no span carries consumed-provenance attributes"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
