Skip to content

CONTRIBUTING: keep the original author when carrying someone else's commits #3174

Backlog

Description

@kole07139

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:

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-pick and git rebase do that; do not re-commit their changes under your name, and do not use --reset-author. When you squash or rewrite their work, add Co-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 a Co-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

  1. KOLESNiii commented on Nov 28, 2026

    @KOLESNiii
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions