AI attribution belongs in the docs, not the commit
Left to its own devices, a commit I make with an agent in the loop ends with a line crediting the model as a co-author. The tool I use adds that trailer by default, so I've had to write an instruction, in bold, telling it not to (and I still find myself repeating it to new sessions!). And yet the documentation in most of my projects credits the AI quite happily. To anyone watching, that probably…
When a machine learning model is used during a commit, it automatically adds a line crediting the model as a co-author. The default behavior of the tool used to make these commits adds this line, which can lead to inconsistencies in project documentation. While most documentation credits the AI, this creates an inconsistency that can look unprofessional.
The issue came to light when a bug report was filed on go-tool-base, a project that uses a model to write reference pages for its tool's commands. The report highlighted that the generated documentation listed the model in the authors field, while the human-written pages listed a person. This was not just a cosmetic issue, as it meant the model was being treated as a co-author instead of a collaborator.
The solution was to stop crediting the model in the authors field altogether. This decision was not made lightly, as the model had previously been replacing human authors rather than working alongside them. However, the distinction between a credit and a signature was made clear. In a commit, the person who approves the change is entirely responsible for it, with no asterisk indicating the model's contribution.
This is why the rule exists: to ensure accountability. At the same time, documentation, which is typically left until the end and often done poorly, can benefit from AI assistance. The fix kept the model's credit in the documentation, while still having the human author listed at the top. The model is now credited as an additional co-author after the project's human authors.
For projects that have a policy against AI attribution, there is a flag, --no-ai-attribution, that ensures only human authors are listed. This approach also extends to other project documentation, such as specs, reports, and spikes, which credit the agent freely. However, when it comes to bug reports, a human must still take full responsibility.
The author concludes by stating that their global instructions now include a rule about not including AI attribution in commits or merge request bodies, with an exception for the tool's default trailer and a clear explanation for this exception.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to