If a user asks the AI to provide a commit, it will automatically add itself to the commit signature - isn’t that enough? I noticed this while analyzing code with Cursor AI and looking at what the AI agent can write as a resolution, and it has already provided me with a commit message with its name at the end.
Yes it’s enough and this is what is called an attribution But it’s not true that it will automatically add it: that depends on what you told it to do (you can ask it to not do it for example).
The whole idea is to make it transparent when a LLM has been used to help write a contribution.
Thanks everyone, this is now agreed. I’ve documented it on dev.xwiki.org in a new “Working with AI” section that we can add to as we take more decisions about AI usage:
Working with AI, with the rule in Attribution in commits: when an AI tool helped write a commit, add a Co-Authored-By trailer naming the tool and its model, for contributors and committers alike.
I’ve also added a Recommended tooling subsection, which was not part of this discussion: if you use an AI coding agent, it’s recommended to install the XWiki plugin, which knows the XWiki dev guidelines (including this attribution rule), and, for those who have access to it, the XWiki Security plugin from xwiki-dev-security-llm for in-depth security reviews. Shout if you disagree with it.