Repository navigation
fix(github): Skip review for owned PR feedback upkeep - #2516
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
3 screenshot changes — 3 changed · 0 added · 0 removed Review screenshots in Frameshift
|
The feedback tool now checks through GitHub that the comment is on a pull request that the bot authored before it writes a reaction. The resolve tool already checks this. Both tools now use approvalMode "approve", so child agents no longer ask a person before routine upkeep on Junior's own PRs. Fixes #2438 Co-Authored-By: David Cramer <[email protected]>
Omitting approvalMode on a plugin tool gives it auto, and Guardian reviews it. The docs said the tool stays outside review. Describe each mode and when approve is correct. Co-Authored-By: David Cramer <[email protected]> Co-Authored-By: David Cramer <[email protected]>
sentry-junior
Bot
force-pushed
the
fix/github-owned-pr-feedback-upkeep
branch
from
November 1, 2026 23:51
e9e3bc6 to
8d2aa13
Compare
dcramer
approved these changes
Nov 1, 2026
dcramer
left a comment
Member
There was a problem hiding this comment.
we removed some tests here, which makes me suspect that a thing we wanted to work, still works the same...
Replace the approvalMode config-echo tests and the generic gate case with one child-agent integration case: an approve-mode plugin tool runs in a child with no Guardian decision. Add the plain-issue refusal case to the feedback tool tests. Co-Authored-By: David Cramer <[email protected]>
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.
Fixes #2438
When a child agent did review upkeep on a PR that Junior opened, Guardian returned
askforgithub_updatePullRequestFeedbackandgithub_resolvePullRequestReviewThread. The parent then had to ask the user to approve a 👍 or a thread resolve. The issue proposes two more Guardian prompt rules. This PR instead makes the tools prove their own safety in code, so they don't need a model review.github_updatePullRequestFeedbacknow reads the comment from GitHub, takes its PR number fromissue_urlorpull_request_url, and reads that PR in the same repo. It refuses before any reaction read or write unless the PR'suser.idis the bot's id from the configured noreply email. A conversation comment on a plain issue gets a 404 from/pulls/N, so the tool refuses it as well.github_resolvePullRequestReviewThreadalready checks through GraphQL that the bot authored the PR.approvalMode: "approve". The only effect of each tool is the bot's own reaction or a thread's resolved state, on a PR the bot authored. Both effects are reversible. The annotations stay the same.github_updatePullRequest(title and body) stays under review, because body text can make claims.Guardian never sees these two tools now, so I removed the Guardian eval cases that expected
allowfor them. No eval case expectedask. The Guardian authority rules don't change.The plugin docs (
extend/build-a-plugin.md) said that a plugin tool with noapprovalModestays outside review. That is wrong: core setsauto, and Guardian reviews each call of a plugin tool in that mode. The docs now describeauto,review, andapprove, and say whenapproveis correct.Follow-up for getsentry/junior-prod: the "without asking for confirmation" wording in
plugins.tssubscribeAfterCreate.intentis now redundant for these two tools.via @dcramer.
--
View Session [Sentry]