braintools.cogtask.phase_tree_is_variable

braintools.cogtask.phase_tree_is_variable#

braintools.cogtask.phase_tree_is_variable(phase)[source]#

Walk a phase tree and return True if any node declares is_variable = True.

Used by Task to decide whether to allocate variable-length buffers and dispatch through execute_phase_packed. Pure structural walk; runs at construction time, no ctx needed.

Return type:

bool