Skip to content

Policy: Empower reviewers to reject burdensome PRs #893

Open
@jieyouxu

Description

@jieyouxu

Proposal: Empower reviewers to reject burdensome PRs

Reviewer time and effort are very precious and limited resources. However, there are Pull Requests (PRs) with certain qualities that place undue burden on reviewers. We are proposing a policy that reviewers can use as justification for rejecting a PR without them having to excessively defend their position or relitigate the reasons for closing.

Motivation

In recent times, there are rather frequent contributions that are fully or partially produced by generative AI (e.g. LLMs and friends) which exhibit burdensome characteristics (see below) that cause a lot of burden on reviewers. While we've seen PRs with burdensome characteristics produced entirely by humans, generate AI tools have significantly lowered the level of effort required to produce "plausibly-looking" contributions that are entirely inadmissible, and so have become a major source of burdensome PRs. This policy is thus drafted as a response targeted at the problem of an increasing frequency of burdensome PRs, without requiring reviewers to figure out how they are produced.

PR characteristics that are burdensome to reviewers

  • Needlessly or overly verbose descriptions or responses.
  • Not internally coherent or even self-contradictory.
  • Demonstrates misunderstanding of important aspects of what the code is doing or the purpose of the change.

It is okay to not be fully confident in a proposed change, but this should be disclaimed on the PR itself.

Policy

To mitigate the burden on reviewers, when encountering PRs with one or more of the characteristics, reviewers may choose to exercise one or more of the following options:

  • Ask the PR author to make their PR descriptions or responses concise.
  • Edit out verbose PR descriptions.
  • Reject (close) the PR.

Mentors or Reviewers

None specifically; compiler team.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member or contributor who is knowledgeable in the area can second by writing @rustbot second.
    • Finding a "second" suffices for internal changes. If however, you are proposing a new public-facing feature, such as a -C flag, then full team check-off is required.
    • Compiler team members can initiate a check-off via @rfcbot fcp merge on either the MCP or the PR.
  • Once an MCP is seconded, the Final Comment Period begins. If no objections are raised after 10 days, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teamfinal-comment-periodThe FCP has started, most (if not all) team members are in agreementhas-concernsThere are active concernsmajor-changeA proposal to make a major change to rustcto-announceAnnounce this issue on triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions