CONTRIBUTING: keep the original author when carrying someone else's commits #3174
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-28T16:03:29Z.
More and more PRs and stacks carry other contributors' commits: integration stacks, ports to
nvidia-dev/amd-dev, "prerequisite stack history" under a PR. When an agent rebuilds those commits instead of cherry-picking them, the original author can disappear frommain. CONTRIBUTING.md and AGENTS.md say nothing about it yet. Agents follow what is written there, so one rule would fix most of it.An example. #2244 (mine, open) had two commits. Both reached
mainwith #2959, which carried them as prerequisite history of a stack slice:60a90b12is #2244's06f9df8, with the same code. Onmainits author is the stack's author, and no trailer names me.3caff9efis #2244's97e22f6. It kept @GreemSC'sCo-authored-by, but not me.Nobody did anything wrong on purpose here. #2959's description says that only its top commit belongs to it, so whoever merged it had no reason to look at where the history came from. The code is in
mainand that is what matters most. I only noticed because #2244 started to conflict with its own code, and I closed it with a note. But this will keep happening as long as nothing tells tools and people how to carry a commit.Proposed wording, in CONTRIBUTING.md under Commits:
And one line in AGENTS.md under Commits:
This is narrow on purpose. It does not change how stacks or ports work, only that the original name goes with the commit.
I can open the PR with exactly this text if you want it, or change the wording.
AI use: Claude Code (Claude Opus 5.5) traced the commits and drafted this issue; I reviewed it.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T20:14:35Z.
I agree, particularly with open-source code of honour! People should receive proper attribution for the good work they are doing!
As an additional point - when an agent does things like this - using a commit or feature from an open PR, this should be made clear on that PR itself, to reduce the number of duplicated or needless open PRs.