An affordable housing agreement, as described in Article XXXIII of this chapter, acceptable to the community development director or designee and city attorney, shall be recorded against the commercial development project prior to the approval of any final subdivision or parcel map or issuance of any building permit, whichever occurs first. The affordable housing agreement shall specify the number, type, location, size, and phasing of all affordable units, provisions for income certification, and screening of potential purchasers or renters of units, and resale control mechanisms, consistent with the approved affordable housing plan, as determined by the community development director or designee.