From dc258d049ebe4019765342fea9f6141b30fa9e5b Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 00:57:02 +0000 Subject: [PATCH] fix(evals): Run the security corpus with the action's defaults The security corpus analyzed hunks one at a time with a 100-turn cap, while the action runs them concurrently with the runtime's turn limit. Large files took many serial agent runs and hit the test timeout. Match the action so the suite measures what users get. Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com> --- packages/evals/src/runner.ts | 4 +++- packages/evals/src/security-corpus.eval.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/evals/src/runner.ts b/packages/evals/src/runner.ts index fb3c3083..1cced770 100644 --- a/packages/evals/src/runner.ts +++ b/packages/evals/src/runner.ts @@ -30,6 +30,8 @@ export interface RunEvalOptions { verifyFindings?: boolean; /** Whether to run Warden post-processing. Disable for raw skill benchmarks. */ postProcessFindings?: boolean; + /** Analyze hunks concurrently, like the action does. Off by default. */ + parallel?: boolean; /** Enable verbose logging */ verbose?: boolean; } @@ -215,7 +217,7 @@ export async function runEvalSkill( verifyFindings: options.verifyFindings, postProcessFindings: options.postProcessFindings, verbose: options.verbose, - parallel: false, + parallel: options.parallel ?? false, callbacks: options.verbose ? { onFindingProcessing: (event) => { diff --git a/packages/evals/src/security-corpus.eval.ts b/packages/evals/src/security-corpus.eval.ts index d2342510..330fefc1 100644 --- a/packages/evals/src/security-corpus.eval.ts +++ b/packages/evals/src/security-corpus.eval.ts @@ -70,8 +70,8 @@ describeEval( auxiliaryModel: provider.auxiliaryModel, effort: provider.effort, auxiliaryEffort: provider.auxiliaryEffort, - // Corpus runbook cap, so a turn limit does not read as a miss. - maxTurns: 100, + // Run like the action: its hunk concurrency and turn limit, not eval ones. + parallel: true, }), judges: [createWardenEvalJudge({ apiKey: provider.apiKey, model: provider.judgeModel })], // Report misses as scores instead of failures, so Roach keeps their recordings.