Skip to content

[pr-review] Block in proportion to stakes (port of #202820) - #203029

Draft
janeyx99 wants to merge 2 commits into
gh/janeyx99/430/basefrom
gh/janeyx99/430/head
Draft

janeyx99 wants to merge 2 commits into
gh/janeyx99/430/basefrom
gh/janeyx99/430/head

Conversation

@janeyx99

@janeyx99 janeyx99 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Linked issue or supporting maintainer

Part of pytorch/test-infra#9243

BC-breaking?

No.

Summary (human written only)

Agent details (if applicable)

This ports Edward Yang's #202820 onto the minimized skill below it, so it
can be measured together with the re-review rules. The idea and most of the
wording are from #202820; see its description for the evidence behind it.

"Everything is a must-fix" turns every true observation into Request
Changes. In the ciforge maintainer eval on the stack below, the reviewer
blocked 42 of 54 runs on PRs that maintainers merged unchanged. This
replaces the rule with #202820's three principles: block in proportion to
stakes, own bugs the PR touches but not ones it doesn't, and find the
invariant before asking for a check. It also drops the "load-bearing"
paragraph, softens "pattern mismatches are always wrong", and removes the
two sibling-file references to the deleted rule.

Two changes from #202820. The Maintainer decision rule from the change
below moves from the deleted principle into the new principle 5, next to
"Needs Discussion is for a direction question". The untouched principles
keep their minimized wording.

Test Plan:

python3 -m unittest scripts.pr_review.test_workflow_contract.TestStageBMapsPrReviewsReview scripts.pr_review.test_workflow_contract.TestStageACoversTheSkillOffline
lintrunner -a .agents/skills/pr-review/SKILL.md .agents/skills/pr-review/review-checklist.md .agents/skills/pr-review/ci-runner-naming.md

ciforge results to follow.

This PR was authored with an AI assistant (Claude).

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/203029

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit b99131f with merge base 5f9684c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Nov 2, 2026
[ghstack-poisoned]
janeyx99 added a commit that referenced this pull request Nov 2, 2026
## Linked issue or supporting maintainer

Part of pytorch/test-infra#9243

## BC-breaking?

No.

## Summary (human written only)

<!-- TODO: human summary -->

## Agent details (if applicable)

This ports Edward Yang's #202820 onto the minimized skill below it, so it
can be measured together with the re-review rules. The idea and most of the
wording are from #202820; see its description for the evidence behind it.

"Everything is a must-fix" turns every true observation into Request
Changes. In the ciforge maintainer eval on the stack below, the reviewer
blocked 42 of 54 runs on PRs that maintainers merged unchanged. This
replaces the rule with #202820's three principles: block in proportion to
stakes, own bugs the PR touches but not ones it doesn't, and find the
invariant before asking for a check. It also drops the "load-bearing"
paragraph, softens "pattern mismatches are always wrong", and removes the
two sibling-file references to the deleted rule.

Two changes from #202820. The Maintainer decision rule from the change
below moves from the deleted principle into the new principle 5, next to
"Needs Discussion is for a direction question". The untouched principles
keep their minimized wording.

Test Plan:

```
python3 -m unittest scripts.pr_review.test_workflow_contract.TestStageBMapsPrReviewsReview scripts.pr_review.test_workflow_contract.TestStageACoversTheSkillOffline
lintrunner -a .agents/skills/pr-review/SKILL.md .agents/skills/pr-review/review-checklist.md .agents/skills/pr-review/ci-runner-naming.md
```

ciforge results to follow.

This PR was authored with an AI assistant (Claude).

ghstack-source-id: 64f31a7
Pull-Request: #203029

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant