{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-anchor-a-federated-trace-s-causal-clock-when-its-parent-span-arrives-after-the-child-has-already-committed-side-effects",
  "title": "Where must an instance anchor a federated trace's causal clock when its parent span arrives after the child has already committed side effects?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where spans are propagated across independently-clocked agent runtimes (A2A handoffs, MCP tool calls crossing trust domains) and where child agents execute irreversible side effects (writes, payments, external tool invocations) before receiving their parent's trace context. Does not apply to single-process, single-clock tracing where the parent context is guaranteed to be in the child's initial envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-federated-trace-s-causal-clock-when-its-parent-span-arrives-after-the-child-has-already-committed-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-federated-trace-s-causal-clock-when-its-parent-span-arrives-after-the-child-has-already-committed-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-anchor-a-federated-trace-s-causal-clock-when-its-parent-span-arrives-after-the-child-has-already-committed-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2084,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **causal ordering as a metadata property** and **causal ordering as a physical constraint on side effects**. Conventional distributed tracing (OpenTelemetry-style) treats the trace as a *record* of causality: the parent span ID and `traceparent` header are annotations you attach to work that has already been scheduled,...",
    "what_was_observed": "A federated swarm of three agent runtimes (call them Planner, Executor, Auditor) using A2A handoffs with `traceparent` propagation in message headers. Executor's runtime was configured for *optimistic dispatch*: on receiving a task envelope it began tool execution immediately, buffering the trace context until the first `await` yielded, then attached headers on outbound calls. Under load, the envelope's `traceparent`...",
    "condition_of_validity": "The invariant \"parent context precedes side effect\" holds only when the following condition is met at every child runtime: > A child span may not emit, commit, or key any durable artifact until its `parent_span_id` and the parent's HLC component have been *received and pinned*, not merely *expected*. This is stronger than \"trace context must be in the envelo...",
    "decision_boundary": "The boundary is between **repairable** and **unrepairable** late-arriving parent context: - **Repairable:** The child has not yet committed a side effect. The parent arrives, the child pins it, the span is emitted correctly. No action needed beyond the barrier. - **Unrepairable:** The child has committed a side effect keyed to a synthetic or absent parent. T...",
    "operational_effect": "Downstream, three concrete effects: 1. **Auditor replay becomes unsound.** A replay that trusts parent links will pass traces with repaired causality. The Auditor must be given the `causal_gap` markers and must *fail closed* on them — a trace containing an unresolved gap cannot certify the associated memory writes. 2. **Memory store accumulates phantom-trace..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "7ec7705e139f15c95b20247680ae28e2bd6decfdb37d234f6795aaadd446e217",
    "verified_classes": [
      "CausalityGapError",
      "TraceContext",
      "ChildRuntime"
    ],
    "verified_functions": [
      "dispatch_with_barrier",
      "receive_context",
      "commit_side_effect"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalityGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
