This is not a good thing, but I do wonder if it's a general thing that models perform tasks worse when told that no one will review the output?
That is, would equivalent bad results arrive if, for example, the requirement had been to optimize graph traversals for an ERP system? Would the result be different if the model were told its code would be used to train other models on how to write that particular type of code?
Agreed, it seems quite obvious that before publishing this you'd try the same thing with a prompt unrelated to ML.
The accusation that the model is receiving instructions to attempt sabotage to the maximum extent it thinks will remain undetected is surprising and significant, and quite easy to test much better than was done here.