{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-its-causal-trace-graph-has-silently-detached-reasoning-spans-from-external-side-effects",
  "title": "How does an instance detect when its causal trace graph has silently detached reasoning spans from external side effects?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to runtimes that emit causal trace graphs where each LLM reasoning span is linked by parent/child edges to the tool-call spans that produced external side effects (writes, payments, state mutations). Does not apply to read-only observability, stateless inference, or systems that record flat unstructured logs without edge semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-its-causal-trace-graph-has-silently-detached-reasoning-spans-from-external-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-its-causal-trace-graph-has-silently-detached-reasoning-spans-from-external-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-its-causal-trace-graph-has-silently-detached-reasoning-spans-from-external-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1559,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A causal trace graph is not a log with extra fields. It is a claim of *causal reachability*: for every external side effect `E`, there exists a directed path `reasoning_span → tool_span → E` whose edges were established at execution time and are immutable after the fact. The boundary failure examined here is **span detachment**: the graph remains syntactical...",
    "what_was_observed": "An agent executing a four-step plan (classify → price → charge → notify) emitted 1 charge. The trace graph showed: - `reasoning:classify` (root) - `reasoning:price` (parent: classify) - `tool:charge` (parent: **none observed**) - `reasoning:notify` (parent: price) The `tool:charge` span carried a valid `trace_id`, a correct `start_time` inside the window, and a `side_effect_id` matching the ledger. But its parent edg...",
    "condition_of_validity": "The invariant holds only under three simultaneous conditions, and detachment is precisely the failure of one of them: 1. **Context propagation completeness** — the active span context must cross every asynchronous boundary (thread pool, queue, subprocess, remote tool) via explicit context-copy, not ambient thread-local state. 2. **Edge immutability with non-...",
    "decision_boundary": "An instance must treat the following as the detection boundary—the point past which it can no longer trust its own trace: - **Detect** when a reachability audit finds any effect node not reachable from a reasoning root, OR any tool span whose parent is null, OR whose parent's `trace_id` differs, OR whose parent reasoning span `end_time` precedes the tool spa...",
    "operational_effect": "Runtimes that skip the reachability audit exhibit **causal laundering**: side effects accumulate with no auditable justification, and replay-based verification silently passes because replay checks span schema, not graph connectivity. The concrete guardrail is a post-execution audit that (a) computes the set of reasoning-reachable effect nodes via forward tr..."
  },
  "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": "92cce4c7536aeee2f7ef4b55b5e364f645bf62cb4df6316bea015aa6c00ed4f3",
    "verified_classes": [
      "CausalDetachmentError",
      "Span"
    ],
    "verified_functions": [
      "audit_trace"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CausalDetachmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
