Skip to content

fix(github): State PR description rules in the body param - #3668

Merged
MathurAditya724 merged 3 commits into
mainfrom
fix/pr-body-param-rules
Nov 18, 2026
Merged

MathurAditya724 merged 3 commits into
mainfrom
fix/pr-body-param-rules

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

The description gate on createPullRequest and updatePullRequest only tells the model its rules in the rejection error. The body param just mentions the footer, and the rules otherwise live in the github-code skill, which not every run loads.

The body param 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 body param 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]

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>
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 18, 2026 2:39pm UTC

Request Review

@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 18, 2026
sentry-junior Bot and others added 2 commits November 18, 2026 14:28
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
MathurAditya724 merged commit 88fb8d0 into main Nov 18, 2026
76 of 87 checks passed
@MathurAditya724
MathurAditya724 deleted the fix/pr-body-param-rules branch November 18, 2026 16:23
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 branch was successfully deployed

1 active deployment
Preview – junior-docs — bc71db2f Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant