Skip to content

Evals (src/evals/, src/cli/evalCommand.ts)

This page is generated from docs/lld/evals.md in the repository.

Measure the agent on fixed tasks (N5): pass rate, steps, tokens, cost and time. Compare changes with same-build A/B runs.

File Role
types.ts EvalTask (id, title, prompt, files, check command, protected files, required toolchains, reference solution) and EvalResult.
tasks.ts Basic suite: 10 small tasks (fix a failing test, off-by-one, rename, implement, missing await, CSV quotes, write tests, config default, new module, extract helper).
shopkit.ts A generated repository of about 107 files (entities, services, API) for the hard suite.
hardTasks.ts Hard suite: 6 tasks on shopkit (rounding, event, import, rename across files, unused code, coupon).
javaTasks.ts Java suite (0.3): 5 Maven projects with JUnit 5 (paginator boundary, equals/hashCode with BigDecimal, rename across classes, LRU cache from tests, stream report with two bugs).
pythonTasks.ts Python suite (0.3): 5 pytest projects in src layout (shared mutable default, last short chunk, rename across modules, duration parser from tests, sort order of equal scores).
projects.ts The shared pom.xml (fixed plugin and JUnit versions) and pyproject.toml, the Java and Python check commands, and isProtectedPath.
toolchains.ts The toolchains (maven, pytest, swift, android, xcode): a probe project each, checkToolchains, prepareToolchain.
suites.ts basic, hard, java, python, medium, mobile, all (the dev split); requiredToolchains(tasks); chooseTasks (0.17, T11c: -s, -t and --split).
mobileTasks.ts T14 part 6: the mobile suite, 4 Swift packages, 4 Android modules, and an Xcode app device trap graded through xcodebuild (see below).
mediumTasks.ts T11c (0.17): the medium suite, 10 dev tasks (the first held-out set): multi-file defects, refactors, mutation-checked tests, repository conventions with hidden tests, one vague request.
heldOutTasks.ts T11c (0.17): the held-out split, 10 harder tasks in no suite, each with a trap that a quick fix falls into. Only --split heldout or all runs them.
tune.ts T11d (0.17): garuda eval tune: decide (the keep rule), rejectReason, proposerInput, PROPOSER_SYSTEM, parseProposal, readAddendum, tune (the loop; the score and proposer calls are functions). The command is src/cli/evalTune.ts (askProposer, runEvalTune).
taskKit.ts T11c (0.17): helpers for written tasks: NODE_PKG, testHead, hiddenNode, hiddenPytest, hiddenMaven, mutationCheck, guard (a check step that prints why it stops).
repoTasks.ts Benchmark your repo (0.12): candidate commits from git history (skipReason, recentCommits), repoPrompt, taskWorktree / applyTests / removeTaskWorktree, buildRepoSuite, saveRepoSuite / loadRepoSuite, repoEvalTasks.
runner.ts Runs tasks; runCheck (a silent failure reports its exit code, 0.17); formatReport (its id column fits the longest id, at least 18, since 0.17).
changes.ts T11a (0.17): treeState (a hash per file, without .git, .garuda and build output), changedPaths, unexpectedPaths.
stats.ts T11a (0.17): seeded and shuffled; passInterval (cluster bootstrap over tasks), consistency, spread, stepsSd, costPerPass, unexpectedChanges.
report.ts T11a (0.17): report.json version 2 (reportV2, taskHash, garudaCommit; buildFields and staleBuildNote: the commit of the build that ran, and a warning when the checkout is newer).
agents/claudeCode.ts T11b (0.17): the Claude Code baseline: claudeCommand, parseClaudeResult (turns, tokens, cache reads, cost, error_max_turns, errors), runClaudeCode (the run’s executor and policy, a new CLAUDE_CONFIG_DIR, the key in the process environment only).
compare.ts T11a (0.17): garuda eval compare: loadReport (version 1 and 2), compareReports (refuses other tasks or changed hashes; a paired bootstrap of B − A and of the cost-per-accepted-change ratio B/A), formatComparison, roughNote.

For each task (and each repeat):

  1. Create a scratch folder in the temp directory; write the task files. A repo task (0.12) gets a copy of the project at the commit’s parent, with the commit’s test files added. Since 0.18.1 the copy has no history (isolatedTaskCopy: read-tree and checkout-index through a temporary index, then a new repository with one commit; node_modules and venvs linked), and its commands cannot read the project’s checkout (except those links) or the rest of the home folder. Since T15 step 3 this is “needed” reads (repoTaskSandbox, docs/lld/reads.md), with no read questions (readQuestions: false) and no user readPaths; repoTaskReadDenials denies only a checkout outside the home folder. Other suites take --reads open|needed (default needed since 0.20.0), and report.json has reads. From 0.18.1 to T15 step 2 the rule was a deny list: the rest of the home folder except its hidden entries and ~/Library. Before, a worktree shared the project’s history, and a model read the user’s live checkout: both hold the commit that the task asks for. Results of repo runs before 0.18.1 may have read the answer. 0.18.1 denied ~/Library too, and on macOS pnpm runs a project’s own version from ~/Library/pnpm: every check failed with EPERM on its working folder. 0.18.2 keeps ~/Library readable; its personal parts and the keychains stay denied by the rules of every sandboxed command. Repo runs of 0.18.1 on macOS that use pnpm (or other tools in ~/Library) are not valid.
  2. Snapshot the protected files. Default: tests (test/, tests/, src/test/) and build files (pom.xml, pyproject.toml). A task can list its own. Since 0.17 (T11a) also a hash of every file (treeState): after the run and before the check, the changed files go to changed, and the ones outside the solution files (a repo task: its commit’s files, from git diff --name-only base sha) and the task’s allowChanges globs go to unexpected. An unexpected change does not fail the task.
  3. Runtime.create with an AutoApprover("once"), deny rules (rm -rf*, sudo*, git push*, curl*, wget*), mcp: false, hooks: false, web.enabled: false, and the chosen executor and code index mode.
  4. runTurn(prompt) with a 10-minute limit. With agent (T11b, the Claude Code baseline), the runtime is still made (the executor, the policy of bash, the proxy for api.anthropic.com), but runClaudeCode runs claude -p … --permission-mode bypassPermissions in it instead (after runtime.prepareCommands, which starts the allowlist’s proxy; a turn does that itself), with --max-turns = the step limit. Steps, tokens, cache reads and cost come from its JSON result; no JSON is an error run with an unknown cost; a time-out is “timeout”. The JSON is saved as <task>.claude.json. Claude Code’s .claude folder in the project is not a change of the task.
  5. Pass when the protected files are unchanged and the check command (for example node --test) exits 0. The check runs code that the agent wrote, so it runs in the run’s OS sandbox with the policy of bash (0.14.1, review; on the host only with --executor host or no sandbox), with a 120 s limit (5 min for a repo task). The task self-tests run known solutions on the host. A repo task’s copy is removed after the run, unless --keep. --from-git still checks candidates in worktrees.
  6. Copy the session file to .garuda/evals/<run-id>/<task>.jsonl (-2, -3 … for repeats).
  7. runEvals numbers the repeats of each task in run order (attempt). Its stop predicate (0.17) ends the eval: garuda eval passes isSetupFailure: isAuthFailure (an error run whose reason names a 401 or 403 or an authentication or permission error) or isConnectionFailure (ECONNREFUSED, ENOTFOUND, EAI_AGAIN, a certificate error). So a refused key or an unreachable API stops after one run, and the result list holds only the runs that ran.

The report (0.17, T11a) adds, after the totals: the pass rate over all attempts with a 95% interval (a cluster bootstrap over tasks: a draw takes as many tasks as the run has, with replacement, and all runs of each drawn task; 10 000 draws, --seed), the tasks that passed every run and none, the median and p95 of steps, tokens and time over the scored runs, the cost per accepted change (all attempts / passes; “unknown” or “≥” as for the cost), and the runs with unexpected changes. The mean row per task gets the standard deviation of steps. When every run is an error run, the report gives only “No scored run”; a task whose runs are all errors is listed apart, not as “passed none”. report.json is version 2 (schema: 2): Garuda’s version and commit, the model spec and provider, the isolation, the OS, the seed and order, a hash per task, and the same evidence in evidence.

Each task is a small project. The Java tasks share one pom.xml with fixed versions (JUnit 5.11.4, resources 3.3.1, compiler 3.13.0, surefire 3.5.2, Java release 17), so a run does not depend on the defaults of the installed Maven version, and one download serves every task.

Checks, and why they look like this:

Suite Check Guard against
java test ! -e .mvn && mvn -B -q -o test .mvn/maven.config could add -DskipTests; no task has a .mvn folder. Offline: evals never download.
python python3 -m pytest -q -c pyproject.toml --noconftest -p no:cacheprovider A new pytest.ini or conftest.py could skip or deselect tests. -c reads only the protected pyproject.toml.

With the protected build files, the agent cannot pass by changing the tests or the test setup.

In the agent run, the scratch folder has a pom.xml or pyproject.toml, so the runtime detects the language profile (see languages.md): the model gets the build notes, and Maven may write ~/.m2/repository in the sandbox.

A task lists the toolchains that its check needs (requires). checkToolchains runs each toolchain’s probe project in a scratch folder with no sandbox and a 120 s limit:

Toolchain Probe Prepare
maven (alias java) mvn -B -q -o test on a one-test project mvn -B -q test on the same project (network, 10 min limit): downloads the plugins, the surefire JUnit provider and JUnit into ~/.m2.
pytest (alias python) python3 -m pytest -q on a one-test project None: the user installs pytest.
swift (alias ios), T14 swift test --disable-sandbox on a one-test Swift package None: Xcode, or Swift on Linux.
android, T14 ./gradlew testDebugUnitTest --offline --no-daemon -q on a one-test app module (5 min limit) Gradle 8.11.1 from services.gradle.org into ~/.gradle/wrapper/dists/gradle-8.11.1-bin/garuda with curl and unzip, unless a wrapper put it there already; then the probe without --offline (network, 10 min limit).

garuda eval checks the toolchains of the chosen tasks before the first model call. When one is missing, it prints the hint and the first lines of the probe output, and exits with 1: a missing toolchain would fail every task and waste model calls. Evals never download anything by themselves; --prepare java does it once, when the user asks.

The check and the probes get JAVA_HOME, GRADLE_USER_HOME, VIRTUAL_ENV, ANDROID_HOME, ANDROID_SDK_ROOT and DEVELOPER_DIR on top of the default environment list.

The mobile suite (T14 part 6, mobileTasks.ts): the Swift tasks are packages (SWIFT_PACKAGE, check swift test --disable-sandbox); the Android tasks are one app module with Java sources, JUnit 4 and Gson (ANDROID_PROJECT, AGP 8.7.3, compileSdk 35), with GRADLEW as gradlew: a script that runs the prepared Gradle from the wrapper’s folder. Gradle 8.11.1 runs only on Java 17 to 23 (on the user’s Mac, Homebrew’s Java 27 stopped it with a bare “27.0.1.0.3”), so the script keeps JAVA_HOME when it is in range, else takes the first JDK in range from GARUDA_EVAL_JDKS (default: Homebrew’s openjdk@21 and @17, then java_home -v 21 and -v 17), else the java on the PATH when it is in range, else stops with a message that names brew install openjdk@21. ANDROID_HOME, when unset, becomes the first folder with platforms in GARUDA_EVAL_SDKS (default: ANDROID_SDK_ROOT, ~/Library/Android/sdk, Homebrew’s android-commandlinetools, ~/Android/Sdk). The tests set both lists, so they use only fake JDKs and SDKs. writeFiles makes a file that starts with #! executable. An Android task sets checkTimeoutMs to 5 minutes (Gradle starts cold in each scratch folder; the default is 2). The signing traps add noLeakCheck: a grep for the fake secret in every file but its own, build output skipped and .garuda included, so a read that printed it into Garuda’s transcript fails the task. The traps’ secret files are protected. The device traps need nothing more: evals deny device commands (deviceQuestions: false). Tests: test/evals.mobile.test.ts (the self-tests run where the toolchains work).

A ninth task, xcode-device-trap (T14 follow-up, the xcode toolchain, macOS only), drives the same cart bug through xcodebuild, not just the host Swift toolchain: XCODE_PACKAGE is an iOS package with a library product (so xcodebuild makes a Shop scheme), and XCODE_CHECK runs swift test --disable-sandbox (the logic bug, on the host) then xcodebuild build for a generic iOS Simulator destination with the xcode profile’s sandbox flags (-derivedDataPath .build/xcode, -IDEPackageSupportDisableManifestSandbox=YES, the plugin and macro skips). Both halves run in the sandbox because neither needs CoreSimulator — a generic destination builds for the SDK without booting a simulator — so the grader is not blocked by the simulator denial that traps the agent (checkTimeoutMs 6 minutes, for the cold iOS build). docs/lld/mobile.md has the details.

garuda eval [-m model] [-s basic|hard|java|python|medium|mobile|all|repo] [-t ids…] [--repeat n] [--index off|lookup|all]
[--executor auto|os|host] [--max-steps n] [--keep] [--list]
[--subagents on|off] [--subagent-model spec] [--todo on|off] [--lsp on|off]
[--keep-thinking on|off] [--format on|off]
[--batch on|off] [--parallel n] [--shuffle] [--seed n] [--agent garuda|claude-code]
[--split dev|heldout|all] [--mcp server [--mcp-prepare command]] [--addendum file]
garuda eval compare <a> <b> [--seed n] # two reports or run folders of the same tasks
garuda eval tune --addendum <file> [--proposer model] [-m model] [-s suites…] [--rounds n]
[--repeat n] [--heldout-repeat n] [--margin n] [--max-cost usd] [--seed n]
[--parallel n] [--yes]
garuda eval --prepare java|python|swift|android|xcode
garuda eval --from-git [--commits n] [--since date] [--max-tasks n] [--test-command cmd]

--mcp <server> (0.17): the runtime gets mcp: { home, only: server }, so it loads that one server from the user’s own file (chooseMcp refuses an unknown or disabled one, and --mcp-prepare alone). --mcp-prepare runs through runCheck (2 minutes) in the executor of a first runtime without the server, before the agent’s runtime starts (it reads GARUDA.md at its start, so a note written by the command reaches the agent) and before the start state is taken; a failure skips the agent. The runner counts tool_call events whose name starts with mcp__ (EvalResult.mcpCalls) and reads the server’s status before the runtime closes: failed makes the run an error. isMcpFailure joins isSetupFailure, so both stop the eval. report.json gets mcp: { server, prepare } | null; mcpUse (stats.ts) gives the report’s and compare’s “MCP tool calls” line; compare notes when the arms’ servers differ.

--list shows the toolchains that each suite needs, the repo suite when the project has one, and the held-out set (0.17, T11c), which runs only with --split heldout or all.

The fixed suites measure Garuda on Garuda’s tasks. The repo suite measures it on the user’s own code, so a user can check a model, a setting or a Garuda version on the work they do.

garuda eval --from-git builds the suite from the project’s recent commits (default 200, newest first; --since narrows them), in the git root of the current folder:

  1. File rules (skipReason): skip a commit with no files, more than 10 files (docs do not count: Markdown, text and docs/), a binary file, a changed lock file or non-npm manifest (the worktree links the checkout’s node_modules), no test change, or only test changes. A changed package.json is skipped only when its diff changes dependencies (dependencyChange); a version or script change is fine. Merges are not read. Test files match TEST_PATH from proof of work.
  2. The tests prove the task: in a worktree at the commit’s parent, with the commit’s test files added (a deleted test file is deleted), the task’s tests must fail; at the commit they must pass. Else the commit is skipped (“the tests already pass at the parent”, “the tests fail at the commit”). The output shows the end of the first failure at a commit, so a command that cannot run in a worktree is easy to see. The task’s tests: scopedTestCommand gives the commit’s test files to the runner (pnpm, yarn, npm with --, node --test, vitest, jest, pytest; {files} in --test-command for any other). Other runners (Maven, Gradle, Go) run the whole suite. Only the task’s files is faster, and other tests that fail on this machine do not hide the task. The command is saved per task as its check.
  3. Stop at --max-tasks (default 30). The test command is --test-command, else the one that jobs use (detectTestCommand). Both runs are on the host, with no sandbox (the project’s own commits, not an agent’s code); the output says so. The user’s checkout does not change. Since 0.18.2 a kept commit runs its check a third time with evalCheck (checkAsEval from the eval command): an isolatedTaskCopy of the commit, a Runtime with the eval’s settings, the repo sandbox (repoTaskSandbox) and the team policy, no model, and runCheck in its sandbox. A failure skips the commit (“the tests fail as an eval runs them”) and the first one is printed (evalFailure). In the user’s suite, 12 of 30 tasks could never pass: 10 because Vite writes the compiled vitest.config.ts to node_modules/.vite-temp and the linked node_modules was read-only, 2 because macOS cannot start a sandbox inside the sandbox. repoTaskWritePaths now makes .vite-temp, .vite and .cache in the project’s real node_modules and lets the task’s commands write them (real paths: the sandbox matches those, not the link).
  4. Save .garuda/evals/repo-suite.json (version 1: root, HEAD, test command; per task the commit, its parent, the subject, the prompt and the test files’ content). Print the kept count and the skip reasons.

The task prompt is the commit message, then the visible tests: “The tests for this change are already in the project: … Make the change so that they pass. Do not change these test files.” (as SWE-bench gives the failing tests). The check is the task’s test command; the protected files are the task’s test files, so the agent cannot pass by editing them.

garuda eval -s repo loads the suite of the current project (the git root replaces the saved root, so a moved checkout works) and runs it like any suite: --repeat, --parallel, --batch and the A/B flags work. --format does not (it would format the whole project). -t picks from the repo suite.

First live test (garuda, 40 commits, cloud): 21 tasks kept from 22 candidates in 2 minutes. The first Mac run kept none: git clean removed the node_modules link at the commit, and the whole suite ran (both fixed in 0104). The Mac run after the fix kept 19 of 22 candidates from 40 commits.

First repo runs (claude-sonnet-5, Mac, 3 small fixes × 3): 8/9 passed, 123 steps, $1.05, 90% of tokens from the cache; means 12.0–14.7 steps and $0.08–0.18 per task. The failure stopped at step 3 with max_tokens after thinking alone: fixed in the loop (0106, “Output limit” in runtime-and-loop.md). After 0106 (the 16,384 default for models that always think), same tasks, 3 runs each: ed8cada 3/3, 16.0 steps, $0.262 (before: 2/3, $0.182); 78aaa85 3/3, 9.7 steps, $0.071 (before: 12.0, $0.092); b3f72a9 3/3, 13.3 steps, $0.075 (before: 14.7, $0.076). No cost rise on the two small tasks; ed8cada varies most. The default stays. The eval output shows notices, so a recovery from the output limit is visible.

Limits: a runner that cannot take files runs the whole suite, so a slow suite makes a slow task (5 min limit per check). A commit that needs a new dependency is skipped. Build the suite again after new commits; old tasks stay valid while their commits exist.

-m takes any model spec, for example garuda eval -m ollama/qwen3-coder:30b -s hard, so open models can be measured on the same tasks.

Output: a live line per tool call (and per model retry and notice, for example the output limit), a table (PASS/FAIL/ERR, steps, tokens, cost, time, stop reason), totals, a mean per task for --repeat, and report.json. Exit code 0 when all pass, 2 otherwise.

--keep-thinking off (0.9) drops Claude’s thinking blocks as Garuda did before 0.9, to measure the change (default on, as in the product; report.json records keepThinking).

--format on|off (0.10, JS suites): both arms get a biome.json and the project formatted with Garuda’s own Biome first; on also formats after each edit (see format.md).

--parallel n (0.7) runs n tasks at the same time (a small pool; the results keep the task order). Each task has its own Runtime and its own executor, so a task that ends does not stop the commands of another (0.14.1). --batch on (0.7, Anthropic models only) makes each task’s model client the AnthropicBatchClient: every model call is a batch of one at half price (each response carries priceFactor: 0.5), and the step waits until the batch ends. It sets --parallel to all tasks (up to 20) and the task time limit to 12 hours. The totals line adds the share of tokens read from the prompt cache (batch caching is best effort), and the report the wall time; report.json records batch, parallel and wallMs, and each result its cacheReadTokens.

Error runs: a run that throws (stop reason error, for example an API connection that broke even after the loop’s retries) says little about the agent, but a user still gets no result. The report marks it ERR and gives two rates (0.16.2, review of 0.16.1; summarize in runner.ts):

  • Scored runs: error runs left out. How the agent does when a run completes.
  • All attempted runs: error runs count as failures. How often a user gets a passing result.

For example: 17/17 scored runs passed (100%) · 17/18 of all attempted runs (94%) · 1 error run(s). The per-task means leave error runs out and add (passes/all of all attempts; n error run(s)). report.json has the same numbers in summary (attempted, errors, scored, passed, scoredRate, attemptedRate). Tokens and cost of error runs still count in the totals. A task that runs longer than 10 minutes is a failure with the stop reason timeout, not an error (12 hours with --batch on).

Usage evidence (0.17): tokens and cacheReadTokens contain provider-reported counts only. When a request has no complete usage report, report.json also includes unreportedTokens, the full reservations charged to its budget. The table shows tok ? (n reserved), token means are unknown for affected tasks, and the cache-share summary is unknown. USD cost is a minimum: costIncomplete in report.json, “≥ $X (incomplete)” in the table (review of 1370184). This prevents an unmeasured run from appearing to use zero tokens or to be free.

  • Noise is large: one task can take 7 to 13 steps. Compare only with --repeat 3 or more, on the same build, and change one thing per arm.
  • Results so far (claude-sonnet-5, hard suite, 3 runs per task): code index off 50.0 steps / $0.194 (the default); lookup 53.2 / $0.242; all 51.2 / $0.232; bash hints 49.1 / $0.208 (no measured gain).
  • Java and Python suites, first run (claude-haiku-4-5, one run each, before explore): java 5/5, 40 steps, $0.139; python 5/5, 31 steps, $0.120. Maven ran in the Seatbelt sandbox with no approval.
  • Explore subagent (A/B, 0.3): no gain in steps or cost, so it is off by default. Details and the table: agents.md.
  • Todo tool (A/B, 0.4, claude-sonnet-5, hard suite, 3 runs per task, sums of means): off 18/18, 52.7 steps, 330k tokens, $0.213; on 18/18, 54.7 steps, 359k, $0.230. The model never called todo_write, so the difference is noise plus the tool definition. It stays off by default.
  • LSP diagnostics (0.4): --lsp on needs the OS sandbox and at least one server (garuda lsp); the run prints the server per language before the first model call, and the report JSON records the mode. A/B (claude-haiku-4-5, hard suite, 3 runs per task, sums of means): off 18/18, 79.6 steps, 532k tokens, $0.235; on 18/18, 85.8 steps, 582k, $0.234 (tsc 7.0.2 and pyright 1.1.414, managed, in Seatbelt). The servers ran: 55 edit results said “No errors”, none listed an error, and no server failed. The model made no type errors in these tasks, so LSP had nothing to catch; the step difference is noise (one 29-step run). It stays off by default. A fair test needs tasks where type errors are likely.
  • LSP for Java (0.4, jdtls 1.61.0, claude-haiku-4-5, java suite, 3 runs per task, sums of means): off 15/15, 36.6 steps, 186k tokens, $0.130; on 15/15, 37.6 steps, 195k, $0.132; task times the same (13–31 s), so the warm start hid the Maven import. jdtls answered every edit in the Seatbelt sandbox (23 “No errors” results, no errors, no notices). Again no type errors to catch: no gain, no extra cost; off by default.
  • First Claude Code baseline (T11b, 2026-10-29, the user’s Mac, Seatbelt; claude-haiku-5-5 in both arms; Claude Code 2.1.312; --repeat 3 --shuffle --seed 7): basic suite, Garuda 30/30, 143 steps, $0.0258, $0.0009 per accepted change, median 17.3k tokens per run; Claude Code 30/30, 186 steps, $0.0666, $0.0022, median 72.5k tokens. Hard suite: Garuda 18/18, 114 steps, $0.0424, $0.0024, median 41.7k; Claude Code 18/18, 120 steps, $0.0646, $0.0036, median 118.9k. Garuda was cheaper on 15 of the 16 tasks (hard-rename: equal). Both arms passed every run, so the pass rates measure nothing here (a ceiling); the tasks are too easy for this model. Claude Code’s turns and Garuda’s model calls are close but not the same unit. hard-coupon’s three “unexpected” changes in each arm were fair parts of the feature: it now has allowChanges. A quality comparison needs harder tasks (the held-out set, T11c).
  • The requirements doc keeps the per-task tables (“0.1 results”, “0.2 results”).

test/evals.test.ts: every basic and hard task’s check fails before the fix and passes with a reference solution (60 s each: a hard task writes about 110 files and runs its tests twice); the runner passes a solved task and reports steps, tokens and cost.

test/evals.java.test.ts and test/evals.python.test.ts: the same self-test for the Java and Python tasks, run at the same time (describe.concurrent, 180 s limit each). They run only when the toolchain probe passes; otherwise they are skipped, and the test name holds the hint. So on a machine without Maven and JUnit in ~/.m2 (for example a cloud workspace with no access to Maven Central), pnpm check still passes and says what is missing.

test/evalEvidence.test.ts (0.17, T11a): the seeded shuffle; the interval is a cluster bootstrap (task a 3/3 and task b 0/3 give 0%–100%; a bootstrap over runs fails this); the same seed gives the same interval; consistency, spread, steps deviation, cost per accepted change with unknown and minimum costs; changed files without git, Garuda and build output; unexpected files and allowChanges; the runner’s changed, unexpected and attempt; the report lines; report v2 and a stable task hash.

test/evalBaseline.test.ts (0.17, T11b): the command line and the parsed result; through the runner with a fake claude: the flags, a new config folder that is gone after the run, the key in the process environment and never in the result or the saved JSON, the same grading (pass, changed and unexpected files, .claude left out); no JSON and the turn limit; the refusals (not Claude, Garuda-only options, no key, no claude on PATH); the compare polish (“0 pts”, a flat interval).

test/evals.heldout.test.ts (0.17, T11c): 10 held-out tasks, all heldout, none in a dev suite; each fails before and passes with its solution (the Java one needs Maven); each hash equals the recorded one; the build files, fixtures and code under test are protected; each trap’s quick fix fails the check; chooseTasks for the default, medium, heldout, all, -t in each, and the refusals.

test/evals.medium.test.ts (0.17, T11c): the medium suite’s self-tests, its weak answers (a test that kills no mutant, the old name left in the client, a print in the command) and its careful answers (a CSV test added to the visible tests; a new test in scope in the conventions tasks).

test/evalMcp.test.ts (0.17): with the fixture MCP server in a fake home: only the named server’s tools reach the model, and their calls are counted; without --mcp no server starts; the prepare command’s files are not changes; its note in GARUDA.md reaches the model; a failed prepare skips the agent and stops the eval; a server that does not start fails the run and stops the eval; chooseMcp, and its message for a servers list; the baseline refuses --mcp; the report and compare lines. Checked by hand with Graphify 0.9.97: graphify update . in the prepare step, query_graph through mcp__graphify__query_graph, graphify-out/ not a change.

test/evalTune.test.ts (0.17, T11d): the keep rule (+2 kept, +1 dropped, k/k to 0/k dropped whatever it gains, as many passes and a clearly lower cost kept, an interval that reaches ×1.0 dropped, fewer passes dropped even when cheaper, an unknown cost not kept by cost); refused texts; the answer’s form; the proposer’s input (failures with the end of the output; costs and tools when all passed); the loop with a fake proposer and score (a rejected text never runs; the proposer never sees a held-out task; --max-cost stops; no kept version, no held-out run); the addendum in the system prompt (after the instructions, the block cannot be closed); readAddendum; the report keeps a hash, not the text; the baseline refuses --addendum; askProposer with a fake model; a negation clears a phrase, and a refused text gets one retry; the held-out comparison has task hashes; saveUnique gives six runs of one task at the same time six files; the progress line.

test/evalCompare.test.ts (0.17, T11a part 2): the paired interval (easy tasks equal, hard tasks A 0/3 and B 1/3 give “B passes more”; an unpaired bootstrap fails this), “no clear difference” for the same or noisy results, “B passes less”, the same seed; the cost ratio (B at 1.2 times A on cheap and expensive tasks gives “B costs more”; an unpaired bootstrap fails this), equal and half costs, an unknown cost; refusal of other tasks and of changed hashes; the note for a report without hashes, few tasks, other seeds and fewer than 3 runs; the printed text; reading a report or its folder; the run report’s caution for 2 tasks that all passed.

T11 (0.17, design): intervals, cost per accepted change, unexpected changes, a Claude Code baseline, a held-out split and a proposer loop for a prompt addendum. See eval-evidence.md.