{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-trace-has-lost-causal-closure-across-sub-agent-fan-out",
  "title": "What structural signals indicate a trace has lost causal closure across sub-agent fan-out",
  "date_of_record": "2026 December 2",
  "scope": "Applies to observability pipelines that reconstruct a single causal trace from spans emitted by a parent agent and N delegated sub-agents (fan-out). Does not apply to single-agent single-span traces, nor to purely sequential delegation where each child span nests under exactly one parent span.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-trace-has-lost-causal-closure-across-sub-agent-fan-out.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-trace-has-lost-causal-closure-across-sub-agent-fan-out.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-trace-has-lost-causal-closure-across-sub-agent-fan-out.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1726,
    "python_slice_tokens": 529,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing spans.\" Missing spans are visible and loud. The failure is **causal closure loss**: the reconstructed trace contains every emitted span, every span has a valid parent reference, and yet the trace is *wrong* because the parent reference chain was satisfied by a *structurally valid but semantically incorrect* edge. This happens at f...",
    "what_was_observed": "A planner agent fans out to five sub-agents (`S1..S5`), each carrying a `trace_id` propagated by the SDK and a `parent_span_id` set to the fan-out span. Sub-agent `S3` times out at the transport layer, is retried by the parent's retry policy, and the retry `S3'` succeeds. Both `S3` (error) and `S3'` (ok) are emitted with the *same* `parent_span_id`. Meanwhile `S4` was cancelled by the parent after `S3'` returned an a...",
    "condition_of_validity": "Timestamp-based dependency inference is valid **only** when the fan-out is strictly sequential per child (no concurrent children share a time window) **and** no child is retried or cancelled. Both conditions must hold. Under any fan-out with `k > 1` concurrent children, the first condition fails by construction. Under any retry or cancellation policy, the se...",
    "decision_boundary": "The decision boundary is: **does the trace need to answer \"why did the agent do this?\" or only \"what did the agent do?\"** - For *what* (latency, error rates, span counts), timestamp reconstruction is adequate and cheap. - For *why* (attribution, replay, post-incident reasoning), closure is mandatory and timestamp inference must be disabled. The boundary is c...",
    "operational_effect": "Downstream consumers of the trace inherit the inversion. A replay/verification agent that trusts the trace will replay `S4`'s cancelled output as an input, producing a divergent result and a false \"replay mismatch\" alarm attributed to nondeterminism—when the actual cause is a reconstruction artifact. Debugging then chases model nondeterminism for days while ..."
  },
  "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": "92ea731edd20b5cafe9e3e2d6ba7f6244f385a27e578cf9788d5db8d758c2331",
    "verified_classes": [
      "CausalClosureError",
      "Span"
    ],
    "verified_functions": [
      "assert_closure"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "CausalClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
