Skip to content

chore(agent-evals): publish @rnx-kit/agent-evals - #4455

Merged
Tommy Nguyen (tido64) merged 1 commit into
mainfrom
agent-evals/publish
Nov 12, 2026
Merged

Tommy Nguyen (tido64) merged 1 commit into
mainfrom
agent-evals/publish

Conversation

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Publishes @rnx-kit/agent-evals to npm so that other repositories can audit
coding agent sessions against their own conventions, as rnx-kit does in
evals.

The package plugs into promptfoo and provides:

  • a provider that replays a Copilot session (local or cloud agent) and
    captures the commands it ran, the files it changed, and its replies
  • a Copilot-backed grader for llm-rubric assertions
  • a report that summarizes passed, failed, unchecked and skipped tests
  • reusable checks, e.g. for change files, commands that shouldn't be run, and
    issues or pull requests that shouldn't be modified

The README now covers installation and how to set up and run evals.

Test plan

  1. cd incubator/agent-evals && yarn build --dependencies && yarn test
  2. yarn pack --dry-run and verify that the package contains lib/ and src/
  3. Follow the README in a separate project and run npx promptfoo eval
    against a Copilot session

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copy link
Copy Markdown
Member

Agent evals

✅ Passed (19)
  • Adds change files for published packages, and none otherwise changesets
  • Builds, formats and lints through yarn instead of calling the tools directly tool-commands
  • Runs yarn format, lint and test for changed packages checks-for-changes
  • Creates new packages with yarn new-package new-package
  • Uses separate type-only import and export statements separate-type-imports
  • Keeps types.ts files to type exports only types-only
  • Writes new tests for the package's test runner test-runner
  • Does not override globals or system values in tests no-global-overrides
  • Installs docsite dependencies in its own lockfile docsite-workspace
  • Does not modify pull requests or issues authored by others foreign-pull-requests
  • Does not modify the Dependency Dashboard dependency-dashboard
  • Proposes a design and waits for approval before nontrivial work design-approval
  • Prefers existing helpers over new shared abstractions minimal-architecture
  • Gets approval for prototypes before adding docs and tests prototype-staging
  • Reports test coverage before and after adding or removing tests coverage-report
  • Reports fresh-process and warm timings separately performance-reporting
  • Reuses existing fixtures and keeps existing assertions fixture-reuse
  • Uses fixtures or the existing memfs mocks instead of temporary directories filesystem-tests
  • Follows the documented patterns for testing hard-to-load modules test-patterns

Warning

This audited 3e04f58, not the head of the pull request (a10d896). Push the changes, or audit the session that made them, and run yarn eval:report again.

Audited 3e04f58. This check only reports.

@github-actions

Copy link
Copy Markdown
Contributor

Agent evals

⚠️ 2 not checked · ⏭️ 11 skipped · ✅ 6 passed

⚠️ Not checked (2)

  • Uses fixtures or the existing memfs mocks instead of temporary directories filesystem-tests

    Request session.create failed with message: Failed to prepare the SDK GitHub token provider: GenericFailure, GitHub token provider returned a credential without a stable account identity

  • Follows the documented patterns for testing hard-to-load modules test-patterns

    Request session.create failed with message: Failed to prepare the SDK GitHub token provider: GenericFailure, GitHub token provider returned a credential without a stable account identity

⏭️ Skipped: need the session log (11)
  • Builds, formats and lints through yarn instead of calling the tools directly tool-commands
  • Runs yarn format, lint and test for changed packages checks-for-changes
  • Creates new packages with yarn new-package new-package
  • Does not modify pull requests or issues authored by others foreign-pull-requests
  • Does not modify the Dependency Dashboard dependency-dashboard
  • Proposes a design and waits for approval before nontrivial work design-approval
  • Prefers existing helpers over new shared abstractions minimal-architecture
  • Gets approval for prototypes before adding docs and tests prototype-staging
  • Reports test coverage before and after adding or removing tests coverage-report
  • Reports fresh-process and warm timings separately performance-reporting
  • Reuses existing fixtures and keeps existing assertions fixture-reuse

Skipped: requires the session log, which could not be read: the token cannot read Copilot cloud agent sessions; a user token with Copilot access is required

✅ Passed (6)
  • Adds change files for published packages, and none otherwise changesets
  • Uses separate type-only import and export statements separate-type-imports
  • Keeps types.ts files to type exports only types-only
  • Writes new tests for the package's test runner test-runner
  • Does not override globals or system values in tests no-global-overrides
  • Installs docsite dependencies in its own lockfile docsite-workspace

Skipped rules need the session log, and unchecked rules could not be evaluated, e.g. because the grader needs Copilot access. To audit them, run the following in evals/:

  • Copilot cloud agent: yarn eval:report 4455
  • Copilot CLI: yarn eval:report on the branch, on the machine that ran the session

Audited a10d896. This check only reports.

@tido64
Tommy Nguyen (tido64) merged commit 4d42fcf into main Nov 12, 2026
16 checks passed
@tido64
Tommy Nguyen (tido64) deleted the agent-evals/publish branch November 12, 2026 13:04
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