pub fn get_control_command( record: &ExecutionRecord, action: ControlAction, ) -> Result<ControlCommand, String>