Repository navigation
Add initial AI contribution policy - #7982
Conversation
jni
left a comment
There was a problem hiding this comment.
Love it. Short and to the point, and big "we don't do that here" vibes to head off discussion about the wisdom / non-wisdom of using / not-using LLMs.
There was a problem hiding this comment.
Also like the text! Thanks @stefanv!
I'm less enthused that this increases the size of the PR template and I'll be seeing it everywhere. But I don't really have a better suggestion. So +1 from me.
Maybe it's finally time to remove the checklist? (Point in favor, @stefanv manually removed that section from this PR)
|
I was able to incorporate all feedback, and also shorten the AI policy, so please take another look. |
I may have edited out the part you liked in the last version 😬, but I think the message is still clear. |
|
Just learned of scikit-learn's policy: https://scikit-learn.org/stable/developers/contributing.html#automated-contributions-policy |
📝 WalkthroughWalkthroughUpdates repository documentation and PR template: replaces Description/Checklist in the PR template with links to CONTRIBUTING and an AI-policy note, adjusts release-note heading and placeholders, and adds new AI/agents documentation and contributor guidance files. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I've neutralized the language a bit; please re-review and merge if y'all are happy with it. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/PULL_REQUEST_TEMPLATE.md (1)
2-15: Align dev/stable doc links to avoid mixed guidance.The template points to dev docs for the Contribution Guide and AI policy, but the release-note link points to stable docs. This can confuse contributors and may reference different content. Consider using the same doc version throughout.
✅ Suggested alignment
-<!-- See https://scikit-image.org/docs/stable/development/contribute.html#documenting-changes --> +<!-- See https://scikit-image.org/docs/dev/development/contribute.html#documenting-changes -->
@coderabbit.ai apply this change |
|
Tip For best results, initiate chat on the files or code changes.
Task: Align documentation version links in PR template
+ Learnt from: CR Learnt from: CR |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CONTRIBUTING.rst (1)
45-48: Clarify the declaration scope to avoid over-breadth.“Anything other than a basic text editor” may be interpreted too broadly (e.g., formatters, linters, CI helpers). Consider narrowing this to tools that materially generate or transform PR content.
Proposed wording tweak
-It may make sense to apply AI for some mechanical tasks, but our -policy is consistent across all tools: the usage of anything other -than a basic text editor must be declared (e.g., if you use sed, post -the script used). +It may make sense to apply AI for some mechanical tasks, but our +policy is consistent across all tools: usage of tools that materially +generate or transform PR content must be declared (e.g., if you use +sed for bulk edits, include the script used).
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
.cursorrulesAGENTS.mdCLAUDE.mdCONTRIBUTING.rstGEMINI.md
✅ Files skipped from review due to trivial changes (4)
- GEMINI.md
- AGENTS.md
- .cursorrules
- CLAUDE.md
matthew-brett
left a comment
There was a problem hiding this comment.
This is a difficult problem, because the people who we are worried about, will follow these instructions (and use AI to do so). But as we have seen previously, there's no good reason to think that the AI will confess to the extent of its own use. We can ask it nicely to do so, in the AGENTS.md file, but we can't rely on that to be confident the agent has "followed" the instructions.
I continue to suspect that the new contributors who are starting off with AI-supported coding, will be a great net drain on project resources, and will prove difficult or impossible to mentor effectively. Maybe I'm wrong, but let's monitor carefully for that effect, because it could be disastrous. I'm sure that experienced contributors, using AI, will make some useful contributions.
| --------- | ||
| scikit-image requires that PR authors illustrate a thorough | ||
| understanding of any changes they propose. We typically assess this | ||
| from the PR description and subsequent conversations. |
There was a problem hiding this comment.
The PR description is almost invariably written by the AI, so I would guess it is not useful to assess the author's understanding.
There was a problem hiding this comment.
Yes, I had thought of that; I wasn't sure how else we assess (description + follow-up conversations). Do you have suggestions for wording here?
There was a problem hiding this comment.
Can I reflect that back to you? Given the kind of PR summaries and even replies we are seeing in these PRs -how would we assess for understanding?
There was a problem hiding this comment.
How about just scratching this sentence. How we assess an LLM contribution is unclear and probably prone to change and gut feeling.
|
In the meeting right now, we arrived at something like this:
Along @matthew-brett's proposal, I'm also happy with adding that
Happy to iterate on those words. |
There was a problem hiding this comment.
I'm not fond at all about polluting our top-level namespace with extra files for major LLM vendors. I'm very tempted to veto including this file and the other ones for CLAUDE.md and GEMINI.md.
There was a problem hiding this comment.
Are we confident including this file is useful and will have the desired effect? I might misremember reading somewhere that it wasn't very effective in practice?
Signal a positive stance towards vibecoded contributions and heavy LLM-use in general?
There was a problem hiding this comment.
The goal is to help steer LLM contributions. If you don't provide guidance, then the user will.
There was a problem hiding this comment.
I'm okay with the wording of the AI policy.
Edit: #7982 (comment) should probably be included in some form.
Not in favor at all about including the AGENTS.md file and especially the other LLM-specific ones. Can we discuss those in scope of another PR?
If you drop the LLM instructions from this PR, I'm happy to approve this.
Important Files Changed
Reviews (7): Last reviewed commit: "Satisfy linter" | Re-trigger Greptile |
|
@lagru @jni I've updated the text another time. I realize the AGENTS.md/GEMINI.md file seems somewhat useless right now, as it is mainly a trap to catch unsuspecting automated submitters. However, I can imagine us updating it over time to have actionable information in there, for when people want to use LLMs to learn about scikit-image. However, if you still feel strongly about it, I can move it to a different PR, where we can perhaps discuss adding those more, err, nourishing aspects to it. |
Yes, let's discuss the more controversial stuff to a different scope and get the AI policy in. :) |
| AI Policy | ||
| --------- |
There was a problem hiding this comment.
This section is short enough for now but it still makes our contributor file even more overwhelming. If everything is included, nothing stands out. Would you be against moving this into a dedicated ai_policy.md in our docs and linking to it here?
I don't have a clear solution but I've been thinking about how we can shorten our contribution guide to be less overwhelming.
There was a problem hiding this comment.
I feel like this belongs in our Development section with a clear link from our contribution guide.
There was a problem hiding this comment.
Perhaps wise to just get it in for now, then we can always reshuffle material in a follow-up PR.
Move checklist to contributor guide and add AI policy
Co-authored-by: Lars Grüter <[email protected]>
|
Feels good to have this in even if this is only a first version. 😊 Thanks! |
|
@lagru Somehow, the text we agreed upon seems to have gotten lost when I tried to extricate the agents from the text. |
|
I've restored the content that got destroyed in the last force push in #8123 |
This reverts commit 5cda688.
* origin/main: Drop 3.13t builds from cibuildwheel configuration (scikit-image#8127) Restore wording of AI policy (scikit-image#8123) Port feature.canny to skimage2 (scikit-image#8047) Revert "Add AI contribution policy (scikit-image#7982)" (scikit-image#8124) Add AI contribution policy (scikit-image#7982)
Tool disclosure
I used Claude to review and edit the "fast-track" agent PR text, as well as to generate the
AGENTS.md(which may or may not be included in the final merge).