Skip to content

[auto-pr-triage] Use Claude Sonnet 5 for the ownership LLM - #199570

Closed
soulitzer wants to merge 1 commit into
gh/soulitzer/489/basefrom
gh/soulitzer/489/head
Closed

soulitzer wants to merge 1 commit into
gh/soulitzer/489/basefrom
gh/soulitzer/489/head

Conversation

@soulitzer

@soulitzer soulitzer commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

The Auto PR Triage ownership step still runs on Sonnet 4.6, while the other
Claude triage workflows (claude-issue-triage-run.yml,
claude-distributed-triage.yml) already moved to
global.anthropic.claude-sonnet-5. This switches the auto-pr-triage action
to the same model.

Motivation: a recent batch of re-triaged open source PRs (#199461, #199497,
#199513, #199522, #199537) all ended in bot-triage-error because the
Sonnet 4.6 ownership run failed. Mostly it quoted diff excerpts that are not
verbatim in the patch, which validate_ownership.py rejects. Once it
returned no structured_output for --json-schema. Other flags (--effort low, --json-schema, the turn and budget caps) are supported unchanged on
Sonnet 5.

Test Plan:
The workflow runs on pull_request_target, so it executes from the base
branch and this change only takes effect after it lands. The Bedrock model ID
is the one the issue triage workflows already use in production:

git grep -n "global.anthropic.claude-sonnet-5" -- .github

After landing, re-label a few of the PRs above (remove bot-triage-error,
then remove and re-add open source) and check the Auto PR Triage runs.

This PR was authored with the help of an AI assistant (Claude Code).

[ghstack-poisoned]
@soulitzer
soulitzer requested a review from a team as a code owner October 2, 2026 21:38
@pytorch-bot

pytorch-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 16 Pending

As of commit cdd1745 with merge base a44c4cf (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 Oct 2, 2026
@soulitzer

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "this is a trivial 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

cyyever pushed a commit to BakeLab/pytorch that referenced this pull request Oct 11, 2026
…99570)

The Auto PR Triage ownership step still runs on Sonnet 4.6, while the other
Claude triage workflows (claude-issue-triage-run.yml,
claude-distributed-triage.yml) already moved to
`global.anthropic.claude-sonnet-5`. This switches the auto-pr-triage action
to the same model.

Motivation: a recent batch of re-triaged open source PRs (pytorch#199461, pytorch#199497,
pytorch#199513, pytorch#199522, pytorch#199537) all ended in `bot-triage-error` because the
Sonnet 4.6 ownership run failed. Mostly it quoted diff excerpts that are not
verbatim in the patch, which `validate_ownership.py` rejects. Once it
returned no `structured_output` for `--json-schema`. Other flags (`--effort
low`, `--json-schema`, the turn and budget caps) are supported unchanged on
Sonnet 5.

Test Plan:
The workflow runs on `pull_request_target`, so it executes from the base
branch and this change only takes effect after it lands. The Bedrock model ID
is the one the issue triage workflows already use in production:

```
git grep -n "global.anthropic.claude-sonnet-5" -- .github
```

After landing, re-label a few of the PRs above (remove `bot-triage-error`,
then remove and re-add `open source`) and check the Auto PR Triage runs.

This PR was authored with the help of an AI assistant (Claude Code).
Pull Request resolved: pytorch#199570
Approved by: https://github.com/janeyx99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants