Repository navigation
Conversation
`code-review render` posted a review with inline threads as a GraphQL `addPullRequestReview` mutation. A GraphQL mutation addresses a node id, so the public-surface scrub cannot tell which repository it goes to and never sets the framework's own tool names aside for it: every review of a Magpie PR that names `tools/cve-tool-vulnogram/` was blocked, while the same review sent to the REST endpoint passes. `render` now writes one payload for every review, body-only or with threads, and prints `gh api repos/<repo>/pulls/<N>/reviews -X POST --input <payload>`. The payload also pins the review to the head it was drafted against (`commit_id`). Generated-by: Claude Opus 5
potiuk
enabled auto-merge (squash)
November 26, 2026 09:55
6 tasks done
Member
Author
auto-merge was automatically disabled
November 26, 2026 11:26
Pull request was closed
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.
Summary
pr-management code-review renderposted every review with inline threads as a GraphQLaddPullRequestReviewmutation (gh api graphql --input …).The public-surface scrub hook in
magpie-securitycan only set the framework's own tool names aside on a command that provably targetsapache/magpie, and a GraphQL mutation addresses a node id, so it never can (by design since fix(security-guard): trust the directory for framework identifiers only when it names the repository #2143).Result: any review on a Magpie PR whose text names the Vulnogram adapter's directory under
tools/is blocked as an embargo-term disclosure, even though the same review sent torepos/apache/magpie/pulls/<N>/reviewspasses.rendernow writes one REST payload for every review (body-only or with threads) and printsgh api repos/<repo>/pulls/<N>/reviews -X POST --input <payload>.The payload carries
event,body,comments[{path, line, side, body}], andcommit_idpinned to the head the review was drafted against.posting.mdand the pr-management spec describe the REST post; the "empty output means success" note (true ofgh pr review, not of the REST call) becomes "never re-run the post, count the viewer's reviews".The renamed heading's one inbound link (
stack-review/SKILL.md) is updated; both skills are restamped.Found while reviewing #2194, whose review was blocked by the scrub until it was re-sent over REST.
Type of change
tools/pr-management, plugin mirror synced)code-review/posting.md, link fix instack-review/SKILL.md)tools/spec-loop/specs/pr-management-family.md)Test plan
uv run --project tools/pr-management pytest tools/pr-management/tests: all pass except the twotest_policy_grantstests, which read.apache-magpie-overrides/tools/vetted-ops/config.tomland fail only because the sandboxed scratch checkout cannot contain that path (unchanged by this PR).test_bodyasserts the full payload withcommit_idand a body-only payload withoutcomments.prek run --files <changed>passes (lychee, skill-surface-hash, skill-and-tool-validate, ruff, mypy).posting.md.Generative AI disclosure
Drafted with Claude Code (Opus 5); I reviewed the diff and the test run.
🤖 Generated with Claude Code