What can be done about failing a City inspection that was complied with?

Yea you’re gonna need a LOT more detail. You may want to try a more specialized subreddit too, to get better advice.

Generally, document what you did and how it meets their standards.