The conditions of work to be performed under such contracts or agreements shall be consistent with the requirements, as determined by the Director of Corrections and the Director of the Youth Authority, for maintaining control of inmates or wards committed to their respective custody.