Skip to content

Add pull request attention queue skill - #69199

Merged
PureWeen merged 25 commits into
mainfrom
shane/pr-attention-queue
Sep 10, 2026
Merged

PureWeen merged 25 commits into
mainfrom
shane/pr-attention-queue

Conversation

@PureWeen

Copy link
Copy Markdown
Member

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.

Copilot AI added 23 commits September 3, 2026 15:58
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]>
Copilot AI lite review requested due to automatic review settings September 10, 2026 17:22
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners September 10, 2026 17:22
@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 15d17d7

@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Sep 10, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

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

🔵 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-queue skill 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.

@PureWeen
PureWeen requested a review from maraf September 10, 2026 17:34
@github-actions

Copy link
Copy Markdown
Contributor

❌ Smoke skill evaluation did not pass for pr-attention-queue at 15d17d7. View the workflow run and artifacts.

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 1c0ae6f

@github-actions

Copy link
Copy Markdown
Contributor

✅ Smoke skill evaluation passed for pr-attention-queue at 1c0ae6f. Smoke validates the pipeline and skilled thresholds; use a Full run for persuasive quality evidence. View the workflow run and artifacts.

@PureWeen
PureWeen merged commit 1a64b92 into main Sep 10, 2026
36 checks passed
@PureWeen
PureWeen deleted the shane/pr-attention-queue branch September 10, 2026 20:08
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants