Version Packages - #197
Merged
Merged
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@vercel/agent-eval@2.2.1
Patch Changes
#196
3cc55a7Thanks @gaojude! - Judge matchers no longer block the vitest worker.toSatisfyCriterionandtoScoreAtLeastran the in-sandbox judge agent withspawnSync, freezing the worker's event loop for the length of a model run. The worker answers the main process over an RPC channel whose per-call timeout is hardcoded to 60 seconds (birpc's default — no vitest option or env var reaches it), so any judge slower than that made vitest emit an unhandled[vitest-worker]: Timeout calling "onTaskUpdate"and exit non-zero even when every assertion passed: a green eval recorded as a failure, and the slower the judge model, the more often. The judge now runs via asyncspawnand the matchers are async, so the event loop keeps servicing the RPC channel while the judge works. Judge calls must be awaited —await expect(environment).toSatisfyCriterion(...)— which is what every published example already shows.#195
2bcb34aThanks @gaojude! - Install vitest before validating when the agent removed it. Validation shells out tonpx vitestand the generatedvitest.config.tsimportsvitest/config, resolved from the workspace — but package.json belongs to the agent for the length of a run. An agent scaffolding into an empty directory often replaces that file outright instead of editing it, its nextnpm installprunes vitest, and npx then downloads vitest into a cache that does not satisfy the config's import. The run dies at startup withCannot find package 'vitest', which is indistinguishable from a bad result: the eval never executes, yet the harness records a failure for work it never graded.runValidationnow checks fornode_modules/vitestfirst and installs it when missing, with--no-saveand--no-package-lockso neither the manifest nor the lockfile enters the captured diff as if the agent had written it.