{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-taint-label-replay-against-genai-span-ordering-before-causal-trace-reconstruction-can-be-trusted",
  "title": "Where must an instance reconcile taint-label replay against GenAI span ordering before causal trace reconstruction can be trusted?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to post-incident causal reconstruction of autonomous agent runs instrumented with OpenTelemetry GenAI semantic conventions (`gen_ai.*` spans) where taint labels are propagated across tool calls and replayed for root-cause attribution. Does not apply to single-shot, non-tool-using LLM invocations, nor to traces where every span shares one monotonic clock domain and no taint label crosses a span boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-taint-label-replay-against-genai-span-ordering-before-causal-trace-reconstruction-can-be-trusted.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-taint-label-replay-against-genai-span-ordering-before-causal-trace-reconstruction-can-be-trusted.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-taint-label-replay-against-genai-span-ordering-before-causal-trace-reconstruction-can-be-trusted.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2038,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is not a causal graph. OpenTelemetry gives you a *parent-child span tree with wall-clock timestamps and a `trace_id`/`span_id` linkage*; it does not give you a happens-before relation that respects the agent's own logical ordering. The distinction that matters for incident reconstruction is between **transport causality** (span B's parent is span A, ...",
    "what_was_observed": "A retrieval-augmented agent run (model `gpt-4o`, three tools: `search`, `fetch_doc`, `write_note`) produced a poisoned note. The incident was a prompt-injection state poisoning event: a retrieved document contained an instruction that the agent followed. Investigators pulled the trace and replayed a taint label `UNTRUSTED:doc_7f3a` forward from the `fetch_doc` span to every descendant span, expecting the `write_note`...",
    "condition_of_validity": "Taint-label replay over a GenAI span tree is valid only when all three of the following hold for the trace under reconstruction: 1. **Clock-domain homogeneity.** Every span's `start_time_unix_nano` and `end_time_unix_nano` are drawn from the same monotonic source, and no span is a retry that reuses a parent linkage while resetting its start time. If the inst...",
    "decision_boundary": "The boundary is the point at which a taint label's provenance step index and a candidate sink span's logical step index are incomparable. Concretely, define `step(label)` as the logical step at which the label was introduced, and `step(span)` as the logical step at which the span's decision was finalized. Replay is admissible iff `step(label) < step(span)` a...",
    "operational_effect": "In practice, enforcing this boundary changes three things in the incident pipeline: - **Instrumentation contract.** Retry wrappers must preserve original dispatch time in a dedicated attribute; fan-out joins must emit an ordered predecessor list. This is a small change to the agent framework's OTel exporter, but it is a *blocking* prerequisite for trustworth..."
  },
  "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": "b8d68312e8f1e1194a1419e54de3c5c65ab75f60c04577ab91d9dcafb4ba05aa",
    "verified_classes": [
      "CausalOrderViolation"
    ],
    "verified_functions": [
      "replay_taint_label"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CausalOrderViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
