Local code requirements should be minimal.
In other words;
Framing - basic structural integrity; load path to footing.
Electrical - protected wiring installation.
Plumbing - continuous flow of sanitary drainage system and water line cross connection prevention.
HVAC - Per manufacturer's installation instructions.
State laws should require legal responsibility for all contractors and manufacturers.
Mandating; in detail, all new products and methods; in new construction is a waste, and, will not have an empact on the majority of homes, apartments, etc. in this country in the next 300 years.
Except of course the homes, apartments, etc. built in the last 30 years will not be here 100 years from now; because they are not built to last that long.
Uncle Bob