Skip to content

[Docs] A pull request you did not open belongs to its author - #456

Merged
juanmaguitar merged 1 commit into
trunkfrom
juanmaguitar/agents-pr-belongs-to-author
Sep 12, 2026
Merged

juanmaguitar merged 1 commit into
trunkfrom
juanmaguitar/agents-pr-belongs-to-author

Conversation

@juanmaguitar

Copy link
Copy Markdown
Collaborator

Why

An agent found two rebase breakages on an external contributor's pull request (#358): trunk had removed two exports the branch still imported. The repository allows maintainer edits on that branch and each fix was one line, so the agent pushed a merge and a fix commit to the contributor's fork. Nothing in AGENTS.md said not to.

That is the author's call, not the agent's. A contributor's branch is theirs: what lands on it, and when it merges, is decided by whoever opened the pull request. The right move on a pull request the person you work for did not open is a review with the findings written down.

What changes

One section in AGENTS.md, under "Before opening a pull request": a pull request you did not open belongs to its author. No pushes, rebases, description edits or merges on it, whatever the branch permissions say and however small the fix. Reviewing it and leaving findings, with a diff where that helps, is what an agent may do. If the author is unresponsive and the work is urgent, the agent says so and lets the person decide how to reach them.

How to test this

Platforms: any. Documentation only, nothing runs.

Starting state: any checkout of this branch.

  1. Open AGENTS.md and find the section "A pull request you did not open belongs to its author". It sits between the CodeRabbit paragraphs and "The pull request description follows the template".
  2. Read it as an agent about to act on a pull request someone else opened. Expected: it names every action that is off limits (push, rebase, update, edit description, merge) and the one that is allowed (review and leave findings).

What must not have happened: no other line of AGENTS.md changed. git diff trunk --stat lists one file with six added lines.

Risks and limitations

None to the app. The rule constrains agents only; a human maintainer keeps whatever latitude the repository gives them.

Related

Prompted by #358, where the rule was broken before it existed.


Review outcome (required — see AGENTS.md)

Documentation change, six added lines in AGENTS.md, no code. Read once against the surrounding sections for tone and placement; npm run lint does not cover Markdown. Nothing to fix, nothing deferred.

Screenshots or recording

Nothing on screen changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_0123opUnXoxs1CAN7YQ7q8KU

An agent pushed a rebase fix to an external contributor's branch because
the repository allowed maintainer edits and the fix was one line. That is
not the agent's call: the author owns their branch and their merge. On a
pull request the person you work for did not open, the only move is to
review and leave findings.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0123opUnXoxs1CAN7YQ7q8KU
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 332d39b9-e50d-4024-ad53-67a6f5e2b9d4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@juanmaguitar
juanmaguitar merged commit f6f2186 into trunk Sep 12, 2026
8 checks passed
@juanmaguitar
juanmaguitar deleted the juanmaguitar/agents-pr-belongs-to-author branch September 12, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant