Skip to content

docs(contributing): address duplicate and unvetted AI-assisted PRs - #13499

Merged
zkochan merged 2 commits into
mainfrom
contributing-ai-assisted-prs
Jul 30, 2026
Merged

zkochan merged 2 commits into
mainfrom
contributing-ai-assisted-prs

Conversation

@zkochan

@zkochan zkochan commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to #13498. Contributors — increasingly with AI agents — keep submitting parallel PRs for issues that already have a fix in flight (e.g. #13114 was superseded by #13124 for issue #13108), which multiplies maintainer review work. This updates CONTRIBUTING.md (and aligns the PR template) to:

  • strengthen the duplicate-PR guidance: check the PRs automatically linked on the issue's timeline instead of vaguely "searching GitHub", and contribute to an existing PR rather than opening a competing one;
  • add an "AI-assisted contributions" section: agents are welcome, but the contributor owns the output — verify it isn't a duplicate, understand the change, run the tests, keep the diff focused, and disclose agent authorship with the standard footer; PRs that appear to be unreviewed agent output may be closed without detailed review;
  • document the review order: a human reviewer only starts once CodeRabbit has approved and CI is green. CodeRabbit is the single required AI approval (Qodo ignores Dependabot/Renovate PRs, so a two-reviewer gate could never be satisfied for dependency updates); the PR template's header comment is updated to match.

Squash Commit Body

Strengthen the duplicate-PR guidance to point at the issue's
automatically linked PRs, add an AI-assisted contributions section
(agents are welcome, but contributors own the output — check linked
PRs, understand the change, run the tests, keep the diff focused,
disclose agent authorship with the standard footer), and document that
human review starts only after CodeRabbit approves and CI is green.
CodeRabbit is the single required AI approval — Qodo ignores
Dependabot/Renovate PRs, so a two-reviewer gate could never be
satisfied for dependency updates; the PR template is aligned
accordingly.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust pnpm/ port — n/a, documentation only.
  • Added a changeset — n/a, no published package affected.
  • Added or updated tests — n/a.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-fable-5).

Summary by CodeRabbit

  • Documentation
    • Updated the contributing guide with an “AI-assisted contributions” section and linked it from the table of contents.
    • Clarified the pull request workflow to wait for CodeRabbit approval and ensure CI is green before human review.
    • Added expectations for understanding the change, running relevant tests locally, avoiding duplicated or unrelated changes, and disclosing AI assistance in agent-written PRs/issues/comments.
    • Updated guidance on when AI-like submissions may be closed without detailed review.

Strengthen the duplicate-PR guidance to point at the issue's
automatically linked PRs, add an AI-assisted contributions section
(agents are welcome, but contributors own the output — check linked
PRs, understand the change, run the tests, keep the diff focused), and
document that human review starts only after the AI reviewers approve
and CI is green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 30, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 71d382f5-cfe9-4ef3-83f1-f7095f054aed

📥 Commits

Reviewing files that changed from the base of the PR and between a3fda1a and 5d5e2a0.

📒 Files selected for processing (2)
  • .github/pull_request_template.md
  • CONTRIBUTING.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • CONTRIBUTING.md

📝 Walkthrough

Walkthrough

CONTRIBUTING.md updates pull request workflow guidance and adds AI-assisted contribution expectations. The pull request template now references CodeRabbit approval and green CI as prerequisites for human review.

Changes

Contribution guidance

Layer / File(s) Summary
PR workflow updates
CONTRIBUTING.md, .github/pull_request_template.md
Contributors are instructed to check issue-linked pull requests for duplicates and wait for CodeRabbit approval, green CI, and addressed findings before human review.
AI-assisted contribution guidance
CONTRIBUTING.md
A new section defines expectations for AI-generated drafts, including disclosure, understanding changes, running tests, avoiding unrelated edits, and checking for duplicates.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch contributing-ai-assisted-prs

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Docs: clarify duplicate-PR checks and expectations for AI-assisted contributions

📝 Documentation 🕐 Less than 10 minutes

Grey Divider

AI Description

• Instruct contributors to check issue-linked PRs before starting work to avoid duplicates.
• Add explicit guidance and responsibility expectations for AI-assisted PRs.
• Document that human review starts after AI reviewers approve and CI is green.
Diagram

graph TD
  A["Contributor"] --> B["GitHub issue"] --> C["Linked PRs list"] --> D{"Duplicate fix?"}
  D -->|"Yes"| E["Contribute to existing PR"]
  D -->|"No"| F["Open PR"] --> G["AI reviewers"] --> H["CI green"] --> I["Human review"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. PR template + required checkboxes
  • ➕ Forces contributors to attest they checked linked PRs and ran tests
  • ➕ Scales better than prose-only guidance
  • ➖ Checkboxes can become rote/ignored without enforcement
  • ➖ Adds process friction for all PRs, including simple fixes
2. Automation/bot to detect duplicates and warn early
  • ➕ Proactively reduces duplicate PRs via automated comments/labels
  • ➕ Shifts burden from maintainers to tooling
  • ➖ Heuristic matching can be noisy/incorrect
  • ➖ Requires ongoing maintenance and GitHub app/workflow permissions
3. Issue-level “in progress”/assignment policy enforcement
  • ➕ Makes ownership explicit and reduces parallel efforts
  • ➕ Can integrate with triage workflow
  • ➖ Hard to apply consistently in an open-source context
  • ➖ May discourage drive-by contributions

Recommendation: The documentation-first approach in this PR is the right immediate step: it’s lightweight, sets clear expectations for AI-assisted work, and clarifies a concrete duplicate-check workflow (issue-linked PRs). If duplicate PR volume remains high, consider layering in a PR template attestation or a lightweight bot warning to reinforce the policy without relying solely on contributors reading CONTRIBUTING.md.

Files changed (1) +29 / -2

Documentation (1) +29 / -2
CONTRIBUTING.mdTighten duplicate-PR guidance and add AI-assisted contribution policy +29/-2

Tighten duplicate-PR guidance and add AI-assisted contribution policy

• Replaces vague “search GitHub” guidance with explicit instructions to check the issue timeline’s automatically linked PRs and to contribute to an existing fix instead of opening a competing PR. Adds an AI-assisted contributions section clarifying contributor responsibility (understand changes, run tests, avoid padded diffs) and notes that unvetted agent output may be closed. Documents that human review begins only after CodeRabbit/Qodo approvals and green CI.

CONTRIBUTING.md

Comment thread CONTRIBUTING.md Resolved
Comment thread CONTRIBUTING.md Resolved
@greptile-apps

greptile-apps Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The documentation changes appear safe to merge.

No blocking failure remains; the Qodo prerequisite was removed and the AI-assisted contribution checklist now expressly requires disclosure.

Reviews (2): Last reviewed commit: "docs: require only CodeRabbit approval b..." | Re-trigger Greptile

@qodo-code-review

qodo-code-review Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Remediation recommended

1. Overstrict review gating 🐞 Bug ⚙ Maintainability
Description
CONTRIBUTING.md now says a human reviewer will only start once CodeRabbit/Qodo approve and CI is
green, turning guidance into a hard prerequisite. This is inconsistent with the canonical
REVIEW_GUIDE.md, which describes human review-after-bots as typical rather than an absolute gate,
and can mislead contributors when automation is unavailable.
Code

CONTRIBUTING.md[R252-254]

+- Wait for the automated reviewers. A human reviewer will only start the review
+  process once the AI reviewers (CodeRabbit and Qodo) have approved the PR and
+  CI is green, so address their findings first.
Relevance

●●● Strong

Team has accepted aligning docs/config with canonical REVIEW_GUIDE and avoiding overstated
enforcement language.

PR-#12522
PR-#12474

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added CONTRIBUTING text makes bot approval + green CI a strict prerequisite ("will only start"),
while the canonical review guide explicitly frames this sequencing as typical rather than mandatory
and establishes itself as the canonical source of review process guidance.

CONTRIBUTING.md[251-254]
REVIEW_GUIDE.md[12-16]
REVIEW_GUIDE.md[296-298]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`CONTRIBUTING.md` currently states that human review **will only start** after AI reviewers approve and CI is green. This reads as a hard gate and is inconsistent with the repo’s canonical review guidance, which frames this ordering as a typical workflow.

## Issue Context
`REVIEW_GUIDE.md` is explicitly described as the canonical review guide for the repo and already documents the bot→human sequencing as "typically" rather than mandatory.

## Fix Focus Areas
- CONTRIBUTING.md[251-254]

## Suggested change
Adjust wording to match the repo-wide policy language, e.g. change "will only start" to "typically starts" (and keep the advice to address bot findings first).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

2. Qodo omitted from guidance 🐞 Bug ⚙ Maintainability ⭐ New
Description
The PR template now tells contributors to wait only for CodeRabbit approval, but the repo’s
canonical review guide states there are two automated reviewers (CodeRabbit and Qodo) and the Qodo
config is present/enabled. This inconsistency can mislead contributors about which automated review
results they’re expected to address before expecting maintainer review.
Code

.github/pull_request_template.md[R1-2]

+<!-- A maintainer will only start reviewing once CodeRabbit has approved and
+CI is green. Please wait for those to pass before expecting human review. -->
Relevance

●●● Strong

Team often accepts fixing misleading/stale repo guidance/comments; PR intent mentions both automated
reviewers.

PR-#13072
PR-#13004

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed PR template and CONTRIBUTING text now references only CodeRabbit, while the repo’s
review guide explicitly documents both CodeRabbit and Qodo as automated reviewers and the Qodo
config shows it is configured to run review commands and auto-approval.

.github/pull_request_template.md[1-2]
CONTRIBUTING.md[251-254]
REVIEW_GUIDE.md[12-16]
.pr_agent.toml[1-21]
.pr_agent.toml[39-49]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Contributor-facing docs now name only **CodeRabbit** as the automated reviewer to wait for, but the repo’s canonical guidance/config indicate **Qodo** is also part of the automated review setup. This creates conflicting instructions.

## Issue Context
- `REVIEW_GUIDE.md` describes the two-bot setup (CodeRabbit + Qodo) and their depth split.
- `.pr_agent.toml` configures Qodo’s PR commands and auto-approval behavior.

## Fix Focus Areas
- .github/pull_request_template.md[1-2]
- CONTRIBUTING.md[251-254]

## Suggested fix
Update the PR template and CONTRIBUTING wording to match the canonical setup (e.g., “CodeRabbit and Qodo” / “automated reviewers”), or (if Qodo is intentionally no longer used) update `REVIEW_GUIDE.md` and remove/disable the Qodo configuration so all sources agree.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

To customize comments, go to the Qodo configuration screen, or learn more in the docs.

Previous review results

Review updated until commit 5d5e2a0

Results up to commit a3fda1a ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Overstrict review gating 🐞 Bug ⚙ Maintainability
Description
CONTRIBUTING.md now says a human reviewer will only start once CodeRabbit/Qodo approve and CI is
green, turning guidance into a hard prerequisite. This is inconsistent with the canonical
REVIEW_GUIDE.md, which describes human review-after-bots as typical rather than an absolute gate,
and can mislead contributors when automation is unavailable.
Code

CONTRIBUTING.md[R252-254]

+- Wait for the automated reviewers. A human reviewer will only start the review
+  process once the AI reviewers (CodeRabbit and Qodo) have approved the PR and
+  CI is green, so address their findings first.
Relevance

●●● Strong

Team has accepted aligning docs/config with canonical REVIEW_GUIDE and avoiding overstated
enforcement language.

PR-#12522
PR-#12474

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added CONTRIBUTING text makes bot approval + green CI a strict prerequisite ("will only start"),
while the canonical review guide explicitly frames this sequencing as typical rather than mandatory
and establishes itself as the canonical source of review process guidance.

CONTRIBUTING.md[251-254]
REVIEW_GUIDE.md[12-16]
REVIEW_GUIDE.md[296-298]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`CONTRIBUTING.md` currently states that human review **will only start** after AI reviewers approve and CI is green. This reads as a hard gate and is inconsistent with the repo’s canonical review guidance, which frames this ordering as a typical workflow.

## Issue Context
`REVIEW_GUIDE.md` is explicitly described as the canonical review guide for the repo and already documents the bot→human sequencing as "typically" rather than mandatory.

## Fix Focus Areas
- CONTRIBUTING.md[251-254]

## Suggested change
Adjust wording to match the repo-wide policy language, e.g. change "will only start" to "typically starts" (and keep the advice to address bot findings first).

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CONTRIBUTING.md`:
- Around line 268-286: Update the “AI-assisted contributions” section in
CONTRIBUTING.md to require that agent-posted pull requests, issues, and comments
include the repository-standard “Written by an agent (model…)” attribution
footer, while preserving the existing review and testing guidance.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 213b437f-85bb-49ee-9ff9-db776e0d70b1

📥 Commits

Reviewing files that changed from the base of the PR and between b9603f6 and a3fda1a.

📒 Files selected for processing (1)
  • CONTRIBUTING.md

Comment thread CONTRIBUTING.md Resolved
Qodo ignores Dependabot and Renovate PRs, so an unconditional
two-reviewer gate could never be satisfied for dependency updates. Keep
CodeRabbit as the single required AI approval, in CONTRIBUTING.md and
the PR template alike, and document the agent-attribution footer in the
AI-assisted contributions checklist.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 30, 2026 11:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 30, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 5d5e2a0

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 5b063b9 into main Jul 30, 2026
30 checks passed
@zkochan
zkochan deleted the contributing-ai-assisted-prs branch July 30, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants