Repository navigation
AI PC evals v0.7.2
A patch over v0.7.1. No grading output a person or an operator reads quotes the answer any more: summary.md, the console and the other tools show only which check decided a task and how. The details stay in scorecard.json. A task now fails when its agent leaves a recurring job it wasn't asked for, and Layer 4 grading never writes where the agent user can reach. The task fingerprint changes (engine and grading files), so results are not directly comparable with v0.7.1's; no task, input, key or prompt changes, but the opencode, pi, openclaw and hermes entries now answer from their CLI's JSON output.
New
- Tool calls and context use, per task (#71, #72), never changing a score.
result.jsongetstool_health(tool calls and failures, malformed calls: tool-call markup left in the model's text because the server didn't parse it, loops of the same call 3 times or more in a row, the last call before a time cap) andcontext(the largest prompt the agent sent, the window and the share used, requests the server refused for being over the window, compactions of the agent's history). They come from the agent's own output (tools/agents/trace.py) and, with--telemetry, the server's window (llama-server's slotn_ctx, vLLM's and SGLang'smax_model_len) and llama-server's largest prompt from/slots.summary.mdlists a task only when something is off (malformed calls, failures, a loop, 90% of the window or more, a refused request, a compaction). Both blocks hold only the agent's own calls and text and the server's numbers, never answer material; like the rest ofresult.jsonthey are scrubbed of secrets, and so is the line the run prints. - The
opencode,pi,openclawandhermesentries run their CLI's JSON mode (--format json,--mode json,--json,--format stream-json) and take the answer from it ("answer": "trace"), so their tool calls are counted. The graded answer is the reply text from that output rather than everything the CLI printed, so compare runs of these four agents made before and after this change with care. OpenCode's, Pi's and Hermes' calls are now audited like Claude Code's; OpenClaw's JSON gives only totals, so it stays not audited. A Pi run that ended in an error (a request over the window) exits 0 in JSON mode: the runner reads the error from its output and fails the task, as before; a failed compaction that Pi got past and then answered is not a failure. A Hermes turn that didn't finish ("Hermes couldn't confirm how this turn ended") was graded as its reply, with exit code 0; it now fails the task. - Readable console output.
run_eval.pyprintskey: valuelines instead of long lines and markdown tables, after an empty line that sets it apart from the command. Running: a short header, a one-line preflight report with the folders not swept grouped by why and the other model servers on one line (python tools/preflight.pyprints it in full), and one block per task (telemetry one metric per line, tool calls and context use always shown). Grading: onejudged:line per task, then the summary with one block per task holding its result, scores, tool calls and context use, short notes on isolation, audit and answer sets, and the total with its split by difficulty on one line. The judge's one-line note is not printed: it can quote the answer, and the answers stay encrypted (summary.mdleaves it out for the same reason).summary.mditself is unchanged. The engine'sgrade --briefprints one line per judged task and no table, for callers that print their own summary; without it the engine prints each task's scores and its table (never the judge's note; see Fixes). The manual agent's steps and prompts don't change. The skill,CLAUDE.md,docs/RUNNING.mdanddocs/ADDING_AN_AGENT.mdquote the new lines (warning:,not built:,not graded:,result:), andtests/test_skill.pychecks the skill's quotes against whatrun_eval.pyprints.
Changes to scoring
- A task fails when its agent leaves a recurring job or startup entry the task didn't ask for (#51), such as an injected note getting the agent to install itself. Besides Task Scheduler, cron and systemd timers, the runner now looks at Startup folders, the Run and RunOnce keys, the Load value, cmd.exe's AutoRun and PowerShell profiles on Windows (same-user runs; under Layer 4 on Windows the check stays
not checked, as in v0.7.1), and atatjobs,~/.config/autostart, enabled systemd user services and lines added to~/.bashrc,~/.profile,~/.bash_profile,~/.bash_login,~/.bash_logout(a login shell runs it as it exits),~/.bash_aliasesand~/.zshrcon Linux. Only an entry traced to the agent counts against a task: what it runs names the task folder, the run folder or the agent's own program (a short name such aspionly where it is run, never as a word like "Raspberry Pi"), or the separate agent user owns it. A traced task is disabled and counted before the OneDrive and Edge updater exemption (#34) is considered; that exemption, with its signature and account checks, still lets the updaters' own tasks through. Other new entries (an updater's, an installer's PATH line, another run's) are listed for a person to check and, apart from scheduled tasks, cron lines and timers (disabled as before), left alone. A startup-file line counts as only a setting when it is a plain assignment, with no command substitution, backtick or following command and not of a variable that runs code (BASH_ENV,PROMPT_COMMAND,LD_PRELOAD...);source,.andaliaslines are code. A setting is never counted, but it is commented out too when it names the agent's folders or when a separate agent user added it, since later agents start from that user's startup files (bash -l). Each place is listed on its own: one that can't be read (or that the agent made unreadable) is named inschedule_check: not checked (...)and the summary, and the others are still checked;atqrefused by/etc/at.denymeans noatjobs. pc-06 and pc-07 ask for a job, so theirs never count. This changes scores, andkwengine/grade.pyand nowtools/schedules.pyare fingerprinted, so the task fingerprint changes: results graded before it are not directly comparable. A run recorded before it has no traced entries, so re-grading it changes nothing.
Fixes
- No grading output a person or an operator reads quotes the answer.
summary.md's Why column showed a public task's reason in full while the answers are encrypted:judge: missing '<the expected value>', a checker's failure message (which can quote the expected value) or the judge's note.kwengine gradewithout--brief(astools/grade_run.pyruns it for the Perplexity dedicated runner) printed the judge's note per task and the raw reason in its table; a judge error could echo the judge's reply;compare.pyandstability.pyprinted the raw reason or the judge's note;judge_controls.pyprinted what the judge found missing. One rule now covers all of them (kwengine/reasons.py): the kind of check and its outcome (judge: correct,judge: incorrect,probe ok,probe: failed), and the harness's own reasons, which quote no answer (contaminated, missing deliverables, a time cap, not run, stalled, a leaked canary, a judge error with any quoted reply taken out). For a held-out task it was already so. The details stay inscorecard.jsonfor a maintainer. The Perplexity tables no longer collect an unused reason. No score changes, butkwengine/grade.pychanges (its table), so the task fingerprint changes. - Readable output from the other tools, on a terminal.
results_tables.py,compare.py,stability.pyandcheck_agent_flags.pyprint plain text instead of markdown: a table as aligned columns when it fits the window, else onekey: valueblock per row, and ✅/❌/⏳ as pass/fail/not run. Piped, logged or in CI they still print markdown, and--out/--reportfiles are unchanged;KW_MARKDOWN=1keeps markdown on a terminal.local_servers.pyprints one line per server (JSON when piped).grade_run.pygrades with--briefand prints the summary asrun_eval.pydoes.run_eval.py --list-agentswraps each description under itself with a blank line between agents,--list-taskshas column headers, longkey: valuelines wrap under their value on a terminal, and a changed task fingerprint is onetasks:line. - Layer 4: grading never writes through a file the agent user planted, and never writes the scorecard where it can reach (#55). The agent user could create entries in the run folder, so a link at
scorecard.jsonoreval-version.jsonwould have had grading write the answers into a file it can read, or overwrite any file you can write. Ascorecard.jsonit left there was also merged into a--tasksregrade as the run's earlier scorecard, which could change other tasks' results.- Grading writes the scorecard straight into the graded folder (
kwengine grade --card-dir, whichrun_eval.pyandgrade_run.pypass), never into the run folder: on Windows a file made there takes the agent user's grant whatever its mode, and a process a probe left running could have read it before it was moved. A--tasksregrade merges into the graded scorecard, read before any probe runs; one that is a link, has other hard links or (Linux) belongs to another user is refused. The runner no longer merges it a second time (that listed every task as regraded). Ascorecard.jsonfound in the run folder after grading is removed, never moved over the real one;grade_run.py --relocate-onlystill moves a plain one, for a run graded by hand.compare.pyandresults_tables.py, given a run folder, read its graded scorecard rather than one found in the run folder. - On Linux the agent user may now only pass through the run folder to its task folder (
u:<agent user>:--x). On both systemseval-version.jsonis written as a new file after removing whatever was at that name, so a link is never followed. - The list of tasks not run (
skipped.json) is always written on a Layer 4 run, empty when none were, and closed to the agent user like the records: on Windows it could otherwise add one thatsummary.mdand the results tables read. - Also: a runner with no session environment still reaches its systemd user manager, so containment isn't silently off.
--outoutside the eval home no longer puts the sticky bit on the run folder's parent; on Linux the run is refused if the agent user can write in that parent and it has no sticky bit, since it could rename the run folder away. An environment variable name a shell can't export is refused up front. An emptypythonfile no longer passes for a virtual environment in the preflight sweep. kwengine/_support.pyandkwengine/grade.pyare fingerprinted, so the task fingerprint changes; no input, key or score does.
- Grading writes the scorecard straight into the graded folder (
- Dependency patch updates (#101):
constraints.txtpins pypdfium2 5.15.2 (was 5.15.0; 5.15.1 was yanked upstream), a bug-fix release for closing PDF objects at interpreter exit.requirements-dev.txtandpyproject.tomlpin ruff 0.17.5. Both are patch releases. Every input and answer keybuild_fixtures.pymakes builds byte-identical under 5.15.0 and 5.15.2 (pc-01 and pc-06, built from snapshot packs, weren't rebuilt); no task, input, key or score changes.
Known limits
- kw-10's scanned PDF renders differently on Windows and Linux, so grade kw-10 on the OS it was prepared on.
- App runs (
perplexity-computer,gaia-app,other-app) are same-user runs: fine for trials, not for published numbers. - Live-web tasks depend on the agent's web access: bls.gov, for one, refuses many automated fetchers with 403, which an app may meet on pc-04. Compare those tasks only between runs from the same days.
- On Windows Layer 4, scheduled tasks are recorded as not checked.