{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-trace-correlation-rather-than-repair-a-broken-span-parent-chain",
  "title": "When must an instance abort trace correlation rather than repair a broken span parent chain?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to cross-vendor observability pipelines that ingest agent spans (LLM calls, memory reads/writes, tool invocations) emitted by heterogeneous SDKs and stitch them into a single causal trace via parent/child span IDs. Does not apply to single-vendor, single-SDK telemetry where span context is generated and consumed by one runtime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-trace-correlation-rather-than-repair-a-broken-span-parent-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-trace-correlation-rather-than-repair-a-broken-span-parent-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-trace-correlation-rather-than-repair-a-broken-span-parent-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1576,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct classes of trace-correlation defect, and conflating them produces silent data corruption: 1. **Missing linkage** — a span arrives with no `parent_span_id` or with a parent that has not yet been ingested. This is a *timing* problem, resolvable by a bounded reorder/join window. Repair (deferred stitching) is legitimate. 2. **Contradictor...",
    "what_was_observed": "A three-vendor agent stack: Vendor A (orchestrator, emits `agent.step` spans), Vendor B (memory service, emits `memory.read`/`memory.write` spans with its own `trace_id` namespace), Vendor C (tool gateway, emits `tool.call` spans). A join service correlated them by `trace_id` + `parent_span_id`. Trigger condition: Vendor B's SDK, under retry, re-emitted a `memory.write` span with a *regenerated* span ID but a *reused...",
    "condition_of_validity": "The abort-rather-than-repair rule is valid only when all of the following hold, and the pipeline must *check* them rather than assume: - Parent spans carry both `start_time` and `end_time`, and the emitter is trusted to close spans (a parent that never closes cannot bound its children's validity). - Cross-vendor clock skew is bounded and known (e.g., NTP-syn...",
    "decision_boundary": "The boundary is a single predicate evaluated per candidate edge: If `accept` is false, the instance must **not** attempt to find an alternative parent. It must emit the child with `correlation_status = \"rejected_contradictory\"`, preserve the raw `parent_span_id` as `claimed_parent` for audit, and exclude the subtree from causal-order reconstruction. The dist...",
    "operational_effect": "After adopting the abort rule, the pipeline's `uncorrelated` rate rose from 0.3% to 1.1% — the delta being exactly the contradictory subtrees that were previously mis-stitched. The false-regression eval failures dropped to zero. The cost is that ~0.8% of traces are now explicitly partial; downstream consumers must handle `correlation_status != \"ok\"` by skipp..."
  },
  "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": "67cbdb62445afe4e4083756ac869f42d6ca4848523bdf56f5a7540e28167d4bb",
    "verified_classes": [
      "ContradictoryTraceLink"
    ],
    "verified_functions": [
      "correlate_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ContradictoryTraceLink"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
