There is legally. Make sure they sign the DCO (Developer Certificate of Origin). They will fail at the first paragraph
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; [...]
I guess that means no IDEs doing refactoring or automating common code. Not linters altering code, etc... right ? Because that's the same thing.
How about if AI generates code in a file, then I copy/paste bits... like stack overflow ?
Why will they fail? They will simply sign it and continue.