Skip to content

AI policy: disclose AI-written text; PR self-review checkbox - #5409

Open
dsmiley wants to merge 2 commits into
apache:mainfrom
dsmiley:ai-policy
Open

dsmiley wants to merge 2 commits into
apache:mainfrom
dsmiley:ai-policy

Conversation

@dsmiley

@dsmiley dsmiley commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Expand the "Use of AI / Generative Tooling" section of how-to-contribute: AI use is welcome; AI-written prose (PR descriptions, JIRA, comments, mailing list) must be marked (a 🤖 suffices); substantially AI-generated PRs carry a Generated-by (or similar) commit trailer.

Simplify the PR template. The checklist should exist for perhaps the most important constraint in software development nowadays -- review! (see below). Additionally, make the AI disclosure/emoji use clear in the PR template -- don't assume a contributor has actually read our how-to-contribute on this important matter.

Add AI disclosure guidance to AGENTS.md.

(see this new checklist) ⬇️

Checklist

  • I have reviewed and understand all changes in this PR.
    (Not yet? Open the PR as a draft, and check this when you mark it ready.)

Expand the "Use of AI / Generative Tooling" section of how-to-contribute:
AI use is welcome; AI-written prose (PR descriptions, JIRA, comments,
mailing list) must be marked (a 🤖 suffices); substantially AI-generated
PRs carry a Generated-by (or similar) commit trailer.

Simplify the PR template: drop the checklist, link prominently to How to
Contribute with the AI disclosure points, and add a single self-review
checkbox (open as draft until reviewed).

Add AI disclosure guidance to AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KwTAxgcs25iL7h65Vhm1CJ
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 30, 2026
@github-actions

Copy link
Copy Markdown

Automated PR readiness judgements (LLM-generated; may be wrong; not updated on later pushes).

@dsmiley dsmiley left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See; I'm doing a self-review, thus demonstrating I've read the PR and didn't simply fire-&-forget (might not have actually read)

Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread .github/PULL_REQUEST_TEMPLATE.md Outdated

* https://issues.apache.org/jira/projects/SOLR
**AI use:** AI tools are welcome, but disclose AI-written text -- see "Use of AI / Generative Tooling" in How to Contribute.
* Mark AI-written prose in this description and in comments (a 🤖 is enough).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm passionate about this. I hate🔥 it when people pass on AI written prose as if it's their own voice (by not disclosing). So sloppy, disingenuous, and unprofessional!

# Solution

Please provide a short description of the approach taken to implement your solution.
We appreciate transparent disclosure of significant [AI Coding assistants](https://github.com/apache/solr/blob/main/dev-docs/how-to-contribute.adoc#setup-for-contributing) usage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this was shoved in here where it didn't belong


Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.

# Checklist

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hmm; probably need a heading so this isn't part of the # Tests

## 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.**

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I put my passion POV into this statement :-)

@HoustonPutman

Copy link
Copy Markdown
Contributor

I really do think there is an issue with agent comments responding to a human reviewer. If I'm responding, then I expect the person on the other end to take time themselves to respond to me. If I want to talk to an AI agent, I can do that myself.

I'm fine with PRs made with AI help (though I would want some human intervention there), but comments I feel need to mostly be human.

@anshumg anshumg left a comment •

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.

Thank you for this, David. Left some feedback.

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.

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.

I wouldn't want contributors to merely admit not having reviewed the changes they are submitting. The manual/human review is a mandatory step that we shouldn't allow folks to bypass.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'd also like to share my opinion that it's not wrong to contribute something completely as-is without time/energy for anything more. Of course, if the project receiving such a contribution doesn't want it, or wants more of me than I have time for, so it gets closed.... so be it. "Take it or leave it" -- whatever. I confess I did exactly this with 4 PRs to Magpie. I have zero time/energy/interest in understanding the code behind Magpie but I do have an interest in improving Magpie. Depending on what happens there, maybe I'll change my tune there. But no hard feelings for them if they don't accept them -- I do know what it's like being a maintainer ;-)

Also, in case you didn't know, we recently took on tons of UI test code in Solr where we very much acknowledged nobody reviewed it and we don't care -- we're all good with it, even Hossman :-) .

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.

From our existing commit policy:

To paraphrase @yonik: a half-baked patch submitted to JIRA with no documentation, no tests and no backwards compatibility...is better than no patch at all!

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.

We may need to rethink our position on that half-baked patch idea... The half-baked patch was valuable when code was HARD to write. Now that code is EASY to write, that half-baked patch with no documetnation, no tests, and no backwards compatiblity is actually a net negative. It means I have to spend a lot of time divining what maybe someone was trying to figure out, probably in an area of Solr that I don't personally have the MOST confidence in, so I'm out of my depth a bit. And then I start thinking.. Is that patch opening up a security hole? Is it adversarial in some way? What are the ramifications of using it?

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.

I'd also like to share my opinion that it's not wrong to contribute something completely as-is without time/energy for anything more.

I've been dealing with a fair number of "drive by contributions" and if it's small and perfect, maybe it's okay. but if it require any thinking, then if the person isn't willing to work with me when I reach out, well then that ends up being another loss of my time. Again, writing code is the easy part, getting it understood, tested, integrated is the hard part.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this conversation actionable? If you want to propose something specific to this PR, please do so.

Comment thread .github/PULL_REQUEST_TEMPLATE.md Resolved
Comment thread AGENTS.md
## AI Disclosure

- Prose you write for humans to read (PR descriptions, JIRA issues, PR/JIRA comments, mailing list posts) must be marked as AI-written, e.g. with 🤖
- When you substantially generated a commit's contents, include a trailer naming the tool in the commit message, e.g. `Generated-by: <tool>` (or similar, like `Co-authored-by:`)

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.

While I was merging something recently, I realised how if one or few of the commits were generated by an agent but the first (or last?) one wasn't - the squashed merge has a tendency to lose that information by dropping that line.
Let's put in something that ensures that information isn't lost.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure we can "ensure" what you said. Rewording ideas welcome.

@dsmiley

dsmiley commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

I really do think there is an issue with agent comments responding to a human reviewer. If I'm responding, then I expect the person on the other end to take time themselves to respond to me. If I want to talk to an AI agent, I can do that myself.

So beyond disclosure? I'm going to give you the opportunity to shame me on a silver platter: #4538 (comment)

- PR template: JIRA info first, restore Checklist heading, require that a human reviewed the changes
- how-to-contribute: drop committer squash-merge guidance (belongs in the committer wiki)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dsmiley

dsmiley commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Will merge Monday if no further actionable disagreement matters remain.

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants