pub fn select_nodes(
nodes: Vec<ExpandedNode>,
sel: &RunSelection,
has_matrix: bool,
) -> CliResult<Vec<ExpandedNode>>Expand description
Apply sel to nodes (expanded, in BFS order) and return the running
subset, order-preserved. Errors on unknown tokens, an empty run set, or a
dependency violation under the active include_parents policy.
has_matrix is false for the single anonymous invocation (no matrix:);
matrix-only selectors (--select/--only/--skip/--tag) are then a hard
error. The status gate still applies to the lone row.