Repository navigation
ci: check the PR body only on pull requests an agent authored - #1902
Merged
joshunrau merged 1 commit intoNov 10, 2026
Merged
Conversation
The PR Body workflow closed every pull request that lacked the adversarial review block, including ones written by people. It now runs the template check only when the pull request shows agent authorship: a bot author other than Dependabot, an agent Co-Authored-By trailer in the author's own commits or the body, the Claude Code footer, or a review block or attestation of its own. A pull request from a release branch is exempt, since a merge-back carries commits that already passed the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 PR Body workflow now holds only agent-authored pull requests to the
opening-prtemplate; a pull request written by a person alone passes untouched.Changes
Co-Authored-By: Claude|GPT|Codex|Copilottrailer in the author's own commits or in the body (with or without an email), the🤖 Generated withfooter, or an## Adversarial reviewheading or attestation line in the body. Otherwise the job reports that the template does not apply and closes nothing.release/<major>are exempt, so a merge-back tomainis not closed for carrying agent commits that already passed the check.opening-prnow tells agents which signals turn the check on.Decisions
Risks
Notes
Replaying the new script over every pull request since July (events rebuilt from the GraphQL history) exempted outside contributors, unmarked human pull requests and Dependabot, and checked every pull request carrying an agent marker. The author filter was run against #1893: it keeps the author's seven trailered commits and drops all of them for any other login.
Adversarial review
Reviewed at commit 9c13e26. pnpm check: green.
Findings
release/heads.Fixed
EXEMPT_HEAD_REFexemptsrelease/<major>heads.Attestation
I, Claude Opus 5.5, attest that the review block above reports the adversarial review as it ran on the commit named, with every finding it returned.
🤖 Generated with Claude Code