Skip to content

CONTRIBUTING.md: add AI policy - #30782

Open
GeorgeSapkin wants to merge 3 commits into
openwrt:masterfrom
GeorgeSapkin:add-ai-policy
Open

GeorgeSapkin wants to merge 3 commits into
openwrt:masterfrom
GeorgeSapkin:add-ai-policy

Conversation

@GeorgeSapkin

@GeorgeSapkin GeorgeSapkin commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Given the recent increase of LLM-generated contributions and comments 1, which leave maintainers reluctant to review PRs and to participate in further discussions, I propose adding a brief AI policy to the contributing guidelines. This policy requires human-written comments and contributions, with a human in the loop responsible for LLM-generated code, and discourages copy-pasting generated PR descriptions and comments.

Add a link to the AI policy and a LLM usage disclosure checkbox to the PR template.

Alternatively this could be in a separate policy file, or even a file in a top-level org-wide repo (i.e., .github 2), if it's generic enough.

This policy was adapted from Astral's AI Policy.

cc: @1715173329 @BKPepe @commodo @danielfdickinson @hnyman @stangri @wehagy

Footnotes

  1. https://github.com/openwrt/packages/pull/30492#issuecomment-5644825977 ↩

  2. https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file ↩

@GeorgeSapkin GeorgeSapkin added the documentation Issues related to documentation label Oct 14, 2026
@BKPepe

BKPepe commented Oct 14, 2026

Copy link
Copy Markdown
Member

This policy requires human-written comments

Yes, please! 💯
This is must have.

Comment thread CONTRIBUTING.md Outdated
Comment on lines +47 to +49
If you're a non-native English speaker and are using an LLM to edit or translate
your comments, we recommend writing in your native language and including the
translation in a quote block.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a bit too strict. As a non native English speaker, I'll admit I use LLMs to help translate my comments these days. Previously, I relied on Google Translate or DeepL for specific words, and later moved on to Grammarly as my skills improved. Using an LLM makes the process much easier, even if the tone ends up a bit formal. :) Including my native language in a quote block is not what you want. 😶‍🌫️

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you rephrase this? The goal is to avoid generic too-wordy LLM lost-in-translation prose.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to encourage non-English posts as there's enough noise to navigate already.

If there's a genuine misunderstanding due to language barrier, a polite nudge is all it takes to get some clarification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GeorgeSapkin I would suggest something like that: Using an LLM to translate or polish your comments is fine. Keep them short, review them before posting, and make sure they say what you mean.

Comment thread CONTRIBUTING.md Outdated
Comment on lines +51 to +52
This policy was adapted from Astral's [AI Policy](
https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw: Jellyfin has something similar or even LLVM, so it is kinda some standard, though.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are very comprehensive. I tried to phrase the text as succinct as possible, considering people ignore what little guidelines there are at the moment.

@danielfdickinson

Copy link
Copy Markdown
Contributor

I wonder if the policy should include that the only AI code review comments should be the ones by the (now terser) OpenWrt AI bot. I have found AI reviews by LLMs less strictly prompted to be concise are far too verbose (including raw Copilot). I have trialed some AI code reviewer, and until Hauke's recent terser update for OpenWrt AI, they've all been even wordier than I am, and that is not good.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit.


Generated by Claude Code

Comment thread CONTRIBUTING.md
Comment on lines +38 to +40
We expect comments on our projects to be written by humans. The readers are
humans, and we'd like to hear from you, not from a model. We may hide or remove
any comments that we believe are LLM-generated.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section just above (CONTRIBUTING.md:18-26) points contributors at the project's own automated LLM reviewer, which posts LLM-generated comments autonomously. This rule and the "no autonomous agents" one at line 43 read as covering it too. Should both say they apply to contributors, not to project-run review tooling?


Generated by Claude Code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@openwrt-ai No worries. :) You're our friend, we like you, and your reviews are really helpful. 👍 We'll make an exception for you.

@dibdot

dibdot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

@GeorgeSapkin Many thanks for the initiative!

One suggestion: The policy should specify how the involvement of LLMs in commits is to be indicated (e.g. by including the note ‘Assisted-by:’ or 'Co-authored-by:' at the end). Otherwise, everyone will do things differently.

@BKPepe

BKPepe commented Oct 15, 2026

Copy link
Copy Markdown
Member

I agree with @dibdot as well, but I would love to see it in main repo, too!

@GeorgeSapkin

Copy link
Copy Markdown
Member Author

I was thinking of adding another checkbox to the PR template for voluntary LLM use disclosure on top of a commit trailer.

but I would love to see it in main repo, too!

That's what I suggested adding a .github repo for.

@geldot

geldot commented Oct 15, 2026

Copy link
Copy Markdown

