The building inspector, who must be independent of the developer, is responsible for identifying any defects in the building. They provide an interim and a final inspection report.