pub fn validate_dependencies(flat_tasks: &[FlatTask]) -> Result<()>
Validate that all dependency references exist within the plan.