Here are two screenshots. My impression is from
Some answers from similar questions, not from real estate attorneys.
yes, you are right, the work needs to get inspected, fixed and brought up to code. However I still believe a permit might be attainable.
謝謝!
attainable.