Repository navigation
Add a /review workflow for pull requests - #68867
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The workflow’s safety/documentation comments are currently inconsistent with the generated workflow behavior, which can mislead future audits and maintenance.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Lite
Findings: 1
New issues introduced by this change (1)
| Severity | Finding |
|---|---|
.github/workflows/pull-request-review.md — The comment claims the activation job sparse-checks out only .github, but the compiled workflow… |
What changed in this PR
Adds a staged, maintainer-invoked /review slash-command workflow for ASP.NET Core pull requests, plus a locally runnable review-pull-request skill and domain reference corpus to keep hosted and local review criteria consistent.
Changes:
- Introduces a new read-only (staged) Agentic Workflow that listens for the
reviewslash command and renders review output to the workflow summary. - Adds the
review-pull-requestskill contract that freezes PR evidence, routes to at most two domain references plus cross-cutting, validates findings, and outputs a structured result. - Adds domain reference documents (cross-cutting + area-specific) used by the workflow’s inline reviewer agents and by local runs of the skill.
| File | Description |
|---|---|
| .github/workflows/pull-request-review.md | New staged /review command workflow definition, including routing logic and inline reviewer agent blocks. |
| .github/workflows/pull-request-review.lock.yml | Generated workflow YAML produced by gh aw compile for the staged /review workflow. |
| .github/skills/review-pull-request/SKILL.md | New local skill contract describing evidence freezing, routing, validation gates, and output format. |
| .github/skills/review-pull-request/references/auth-security-reviewer.md | Auth/security domain review checklist and constraints used when routing security-related changes. |
| .github/skills/review-pull-request/references/blazor-components-reviewer.md | Blazor/Components domain review checklist and constraints used when routing Components changes. |
| .github/skills/review-pull-request/references/cross-cutting-reviewer.md | Cross-cutting review checklist applied to every routed review. |
| .github/skills/review-pull-request/references/grpc-reviewer.md | gRPC integration domain review checklist and constraints. |
| .github/skills/review-pull-request/references/hosting-di-reviewer.md | Hosting/DI domain review checklist and constraints. |
| .github/skills/review-pull-request/references/minimal-api-openapi-reviewer.md | Minimal API/OpenAPI domain review checklist and constraints. |
| .github/skills/review-pull-request/references/mvc-razor-routing-reviewer.md | MVC/Razor/routing domain review checklist and constraints. |
| .github/skills/review-pull-request/references/native-interop-reviewer.md | Native IIS interop domain review checklist and constraints. |
| .github/skills/review-pull-request/references/servers-networking-reviewer.md | Servers/networking domain review checklist and constraints. |
| .github/skills/review-pull-request/references/signalr-reviewer.md | SignalR domain review checklist and constraints. |
Suppressed comments (1)
.github/workflows/pull-request-review.md:118
- This comment says the workspace is empty because
checkout: false, but the generated workflow restores.github/skills/agents from the activation artifact into the workspace. The key safety property is “no pull request head checkout + no credentials”, so the wording should avoid asserting an empty workspace.
# To be precise rather than reassuring: the compiler still grants the agent a `write` tool inside
# the sandbox container. That is not a path back to this repository — the workspace is empty
# because `checkout: false`, credentials are excluded from the container, and no safe output can
# commit or push. It does mean "read-only" describes this workflow's effect on GitHub, not an
# absence of any filesystem capability in the sandbox.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 2, 2026 18:41
58c6ff5 to
7c3f6be
Compare
PureWeen
marked this pull request as draft
September 2, 2026 18:50
PureWeen
marked this pull request as ready for review
September 2, 2026 20:05
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 04:19
6027a27 to
c8ae4e2
Compare
PureWeen
changed the base branch from
main
to
pureween-review-pull-request-skill
September 3, 2026 04:19
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 04:22
c8ae4e2 to
1271b07
Compare
PureWeen
changed the base branch from
pureween-review-pull-request-skill
to
main
September 3, 2026 04:24
PureWeen
changed the base branch from
main
to
pureween-review-pull-request-skill
September 3, 2026 04:24
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 12:46
1271b07 to
cac83bb
Compare
PureWeen
changed the base branch from
pureween-review-pull-request-skill
to
main
September 3, 2026 12:46
PureWeen
changed the base branch from
main
to
pureween-review-pull-request-skill
September 3, 2026 12:46
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 12:58
cac83bb to
8dd5161
Compare
PureWeen
changed the base branch from
pureween-review-pull-request-skill
to
main
September 3, 2026 12:58
PureWeen
changed the base branch from
main
to
pureween-review-pull-request-skill
September 3, 2026 12:58
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 16:42
c6bd729 to
25eb49d
Compare
PureWeen
marked this pull request as draft
September 3, 2026 16:49
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 17:31
25eb49d to
50fd8c8
Compare
PureWeen
marked this pull request as ready for review
September 3, 2026 19:47
PureWeen
marked this pull request as draft
September 3, 2026 20:43
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 20:51
a314b99 to
e8395ce
Compare
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 22:02
e8395ce to
60f7087
Compare
PureWeen
marked this pull request as ready for review
September 3, 2026 22:04
PureWeen
marked this pull request as draft
September 3, 2026 22:18
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 3, 2026 22:31
60f7087 to
fe7679c
Compare
PureWeen
marked this pull request as ready for review
September 3, 2026 22:34
maraf
previously approved these changes
Sep 4, 2026
PureWeen
marked this pull request as draft
September 8, 2026 16:39
Use the upstream topic-by-topic review skill with direct trusted slash commands, read-only GitHub evidence, frozen-head COMMENT previews, and explicit built-in reporting tokens. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Remove inline review-comment activation because its PR merge-ref bootstrap cannot preserve trusted default-branch skill and workflow provenance. Keep compiler-owned conversation command matching and all read-only, staged output restrictions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
The initial fork validation stopped at gateway startup because dynamic repository casing was invalid. Use a strict static lowercase upstream scope; fork test branches must declare their own exact lowercase fork scope. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Compile the staged reviewer against released gh-aw-mcpg v0.4.24, which contains the stateful HTTP protocol negotiation fix required by the Copilot CLI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
PureWeen
force-pushed
the
pureween-manual-pr-reviewer
branch
from
September 17, 2026 16:20
fe7679c to
4a6b98e
Compare
PureWeen
changed the base branch from
pureween-review-pull-request-skill
to
main
September 17, 2026 16:20
Use stock gh-aw v0.88.7 and explicitly pin Copilot CLI 1.0.80 instead of dynamically selecting an incompatible discovery client. Document the removal test and correct the public-repository scope limitation. No compiler or generated lock patches. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Publish capped COMMENT reviews through gh-aw safe outputs instead of preview-only output. Keep the agent read-only, reporting opt-outs, frozen commit attribution, and the stable CLI pin. Document preview rollback and compiler-managed conclusion permissions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
PureWeen
marked this pull request as ready for review
September 21, 2026 14:05
maraf
approved these changes
Sep 22, 2026
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
Adds a maintainer-invoked
/reviewworkflow using thereview-pull-requestskill merged in #69146. It posts advisory inline findings and aCOMMENTreview directly to the pull request. It never approves or requests changes.The PR targets
mainand adds only the workflow source and compiler-generated lock. The current candidate uses unmodified stable gh-aw v0.88.7 with an explicit Copilot CLI 1.0.80 pin. No patched compiler or hand-edited lock is required.Behavior
/reviewin PR conversation comments from users withadmin,maintainer, orwriteaccess. Inline review-comment invocation is intentionally excluded because that event's bootstrap uses the PR merge ref instead of trusted default-branch configuration.general-purposegpt-5.6-solworker per routed topic.noopfor missing evidence, incomplete coverage, no findings, or a moved/unreadable live head.COMMENTreview for a nonempty validated result. Trusted handler configuration fixes the target PR and commit attribution and rejectsAPPROVEandREQUEST_CHANGES.Actual posting validation
Run 35268213203 tested the same live-output configuration with only the exact host/scope changed for the PureWeen fork.
On disposable PureWeen#73, it:
gpt-5.6-sol.RangeItemHeaderValueTest.cs:138.COMMENTreview asgithub-actions[bot], bound to the reviewed commit0d07bdbd593117ee161a97e4777fcd5c33827543.Example: the finding actually posted
The test deliberately replaced a meaningful assertion with a self-comparison in
src/Http/Headers/test/RangeItemHeaderValueTest.cs:The workflow posted this exact finding on line 138, as
github-actions[bot]:View the posted inline finding · View the accompanying review
This was a real posted review, not a preview. It establishes that the workflow can identify this test defect and publish it on the correct changed line and commit; it is not a claim of broad review accuracy.
All related jobs were terminal before cleanup. The fork default branch and original environment policies/protections were restored exactly; Actions permission settings were unchanged. The disposable PR was closed without merging, and its head branch was deleted with an expected-SHA lease. The posted review remains available as evidence.
Earlier stock-stable runs verified the no-findings/noop path and preview-mode finding output. The new run verifies real GitHub review POST acceptance, not just a preview.
Stable toolchain and temporary CLI pin
An earlier gh-aw v0.88.2 run dynamically installed actual CLI 1.0.83, despite compiler metadata reporting 1.0.80. Tool discovery failed with its stateful gateway v0.4.15. The protocol defect is tracked in github/gh-aw-mcpg#13196 and fixed by github/gh-aw-mcpg#13221.
The source pin bypasses automatic CLI selection. Stock gh-aw v0.88.7 generates explicit CLI 1.0.80 installation in both reviewer and detector jobs and uses its normal gateway v0.4.18. Repeat compilation produces the same workflow lock.
The source comment explains why the pin exists. On a future gh-aw upgrade, retry without it once the bundled gateway includes the fix, and remove it only after verifying the actual CLI, tool discovery, native skill/full topic panel, noop, and frozen-SHA
COMMENTpublication. Do not patch the compiler or generated lock.Permissions, rollback, and boundaries
copilot-pat-poolcredentials are used only for inference. Evidence reads and safe outputs explicitly useGITHUB_TOKEN.pull-requests: writeto bothsafe_outputsandconclusion. It grants no contents-write or issue-write permission. Generated-job permission overrides are not supported, so the source documents the actual boundary rather than claiming only one job has posting capability.dotnet/aspnetcorescope, but MCPG broadens reads to public repositories when the workflow repository is public. This is not exact-repository read isolation.safe-outputs.staged: truein the source and recompile normally.The trials establish the stated small-fixture paths, including one real post. They do not establish broad review accuracy, all contributor-fork/multi-guide cases, or all timeout, moved-head, detector-rejection, and incomplete-worker cases. The review remains advisory and maintainer-invoked.
Local checks
Strict stock compilation, repeat-output comparison, 76 live source/lock assertions, 20 isolated cases of the exact generated frozen-head script, YAML parsing, and
git diff --checkpassed. Shared PAT-pool files, product code, skills, and package manifests are unchanged.The source scanner reports the known LOW substring false positive matching
create-pull-requestinsidecreate-pull-request-review-comment; no code-push output is declared. Native actionlint, with the documentedconcurrency.queueexception and external shell linters disabled, still reports the unchanged shared PAT-poolgithub.aw.import-inputs.random_seedexpression. That result is not represented as a clean actionlint run.