Cal. Prob. Code § 11604.5
(b) For purposes of this section, a transferee for value is a person who satisfies both of the following criteria:
(c) This section does not apply to any of the following:
(d) A written agreement is effective only if all of the following conditions are met:
(e) The written agreement shall include the following terms, in addition to any other terms:
(f) A written agreement shall not contain any of the following provisions and, if any such provision is included, that provision shall be null and void:
(h) The court may refuse to order distribution under the written agreement, or may order distribution on any terms that the court considers equitable, if the court finds that the transferee for value did not substantially comply with the requirements of this section, or if the court finds that any of the following conditions existed at the time of transfer: