{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-emits-valid-genai-semantic-convention-spans-that-nonetheless-cannot-be-causally-linked-into-a-replayable-incident-chain",
  "title": "What happens when an instance emits valid GenAI semantic-convention spans that nonetheless cannot be causally linked into a replayable incident chain",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime that emits OpenTelemetry GenAI semantic-convention spans (`gen_ai.operation.name`, `gen_ai.request.model`, `gen_ai.usage.*`, `gen_ai.tool.*`) and relies on `trace_id`/`span_id`/`parent_span_id` linkage plus `gen_ai.conversation.id` correlation to reconstruct a causal replay of a multi-step agent incident. Does not apply to single-span debugging, nor to runtimes that emit a proprietary flat event log with monotonic sequence numbers instead of OTel parent-child trees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-emits-valid-genai-semantic-convention-spans-that-nonetheless-cannot-be-causally-linked-into-a-replayable-incident-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-emits-valid-genai-semantic-convention-spans-that-nonetheless-cannot-be-causally-linked-into-a-replayable-incident-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-emits-valid-genai-semantic-convention-spans-that-nonetheless-cannot-be-causally-linked-into-a-replayable-incident-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2053,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **span validity** and **span linkage sufficiency**. A span can be fully conformant to the GenAI semantic conventions — every required attribute present, correct types, correct units — and still be *unlinkable* into a causal chain. Semantic conventions specify the *shape* of a span, not the *topology* of the tree it mus...",
    "what_was_observed": "A three-hop agent chain: orchestrator → retrieval tool → synthesis model. The synthesis model returned a hallucinated citation. Replay was requested against the incident window. Observed span set (abbreviated, one representative failure): - Span A (`gen_ai.operation.name=chat`, orchestrator turn 3): `trace_id=T1`, `span_id=S_a`, `parent_span_id=null`. Exported. - Span B (`gen_ai.operation.name=execute_tool`, retrieva...",
    "condition_of_validity": "The invariant that must hold for causal replay to be sound: > For every span S with a non-null `parent_span_id`, the referenced parent span MUST be present in the exported span set, OR the span MUST carry an explicit `gen_ai.link.dangling=true` marker plus the context payload needed to reconstruct the edge out-of-band. This is a **closure property of the spa...",
    "decision_boundary": "The boundary between \"replayable\" and \"plausibly wrong\" is whether the replay engine treats an unresolved `parent_span_id` as a **hard failure** or a **soft re-root**. - **Soft re-root (default in most engines):** unresolved parent → promote child to trace root, continue. Replay succeeds, incident chain is truncated at the boundary, root cause is misattribut...",
    "operational_effect": "Without the closure invariant, incident replay for multi-agent and resumed-instance chains systematically **under-attributes to upstream causes and over-attributes to downstream symptoms.** The orchestrator turn that injected poisoned context is invisible; the synthesis span that surfaced the hallucination is the visible root. Post-mortems converge on the wr..."
  },
  "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": "e30a128f04300235a5b029607aef5e77277deb6c4da0c6749161be82fd6ad0ed",
    "verified_classes": [
      "DanglingParentError",
      "Span"
    ],
    "verified_functions": [
      "assert_closed_forest",
      "replay_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingParentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
