Section 29E. (a) As used in this section the following words shall have the following meanings, unless the context clearly requires otherwise:
''Contract for construction'', a contract for which a lien may be established under sections 2 or 4 of chapter 254 on a project for which the person whose contract with the project owner has an original contract price of $3,000,000 or more; provided, however, this shall not include projects containing or designed to contain at least 1 but not more than 4 dwelling units.
''Insolvent'', insolvent as defined under federal bankruptcy law or being a debtor in a proceeding commenced under federal bankruptcy law or under the corresponding law of another country, or being a debtor in a receivership proceeding or having made an assignment for the benefit of creditors.
(b) A communication required in this section to be in writing may be submitted in electronic form and by electronic means.
(c) Every contract for construction shall provide reasonable time periods within which: (i) a person seeking payment under the contract shall submit written applications for periodic progress payments; (ii) the person receiving the application shall approve or reject the application, whether in whole or in part; and (iii) the person approving the application shall pay the amount approved. The time periods for each application for a periodic progress payment shall not exceed: (i) for submission, 30 days, beginning with the end of the first calendar month occurring at least 14 days after the person seeking payment has commenced performance; (ii) for approval or rejection, 15 days after submission; provided, however, that the time period, as applicable to approval or rejection by the person at each tier of contract below the owner of the project, may be extended by 7 days more than the time period applicable to the person at the tier of contract above the person; and (iii) for payment, 45 days after approval, unless the payment is subject to the condition of receipt of payment by a third person but only to the extent enforceable under subsection (e). An application for a periodic progress payment which is neither approved nor rejected within the time period shall be deemed to be approved unless it is rejected before the date payment is due. A rejection of an application for a periodic progress payment, whether in whole or in part, shall be made in writing and shall include an explanation of the factual and contractual basis for the rejection and shall be certified as made in good faith. A rejection of an application for a periodic progress payment shall be subject to the applicable dispute resolution procedure. A provision in the contract which requires a party to delay commencement of the procedure until a date later than 60 days after the rejection shall be void and unenforceable.
(d) Every contract for construction shall provide a reasonable time period within which a written request submitted by a person seeking an increase in the contract price shall be approved or rejected, whether in whole or in part. The time period shall not exceed 30 days after the later of commencement of the performance of the work on which the request is based or submission of the written request; provided, however, that the time period, as applicable to approval or rejection by the person at each tier of contract below the owner of the project, may be extended by 7 days more than the time period applicable to the person at the tier of contract above the person. A request which is neither approved nor rejected within such time period shall be deemed to be approved and may be submitted for payment within the next application for a periodic progress payment, unless it is rejected before the date payment is due. A rejection of a request, whether in whole or in part, shall be made in writing, shall include an explanation of the factual and contractual basis for the rejection and shall be certified as made in good faith. A rejection of a request shall be subject to the applicable dispute resolution procedure. A provision in the contract which requires a party to delay commencement of the procedure until a date later than 60 days after the rejection shall be void and unenforceable.
(e) A provision in a contract for construction which makes payment to a person performing the construction conditioned upon receipt of payment from a third person that is not a party to the contract shall be void and unenforceable, except:
(1) to the extent of amounts not received from the third person because the person performing the construction failed to perform under its contract and failed to cure the non-performance within the time required by the contract after receipt of written notice as provided in the contract or, in the case of contract lacking a cure and notice provision, failed to cure the non-performance within 14 days after receipt of written notice of the failure to perform; or
(2) to the extent of amounts not received from the third person because the third person is insolvent or becomes insolvent within 90 days after the date of submission of the requisition for which payment is sought; provided, however, that the person seeking to enforce the payment condition (i) filed a notice of contract under chapter 254 and in the case of a person having no direct contractual relationship with the original contractor, also sent a notice of identification within the time required under said chapter 254, prior to the person's submission of the first application for payment after commencement of performance at the project site and did not dissolve the lien created by the filing of such notice of contract; and (ii) within the time periods allowed by said chapter 254 files a statement of amount due and commenced or commences a civil action to enforce the lien; and (iii) pursues all reasonable legal remedies to obtain payment from the person with whom the person had a direct contract unless and until there is a reasonable likelihood the action shall not result in obtaining payment.
The foregoing exceptions shall be expressly stated in any conditional payment provision and the person seeking to enforce the payment condition shall have the burden of proof as to each element. Nothing in this section or in a conditional payment provision shall be valid as a defense to enforcement of a lien claimed under said chapter 254 by the person furnishing the construction nor shall it excuse compliance with said chapter 254. A party aggrieved by the failure of the party seeking to enforce the payment condition to pursue all reasonable legal remedies to obtain payment may avail itself of the procedure set forth in section 15A of said chapter 254, for a summary determination of whether all reasonable legal remedies have been fulfilled with respect to the particular lien claim at issue; provided, however, that the aggrieved party has first made a request in writing that the party seeking to assert the payment provision identify the legal remedies the aggrieved party has pursued and either: (i) has not received a response in writing within 10 days after making the request; or (ii) having received a response, has requested the party to pursue specific additional legal remedies and the party has failed unreasonably to take such actions.
(f) A provision in a contract for construction, including without limitation a payment condition enforceable under subsection (e), purporting to require a person to continue performance of the construction if payment of an approved amount is due under the terms of the contract but is not received, and more than 30 days have elapsed since the date payment was due, shall be void and unenforceable, except for: (i) a dispute regarding the quality or quantity of the construction so furnished; or (ii) a default by the person under the contract for construction after approval of the payment; provided, however, that the person has received (i) a prior written notice of such dispute or default certified as made in good faith; and (ii) all sums due less any amounts attributable to the dispute or default.
(g) A provision in a contract for construction which purports to waive or limit any provisions of this section shall be void and unenforceable.