Skip to content

[pr-review] Keep re-review findings closed once settled - #202924

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

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

Conversation

@janeyx99

@janeyx99 janeyx99 commented Nov 1, 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)

On #197775 successive re-reviews kept moving the bar. One round offered
moving compile_lock to module scope and the next asked to move it back. A
race the author chose to document, one of the offered remedies, was
reproduced and made blocking again. A blocker on a subprocess test cited a
reply the author had already superseded. Re-reviews have no rule for when an
earlier point is closed, and "Everything is a must-fix" gives no way to say
a question is the maintainers' to settle rather than the author's to fix.

This adds a closure rule to "Earlier Automated Findings". Before reporting
an earlier point again, check it and the author's technical claims at HEAD.
An implemented offered remedy, or a reply that holds up, resolves it. Reopen
only for a change to the code it relies on, new evidence, or an explicit
scope change. Showing an accepted or documented limitation again is not new
evidence. It also adds a "Maintainer decision" finding type, and Needs
Discussion when only those remain.

Wording: the rules were written as 16 atomic claims and minimized the way
the two changes below this one were. Fresh agents expanded each
candidate 5 times, and a grader checked the expansions against the claims.
The text went from 414 to 246 words:

  1. Lost "the code it relies on" (any edit could reopen a point), "if the
    reply holds up" on reviewing a replacement, and "without new evidence"
    on escalating: 5/5 misses each.
  2. The reply check guarded accepting a point, not reopening it: 5/5.
  3. 0 misses on all 16 claims.
    The first draft had also dropped "explicit" from scope change in 3/3.

Simulation: fresh agents re-reviewed #197775 at the round-11 state (HEAD
45455b1, conversation up to that review) in the production offline
format, given only the skill and the PR inputs. Four versions of SKILL.md
were run twice each:

  • main: SKILL.md as on main.
  • min: SKILL.md after the change below (minimized, no rules).
  • main+rules: main's SKILL.md with this change's lines applied directly
    (this PR's first version, before the change below existed).
  • min+rules: SKILL.md after this change.
                                           main  min  main+rules  min+rules
maintainer question as author blocker       2/2  2/2     0/2         0/2
new redesign request in round 11            1/2  2/2     0/2         0/2
reopens documented direct-compile_fx race   1/2  0/2     0/2         0/2
blocks on answered subprocess-test ask      0/2  0/2     0/2         0/2
asks to move compile_lock import again      0/2  0/2     0/2         0/2

All eight runs still recommended Request Changes. The runs with the rules
did so only for author work: the missing positional-only marker, the
vacuous phase-2 test assertion that the author later fixed, and a docstring
that omits a window the PR description says it documents. main and min
behaved alike. Caveats: two runs per version is a signal, not a
measurement. The runs could not spawn sub-agents. Bash was unavailable for
the later part of the main and main+rules runs, so their later checks used
Read only. The compile_lock reversal reproduced in no run, so this
simulation does not test that rule.

ciforge evals (production two-stage harness, 3 reps per case, prompt refs
main, pr:202926 = min, pr:202924 = min+rules):

                                        main    min    min+rules
maintainer set, blocks on block PRs    45/45   45/45    45/45
maintainer set, blocks on clean PRs    37/54   40/54    42/54
regressions set, runs as expected      33/33   33/33    33/33

Recall and the known-misbehaviour cases, including unanswered maintainer
comments, are unchanged. False blocks on clean PRs went up 5 runs for
min+rules, all one-rep shifts: six cases blocked one more time and one
blocked one fewer (sign test p ~ 0.13). These cases are first reviews, so
the closure rules do not engage. In the reviews that moved, "Maintainer
decision" findings were kept separate, and Request Changes came from author
fixes, which is first-review severity rather than this change. The
dataset has no re-review cases, so it measures that this change does no
harm on first reviews, not that it fixes re-review loops. The
prompt-versions run on #197775 reviewed its current head without
comments, so it is also a first review: all 9 runs requested changes.

Test Plan:

lintrunner -a .agents/skills/pr-review/SKILL.md
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<half of the cases>
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<other half>
gh workflow run pr-review-eval-regressions.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3
gh workflow run pr-review-eval-pr.yml -R pytorch/ciforge -f pr=197775 -f prompt_refs=main,pr:202926,pr:202924 -f reps=3

The maintainer set is split in two because one run is capped at 256 jobs.

The claim check and the simulation are described above; their scripts and
outputs are not committed.

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

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9a1bc98 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.

[ghstack-poisoned]
janeyx99 added a commit that referenced this pull request Nov 1, 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)

On #197775 successive re-reviews kept moving the bar. One round offered
moving compile_lock to module scope and the next asked to move it back. A
race the author chose to document, one of the offered remedies, was
reproduced and made blocking again. A blocker on a subprocess test cited a
reply the author had already superseded. Re-reviews have no rule for when an
earlier point is closed, and "Everything is a must-fix" gives no way to say
a question is the maintainers' to settle rather than the author's to fix.

This adds a closure rule to "Earlier Automated Findings". Before reporting
an earlier point again, check it and the author's technical claims at HEAD.
An implemented offered remedy, or a reply that holds up, resolves it. Reopen
only for a change to the code it relies on, new evidence, or an explicit
scope change. Showing an accepted or documented limitation again is not new
evidence. It also adds a "Maintainer decision" finding type, and Needs
Discussion when only those remain.

Wording: the rules were written as 16 atomic claims and minimized the way
the two changes below this one were. Fresh agents expanded each
candidate 5 times, and a grader checked the expansions against the claims.
The text went from 414 to 246 words:
  1. Lost "the code it relies on" (any edit could reopen a point), "if the
     reply holds up" on reviewing a replacement, and "without new evidence"
     on escalating: 5/5 misses each.
  2. The reply check guarded accepting a point, not reopening it: 5/5.
  3. 0 misses on all 16 claims.
The first draft had also dropped "explicit" from scope change in 3/3.

Simulation: fresh agents re-reviewed #197775 at the round-11 state (HEAD
45455b1, conversation up to that review) in the production offline
format, given only the skill and the PR inputs. Each arm had 4 runs: 2 on
the original skill and 2 on the minimized skill from the change below.

```
                                          without  with rules
maintainer question as author blocker      4/4     0/4
new redesign request in round 11           3/4     0/4
reopens documented direct-compile_fx race  1/4     0/4 (Maintainer decision)
blocks on answered subprocess-test ask     0/4     0/4 (all verified reply)
asks to move compile_lock import again     0/4     0/4
```

All eight runs still recommended Request Changes. The runs with the rules
did so only for author work: the missing positional-only marker, the
vacuous phase-2 test assertion that the author later fixed, and a docstring
that omits a window the PR description says it documents. The two skill
versions behaved alike without the rules. Caveats: four runs per arm is a
signal, not a measurement. The runs could not spawn sub-agents. Bash was
unavailable for the later part of the original-skill runs, so their later
checks used Read only. The compile_lock reversal reproduced in neither arm,
so this simulation does not test that rule.

Test Plan:

```
lintrunner -a .agents/skills/pr-review/SKILL.md
```

The claim check and the simulation are described above; their scripts and
outputs are not committed.

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

ghstack-source-id: d59490f
Pull-Request: #202924
janeyx99 added a commit that referenced this pull request Nov 1, 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)

On #197775 successive re-reviews kept moving the bar. One round offered
moving compile_lock to module scope and the next asked to move it back. A
race the author chose to document, one of the offered remedies, was
reproduced and made blocking again. A blocker on a subprocess test cited a
reply the author had already superseded. Re-reviews have no rule for when an
earlier point is closed, and "Everything is a must-fix" gives no way to say
a question is the maintainers' to settle rather than the author's to fix.

This adds a closure rule to "Earlier Automated Findings". Before reporting
an earlier point again, check it and the author's technical claims at HEAD.
An implemented offered remedy, or a reply that holds up, resolves it. Reopen
only for a change to the code it relies on, new evidence, or an explicit
scope change. Showing an accepted or documented limitation again is not new
evidence. It also adds a "Maintainer decision" finding type, and Needs
Discussion when only those remain.

Wording: the rules were written as 16 atomic claims and minimized the way
the two changes below this one were. Fresh agents expanded each
candidate 5 times, and a grader checked the expansions against the claims.
The text went from 414 to 246 words:
  1. Lost "the code it relies on" (any edit could reopen a point), "if the
     reply holds up" on reviewing a replacement, and "without new evidence"
     on escalating: 5/5 misses each.
  2. The reply check guarded accepting a point, not reopening it: 5/5.
  3. 0 misses on all 16 claims.
The first draft had also dropped "explicit" from scope change in 3/3.

Simulation: fresh agents re-reviewed #197775 at the round-11 state (HEAD
45455b1, conversation up to that review) in the production offline
format, given only the skill and the PR inputs. Four versions of SKILL.md
were run twice each:

