The bottom line is that the codes adopted in the locality or those that must be complied with must be adopted legally. Zoning and use are separate and may be localized, but a locality may add different requirements as long as they have a proven basis or are more rigid than the minimum model codes.
The code writing frequently comes from groups that consist of different individuals with varying backgrounds. Usually, a locality adopts a model code (IBC, IRC are the most common) that puts in to effect legally and can amend, but not reduce the minimum standards.
IRC, and IBC codes are written by those organizations connected with or are members of the ICCC. The codes are put into "code language" that can be enforceable. The codes also adopt and accept many items/standards
There are many other groups that write appropriate standards relation to appropriate products, testing and procedures, practices that are open to the public. These are usually comprised of an assortment of people with different interests.
I have been a member of ASTM for 20 years, and it took me 10 years to be a voting member on several committees. The reason for the time is because the committees are what is called a balanced "consensus" group consisting or manufacturers, users, and interested parties (little old ladies, professors, etc.). It is a one member per vote and no voting corporate members, but corporations are members to support the organization. It is not cheap and can be time-consuming to participate in standards considering the time, travel, hotels (2 multi-day meetings annually plus other communications) and other expenses necessary to be active, since if you do not participate, you could be dropped as a voting member. Obviously, nothing happens immediately, but it provides a well based, verifiable basis for codes.
I was lucky to start working for a concrete block manufacturer and I was required to be involved in any local or national organization association/group dealing with my area of engineering (structural/civil) despite the time involved, dues and travel/housing costs.
Dick
Engineer and international traveler interested in construction techniques, problems and proper design.