We have a code of conduct encouraging various behaviours, especially being welcoming and patient with newcomers.
We also have a statement that AI contributions are acceptable provided the contributor understands the code before submitting for review.
These interact in an unfortunate fashion. I’m posting this after seeing Gentoo’s AI policy Gentoo AI Policy | Hacker News , specifically comments from a newcomer to llvm:
I’ve been using AI to contribute to LLVM, which has a liberal policy.
The code is of terrible quality and I am at 100+ comments on my latest PR.
The PR in question is [clang-tidy] Add portability-avoid-platform-specific-fundamental-types by jj-marr · Pull Request #146970 · llvm/llvm-project · GitHub and has indeed attracted a lot of reviewer time. I searched the commit message and comments for some indication that this was written with AI but there is none and indeed none is required.
I believe the path we are current treading has some very predictable negative outcomes. We should consider changing track, either to reject newcomers or to reject AI contributions. If we embrace both, our reviewers are going to burn out in rather short order. My preference would be to reject the AI contributions but strictly speaking I suppose either works.
The arguments for and against AI generated code are rather well hashed out already - I specifically want to call attention to the interaction with our code of conduct, which predates the new wave of generated PRs, where the combination looks like an existential threat to the compiler project.