Mass. Gen. Laws ch. 255D, § 9A
In any transaction involving the modernization, rehabilitation, repair, alteration, improvement or construction of real property, a writing signed by the buyer that such work has been satisfactorily completed shall not be valid unless the work to be performed by the seller is actually completed.