Skip to content

fix(evals): Report why security corpus hunks failed - #596

Merged
dcramer merged 4 commits into
mainfrom
fix/evals-hunk-failure-reasons
Dec 1, 2026
Merged

dcramer merged 4 commits into
mainfrom
fix/evals-hunk-failure-reasons

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

A failed hunk in the security corpus eval showed as Warden did not finish: [] (1 failed hunks), which drops the reason. The eval harness output now carries the report's hunkFailures, and the error lists each failure's code and message. The judge still reads only findings.

via @dcramer.

--

View Session [Sentry]

A failed hunk showed as "Warden did not finish: [] (1 failed hunks)",
which dropped the reason. The harness output now carries the report's
hunk failures, and the error lists each failure's code and message.

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
Comment thread packages/evals/src/harness.ts Resolved
The vercel CLI dev dependency of warden-service pulled in zod 3.22.4,
which has GHSA-mrhx-c7xc-m3w5. No 3.x release has the fix, so the
override now maps every zod below 4.6.6 to 4.6.7. The vercel CLI and the
@vercel packages that import zod still load.
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
warden-prod Ready Ready Preview Dec 1, 2026 5:28pm UTC

Request Review

@dcramer

dcramer commented Dec 1, 2026

Copy link
Copy Markdown
Member

Is there anything else that's missing from our eval reports while we're in here

@sentry-junior

sentry-junior Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Three gaps I'd fix, in order:

  1. Timeouts report nothing. The 30 min vitest timeout kills the test before Warden returns, so we get no tokens, turns, or findings so far. Give the run its own timeoutMs a little under the test cap, and have the eval throw a timeout error with the usage so far. An aborted hunk is not counted in failedHunks today, so without that throw an abort would read as a miss.
  2. Errored runs still get judged. A run with a failed hunk still has a judge score in the JSON (0 or 1), so the report's score average likely mixes errors with real catches and misses. The catch rate should count only completed runs, with errors listed apart.
  3. Errors lose their usage. Passed tests show tokens and time, but errored ones show only [1 err]. That makes runaway runs hard to spot.

This PR fixes the missing hunk reasons. I'd do the three above in one follow-up PR.

Main no longer resolves zod 3 since #597 dropped the vercel CLI, so
the wider override is not needed.
@dcramer
dcramer merged commit 4d6e167 into main Dec 1, 2026
24 of 27 checks passed
@dcramer
dcramer deleted the fix/evals-hunk-failure-reasons branch December 1, 2026 17:41

This branch was successfully deployed

2 active deployments
Preview – warden-prod — 104143dd Deployed Dec 1, 2026 by vercel[bot]
Preview – warden — 104143dd Deployed Dec 1, 2026 by vercel[bot]
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.

1 participant