Repository navigation
Description
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 from main. 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 main with #2959, which carried them as prerequisite history of a stack slice:
60a90b12is xcl run: XCL_THREAD_DUMP_AT also logs the fences and queue waits behind #2244's06f9df8, with the same code. Onmainits author is the stack's author, and no trailer names me.3caff9efis xcl run: XCL_THREAD_DUMP_AT also logs the fences and queue waits behind #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 main and 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:
- Carrying someone else's commits (into a stack, a port to a dev branch, or your own PR): keep their author.
git cherry-pickandgit rebasedo that; do not re-commit their changes under your name, and do not use--reset-author. When you squash or rewrite their work, addCo-authored-by: <name> <email>for each original author, and name the PR the commits came from in the description.
And one line in AGENTS.md under Commits:
- When you carry another contributor's commits, keep them as their author (
git cherry-pick, not a re-commit). If you must squash or rewrite them, add aCo-authored-by:trailer for each original author and link the PR they came from.
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.
Activity
KOLESNiii commentedon Nov 28, 2026
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.