Repository navigation
Fix PR Sous Chef refresh failing on same-repo bot PRs behind the integrity proxy - #78203
Conversation
…roxy Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟡 Changes recommended
The pinned proxy re-adds authorAssociation, preventing REST enrichment and leaving same-repo bots with NONE filtered out.
1 open issue
What changed in this PR
This PR aims to restore PR Sous Chef refreshes for same-repository bot PRs behind the integrity proxy by changing its GraphQL field selections.
Changes:
- Remove PR-level
authorAssociationfrom metadata and inspection queries while preserving comment- and review-level associations. - Update the regression assertion and document the intended proxy behavior.
| File | Description |
|---|---|
scripts/pr-sous-chef.test.mjs |
Checks that query strings omit the previous PR-level field selection. |
scripts/pr-sous-chef.mjs |
Removes PR-level association selections and adds explanatory comments. |
Review effort: Max (dynamic)
| repository(owner:$owner,name:$name){pullRequest(number:$number){ | ||
| number title url state isDraft headRefOid headRefName baseRefName | ||
| createdAt updatedAt changedFiles mergeStateStatus author{login} authorAssociation | ||
| createdAt updatedAt changedFiles mergeStateStatus author{login} |
|
🎉 This pull request is included in a new release. Release: |

The PR Sous Chef
conclusionjob failed because the agent reportedreport_incomplete. Inside the agent,node scripts/pr-sous-chef.mjs 78187exited withcould not refresh PR metadata. The unproxied prefilter job had already marked #78187 eligible.Root cause
The gateway guard (
pr_integrityingh-aw-mcpg) looks up REST PR facts (author association, fork status) only when the PR item has noauthorAssociation.authorAssociation, so the guard skipped that REST lookup.base/head.repo.full_name, so the guard could not tell whether the PR came from a fork.github-agentic-autofix[bot], whose association isNONE. It got no integrity and was filtered out undermin-integrity: approved. The script then sawpullRequestmissing or empty.Changes
scripts/pr-sous-chef.mjs: drop PR-levelauthorAssociationfrom thefetchCandidateandinspectqueries. The script never read it. The guard now does the REST lookup and labels same-repo PRsapproved. Comment- and review-levelauthorAssociation, which the script does use, is unchanged.scripts/pr-sous-chef.test.mjs: the test that asserted the PR-levelauthorAssociationnow asserts that no PR-level query selects it.The guard behaviour comes from reading the
gh-aw-mcpgsource; proxy logs for the failing run were not available. The next run that refreshes a same-repo bot PR will confirm the fix.