A latent defect is a hidden defect that exists at the time of construction but is undetected until after completion. A roofing contractor should consider protecting and insulating their business from latent defect claims on the front end through proper documentation and solid contract drafting to avoid finding yourself in a difficult defensive scenario.
The following article contains a variety of contract provisions which may provide you with protection. However, you should check your state and local requirements before incorporating these terms to make sure they are enforceable in your area.