Repository navigation
ci: audit agent-assisted pull requests with agent evals - #4446
Merged
Merged
Conversation
Member
Author
Agent evals✅ Passed (19)
Audited 3f9abe9. This check only reports. |
Member
Author
Tommy Nguyen (tido64)
force-pushed
the
tido/agent-evals-ci
branch
2 times, most recently
from
November 5, 2026 15:17
b8cf8bb to
3a6f6cd
Compare
Runs `yarn eval` on pull requests authored or co-authored by Copilot, Claude, or Cursor, and reports the results in a sticky comment. Copilot cloud agent session logs are fetched from the Copilot API when possible; otherwise, rules that require the session log are skipped and the comment explains how to run the audit locally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tommy Nguyen (tido64)
force-pushed
the
tido/agent-evals-ci
branch
from
November 11, 2026 13:59
3c3b24d to
01d50f5
Compare
Tommy Nguyen (tido64)
marked this pull request as ready for review
November 11, 2026 14:04
Tommy Nguyen (tido64)
requested review from
Jason Morse (JasonVMo),
Saad Najmi (Saadnajmi) and
acoates-ms
as code owners
November 11, 2026 14:04
…w; post a new report if it cannot be edited Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Jason Morse (JasonVMo)
approved these changes
Nov 11, 2026
Jason Morse (JasonVMo)
left a comment
Collaborator
There was a problem hiding this comment.
Very cool, is the agent-evals package public?
Member
Author
That is the intention. I will open a PR to make it public once this PR lands. |
… blank lines Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tommy Nguyen (tido64)
enabled auto-merge (squash)
November 11, 2026 15:13
Jason Morse (JasonVMo)
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Adds a CI pipeline that audits pull requests assisted by agents with
yarn eval, and reports the results in a comment on the pull request. A pull request counts as assisted when Copilot, Claude, or Cursor authored it, or authored or co-authored any of its commits.GITHUB_TOKEN, and never runs code from the pull request.yarn eval:reportruns the evals and posts the report in a comment shared with the workflow. If that comment cannot be edited, e.g. on a pull request from a fork, a new one is posted instead.AGENTS.mdinstructs agents to run it after creating or updating a pull request. If the comment already has a report with the session log for the latest commit, the workflow skips its audit. Only reports by the author of the pull request and the workflow count.@rnx-kit/agent-evalsdocuments the provider, grader, report, and checks;evalsdocuments how they are used in this repository.Note
GITHUB_TOKENcan neither read Copilot cloud agent sessions nor run the grader. In CI, rules that need the session are skipped, and rules graded by a model are marked as not checked, until the report is posted locally.Test plan
yarn workspace @rnx-kit/evals eval --var pullRequest=4425reads all 37 cloud agent sessions and audits the session rules.yarn workspace @rnx-kit/evals eval --var pullRequest=4439(co-authored in a local session) audits the changes alone and skips the session rules.yarn eval:reportwith the session log updated the same comment: 19 of 19 passed.