The original "clean room" didn't involve any decompiling, IIRC, only describing directly observable behavior in excruciating detail.
My friendly AI fooled me if so, it told me that is 100% ok to observer and re-implement, its the decompile which is problematic.
The source code to the IBM BIOS was printed in the PC technical reference manual. The "dirty" team read the manual and the source and produced detailed specifications, then a programmer implemented a new BIOS based on the specifications.