Skip to content

Review substantive numerical reports before requesting reproduction - #202461

Closed
drisspg wants to merge 10 commits into
gh/drisspg/463/basefrom
gh/drisspg/463/head
Closed

drisspg wants to merge 10 commits into
gh/drisspg/463/basefrom
gh/drisspg/463/head

Conversation

@drisspg

@drisspg drisspg commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Human Note

Rolling in some feedback from an issues that was not properly triaged

Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

Test Plan

python3 -m unittest discover -s scripts/issue_triage_pi -v

75 tests pass. The new consistency regressions failed before their fixes.

Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

BC-breaking?

No.

Summary (human written only)

Agent details (if applicable)

Implementation and validation are described in Agent Notes above.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

PR Status: in progress

A maintainer requested changes. Please address their feedback before the PR returns to maintainer review.

To become ready for review, the change must pass automated review and every maintainer comment must be addressed, either with a code change or a reply explaining why no change is needed. A fresh automated review checks that the feedback has been addressed. All CI must finish and Dr. CI must classify every failure as unrelated to your PR. Fix the failures it attributes to your PR (see status below in this comment). Workflows waiting for a maintainer to approve their run do not block this.

To minimize iteration time, feel free to run the pr-review skill from the repo locally. If you address comments without pushing, comment @pytorchbot review to re-run the automated review. To bypass automated review, please add the “no automated review” label.

🟡 AUTOMATED REVIEW - Changes requested:

This PR changes the issue-triage skill so it reviews substantive numerical
reports instead of dismissing them, and makes `apply_plan.py` cancel
`close_expected_behavior` closures and remove the numerical template when review
is required. But the new enforcement covers only `close_expected_behavior` and
plans that list `numerical_accuracy`, so other plans can still cause the same
conflicts. Recommendation: Request Changes.

Findings (4):

[major] scripts/issue_triage_pi/apply_plan.py:235
`close_question` still closes issues that need review or have `high priority`.
The check `{TRIAGE_REVIEW, "high priority"} & (existing_labels | set(labels))`
runs only when the decision is `close_expected_behavior`. The new Step 1 text in
SKILL.md warns that a numerical investigation may be phrased as a question,
which is the misclassification seen on # 202035. If the model picks
`close_question` for such a report, nothing in the trusted step stops it. Trace:
`close_question` with labels `["module: sdpa", "triage review"]`, or with `high
priority` already on the issue, gives `close=True`, posts `redirect_to_forum`
and adds or keeps `triage review`. The issue gets closed while also marked for
review (`classify()` reports it as `review`), or an issue a human marked `high
priority` gets closed. Fix: base the conflict check on `effects.close` (any
closing decision) instead of the decision name, and add a `close_question` case
to `test_numerical_close_cannot_override_review_or_human_priority`.

[major] scripts/issue_triage_pi/apply_plan.py:241
Templates that say the issue is closed are only removed on the numerical path.
The PR says it stops comments that wrongly claim the issue was closed, but `keys
= [key for key in keys if key not in CLOSING_TEMPLATES.values()]` runs only
inside the numerical branch. Trace: `triage_review`, `label` or `request_info`
with `templates=["redirect_to_forum"]` still posts "Closing this issue, but feel
free to reopen" and leaves the issue open.
`test_only_close_question_closes_and_always_redirects` (test_apply_plan.py:207)
checks only `.close` for this plan, not `.comment`. Fix: remove the closing
templates whenever `not effects.close`, after all close decisions are made. This
and the `close_question` point can be one restructure: (1) compute `close`,
including the review/priority veto; (2) escalate a stray `numerical_accuracy`;
(3) filter the closing templates whenever `not close`.

[major] .agents/skills/triaging-issues/SKILL.md:161
The apply-step contract in SKILL.md ("The apply step enforces it" list, lines
48-53) doesn't list the new rules. That list is the model's description of what
the trusted step does, and it still says only that `close_expected_behavior`
closes and posts `numerical_accuracy`. It does not say that (a)
`close_expected_behavior` is downgraded to `triage review` and the comment is
dropped when `triage review` or `high priority` is present, or when the plan
falls back on forbidden or only-unknown labels, or that (b) `numerical_accuracy`
on any other decision is dropped and replaced by `triage review`. Without this,
the model cannot predict what its plan will do. These rules are part of the
interface between the skill and `apply_plan.py` and should be documented there.

[minor] scripts/issue_triage_pi/apply_plan.py:242
The compound condition and its single note mix two different rules (lines
235-242). `(A or B) and (not A or C)` packs two rules into one test:
"`numerical_accuracy` used outside `close_expected_behavior`" and
"`close_expected_behavior` vetoed by review or priority". Both cases add the
same note, "numerical dismissal conflicts with review; kept open". For a `label`
or `request_info` plan nothing was being closed, and the review label wasn't
already there because the bot added it, so the step summary is misleading. Fix:
split this into two explicit `if` branches, each with its own note.

Reviewed commit: b3cf03f

Review run

🔗 Helpful Links

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

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

✅ No Failures

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

🟡 GREEN LIGHT - PR requires human review:

  • Policy change to agent steering
    • .agents/skills/triaging-issues/SKILL.md adds new triage rules: escalate without a repro, restrict close_expected_behavior
    • Documentation that adds or alters a rule or restriction is never trivial, and this file steers the issue-triage bot
  • Behavior change in triage automation
    • plan_effects in scripts/issue_triage_pi/apply_plan.py now cancels closes and strips closing templates whenever numerical_accuracy is used outside close_expected_behavior
    • Changes which issues the bot closes and comments on, so maintainers running triage need to know it landed
  • Tests
    • test_apply_plan.py adds three cases for the new close-override logic; coverage is good, but it does not make the policy change trivial

reason: not_trivial
Reviewed commit: b3cf03f

Inference job

🐛 Report a wrong verdict

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

[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 945216d
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 4c3e651
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: da74339
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 562baab
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 562baab
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 492fced
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 29, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 225d919
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 30, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 51dce5d
Pull-Request: #202461
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 31, 2026
## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On #202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of #202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of #202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
ghstack-source-id: 3a5dffc
Pull-Request: #202461
@drisspg
drisspg marked this pull request as ready for review October 31, 2026 16:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T16:22:47.575711Z b3cf03f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pytorchgreenlight pytorchgreenlight Bot added the GL/human GreenLight marked as needing human review label Oct 31, 2026
@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Oct 31, 2026

@github-actions github-actions 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.

Automated review of b3cf03f: changes requested before human review.

This PR changes the issue-triage skill so it reviews substantive numerical reports instead of dismissing them, and makes apply_plan.py cancel close_expected_behavior closures and remove the numerical template when review is required. But the new enforcement covers only close_expected_behavior and plans that list numerical_accuracy, so other plans can still cause the same conflicts. Recommendation: Request Changes.

🔴 3 blocking findings are attached to the code below.

⚪ 1 non-blocking finding

effects.notes.append("numerical dismissal conflicts with review; kept open")

The compound condition and its single note mix two different rules (lines 235-242). (A or B) and (not A or C) packs two rules into one test: "numerical_accuracy used outside close_expected_behavior" and "close_expected_behavior vetoed by review or priority". Both cases add the same note, "numerical dismissal conflicts with review; kept open". For a label or request_info plan nothing was being closed, and the review label wasn't already there because the bot added it, so the step summary is misleading. Fix: split this into two explicit if branches, each with its own note.

Please address the findings and push; a new commit normally gets a fresh automated review.

This review is AI-generated and advisory. Each new automated review replaces the previous one.

labels.append(TRIAGE_REVIEW)
keys = list(dict.fromkeys(plan.get("templates", [])))
effects.close = decision in CLOSING_TEMPLATES
if (decision == "close_expected_behavior" or "numerical_accuracy" in keys) and (

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.

🔴 close_question still closes issues that need review or have high priority. The check {TRIAGE_REVIEW, "high priority"} & (existing_labels | set(labels)) runs only when the decision is close_expected_behavior. The new Step 1 text in SKILL.md warns that a numerical investigation may be phrased as a question, which is the misclassification seen on # 202035. If the model picks close_question for such a report, nothing in the trusted step stops it. Trace: close_question with labels \["module: sdpa", "triage review"\], or with high priority already on the issue, gives close=True, posts redirect_to_forum and adds or keeps triage review. The issue gets closed while also marked for review (classify() reports it as review), or an issue a human marked high priority gets closed. Fix: base the conflict check on effects.close (any closing decision) instead of the decision name, and add a close_question case to test_numerical_close_cannot_override_review_or_human_priority.

):
effects.close = False
labels.append(TRIAGE_REVIEW)
keys = [key for key in keys if key not in CLOSING_TEMPLATES.values()]

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.

🔴 Templates that say the issue is closed are only removed on the numerical path. The PR says it stops comments that wrongly claim the issue was closed, but keys = \[key for key in keys if key not in CLOSING_TEMPLATES.values()\] runs only inside the numerical branch. Trace: triage_review, label or request_info with templates=\["redirect_to_forum"\] still posts "Closing this issue, but feel free to reopen" and leaves the issue open. test_only_close_question_closes_and_always_redirects (test_apply_plan.py:207) checks only .close for this plan, not .comment. Fix: remove the closing templates whenever not effects.close, after all close decisions are made. This and the close_question point can be one restructure: (1) compute close, including the review/priority veto; (2) escalate a stray numerical_accuracy; (3) filter the closing templates whenever not close.

concrete non-rounding mechanisms, or meaningful model/training impact. Weigh evidence and
feature importance, not length or keywords. Plausible rounding amplification does not settle
a strong comparative study; review does not assert a proven bug or high priority.
- Use `close_expected_behavior` with `numerical_accuracy` only when clearly documented behavior

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.

🔴 The apply-step contract in SKILL.md ("The apply step enforces it" list, lines 48-53) doesn't list the new rules. That list is the model's description of what the trusted step does, and it still says only that close_expected_behavior closes and posts numerical_accuracy. It does not say that (a) close_expected_behavior is downgraded to triage review and the comment is dropped when triage review or high priority is present, or when the plan falls back on forbidden or only-unknown labels, or that (b) numerical_accuracy on any other decision is dropped and replaced by triage review. Without this, the model cannot predict what its plan will do. These rules are part of the interface between the skill and apply_plan.py and should be documented there.

@drisspg

drisspg commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f

@pytorch-bot

pytorch-bot Bot commented Oct 31, 2026

Copy link
Copy Markdown

❌ 🤖 pytorchbot command failed:

@pytorchbot merge: error: argument -f/--force: expected one argument

usage: @pytorchbot merge [-f MESSAGE | -i] [-ic] [-r [{viable/strict,main}]]

Try @pytorchbot --help for more info.

@drisspg

drisspg commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "since it passed lint"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…ytorch#202461)

## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On pytorch#202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of pytorch#202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of pytorch#202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
Pull Request resolved: pytorch#202461
Approved by: https://github.com/ezyang
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…ytorch#202461)

## Human Note

Rolling in some feedback from an issues that was not properly triaged

## Agent Notes

The reproduction gate can stop triage before a serious report reaches a human. On pytorch#202035,
the old bot asked for a runnable SDPA reproduction but added no review label. The numerical
rule also prescribed a stock response for backend differences without assessing the evidence.

Check evidence and practical impact before stopping for missing information. Keep substantive
numerical studies open for review, and reserve the numerical template and automatic close for
clear, documented expected behavior. The model judges feature importance; there is no API list.
The apply step enforces review decisions and prevents numerical dismissal from conflicting with
review or existing high priority, including comments that incorrectly claim the issue was closed.

### Test Plan

```sh
python3 -m unittest discover -s scripts/issue_triage_pi -v
```

75 tests pass. The new consistency regressions failed before their fixes.

## Validation

A read-only ciforge replay of pytorch#202035 changed from a reproduction-only request to human review,
component labels, and a reproduction request. No issue was modified. This checks triage behavior,
not the underlying kernel claim. The final closing-comment consistency fix was tested locally.

https://github.com/pytorch/ciforge/actions/runs/40790497051

## Linked issue or supporting maintainer

Part of pytorch#202035 (triage handling only; does not fix the reported kernel behavior).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

Implementation and validation are described in Agent Notes above.
Pull Request resolved: pytorch#202461
Approved by: https://github.com/ezyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GL/human GreenLight marked as needing human review in progress PR is being worked on by the author, until the automated review accepts it Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants