Skip to content

Add a read-only expert pull request review skill - #69011

Closed
PureWeen wants to merge 11 commits into
dotnet:mainfrom
PureWeen:pureween-review-pull-request-skill
Closed

PureWeen wants to merge 11 commits into
dotnet:mainfrom
PureWeen:pureween-review-pull-request-skill

Conversation

@PureWeen

@PureWeen PureWeen commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Adds .github/skills/review-pull-request: a pure read-only pull request review contract plus the ASP.NET Core domain criteria it routes to.

This is the first of two pull requests. This one adds only the reusable skill. #68867 is the second and adds the staged maintainer /review gh-aw workflow that consumes it.

How to try it

You do not need the workflow or need to wait for this to merge. Check out the branch and ask Copilot to review a real pull request:

review PR #<number>

The skill freezes the pull request's exact GitHub head SHA, authoritative changed-file list and diff, body, and existing feedback. It reviews changed lines while reading unchanged callers, producers, consumers, tests, and repository instructions for context.

Finding nothing is a normal outcome: NO_FINDINGS means no high-confidence defect survived the evidence gates, not that the change was proven correct.

What it does

Changed paths route to their owning references—servers/networking, MVC/Razor/routing, Components, SignalR, auth/security, hosting/DI, minimal APIs/OpenAPI, gRPC, native IIS interop—plus cross-cutting review on every change. Shared paths route to every matching domain.

Every ##### heading under Review dimensions in every routed reference becomes a mandatory manifest row. When task workers are available, the orchestrator launches one explicit fresh general-purpose gpt-5.6-sol worker per row, collects every result, compares task names and results with the manifest, and dispatches any missing row before synthesis. A fail-closed 50-row ceiling prevents unexpectedly broad runs.

The skill reports subagent-per-dimension only when every row returned a usable independent result. Retries, missing workers, or in-context fallback are disclosed as degraded-panel with expected, launched, returned, retried, and fallback counts. This is skill/orchestrator accounting, not an independently trusted GitHub Actions publication gate.

Every retained finding must cite a changed line, concrete trigger, material consequence, and source or primary-contract proof. Style, naming, speculative refactors, duplicates, unsupported claims, and findings already posted are dropped. Compound candidates are split by target and causal mechanism, and every material clause must pass every evidence gate independently.

The orchestrator independently re-reads and re-derives source and primary-contract evidence instead of accepting worker summaries as proof. The result also assesses false-pass risk, whether the permanent test surface matches the behavior owner, and whether the changed behavior has regression coverage.

Read-only boundary

The skill never posts, approves, requests changes, edits, commits, pushes, checks out or executes pull request code, runs builds or tests, or mutates GitHub. Every worker receives the same immutable-GitHub/no-execution/no-mutation boundary. Pull request text, code, comments, and author claims are untrusted evidence. Existing tests and CI can support source tracing, but source review is not runtime proof.

Routing and evidence-audit hardening

A three-model comparison against the recent 112-comment CCR evidence audit identified four concrete contract gaps, addressed here:

  • every worker receives the complete no-execution/no-mutation boundary;
  • src/Http/Authentication.Core/** and src/Http/Authentication.Abstractions/** additionally route to auth/security, while src/Http/Routing/** additionally routes to MVC/Razor/routing;
  • compound candidates are atomic by target and causal mechanism; and
  • the orchestrator independently verifies original source and primary contracts.

Live staged topology evidence

PureWeen/aspnetcore run 33810740854 completed successfully at validation head c963444f8e using gh-aw v0.87.10 and Copilot CLI 1.0.80. It recorded:

  • direct skill(review-pull-request) invocation;
  • 27 distinct literal task(...) calls, starts, unique names, and substantive returns;
  • exactly 14 cross-cutting and 13 Blazor Components dimensions;
  • general-purpose workers with gpt-5.6-sol, plus a gpt-5.6-sol parent;
  • zero retries, pricing failures, or model errors; and
  • staged output with zero reviews or inline comments published to the target pull request.

That run proves skill-to-task dispatch and the complete 27-worker Components topology for the fixture. It does not prove review accuracy. Efficacy claims remain intentionally out of scope until a paired evaluation covers proven-false and proven-correct cases, including compound-claim, routing, exact-SHA, duplicate-root-cause, and execution/mutation canaries.

Sending feedback

If a review gets something wrong—or misses something important—the most useful feedback is the session itself:

  • Export the transcript to a gist and link it here: /export-gist in the Copilot app or /share gist in Copilot CLI. CLI /share file writes local Markdown if you want to redact it first.
  • Or correct the reviewer in-session, explain the right conclusion and evidence, and chronicle that correction.

The transcript shows the routed references, full dimension manifest, accounting, discarded claims, and accepted evidence, which identifies whether the orchestration contract or a domain reference needs correction.

Blast radius

The corpus contains 111 review dimensions and 570 CHECK items across ten reference files. References are loaded only when a review routes to them, so this changes no day-to-day Copilot behavior unless the skill is invoked.

Adds .github/skills/review-pull-request: a read-only pull request review
contract plus the ASP.NET Core domain criteria it routes to.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Copilot AI lite review requested due to automatic review settings September 3, 2026 03:19
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners September 3, 2026 03:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The changes are additive documentation/skill content, and the only noted issue is a minor wording clarification that doesn’t affect functionality.

Review tier: Lite
Findings: 1 Low severity

New issues introduced by this change (1)
Severity Finding
Low severity .github/​skills/​review-pull-request/​references/​cross-cutting-reviewer.md — This reference mentions a pull-request-review workflow, but that workflow doesn't exist in this…
What changed in this PR

Adds a new repository skill (review-pull-request) that defines a read-only, GitHub-anchored contract for performing an “expert panel” pull request review (freeze evidence → route domains → apply per-dimension checks → validate candidates → emit a structured local result), along with domain reference checklists used by the skill.

Changes:

  • Adds .github/skills/review-pull-request/SKILL.md defining the review contract, routing rules, validation gates, and required output format.
  • Adds domain reference documents under .github/skills/review-pull-request/references/ for cross-cutting and major ASP.NET Core areas (servers/networking, MVC/Razor/routing, Blazor/Components, SignalR, auth/security, hosting/DI, minimal APIs/OpenAPI, gRPC, native interop).
File Description
.github/​skills/​review-pull-request/​SKILL.md Defines the skill’s end-to-end review contract (freeze evidence, route, validate, structured output).
.github/​skills/​review-pull-request/​references/​cross-cutting-reviewer.md Cross-cutting checklist intended to apply to all changes, regardless of area.
.github/​skills/​review-pull-request/​references/​servers-networking-reviewer.md Servers/networking checklist (Kestrel, HTTP stack, middleware, body I/O, etc.).
.github/​skills/​review-pull-request/​references/​mvc-razor-routing-reviewer.md MVC/Razor/routing checklist for controller/action/binding/rendering/routing contracts.
.github/​skills/​review-pull-request/​references/​blazor-components-reviewer.md Blazor/Components checklist (render modes, lifecycle, JS interop, navigation, forms).
.github/​skills/​review-pull-request/​references/​signalr-reviewer.md SignalR checklist (protocol, transport, lifetime, clients, scaleout).
.github/​skills/​review-pull-request/​references/​auth-security-reviewer.md Auth/security checklist (schemes, tokens, cookies, antiforgery, DP, redirects).
.github/​skills/​review-pull-request/​references/​hosting-di-reviewer.md Hosting/DI checklist (builder parity, DI lifetimes, options, startup/shutdown).
.github/​skills/​review-pull-request/​references/​minimal-api-openapi-reviewer.md Minimal APIs/OpenAPI checklist (binding/runtime vs generated contract fidelity).
.github/​skills/​review-pull-request/​references/​grpc-reviewer.md gRPC integration checklist (registration, transcoding, metadata, tests).
.github/​skills/​review-pull-request/​references/​native-interop-reviewer.md IIS/native interop checklist (ANCM, P/Invoke/marshaling, lifetimes, Helix).

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Copilot AI added 9 commits September 2, 2026 23:22
The skill lint enforces a 1024-character frontmatter description; this one was
1219 and failed `spec-compliance`. Condensed the routing and exclusion clauses
to 1009 characters while keeping every trigger phrase and every DO NOT USE FOR
case. `eng/skill-evals/run.ps1 -Action Lint` now reports 6 of 6 skills passing.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
The contract covered running the panel and falling back when subagents are
unavailable, but not the case observed in practice: subagents were available
and the orchestrator declined to dispatch them because the diff looked small,
then still had to report the path it took.

State that case explicitly. This is a disclosure rule, not an enforcement
mechanism; prompt wording has twice failed to compel dispatch, so the property
this contract can actually guarantee is that the review never presents
collapsed analysis as panel coverage.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
A dispatched reviewer that returns nothing usable was previously
indistinguishable from one that completed with no findings, so a panel
could report full coverage while some dimensions were never actually
reviewed. Require a retry, disclosure as `degraded-panel`, and an
explicit note when the surviving coverage no longer supports a
conclusion.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
The final paragraph pointed at `try-fix` and `fix-challenge`, which do not
exist in this repository. A public consumer or CI run reading the skill
cannot resolve either name, so the guidance was unactionable.

The paragraph also sat awkwardly against the skill's own charter: it
describes itself as a review-only contract and prohibits turning review
into implementation work, while comparing candidate corrections is
implementation-adjacent.

Nothing is lost by removing it. The only substantive clause -- that such a
comparison is never a prerequisite for reporting a defect already
established by source, primary contract, or a red/green test -- is already
covered by the Step 5 evidence gate and the Proof basis section.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
The reference files said the skill and the pull-request-review workflow
give each dimension an independent pass, but that workflow ships in a
separate pull request. This one has to read correctly on its own.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Align the skill contract with the hosted behavior proven in staged validation: select two to five high-risk dimensions, dispatch explicit general-purpose task workers, and disclose unselected coverage instead of claiming exhaustive fan-out.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Require source or primary-contract proof and prohibit checkout, builds, tests, and empirical edits so the reusable skill remains a pure read-only review contract.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Propagate the analysis-only boundary into task workers, route authentication and core routing paths to their owning criteria, split compound claims, and independently re-derive worker evidence.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Build an explicit dimension manifest, dispatch one GPT worker per row, and account for every task result before synthesis while preserving the analysis-only evidence gates.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 23284af6-fe88-4424-a958-1cd6ea24c056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants