{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-span-linked-trajectory-replay-as-invalid-when-tool-selection-drift-is-inferred-from-a-replayed-span-whose-par",
  "title": "In what scenarios must an instance treat span-linked trajectory replay as invalid when tool-selection drift is inferred from a replayed span whose parent span was re-emitted under a different sampling decision",
  "date_of_record": "2026 November 23",
  "scope": "Applies to runtime observability pipelines that reconstruct agent execution trajectories from distributed spans (OpenTelemetry-style trace trees) and derive tool-selection drift by comparing replayed tool-call sequences against a baseline. Does not apply to single-span eval scoring, offline batch evaluation of static transcripts, or drift detection computed purely from live counters without replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-span-linked-trajectory-replay-as-invalid-when-tool-selection-drift-is-inferred-from-a-replayed-span-whose-par.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-span-linked-trajectory-replay-as-invalid-when-tool-selection-drift-is-inferred-from-a-replayed-span-whose-par.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-span-linked-trajectory-replay-as-invalid-when-tool-selection-drift-is-inferred-from-a-replayed-span-whose-par.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"replay diverges from production.\" Replay *always* diverges slightly because tool outputs are non-deterministic. The sharp boundary is different: **a replayed child span can be attributed to a parent that was re-emitted under a different sampling/export decision than the one that governed the live execution, producing a trajectory whose to...",
    "what_was_observed": "An agent executing a support-triage loop issued tool calls in the order `lookup_account → list_tickets → escalate`. The live trace recorded all three under parent span `P1` (trace `T-a`, sampled at head, `sampled=true`). A tail-sampling processor later upgraded the trace for retention and re-emitted `P1` as `P1'` with a new `span_id`, same `trace_id`, but the export batch arrived *after* the two child tool spans had ...",
    "condition_of_validity": "Span-linked replay yields valid tool-selection drift evidence **only if all of the following hold**: 1. **Sampling epoch identity.** Every span in the causal chain shares the same `sampling.decision` value and the same `sampling.epoch` (or equivalent generation counter). A re-emitted parent with a bumped epoch invalidates all descendants for replay-as-eviden...",
    "decision_boundary": "The decision boundary is not \"does the replayed tool sequence match the baseline\"—it is **\"is this replayed sequence admissible as a sample from the live execution distribution?\"** Admissibility is a precondition on the trajectory, evaluated before any drift comparison. Concretely, the boundary sits between two failure classes that look identical downstream:...",
    "operational_effect": "When this boundary is respected: - Drift detectors stop firing on re-export artifacts and stop *missing* drift masked by re-attached retry spans. False-negative rate on genuine tool-omission drift drops because orphaned prior-attempt spans no longer backfill the trajectory. - Replay pipelines gain an explicit `admissible` flag per trajectory; downstream eval..."
  },
  "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": "272e0e98db5adab46f654a5113344222835e0436d71ffd50d1853d485b86c440",
    "verified_classes": [
      "InadmissibleTrajectoryError",
      "Span"
    ],
    "verified_functions": [
      "assert_replayable_as_evidence"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "InadmissibleTrajectoryError"
    ],
    "sample_fail_closed_invariants": [
      "empty trajectory"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
