Building permits, zoning, and code compliance are the three legal systems that decide whether your home