Hi Dayzman,
"It seems that if an inventor hires an attorney to prepare and file a patent, the inventor would need to provide a rather detailed description of the invention before entering a contract. Is it typical or part of the attorney's professional conduct for him/her to advice the client if he/she thinks the invention might not be patentable, e.g., it might fail the obviousness criteria? What if the attorney is given a list of related prior art?"
Was it part of the Engagement Agreement that a patentability opinion be provided? Was a patentability opinion offered (for a fee) and turned-down? How long was the prior art list- 3 pieces of art, or 100? And was it part of the engagement that the list be reviewed in detail? How have you determined that the invention is obvious?- Remember that hindsight is always 20/20.
Whether something is patentable is not always a "black-and-white" determination, and often falls in a grey area, especially regarding obviousness. So with this in mind, almost all inventions might not be patentable. A patent attorney has a duty not to file an application that is believed to be unpatentable. If the invention falls into the "grey area" of patentability, and still filed the application, then I wouldn't think that the attorney violated any duty. That being said, when a client provides prior art to me (or if I know of some prior art) that to me substantially affects patentability, and even if no patentability opinion is requested, I still would mention generally that questions about patentability could exist and if it is desired to proceed with the application I will, otherwise I can provide a patentability opinion or cease work on the case. Required from a professional standpoint, probably not, but I do so anyways.
Good luck.