Your base assumption that humans looking at restricted code bases and then working on competing products is OK is flawed. That has always been something you'd have to be very very careful about to avoid law suits for anything you inadvertently copied. Clean-room design is a thing for this very reason.