The short answer
A new house should come with a binder, physical or digital, that documents each stage that is now hidden. The core set is: the certificate of occupancy (or, outside city limits in Texas, the record of the required inspections); the permit and inspection history; the form board survey and the closing survey; the termite treatment certificate; the post-tension elongation record or the engineer's foundation letter; the energy certificate with tested results; the builder warranty and any FHA warranty form; and manuals and registrations for equipment and appliances. Ask for these before closing, while the builder's staff still have them at hand.
The documents, and what each one proves
Certificate of occupancy. Proves the building department's required inspections were passed and the house may be occupied. Under Section R110.3 of the International Residential Code, it states the permit number, address, owner, the portion covered, the building official, the code edition and any conditions. It does not prove the house is free of defects. See final inspection and certificate of occupancy.
Permit and inspection history. Shows which inspections were requested, passed, failed and repeated, with dates. Many cities publish it online by address.
Outside city limits in Texas: the three inspection records. For new houses in unincorporated areas of covered counties, the builder must obtain inspections at the foundation, framing and mechanical, and completion stages, and may have to send notices to the county and to the person the house was built for. See new construction outside city limits.
Form board survey and closing survey. The form survey shows where the foundation forms were set relative to setbacks and easements; the closing survey shows the finished house and improvements and is what a title insurer relies on.
Termite treatment certificate or affidavit. The only evidence of the soil treatment under the slab. Many North Texas cities require one before final. See termite pretreatment.
Post-tension elongation record or foundation letter. On a post-tensioned slab, the record of each cable's measured stretch, reviewed by the engineer. On an engineered conventional slab, the engineer's pre-pour observation letter. See post-tension stressing and foundation pre-pour.
Energy certificate. Posted on or in the electrical panel in most adoptions, listing insulation R-values, window ratings and blower door and duct leakage results. Photograph it. See energy code testing.
HVAC design documents. Where available, the Manual J load calculation and equipment selection; see HVAC rough-in.
Warranties. The builder's warranty, read for coverage periods, exclusions and written-notice requirements; for FHA-insured purchases, the Warranty of Completion of Construction (form HUD-92544), executed by the builder and the buyer; manufacturer warranties for the roof, windows, equipment and appliances, with registration status and the name they are registered under.
Punch list. The signed walk-through list with completion commitments; see builder walk-through.
Drainage plan. The subdivision's lot grading or drainage plan, if one exists, so later landscaping does not block a designed swale; see final grading and drainage.
Why this matters later
These documents serve three later audiences. A future buyer and that buyer's inspector will ask for them. A warranty claim will depend on dates and registrations. And a construction defect dispute in Texas begins with a statutory notice process in which records of what was built, and when, carry weight; see Texas construction defect notice.
How to ask
Ask in writing, before closing, and list the documents by name. Production builders often have most of them in the job file but do not hand them over unless asked. For the permit history and certificate, the city's permit office is an independent source.
Where the rules come from
The certificate's contents are in the International Code Council's model certificate of occupancy text. The energy certificate requirement is shown on forms such as Houston's energy compliance certificate. FHA's retention of the HUD-92544 warranty form is in Mortgagee Letter 2019-05.