Repository navigation
fix(github): State PR description rules in the body param - #3668
Merged
Merged
Conversation
The model only learned the description gate's rules after a rejection. The body param of both pull request tools now lists them, so the first draft can pass. Also add a classifier case for a test tool PR body that describes what the tool checks. Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Make the body rules a full sentence and name the request or chat behind the PR, which the gate also rejects. Cut the github-code PR body line to what the param does not cover. Add a reject case for a test tool body that also reports the author's own runs.
Co-Authored-By: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com>
MathurAditya724
approved these changes
Nov 18, 2026
24 tasks done
dcramer
pushed a commit
that referenced
this pull request
Nov 19, 2026
…3805) #3668 (88fb8d077) added the PR description rules to the `body` param of `github_createPullRequest` and `github_updatePullRequest`: "Omit your own test or CI results, test plans or coverage, work logs, and the request or chat behind it." The description gate already rejects a body that contains them. The `self-update` skill still repeated the first rule ("Do not put `Checks`, `Verification`, `Test plan`, or similar validation sections in the PR body"). This removes that clause. It keeps the part that the tools do not cover: put local check results in the final user report. Why this is safe: - The skill opens and updates its PRs with those two tools. So the model sees the rule when it writes the body, and the gate still enforces it. - #3668 already removed the same rule from `github-code/references/workflow.md` for this reason. - The open #1945 rewrites this skill but keeps a reworded copy of the rule. So it does not cover this change. The same cleanup for the `self-improve` skill is in getsentry/junior-prod (cleanup/pr-body-check-rules). <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_3ac99cdf01a452cf24fcc3a68e20a9ba --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_3ac99cdf01a452cf24fcc3a68e20a9ba) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_3ac99cdf01a452cf24fcc3a68e20a9ba/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
This was referenced Nov 27, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The description gate on
createPullRequestandupdatePullRequestonly tells the model its rules in the rejection error. Thebodyparam just mentions the footer, and the rules otherwise live in the github-code skill, which not every run loads.The
bodyparam of both tools now lists the rules in one sentence, from a shared constant next to the gate's checks. The gate itself is unchanged.Before: the model learns "no test results, no work log, say why" from the rejection error.
After: the
bodyparam says "Omit your own test, lint, or CI results, test plans, coverage notes, work logs, and who asked. Describing what a test tool checks is fine.", so the first draft can pass.The last line is there because a PR that adds a test or CI tool has to describe what that tool does. A new classifier case checks that such a body is accepted.
via @MathurAditya724.
--
View Session [Sentry]