- main: SKILL.md as on main.
- min: SKILL.md after the change below (minimized, no rules).
- main+rules: main's SKILL.md with this change's lines applied directly
  (this PR's first version, before the change below existed).
- min+rules: SKILL.md after this change.

```
                                           main  min  main+rules  min+rules
maintainer question as author blocker       2/2  2/2     0/2         0/2
new redesign request in round 11            1/2  2/2     0/2         0/2
reopens documented direct-compile_fx race   1/2  0/2     0/2         0/2
blocks on answered subprocess-test ask      0/2  0/2     0/2         0/2
asks to move compile_lock import again      0/2  0/2     0/2         0/2
```

All eight runs still recommended Request Changes. The runs with the rules
did so only for author work: the missing positional-only marker, the
vacuous phase-2 test assertion that the author later fixed, and a docstring
that omits a window the PR description says it documents. main and min
behaved alike. Caveats: two runs per version is a signal, not a
measurement. The runs could not spawn sub-agents. Bash was unavailable for
the later part of the main and main+rules runs, so their later checks used
Read only. The compile_lock reversal reproduced in no run, so this
simulation does not test that rule.

Test Plan:

```
lintrunner -a .agents/skills/pr-review/SKILL.md
```

The claim check and the simulation are described above; their scripts and
outputs are not committed.

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

ghstack-source-id: d59490f
Pull-Request: #202924
janeyx99 added a commit that referenced this pull request Nov 1, 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)

On #197775 successive re-reviews kept moving the bar. One round offered
moving compile_lock to module scope and the next asked to move it back. A
race the author chose to document, one of the offered remedies, was
reproduced and made blocking again. A blocker on a subprocess test cited a
reply the author had already superseded. Re-reviews have no rule for when an
earlier point is closed, and "Everything is a must-fix" gives no way to say
a question is the maintainers' to settle rather than the author's to fix.

This adds a closure rule to "Earlier Automated Findings". Before reporting
an earlier point again, check it and the author's technical claims at HEAD.
An implemented offered remedy, or a reply that holds up, resolves it. Reopen
only for a change to the code it relies on, new evidence, or an explicit
scope change. Showing an accepted or documented limitation again is not new
evidence. It also adds a "Maintainer decision" finding type, and Needs
Discussion when only those remain.

Wording: the rules were written as 16 atomic claims and minimized the way
the two changes below this one were. Fresh agents expanded each
candidate 5 times, and a grader checked the expansions against the claims.
The text went from 414 to 246 words:
  1. Lost "the code it relies on" (any edit could reopen a point), "if the
     reply holds up" on reviewing a replacement, and "without new evidence"
     on escalating: 5/5 misses each.
  2. The reply check guarded accepting a point, not reopening it: 5/5.
  3. 0 misses on all 16 claims.
The first draft had also dropped "explicit" from scope change in 3/3.

Simulation: fresh agents re-reviewed #197775 at the round-11 state (HEAD
45455b1, conversation up to that review) in the production offline
format, given only the skill and the PR inputs. Four versions of SKILL.md
were run twice each:

- main: SKILL.md as on main.
- min: SKILL.md after the change below (minimized, no rules).
- main+rules: main's SKILL.md with this change's lines applied directly
  (this PR's first version, before the change below existed).
- min+rules: SKILL.md after this change.

```
                                           main  min  main+rules  min+rules
maintainer question as author blocker       2/2  2/2     0/2         0/2
new redesign request in round 11            1/2  2/2     0/2         0/2
reopens documented direct-compile_fx race   1/2  0/2     0/2         0/2
blocks on answered subprocess-test ask      0/2  0/2     0/2         0/2
asks to move compile_lock import again      0/2  0/2     0/2         0/2
```

All eight runs still recommended Request Changes. The runs with the rules
did so only for author work: the missing positional-only marker, the
vacuous phase-2 test assertion that the author later fixed, and a docstring
that omits a window the PR description says it documents. main and min
behaved alike. Caveats: two runs per version is a signal, not a
measurement. The runs could not spawn sub-agents. Bash was unavailable for
the later part of the main and main+rules runs, so their later checks used
Read only. The compile_lock reversal reproduced in no run, so this
simulation does not test that rule.

ciforge evals (production two-stage harness, 3 reps per case, prompt refs
main, pr:202926 = min, pr:202924 = min+rules):

```
                                        main    min    min+rules
maintainer set, blocks on block PRs    45/45   45/45    45/45
maintainer set, blocks on clean PRs    37/54   40/54    42/54
regressions set, runs as expected      33/33   33/33    33/33
```

Recall and the known-misbehaviour cases, including unanswered maintainer
comments, are unchanged. False blocks on clean PRs went up 5 runs for
min+rules, all one-rep shifts: six cases blocked one more time and one
blocked one fewer (sign test p ~ 0.13). These cases are first reviews, so
the closure rules do not engage. In the reviews that moved, "Maintainer
decision" findings were kept separate, and Request Changes came from author
fixes, which is first-review severity rather than this change. The
dataset has no re-review cases, so it measures that this change does no
harm on first reviews, not that it fixes re-review loops. The
prompt-versions run on #197775 reviewed its current head without
comments, so it is also a first review: all 9 runs requested changes.

Test Plan:

```
lintrunner -a .agents/skills/pr-review/SKILL.md
```

```
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<half of the cases>
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<other half>
gh workflow run pr-review-eval-regressions.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3
gh workflow run pr-review-eval-pr.yml -R pytorch/ciforge -f pr=197775 -f prompt_refs=main,pr:202926,pr:202924 -f reps=3
```

The maintainer set is split in two because one run is capped at 256 jobs.

The claim check and the simulation are described above; their scripts and
outputs are not committed.

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

ghstack-source-id: d59490f
Pull-Request: #202924
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)

On #197775 successive re-reviews kept moving the bar. One round offered
moving compile_lock to module scope and the next asked to move it back. A
race the author chose to document, one of the offered remedies, was
reproduced and made blocking again. A blocker on a subprocess test cited a
reply the author had already superseded. Re-reviews have no rule for when an
earlier point is closed, and "Everything is a must-fix" gives no way to say
a question is the maintainers' to settle rather than the author's to fix.

This adds a closure rule to "Earlier Automated Findings". Before reporting
an earlier point again, check it and the author's technical claims at HEAD.
An implemented offered remedy, or a reply that holds up, resolves it. Reopen
only for a change to the code it relies on, new evidence, or an explicit
scope change. Showing an accepted or documented limitation again is not new
evidence. It also adds a "Maintainer decision" finding type, and Needs
Discussion when only those remain.

Wording: the rules were written as 16 atomic claims and minimized the way
the two changes below this one were. Fresh agents expanded each
candidate 5 times, and a grader checked the expansions against the claims.
The text went from 414 to 246 words:
  1. Lost "the code it relies on" (any edit could reopen a point), "if the
     reply holds up" on reviewing a replacement, and "without new evidence"
     on escalating: 5/5 misses each.
  2. The reply check guarded accepting a point, not reopening it: 5/5.
  3. 0 misses on all 16 claims.
The first draft had also dropped "explicit" from scope change in 3/3.

Simulation: fresh agents re-reviewed #197775 at the round-11 state (HEAD
45455b1, conversation up to that review) in the production offline
format, given only the skill and the PR inputs. Four versions of SKILL.md
were run twice each:

- main: SKILL.md as on main.
- min: SKILL.md after the change below (minimized, no rules).
- main+rules: main's SKILL.md with this change's lines applied directly
  (this PR's first version, before the change below existed).
- min+rules: SKILL.md after this change.

```
                                           main  min  main+rules  min+rules
maintainer question as author blocker       2/2  2/2     0/2         0/2
new redesign request in round 11            1/2  2/2     0/2         0/2
reopens documented direct-compile_fx race   1/2  0/2     0/2         0/2
blocks on answered subprocess-test ask      0/2  0/2     0/2         0/2
asks to move compile_lock import again      0/2  0/2     0/2         0/2
```

All eight runs still recommended Request Changes. The runs with the rules
did so only for author work: the missing positional-only marker, the
vacuous phase-2 test assertion that the author later fixed, and a docstring
that omits a window the PR description says it documents. main and min
behaved alike. Caveats: two runs per version is a signal, not a
measurement. The runs could not spawn sub-agents. Bash was unavailable for
the later part of the main and main+rules runs, so their later checks used
Read only. The compile_lock reversal reproduced in no run, so this
simulation does not test that rule.

ciforge evals (production two-stage harness, 3 reps per case, prompt refs
main, pr:202926 = min, pr:202924 = min+rules):

```
                                        main    min    min+rules
maintainer set, blocks on block PRs    45/45   45/45    45/45
maintainer set, blocks on clean PRs    37/54   40/54    42/54
regressions set, runs as expected      33/33   33/33    33/33
```

Recall and the known-misbehaviour cases, including unanswered maintainer
comments, are unchanged. False blocks on clean PRs went up 5 runs for
min+rules, all one-rep shifts: six cases blocked one more time and one
blocked one fewer (sign test p ~ 0.13). These cases are first reviews, so
the closure rules do not engage. In the reviews that moved, "Maintainer
decision" findings were kept separate, and Request Changes came from author
fixes, which is first-review severity rather than this change. The
dataset has no re-review cases, so it measures that this change does no
harm on first reviews, not that it fixes re-review loops. The
prompt-versions run on #197775 reviewed its current head without
comments, so it is also a first review: all 9 runs requested changes.

Test Plan:

```
lintrunner -a .agents/skills/pr-review/SKILL.md
```

```
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<half of the cases>
gh workflow run pr-review-eval-maintainer.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3 -f only=<other half>
gh workflow run pr-review-eval-regressions.yml -R pytorch/ciforge -f prompt_refs=main,pr:202926,pr:202924 -f reps=3
gh workflow run pr-review-eval-pr.yml -R pytorch/ciforge -f pr=197775 -f prompt_refs=main,pr:202926,pr:202924 -f reps=3
```

The maintainer set is split in two because one run is capped at 256 jobs.

The claim check and the simulation are described above; their scripts and
outputs are not committed.

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

ghstack-source-id: d59490f
Pull-Request: #202924

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