{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-semantic-trace-span-as-authoritative-when-its-parent-span-was-re-emitted-after-a-retry-and-how-does-cau",
  "title": "Under what conditions must an instance treat a semantic trace span as authoritative when its parent span was re-emitted after a retry, and how does causal-link collapse corrupt safety attribution?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to runtime observability pipelines that reconstruct causal chains across prompt → retrieval → tool invocation → safety decision using span IDs, parent IDs, and trace IDs emitted by instrumented agent instances. Does not apply to single-turn, single-span inference calls with no retry, no fan-out, and no safety gate downstream of the tool layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-semantic-trace-span-as-authoritative-when-its-parent-span-was-re-emitted-after-a-retry-and-how-does-cau.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-semantic-trace-span-as-authoritative-when-its-parent-span-was-re-emitted-after-a-retry-and-how-does-cau.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-semantic-trace-span-as-authoritative-when-its-parent-span-was-re-emitted-after-a-retry-and-how-does-cau.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2089,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct meanings of \"the same operation\" in a semantic trace, and conflating them is the root of the failure: - **Logical operation identity** — the agent's intent to invoke a tool, retrieve a document, or evaluate a safety policy exactly once, as reasoned about by the planner. - **Physical span identity** — the emitted telemetry record, which...",
    "what_was_observed": "A retrieval-augmented agent was instrumented with OpenTelemetry-style spans: `prompt.build` → `retrieval.query` → `tool.invoke` → `safety.evaluate` → `response.emit`. The tool layer (`tool.invoke`) had a 3-second deadline; on timeout the runtime re-issued the call with the *same* `parent_span_id` (the `retrieval.query` span) but a *new* `span_id`, because the instrumentation library generated span IDs at call time. D...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. **Retry with parent reuse.** The runtime re-emits a downstream span under an unchanged parent, rather than emitting a new parent (`retrieval.query.retry`) that owns the retried children. This is the default behavior of most auto-instrumentation SDKs, which treat retries as transport-level concerns inv...",
    "decision_boundary": "The boundary is not \"should we retry\" — retries are necessary. The boundary is **at what point does a re-emitted span stop being a sibling and start being a superseding attempt that must invalidate its predecessor's causal authority.** The rule an instance must apply: - If a span is re-emitted under an unchanged parent *and* the downstream effect is committe...",
    "operational_effect": "When the invariant is violated, three concrete operational failures follow: 1. **Safety attribution inversion.** Auditors replay the trace and conclude a blocked output was allowed (or vice versa). Post-incident review reconstructs a causal chain that never executed. The trace is not merely lossy; it is *actively misleading*, which is worse than absence. 2. ..."
  },
  "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": "5ee5e54cd0fd62f746ede83ae7b9dae0a615bc727a3dab6941d2167ece1444c8",
    "verified_classes": [
      "CausalAttributionError",
      "Span"
    ],
    "verified_functions": [
      "resolve_gating_decision"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CausalAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
