> "If you are more annoying to work with than your contributions justify, you'll be ejected."
is not unreasonable (whether written down or not) for an individual's hobby project, but for something run by a company or other organization I think more detail is required.
The OSI code of conduct seems too general, perhaps open for different interpretations or potentially selective enforcement: https://opensource.org/codeofconduct
The Linux one I prefer, since it's concise and clear, e.g. "sexualized language" and "harassment" are unacceptable: https://docs.kernel.org/process/code-of-conduct.html
My own employer's code of conduct (we have open source projects, discussion forums etc) looks similar to the Linux one. I think it is enforced about once a year, and I think the reason has been either sexual harassment or repeated personal criticism of individuals' work.