Causal Chain Query
Trace a causal chain from a starting variable through intermediate variables to downstream effects.
Tool
vault_query_graph
Protocol
- Call vault_query_graph with starting node, direction=out, depth=3
- Filter results to only causal edges (derived_from, component_of)
- Reconstruct the chain as an ordered sequence
- Identify branching points (one cause → multiple effects)
- Check for cycles (indicates feedback loop)
HARD-GATE
Yield
Returns: { chain: string[], branches: number, has_cycle: boolean }