Repository navigation
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new eval fixture’s unreadable-guide scenario is non-deterministic across execution environments and can fail the suite during setup rather than exercising the intended behavior.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
This PR updates the review-pull-request skill to load review criteria (guides + delegated policy excerpts) from the current local workspace rather than the PR’s target/base snapshot, and to default to concise interactive output with structured output only on explicit request. It also adds a dedicated local Vally evaluation suite + fixtures to validate local-criteria capture/routing, invalid-input blocking, and the concise/structured presentation contract.
Changes:
- Add a specialized Vally suite and offline fixtures to validate local criteria capture (including uncommitted edits), routing, and output contracts.
- Update
review-pull-requestskill guidance to remove guidance-source modes and formalize “local workspace criteria + concise by default”. - Update contributor documentation to describe the skill’s local-criteria behavior and output modes.
| File | Description |
|---|---|
| eng/skill-evals/review-pull-request/guidance-source.vally.yaml | New specialized eval suite covering local criteria capture, invalid inputs, and concise/structured output behavior. |
| eng/skill-evals/review-pull-request/fixtures/prepare.py | Fixture repo preparation/verification script for deterministic local-criteria scenarios. |
| eng/skill-evals/review-pull-request/fixtures/pr69401.json | Historical changed-path projection fixture used for servicing-branch guide-loading regression scenarios. |
| eng/skill-evals/review-pull-request/fixtures/Policy.md | Delegated-policy fixture content used for anchor/heading clause capture tests. |
| eng/skill-evals/review-pull-request/fixtures/gh | Offline gh api transport shim to reproduce historical “guide 404” behavior without network access. |
| eng/skill-evals/review-pull-request/fixtures/CrossCuttingGuidance.md | Minimal cross-cutting guidance fixture with delegated policy links and topic structure. |
| eng/skill-evals/review-pull-request/fixtures/BlazorComponentsGuidance.md | Minimal Components/JSInterop guidance fixture with scoped delegated rules link. |
| eng/skill-evals/review-pull-request/fixtures/analysis.json | Controlled “completed analysis” record used to test Step 6 rendering without rerunning review logic. |
| eng/skill-evals/README.md | Documentation for running and interpreting the new specialized local reviewer suite. |
| docs/README.md | Contributor docs update describing local-workspace criteria and concise-by-default output. |
| .github/skills/review-pull-request/SKILL.md | Skill contract updated to require local criteria capture and concise default output, removing prior guidance-source modes. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| elif scenario == "unreadable-guide": | ||
| CROSS.chmod(0) | ||
| if os.access(CROSS, os.R_OK): | ||
| raise RuntimeError("This user can still read mode-000 files; unreadable fixture is unavailable.") |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Freeze local criteria before GitHub retrieval and add portable fixtures with regressions for pinned reads, blocked outcomes, and workspace preservation. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Prepare the immutable reviewer revision without automatic PR checkout, permit committed guidance reads, and align the hosted prompt with LOCAL_SHA. Raise the main reviewer turn limit from 200 to 400 and add caller policy regressions. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>

Use committed local criteria and concise output for PR reviews
Description
Address two reported usability problems: a servicing PR can target a branch that lacks the reviewer guides (as encountered with #69401), and ordinary interactive results should not dump the full review state.
HEADonce asLOCAL_SHA, at invocation start before GitHub retrieval. Read guides, delegated policies, and optional API design criteria from that commit. Guidance edits must be committed but need not be pushed; uncommitted edits are ignored. Missing required committed inputs produce an explicit block, not a fallback or successful no-findings result./reviewcaller. Prepare the immutable default-branch event revision with an explicit checkout step while keeping gh-aw's automatic PR-head checkout disabled. Allow the required Git reads and pass the frozen local criteria identity to workers. Usegit showfrom the verified repository root; this equivalent read form works with the pinned CLI's scoped permission grant. Replace the obsolete target-base/bundle instructions. Preserve source-only review, topic accounting, deduplication, and the existing frozen-SHA COMMENT-only output adapter.Maximum LLM invocations exceeded (206 / 200). The separate detection limit remains 20; other budgets are unchanged.The GitHub PR still defines the reviewed code. Product source uses
HEAD_SHA; authoritative target documents useBASE_SHA. Local criteria do not themselves establish that older target code violates a binding contract. Topic coverage, one independent worker per topic, dispatch/retry/fallback accounting, and candidate-validation gates remain intact. The reviewer agent does not prepare or modify the workspace; the hosted caller prepares it before invocation. Local-diff review and execution of PR builds/tests are not added. No product changes are included.Validation
gpt-5.6-sol.python3 .github/workflows/pull-request-review/test_workflow_policy.py.gpt-5.6-solsuccessfully resolved root/HEAD once and read both guides and optional API criteria at that literal SHA with the final command grants. Earliergit -Cgrant probes were denied; the finalgit showform succeeded. This was a command-access smoke, not native skill or full-panel validation.Validation boundary: the updated hosted action has not been dispatched. Compilation, generated configuration, local regression tests, and the pinned CLI command-access smoke do not prove end-to-end hosted execution or positive-finding publication. No claim is made that 400 turns guarantees completion. The local-freeze source-order check does not simulate a real review interrupted by a concurrent edit. No PR product code, builds, or tests were executed.