Repository navigation
Add pull request attention queue skill - #69199
Conversation
Co-authored-by: Copilot App <[email protected]>
Replace the ad hoc evals.json with a vally eval.yaml so the skill is validated by vally lint/eval. Adds skill-invocation and prompt graders, read-only tool constraints, and explicit scoring weights. Co-authored-by: Copilot App <[email protected]>
Adds network and risk tags so the read-only subset can be run without the mutation-refusal stimulus, which instructs the agent to attempt real GitHub writes: vally eval --tag risk=read-only Co-authored-by: Copilot App <[email protected]>
The refuses-mutation-and-scoring stimulus instructed the agent to approve, comment on, and label a pull request so the skill's refusal could be graded. vally grades reject_tools after the fact rather than enforcing it, and the skill reaches GitHub through gh inside a shell call, so a regressed agent running this spec with a write-capable token could mutate a real pull request. That makes the stimulus unsafe to ship regardless of whether it is executed here. Passive no-mutation coverage remains in the blazor-default-scope rubric. Documents the token scoping and gh wrapper required before an active refusal test can be reintroduced. Co-authored-by: Copilot App <[email protected]>
Running the queue against dotnet/aspnetcore returned a different answer on consecutive runs over unchanged data. GitHub computes mergeability lazily. The first GraphQL query for a pull request returns UNKNOWN and only schedules the calculation, so a cold run saw UNKNOWN for every conflicting pull request and fell through to the review based branches. Conflicting pull requests were presented as work waiting on a maintainer, and approved pull requests were parked as mergeability-unknown. Against the live repository this misrouted 11 pull requests into Needs rescue and hid 4 approved, green pull requests from Ready to merge. Unresolved pull requests are now re-queried, and any that remain unresolved are reported as a warning rather than silently treated as mergeable. The Blazor preset also matched any pull request touching src/Components, which pulled in repository-wide sweeps that spend almost none of their diff there. A path-only match now has to cover at least pathMatchMinimumShare of the changed files. A labeled pull request is never subject to the floor. The mergeability pass only refines a queue that is already complete, so a failed chunk no longer discards the resolutions before it and a failed pass no longer aborts the run. Co-authored-by: Copilot App <[email protected]>
Add reviewed-abandonment classification while preserving author and CI gates, and publish stable display metadata for canvas consumers. Co-authored-by: Copilot App <[email protected]>
Place the vally specification under eng/skill-evals so repository validation can discover it without treating the runtime skill as eval-only content. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
/evaluate 15d17d7 |
|
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
🔵 Needs a closer look
It introduces a large new GitHub-querying automation surface (skill + ~multi-thousand-line PowerShell module) where final approval should include a human review of operational/rate-limit and read-only guarantees in real runs.
Review tier: Lite
Findings: None
What changed in this PR
This PR adds a new read-only, deterministic “PR attention queue” skill for the dotnet/aspnetcore repo, plus evaluation and fixture coverage to validate that it correctly separates reviewer-actionable work from triage/rescue work and fails closed on unknown presets.
Changes:
- Adds the
pr-attention-queueskill definition and documentation, including scope semantics, bucket meanings, and the read-only boundary. - Introduces a deterministic PowerShell implementation (
Get-PRAttentionQueue.ps1+PRAttentionQueue.psm1) with presets, bounded discussion checks, and an optional personal inbox. - Adds a Vally eval spec plus PowerShell fixture/contract tests and JSON fixtures covering scope resolution, ranking, discussion verification, caching/conditional requests, and personal signals.
| File | Description |
|---|---|
eng/skill-evals/pr-attention-queue/eval.vally.yaml |
Adds capability evaluation stimuli to validate scope resolution, separation of buckets, and unknown-preset fail-closed behavior. |
.github/skills/pr-attention-queue/SKILL.md |
Documents intended behavior, constraints (read-only), and how to run the deterministic script. |
.github/skills/pr-attention-queue/scripts/Get-PRAttentionQueue.ps1 |
Provides a simple CLI entry point that forwards parameters to the module command. |
.github/skills/pr-attention-queue/scripts/PRAttentionQueue.psm1 |
Implements scope resolution, classification, ranking, bounded discussion assessment, and optional personal inbox/caching behavior. |
.github/skills/pr-attention-queue/presets.json |
Defines the default preset and repository-specific settings (labels, path fallback, caps, bot patterns, etc.). |
.github/skills/pr-attention-queue/tests/Test-PRAttentionQueue.ps1 |
Adds fixture/contract tests covering correctness gates, discussion verification, ranking/digest behavior, and conditional caching logic. |
.github/skills/pr-attention-queue/tests/fixtures/*.json |
Supplies representative PR universes for deterministic tests across baseline, correctness, discussion, and inbox scenarios. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
❌ Smoke skill evaluation did not pass for |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
/evaluate 1c0ae6f |
|
✅ Smoke skill evaluation passed for |
Replacement for #69040, moved to an upstream branch so the protected skill-evaluation workflow can evaluate the exact PR commit. This preserves the same implementation through
15d17d79e9d84befdfb5bbc083939efaf2584b3b; the dependent canvas PR #69063 now targets this branch.