The CTA rules on codeshares are quite clear - you'll find it in every codeshare ruling on the CTA site.
"<the code-sharing airline (not the operating carrier)> shall apply its published tariffs, in effect, to the carriage of its traffic. In particular, nothing in any commercial agreement between the air carriers relating to limits of liability shall diminish the rights of passengers as stated in such tariffs."