OpenSSL Communities

AI trailer in GitHub commit

Dmitry Belyavsky PublicSeen by 35

Several months ago the AI policy has introduced the 2nd version of CLA and AI trailers requirement for the commits made with AI help.

I have an impression that the situation has changed drastically since then and almost nobody creates any PR beyond trivial without help of AI. It means that the trailer requirement becomes rudiment - we don't normally ask what OS, compiler and CPU we've used, should we ask about the model we used? I'm not a lawyer, but I think the only purpose as of now is statistics.

Should't we change the situation and get rid of the Assisted-by trailer?

Eugene Syromiatnikov

IIUC, the purpose of the trailer is to track all commits that are created with specific models, so, in case those models are found at fault of breaking the copyright law, the associated code can be reverted. If that's no longer a concern then there's no need to require it.

Dmitry Belyavsky

AFAIK, Linux kernel has removed this requirement. But well, do you find the scenario realistic? Removing an old contribution in a non-corner case will cause quite a few problems.

Nikolas Gauder

@beldmit
1795534512134

FWIW, I counted the model trailers (see above). There seem to be around 30 different models at the moment. The top few have 100-200 commits and ~15-30k lines each, so reverting per model only seems realistic for the long tail

Randall Becker

If the contribution is primarily an AI suggestion, I think we want to keep that information. For just a situation where the AI helped verify, check the work, or fine tune it, Dmitry has a good point. Imagine a 1000 line change done by Anthropic. I would want to know/blame Anthropic is something goes bad even if the person is responsible.

Richard Levitte (individual)

Visavi OpenSSL reviewers, it's still on the responsible person to self-review what they submit. Or teach the agent what would constitute something proper (that's what agent skills are for).

It's true that many models still generate way too much output and over-explain things, though... not just Anthropic's

Jon Ericson

On the one hand, this requirement adds a small barrier for contributor, especially new contributors who don't necessarily know about the requirement. So that's a point toward removing the requirement.

We don't normally ask what OS, compiler and CPU we've used, should we ask about the model we used?

We don't normally need to ask about the former because the results from those bits of technology are more or less the same no matter which you use. The only real variable is the identity of the contributor. AI models are still new enough that I'm not sure we know what we're getting from them. They aren't even deterministic between runs, so every time you prompt you get a different answer. That's fundamentally different than the way traditional development tools work.

When the AI policy was introduced in June, it introduced the 1.1 version of the CLAs with the requirement to disclose AI tools at the time of submission "in accordance with the Project’s contribution guidelines". It seems to me that changing the guidelines about how to make that disclosure is compatible with the CLA we are now asking people to sign. I'm not sure if we can change the guidelines to remove the requirement altogether without updating the CLA again.

Of course, I'm not a lawyer either. But that's sorta the point. Before scraping the requirement to disclose, it seems to me we'd also need to find out the legal impact of making that change. Personally I'd rather accept the small cost of needing to disclose AI use.

Richard Levitte (individual)

@jon, Linux's commit 1e035297ffda has the following in the message:

Maintainers do still want to know how a patch was created, but the view at the
Summit was that this belongs in the cover letter, where it can describe how the
tools were used, rather than in the changelog.

In github PR terms, the "cover letter" is the PR description.

Anton Arapov

@Dmitry Belyavsky, I agree with where you start: AI tools are part of normal work here now, and the policy has no problem with that ("You are free to use whatever tools help you contribute effectively").

The trailer is tied to CLA 1.1. Two clauses:

8(c): "where any portion of Your Contribution was generated using generative artificial intelligence tools and is not protected by copyright, You do not represent that portion as owned intellectual property, and You understand that the Foundation accepts such material on that basis."

9(a): the contributor confirms "You have disclosed such use to the Project at the time of submission, in accordance with the Project's contribution guidelines".

So the CLA treats AI-generated portions separately for one reason, copyright, and the trailer is how the disclosure in 9(a) is made today. The choice of OS, compiler or CPU raises no copyright question about a contribution, which is why nobody asks for those.

On the model name I agree. @Nikolas Gauder pointed out that reverting per model "only seems realistic for the long tail", and I doubt the name is always accurate. I would support a pull request to general-policies that keeps Assisted-by and makes the model optional.

Removing the disclosure altogether is a different matter. CLA 1.1 exists because the old CLA assumed the contributor is the author of everything they submit, and AI-generated code broke that assumption.

The disclosure is how the project knows where that applies. OpenSSL Library is shipped inside a great many products, so a question about the origin of its code is a question for everyone who ships it. When that question comes, the project has to be able to tell what it is dealing with.

Richard Levitte (OpenSSL)

@anton, your assertion that "You have disclosed such use to the Project at the time of submission" means Assisted-by: commit trailers is subject to interpretation.

Submitting a PR is the submission, so it can as well be interpreted that disclosure of LLM in the PR description (which is not the same as the commits) is sufficient. This corresponds to the "cover letter" that is referred to in the Linux discussions on the same topic.

Anton Arapov

@Richard Levitte (OpenSSL) agree, 9(a) leaves the form to the guidelines, and they could name the PR description. Today they name the commit message, which is all I meant by "today". The trade-off I see: the description can say how the tools were used, which a trailer cannot. The commit message stays with the code in every clone, and it is what the CLA check reads. A short trailer with the tool, and the detail in the description, would give both.

Richard Levitte (individual)

@anton, I'm pretty sure we can have a bot that reads the PR description, and that if the PR description has the same Assisted-by: trailer (something I do anyway, for example), it would be just as workable.

I for one have become very dubious re the historic value of the trailer in commit messages.