@GeorgeSapkin Many thanks for the initiative!

One suggestion: The policy should specify how the involvement of LLMs in commits is to be indicated (e.g. by including the note ‘Assisted-by:’ or 'Co-authored-by:' at the end). Otherwise, everyone will do things differently.

Not keen on this. It turns commit messages into a free unpaid advertising space for AI company brands, which is why Linux dropped the policy.

If someone must have assistance from an LLM then so be it, but what matters is that it goes through the same vigorous human review as any other commit.

(The harness that was used is probably more relevant than the underlying model, as that's what tends to determine what sources are used as reference and what procedures are followed. But again, this doesn't seem relevant for the commit log.)

@dibdot

dibdot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Not keen on this. It turns commit messages into a free unpaid advertising space for AI company brands, which is why Linux dropped the policy.

The kernel change is a proposed removal of the requirement, not merged yet, and the LKML thread is split. George’s PR template checkbox would be enough. My point is consistency, not attribution: reviewers benefit from knowing where to look, and right now everyone handles it differently.

@geldot

geldot commented Oct 15, 2026

Copy link
Copy Markdown

Not keen on this. It turns commit messages into a free unpaid advertising space for AI company brands, which is why Linux dropped the policy.

The kernel change is a proposed removal of the requirement, not merged yet, and the LKML thread is split. George’s PR template checkbox would be enough. My point is consistency, not attribution: reviewers benefit from knowing where to look, and right now everyone handles it differently.

The checkbox idea makes perfect sense for GitHub interactions, bug reports, and PR discussions. Discussing a PR when the submitter appears to be non-human can feel demeaning.

(Once or twice, I've continued such a discussion and it turned out to be productive, so I'm undecided whether it should be totally banned, but agree it should be disclosed and probably discouraged.)

@BKPepe BKPepe mentioned this pull request Oct 15, 2026
4 tasks done
@GeorgeSapkin
GeorgeSapkin force-pushed the add-ai-policy branch 7 times, most recently from a02e5c9 to 7ee094c Compare October 15, 2026 22:13

@BKPepe BKPepe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GeorgeSapkin! 🙌

@dibdot

dibdot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

@GeorgeSapkin Looks good to me, many thanks!

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 63e856a "CONTRIBUTING.md: add AI policy": the body leaves out the new mandatory LLM-usage disclosure rule (the WARNING block). Mention it in the body.

Generated by Claude Code

Comment thread .github/pull_request_template.md Outdated
Comment thread .github/pull_request_template.md Outdated
@GeorgeSapkin
GeorgeSapkin force-pushed the add-ai-policy branch 4 times, most recently from a2b1439 to df7e24f Compare October 16, 2026 14:53
@efahl

efahl commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

@danielfdickinson said:

I have found AI reviews by LLMs less strictly prompted to be concise are far too verbose

That's my major complaint, too. PRs with a giant wall of text just piss me off and I skip them as I don't want to dig through a ton of noise to get to the actual content. Hauke's tuning of the openwrtAI reviews is really excellent, but the unconstrained submissions that we're seeing need to be gutted of all that flowery description that adds nothing (and in fact detracts from understandability). For me, that should be a major point in the policy itself.

@GeorgeSapkin

Copy link
Copy Markdown
Member Author

unconstrained submissions that we're seeing need to be gutted of all that flowery description that adds nothing

Wouldn't this just be a violation and thus closed? What would you phrase differently?

The alternative is to write a comprehensive policy similar to other projects with separate sections for definitions, scope of policy, requirements, permitted and forbidden usage, disclosure, enforcement, etc. But I'm afraid even fewer people will bother with reading.

@efahl

efahl commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Wouldn't this just be a violation and thus closed? What would you phrase differently?

I'd add a sentence to the "IMPORTANT" block, something like

Keep posts concise and to-the-point: no "wall of text".

Add a policy requiring human-written comments and contributions, with a
human in the loop responsible for LLM-generated code.

Signed-off-by: George Sapkin <george@sapk.in>
Hide comment sections from being displayed in the PR template.

Add a helpful Markdown tip.

Signed-off-by: George Sapkin <george@sapk.in>
Add a link to the AI policy and a LLM usage disclosure checkbox.

Signed-off-by: George Sapkin <george@sapk.in>
openwrt-ai

This comment was marked as resolved.

@BKPepe

BKPepe commented Oct 17, 2026

Copy link
Copy Markdown
Member

but I would love to see it in main repo, too!

That's what I suggested adding a .github repo for.

@Ansuel, @hauke, @robimarko What do you think? Would that be suitable and something what main repo can consider?

@danielfdickinson

Copy link
Copy Markdown
Contributor

Thank you @GeorgeSapkin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants