Skip to content

Add pull request attention queue skill - #69040

Closed
PureWeen wants to merge 23 commits into
dotnet:mainfrom
PureWeen:pureween-pr-attention-queue-skill
Closed

PureWeen wants to merge 23 commits into
dotnet:mainfrom
PureWeen:pureween-pr-attention-queue-skill

Conversation

@PureWeen

@PureWeen PureWeen commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Goal

GitHub notifications are not an effective intake queue for a team with framework work, community contributions, vendor PRs, and broad review requests mixed together. This adds a reusable, read-only, deterministic skill that produces a small, explainable PR-attention view for the repository. The stacked canvas is #69063.

What this skill does

  • Separates Review now, Needs rescue, Ready to merge, and author/CI/design waiting states with explicit next actors and evidence-backed reason codes.
  • Resolves named label/path presets, including a Blazor default that combines labels with changed-path fallback while excluding incidental path matches.
  • Preserves the complete classified universe in versioned JSON and renders a capped Markdown digest by engine-owned digestRank.
  • Supports digest-only author exclusions and bounded, same-repository stack awareness without changing the underlying classification.
  • Performs no GitHub mutation.

Conservative correctness gates

The live pilot hardened merge-state, CI-rerun, author-review, caller-exclusion, stack, and ordering behavior. In particular, Ready to merge requires mergeStateStatus == CLEAN; exact * NO MERGE * and pending-ci-rerun are treated explicitly; an approved BEHIND PR is author/maintainer work rather than CI; and an unhealthy stack ancestor cannot consume an unattended review slot.

Bounded discussion verification

The deterministic bucket, next actor, reasons, and original rank remain the canonical output. A separate bounded discussion pass prevents selected raw ReviewNow candidates from being presented as unqualified ordinary review when the available discussion evidence is ambiguous or incomplete.

For leading raw ReviewNow candidates only, the pass reads the latest 50 top-level comments and current review-thread state, with connection completeness disclosed. It withholds an item to Verify discussion before review when it finds:

  • an author explicitly asking whether work should close or continue;
  • an actionable or unknown non-author top-level comment, including one after the latest author activity, regardless of whether a formal review exists;
  • a current unresolved inline thread, because this first version does not fetch that thread's comment text; or
  • incomplete/truncated discussion data.

The pass does not change the deterministic bucket or assert a new next actor. It does not map all unresolved threads to the author. Resolved and outdated threads remain factual context and clear controls. It uses no LLM or write-capable service. Informational text is recognized only after requests, questions, and concerns are ruled out, so a polite prefix cannot mask actionable content.

Known live examples: #67146 remains raw ReviewNow, but is held for author close/continue disposition; #68037 remains raw ReviewNow, but is held because later repository-member feedback follows the benchmark response.

Validation

The limits are intentional: only leading candidates are assessed; comments and thread state are capped at 50 per candidate; no full discussion pagination or semantic-model evaluation is performed. The queue routes incomplete or uncertain discussion to a human verification lane rather than claiming it is clear.

This remains a draft so the team can evaluate the transparent rules and daily experience before treating the model as established behavior.

Copilot AI added 2 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]>
Copilot AI added 3 commits September 3, 2026 18:53
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]>
@PureWeen
PureWeen force-pushed the pureween-pr-attention-queue-skill branch from cdbd213 to 81fe52c Compare September 4, 2026 01:19
Copilot AI added 2 commits September 4, 2026 12:07
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 added 15 commits September 4, 2026 19:09
@PureWeen
PureWeen marked this pull request as ready for review September 8, 2026 16:36
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners September 8, 2026 16:36
Copilot AI lite review requested due to automatic review settings September 8, 2026 16:36

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 sizable new PowerShell-based skill (including GitHub data access and caching behavior) plus an eval harness, which warrants final human review for correctness and safety.

Review tier: Lite
Findings: 1 High severity

New issues introduced by this change (1)
Severity Finding
High severity eng/​skill-evals/​pr-attention-queue/​eval.vally.yaml — The eval header uses a config: block and a timeout: 10m value, but the other Vally evals under…
What changed in this PR

This PR adds a new read-only “PR attention queue” skill for the aspnetcore repo, including the deterministic PowerShell entrypoint/module, documented behavior/constraints, and a comprehensive fixture-based test suite plus a Vally eval spec to validate the skill’s expected outputs.

Changes:

  • Adds the pr-attention-queue skill documentation and presets/configuration (scope presets, gating labels, ranking/discussion limits).
  • Adds a PowerShell entrypoint (Get-PRAttentionQueue.ps1) and a large contract/fixture-driven test suite validating classification, ranking, discussion verification, and personal inbox behaviors.
  • Adds a Vally eval spec to exercise key live and offline prompts (default Blazor scope, ad-hoc scope, missing preset fail-closed).
File Description
eng/​skill-evals/​pr-attention-queue/​eval.vally.yaml Adds a Vally capability eval for the skill (live scope + fail-closed preset behavior).
.github/​skills/​pr-attention-queue/​SKILL.md Documents the skill contract, buckets/next-actor semantics, read-only boundary, and usage guidance.
.github/​skills/​pr-attention-queue/​presets.json Defines default preset(s) and settings (label/path scope, rescue windows, discussion caps, bot patterns).
.github/​skills/​pr-attention-queue/​scripts/​Get-PRAttentionQueue.ps1 Adds the public entrypoint script and parameter surface forwarding into the module.
.github/​skills/​pr-attention-queue/​tests/​Test-PRAttentionQueue.ps1 Adds end-to-end fixture/contract tests for classification, ranking, discussion verification, and personal inbox evidence.
.github/​skills/​pr-attention-queue/​tests/​fixtures/​pull-requests.json Fixture universe for default Blazor scope classification/ranking behavior.
.github/​skills/​pr-attention-queue/​tests/​fixtures/​correctness-pull-requests.json Fixture set for conservative correctness gates (merge state, CI rerun, behind-base, etc.).
.github/​skills/​pr-attention-queue/​tests/​fixtures/​discussion-pull-requests.json Fixture set for bounded discussion verification and positive/negative controls.
.github/​skills/​pr-attention-queue/​tests/​fixtures/​inbox-pull-requests.json Fixture set for the community inbox and personal inbox evidence/coverage behaviors.

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

Comment on lines +12 to +15
config:
runs: 1
timeout: 10m

@PureWeen

Copy link
Copy Markdown
Member Author

/evaluate 15d17d7

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.

3 participants