Skip to content

Distinguish missing validation from triage enhancements - #202893

Closed
drisspg wants to merge 2 commits into
gh/drisspg/467/basefrom
gh/drisspg/467/head
Closed

drisspg wants to merge 2 commits into
gh/drisspg/467/basefrom
gh/drisspg/467/head

Conversation

@drisspg

@drisspg drisspg commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Human Note

some more tweaking of triaging

Agent Notes

The triage bot classified missing dtype validation in #202017 as an enhancement. Clarify that accepting invalid inputs is an error-checking bug, even when reported as a feature request. Improving diagnostics for inputs already rejected can still be an enhancement.

Changes only the enhancement and module: error checking label descriptions. No apply logic, priority rules, or posted comments change.

Test Plan

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

81 tests pass in both PyTorch and ciforge; lintrunner passes.

Validation

Read-only ciforge replay of #202017 and the #201398 performance-enhancement control:
https://github.com/pytorch/ciforge/actions/runs/41221167014

Linked issue or supporting maintainer

Part of #202017 (triage classification only, not the AOTI runtime fix).

BC-breaking?

No.

Summary (human written only)

Agent details (if applicable)

AI-assisted implementation and validation are described in Agent Notes above.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 31, 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:

The PR rewrites the `enhancement` and `module: error checking` descriptions in
triaging-issues/labels.json so the triage agent treats silently accepted invalid
inputs as a missing-check bug, not an enhancement, but the fix is incomplete
because the triage SKILL.md prose still teaches the old rule. Recommendation:
Request Changes. Updating triaging-issues/SKILL.md:217 and
distributed-triage/SKILL.md:130 to match, and adding a row to the
commonly-missed-labels table, unblocks approval.

Findings (3):

[major] .agents/skills/triaging-issues/labels.json:19
`SKILL.md` still lists "better error messages" as an enhancement, which
conflicts with the new `labels.json` text.
`.agents/skills/triaging-issues/SKILL.md:217` defines `enhancement` as including
"better error messages", the wording this PR removes here. `SKILL.md` is the
main instruction text, and its step 4 (`SKILL.md:215`) tells the agent to use
`labels.json` only as a lookup for specific-vs-general label choices. So for an
issue like # 202017, `SKILL.md:217` can still win and the same misclassification
can happen again. `.agents/skills/distributed-triage/SKILL.md:130` has the same
wording. Fix: update both lines to match the new definition ("clearer
diagnostics for inputs already rejected; missing validation that accepts invalid
inputs is a bug"). Also add a row to the "Commonly missed labels" table
(`SKILL.md:223-233`), modeled on the docs/regression row at `SKILL.md:229`, e.g.
"Invalid input silently accepted (missing dtype/shape/device check)  `module:
error checking` + component label (NOT `enhancement`)".

[minor] .agents/skills/triaging-issues/labels.json:19
The new `enhancement` text says what not to do, but not what to do instead. It
says missing validation "is a bug, not an enhancement", but there is no `bug`
label in `labels.json`, and the convention elsewhere is that bugs get no type
label. Name the action directly, e.g. "is a bug: apply `module: error checking`
plus the component label, and no type label."

[minor] .agents/skills/triaging-issues/labels.json:359
The new `module: error checking` text is shaped around one issue. The clause
"including replacement weights or constants" describes the AOTI constant-swap
details of # 202017, not the label in general. The sentence "Silently accepting
invalid inputs  is a missing-check bug" already covers that case. If every
misclassified issue adds its own clause, these descriptions keep growing and get
harder for the classifier to apply. Drop the parenthetical, or replace it with a
generic example (e.g. "including inputs to setter/update APIs").

Reviewed commit: e4334ec

Review run

🔗 Helpful Links

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

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

❌ 3 Cancelled Jobs

As of commit e4334ec with merge base 2b1c149 (image):

🟡 GREEN LIGHT - PR requires human review:

  • Triviality
    • Rewrites the enhancement and module: error checking descriptions in .agents/skills/triaging-issues/labels.json, which the triage bot reads as classification rules
    • Adds a rule that missing validation is a bug, not an enhancement: a policy change to automated issue labeling, which is never trivial
  • Consistency
    • .agents/skills/triaging-issues/SKILL.md:217 still lists "better error messages" under enhancement, contradicting the new labels.json text
    • .agents/skills/distributed-triage/SKILL.md:130 has the same old wording
  • Open review
    • The automated review on e4334ec requested changes for this same conflict, and the diff does not address it

reason: not_trivial
Reviewed commit: e4334ec

Inference job

🐛 Report a wrong verdict

CANCELLED JOBS - The following jobs were cancelled. Please retry:

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

@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-31T19:28:11.202807Z f0db036 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[bot]

This comment was marked as outdated.

@drisspg drisspg added the topic: not user facing topic category label Oct 31, 2026
[ghstack-poisoned]
drisspg added a commit that referenced this pull request Oct 31, 2026
## Human Note

some more tweaking of triaging

## Agent Notes

The triage bot classified missing dtype validation in #202017 as an enhancement. Clarify that accepting invalid inputs is an error-checking bug, even when reported as a feature request. Improving diagnostics for inputs already rejected can still be an enhancement.

Changes only the `enhancement` and `module: error checking` label descriptions. No apply logic, priority rules, or posted comments change.

### Test Plan

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

81 tests pass in both PyTorch and ciforge; lintrunner passes.

## Validation

Read-only ciforge replay of #202017 and the #201398 performance-enhancement control:
https://github.com/pytorch/ciforge/actions/runs/41221167014

## Linked issue or supporting maintainer

Part of #202017 (triage classification only, not the AOTI runtime fix).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

AI-assisted implementation and validation are described in Agent Notes above.


ghstack-source-id: 858f26e
Pull-Request: #202893
github-actions[bot]

This comment was marked as outdated.

@albanD

albanD commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot review

@pytorch-bot pytorch-bot Bot added in progress PR is being worked on by the author, until the automated review accepts it and removed in progress PR is being worked on by the author, until the automated review accepts it labels Nov 1, 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 e4334ec: changes requested before human review.

The PR rewrites the enhancement and module: error checking descriptions in triaging-issues/labels.json so the triage agent treats silently accepted invalid inputs as a missing-check bug, not an enhancement, but the fix is incomplete because the triage SKILL.md prose still teaches the old rule. Recommendation: Request Changes. Updating triaging-issues/SKILL.md:217 and distributed-triage/SKILL.md:130 to match, and adding a row to the commonly-missed-labels table, unblocks approval.

"description": "Improvement to something that already works: performance optimization, clearer diagnostics for inputs already rejected, adding a backend-native implementation for an op that already runs via fallback/composite. Missing validation that accepts invalid inputs is a bug, not an enhancement, even if phrased as a feature request."

🔴 SKILL.md still lists "better error messages" as an enhancement, which conflicts with the new labels.json text. .agents/skills/triaging-issues/SKILL.md:217 defines enhancement as including "better error messages", the wording this PR removes here. SKILL.md is the main instruction text, and its step 4 (SKILL.md:215) tells the agent to use labels.json only as a lookup for specific-vs-general label choices. So for an issue like # 202017, SKILL.md:217 can still win and the same misclassification can happen again. .agents/skills/distributed-triage/SKILL.md:130 has the same wording. Fix: update both lines to match the new definition ("clearer diagnostics for inputs already rejected; missing validation that accepts invalid inputs is a bug"). Also add a row to the "Commonly missed labels" table (SKILL.md:223-233), modeled on the docs/regression row at SKILL.md:229, e.g. "Invalid input silently accepted (missing dtype/shape/device check) module: error checking + component label (NOT enhancement)".

An earlier comment near this line has replies: #202893 (comment)

⚪ 2 non-blocking findings

"description": "Improvement to something that already works: performance optimization, clearer diagnostics for inputs already rejected, adding a backend-native implementation for an op that already runs via fallback/composite. Missing validation that accepts invalid inputs is a bug, not an enhancement, even if phrased as a feature request."

The new enhancement text says what not to do, but not what to do instead. It says missing validation "is a bug, not an enhancement", but there is no bug label in labels.json, and the convention elsewhere is that bugs get no type label. Name the action directly, e.g. "is a bug: apply module: error checking plus the component label, and no type label."

An earlier comment near this line has replies: #202893 (comment)


"description": "Bugs where PyTorch fails to validate inputs or raises a wrong/missing error at a validation boundary (e.g., shape, dtype, device checks). Silently accepting invalid inputs, including replacement weights or constants, is a missing-check bug. Apply alongside the affected component label when validation is the root cause; an unrelated feature bug with a poor error message should get the feature-specific label instead."

The new module: error checking text is shaped around one issue. The clause "including replacement weights or constants" describes the AOTI constant-swap details of # 202017, not the label in general. The sentence "Silently accepting invalid inputs is a missing-check bug" already covers that case. If every misclassified issue adds its own clause, these descriptions keep growing and get harder for the classifier to apply. Drop the parenthetical, or replace it with a generic example (e.g. "including inputs to setter/update APIs").

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.

@albanD albanD left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Even with the minor request from your bff, I think this is ok

@drisspg

drisspg commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot

pytorch-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

This PR has pending changes requested. Please address the comments and update the PR before merging.

@drisspg

drisspg commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "Bypass advisory automated review; albanD approved this change"

@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
## Human Note

some more tweaking of triaging

## Agent Notes

The triage bot classified missing dtype validation in pytorch#202017 as an enhancement. Clarify that accepting invalid inputs is an error-checking bug, even when reported as a feature request. Improving diagnostics for inputs already rejected can still be an enhancement.

Changes only the `enhancement` and `module: error checking` label descriptions. No apply logic, priority rules, or posted comments change.

### Test Plan

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

81 tests pass in both PyTorch and ciforge; lintrunner passes.

## Validation

Read-only ciforge replay of pytorch#202017 and the pytorch#201398 performance-enhancement control:
https://github.com/pytorch/ciforge/actions/runs/41221167014

## Linked issue or supporting maintainer

Part of pytorch#202017 (triage classification only, not the AOTI runtime fix).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

AI-assisted implementation and validation are described in Agent Notes above.
Pull Request resolved: pytorch#202893
Approved by: https://github.com/albanD
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
## Human Note

some more tweaking of triaging

## Agent Notes

The triage bot classified missing dtype validation in pytorch#202017 as an enhancement. Clarify that accepting invalid inputs is an error-checking bug, even when reported as a feature request. Improving diagnostics for inputs already rejected can still be an enhancement.

Changes only the `enhancement` and `module: error checking` label descriptions. No apply logic, priority rules, or posted comments change.

### Test Plan

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

81 tests pass in both PyTorch and ciforge; lintrunner passes.

## Validation

Read-only ciforge replay of pytorch#202017 and the pytorch#201398 performance-enhancement control:
https://github.com/pytorch/ciforge/actions/runs/41221167014

## Linked issue or supporting maintainer

Part of pytorch#202017 (triage classification only, not the AOTI runtime fix).

## BC-breaking?

No.

## Summary (human written only)

## Agent details (if applicable)

AI-assisted implementation and validation are described in Agent Notes above.
Pull Request resolved: pytorch#202893
Approved by: https://github.com/albanD
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