Code upgrades are not automatic.
The Residential or Building Code has changed since original construction. The loss exposes existing conditions that no longer comply. The municipality requires upgrades as a condition of the new permit. This is normal on every restoration file — not a surprise to plan for in advance.