Your original question is, if there is a construction defect, and nobody catches it, can the building official come along years later and insist it be "upgraded," and if so, under what authority?
I would say yes, if there is a defect, and it is discovered, of course the building official can...