dsmiley commented on code in PR #5409: URL: https://github.com/apache/solr/pull/5409#discussion_r4756455194
########## dev-docs/how-to-contribute.adoc: ########## @@ -60,16 +60,28 @@ In order to make a new contribution to Solr you will use the fork you have creat * update documentation (e.g., package.html files, this wiki, etc.) * try to provide a unit test that shows a bug was indeed fixed or the new functionality truly works * use the "draft state" for PRs which are work in progress -* carefully review and take responsibility for any AI-assisted code or documentation (see below) - -## Use of AI Coding Assistants - -AI-powered tools or agents (like GitHub Copilot, ChatGPT, etc.) can assist with contributions, but human contributors remain fully responsible for all submitted code and documentation. See the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for the foundation's policy. If you use AI tools: - -- Do include our `AGENTS.md` file in the LLM's context for best result. -- Carefully review all generated content for correctness, security, and alignment with Solr's architecture -- For major AI-assisted contributions, disclose the use of AI tools in your PR description -- For documentation contributions, prefer concise, human-readable content over verbose AI-generated text +* review and take responsibility for AI-assisted work, and disclose AI-written text (see below) + +## Use of AI / Generative Tooling + +Using AI tools (Copilot, ChatGPT, Claude, coding agents, etc.) to work on Solr is welcome -- for code, tests, docs, research, reviews, and more. +We have one firm expectation: **don't pass off AI-written text as your own words.** + +* **Mark AI-written prose.** + When people read a PR description, JIRA issue, comment, review, or mailing list post, they assume a human wrote it unless told otherwise. + If AI wrote it, or a substantial part of it, mark it -- a 🤖 is enough; naming the tool is a nice touch. + Text you wrote yourself and only had AI polish (grammar, wording) doesn't need marking. +* **Code and docs needn't be marked line by line.** + But if AI substantially generated a PR's contents, say so in the commit message(s) with a trailer naming the tool, e.g. `Generated-by: <tool>` (or similar -- there's no standard yet; `Assisted-by:` or `Co-authored-by:` are fine). + Committers squash-merging such a PR should keep the trailer. +* **You own what you submit.** + Review and understand it, and be ready to explain it. + If you didn't review it or don't understand it then admit this in a comment up front. Review Comment: In 90% of PRs, yes it should be the norm. But I wouldn't want to **prohibit** contributions where the contributor is giving us something "as-is" with no wherewithal to review/collaborate further on the details. Disclosure (of no review) is important, in such cases. I remember a nice contribution recently about shard split on a router field using DocValues. The contributor admitted to having no technical clue on the details. I encouraged this person on the list to contribute anyway. I was the reviewer and shepherded it through, significantly contributing to the finished result as well. Most importantly, this checkbox is a reminder for self respecting programmers to do their due diligence. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
