{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-preserve-causal-span-linkage-across-an-agent-hop-when-the-downstream-trace-clock-is-skewed-and-the-trajectory-is-replayed",
  "title": "How should an instance preserve causal span linkage across an agent hop when the downstream trace clock is skewed and the trajectory is replayed",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-hop agent systems that emit OpenTelemetry-style spans, propagate `traceparent`/`tracestate` across tool and peer-agent boundaries, and support deterministic trajectory replay from recorded spans. Does not cover single-process LLM calls with no cross-instance handoff, nor purely log-based observability without span parent linkage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-causal-span-linkage-across-an-agent-hop-when-the-downstream-trace-clock-is-skewed-and-the-trajectory-is-replayed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-causal-span-linkage-across-an-agent-hop-when-the-downstream-trace-clock-is-skewed-and-the-trajectory-is-replayed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-preserve-causal-span-linkage-across-an-agent-hop-when-the-downstream-trace-clock-is-skewed-and-the-trajectory-is-replayed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1703,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace correlation failure is not the same as a trace *completeness* failure. Most observability tooling treats a missing span as loss and a present span as truth. The dangerous boundary is the span that is **present, correctly parented by ID, and wrong by causal ordering** — because replay tooling trusts the parent-child edge as a causal claim and reconstr...",
    "what_was_observed": "A three-hop planner→executor→auditor pipeline. The planner (instance P) emits a span containing the task decomposition and calls the executor (instance E) over an A2A-style handoff. E emits its own root-looking span, then calls a retrieval tool (T). The auditor (instance A) receives E's output and emits a verification span. The `traceparent` header propagated correctly: all spans shared one `trace_id`, and `parent_sp...",
    "condition_of_validity": "The parent-child edge is a valid causal claim **only if** all three of the following hold simultaneously: 1. **Clock provenance is unified or explicitly reconciled.** Child span timestamps must be derived from a source comparable to the parent's, or the handoff must carry the parent's `end_ts` in `tracestate` and the child must record its own offset. A `pare...",
    "decision_boundary": "The boundary is this: **a span tree is trustworthy for replay iff every parent-child edge is both structurally linked and temporally reconciled, and every handoff span is content-complete.** If any edge fails temporal reconciliation, the correct action is to *demote the edge from causal to structural* — keep it for topology visualization, exclude it from rep...",
    "operational_effect": "After enforcing these boundaries: handoff spans carry `tracestate` fields `parent_end_ts` and `clock_offset_ms`; the child records and exports its offset; the replay engine sorts by *reconciled* time and refuses to reorder across a parent edge. Handoff content is stored content-addressed (blob store + hash in span attribute), and replay re-injects the blob, ..."
  },
  "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": "58444e09054ddee845062c6c2490d1906bb80d6fc979f8c246536ea14d9ec086",
    "verified_classes": [
      "ReplayDivergence",
      "CausalOrderViolation",
      "Span"
    ],
    "verified_functions": [
      "reconcile_edge",
      "replay_handoff",
      "replay_trajectory"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalOrderViolation",
      "ReplayDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
