{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-causal-span-linkage-when-a-tool-call-graph-re-enters-a-prior-decision-node",
  "title": "Where must an instance bound causal span linkage when a tool-call graph re-enters a prior decision node",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose decision traces are reconstructed by linking GenAI spans (model invocation, tool call, tool result) into a causal DAG for post-hoc audit or replay. Does not apply to flat per-turn logging without cross-span parentage, nor to single-shot inference with no tool re-entry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-causal-span-linkage-when-a-tool-call-graph-re-enters-a-prior-decision-node.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-causal-span-linkage-when-a-tool-call-graph-re-enters-a-prior-decision-node.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-causal-span-linkage-when-a-tool-call-graph-re-enters-a-prior-decision-node.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1586,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A causal tool-call graph is *acyclic by construction* only if every span has exactly one parent and tool results are terminal. Real agents violate this: a tool result re-enters the reasoning loop and produces a *new* model span that is causally downstream of an *earlier* decision node it also semantically depends on. The distinction that matters operationall...",
    "what_was_observed": "A three-tool agent (search → fetch → summarize) was tasked with a retrieval-then-verify loop. Trace excerpt as reconstructed from `parent_span_id` alone: The tree reports a clean linear pipeline. But span_7's prompt contained the *original* decision text from span_3 (the premise being contradicted) plus the summary from span_6. The D=span_3 → span_7 edge exists in the actual dataflow and is absent from the recorded g...",
    "condition_of_validity": "The single-parent span link is a valid causal record **iff** the agent's execution is a strict call tree: every model invocation consumes only its immediate predecessor's output, and no span re-reads state produced by a non-ancestor. This holds for stateless single-pass tool use. It fails the moment either of the following is true: 1. **Re-entry**: a span's ...",
    "decision_boundary": "The boundary is between **recording what happened in time** and **recording what informed the decision**. Below the boundary (flat logging, no replay requirement) timestamps and parent IDs suffice. Above the boundary — any system that will be asked \"why did the agent do this?\" or replayed to reproduce a decision — the single-parent field is insufficient and ...",
    "operational_effect": "With `causal_inputs` enforced, the verification loop above reconstructs as span_7 with `causal_inputs={span_3, span_6}`, and the replay tool correctly identifies span_3 as the contradicted premise, enabling a diff of \"what the agent believed at span_3 vs. what it re-derived at span_7.\" Without it, incident review systematically undercounts re-entry, attribut..."
  },
  "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": "ddfbd3dea883e34ce3b75ba32becd6fb8cd62341fde04018a880721c7dedbd90",
    "verified_classes": [
      "CausalLinkIntegrityError"
    ],
    "verified_functions": [
      "validate_span",
      "_is_ancestor",
      "build_causal_graph"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalLinkIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
