Conversation
|
I looked at some commit message in Apache repositories to see how other projects are handling gen-ai attribution in commit messages. Here is one from Thrift, Hadoop and Airflow. My suggestion to not use |
ddanielr
left a comment
There was a problem hiding this comment.
I agree with the Assisted-By or Generated-by commit message format and leaving Co-Authored-By for human authors.
If we wanted to standardize on a single one then I would vote for using Assisted-By.
|
I think https://www.apache.org/legal/generative-tooling.html#include-in-contributions suggests Generated-by: for provenance. Assisted-by: leans toward claiming more human authorship while disclosing less provenance. Generated-by: makes no authorship claim at all, it just names a tool, which is the cheaper and more honest thing to assert. |
I suggested two options because I think there is a distinction. To me Maybe I'm taking it too personally :-). I re-read the paragraph that uses |
This is how
This suggestion sounds reasonable to me too |
I was also thinking that
I see your point about Personally, It would be helpful to know which files/commits were completely generated code so I know what areas of the code review to focus on. As an example, we have thrift generate our rpc classes and generally that code is not reviewed. Instead we focus on the behavior tests passing. The only specific check that does occur ensures the generated content has not changed unintentionally. I accept that I might be thinking about this too much. |
I wouldn't say I would have very much of a strong reaction to Assisted-By or Generated-By, but AI-Model-Used avoids any reference to how the code was generated and it's quite binary about its intent, which I like. It's a good discussion point to see if anyone else disagrees, but I like AI-Model-Used for its simplicity. |
| * If you used Generative-AI to generate or assist in developing the change, then please be sure to: | ||
| * Follow the guidelines at https://www.apache.org/legal/generative-tooling.html | ||
| * Add a line near the end of your commit message containing `AI-Model-Used: <model>`. |
There was a problem hiding this comment.
The ASF guidelines are still evolving, and are currently in draft. While the legal page is binding, and shows an example, there are additional draft best practices at https://rai.apache.org/best-practices.html
Much of this is currently redundant, and conflicting. I have read it over and provided feedback to the RAI committee. My personal recommendation is that we should use Co-Authored-By: <model>. While the standard format of the Author and Committer fields include an email address, it is actually optional and not strictly required by git. The "Co-Authored-By" tag inside the body of the commit follows the same format, so it is also optional to include an email address, and I would just omit them, since there isn't an email for an AI model.
The RAI best practices draft pages also document other alternatives, which I think are less good. I don't believe "AI-Model-Used" is one of them, and I would strongly advise that we not invent something new. I think sticking to "Co-Authored-By" is the most obvious and already understood by existing tooling. It also covers many other cases (assisted-by, generated-by, generated-then-human-reviewed, reviewed-by, etc.), because nobody expects this tag to communicate the specific quantity and nature of each of the contributions of each author, and nobody is asking for that because that'd be overkill. Let's keep it simple, and jut use Co-Authored-By: <model>
ctubbsii
left a comment
There was a problem hiding this comment.
-1 to these changes. (See my earlier comment)
No description provided.