Repository navigation
test(debugging): anchor the no-profiler-run grader and check the CPU kind in drive-routing evals - #9539
Conversation
…kind in drive-routing evals The no-profiler-run input_match no longer fires on install checks (command -v py-spy perf node), syntax checks (node --check), clinic inside a longer word, gdb or sudo as arguments, or node --prof-process on an existing log. It still catches a profiler, debugger or the worker being run, including ./ and absolute worker paths and node -e requiring it. Both drive-routing cases now grade the CPU kind on the capture line and fail a heap capture command; the attended case also judges that the reply asks for the recorded file and names no cause. Sample answers for every deterministic grader let the validator check them offline. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w gaps - Every alternative now matches inside the Bash command value only, so a description that names clinic, 0x or --inspect no longer fails a run. - Install and version checks pass (clinic only with a subcommand; 0x, gdb, sudo, lldb and strace only at command position and not before --version or --help). - Catch quoted worker paths, cd workers && node export.js, node inspect, require of the worker, gdb inside bash -c, kill -USR1, perf top/stat, strace and lldb. - Keep = out of a flag value's first character, which removes an exponential backtracking path. - The CPU and heap kind graders read only the capture command's own arguments, so a note after it does not count. - The asks-for-the-file rubric fails a suspected or possible cause and gains labeled samples. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rclaiming Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in this pull request. I did not post anything to GitHub, and I did not run any of the regexes. The diff (14 files) is a changelog fragment, two eval
critical-findings: 0 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f5a184a3eb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review reviewed I found nothing to block or flag in this PR. It changes eval YAML and sample JSON only, plus one changelog fragment with Scope. I read the full diff, the PR context and both changed Regex check. I traced the Case and sample consistency. The two Closing issues. The PR says Manifests. The diff touches no Known defects the author disclosed (not counted as findings). The PR body lists these as deferred to #9543:
The changelog line "no longer fires on common install or version checks" is therefore not true for the quoted-string case, as the PR body admits. I did not count any of this as a finding because it is disclosed and tracked. Hold. None. The change adds no model spend, no trusted-actor or |
Refs: #9467
Summary
The two drive-routing eval cases graded less than their
expected_outcomepromises:no-profiler-rungrader fired on harmless calls: install checks,node --check,clinicinsideclinical, andgdborsudoas arguments.Fix
no-profiler-run(both cases).input_matchis a flagless JavaScript regex over each call's JSON-encoded input (grader types)."command":"..."value, so adescriptionthat names a profiler no longer fails a run (two branches can still run past the command; see Open review findings).echo "gdb ..."form still fires; see Open review findings):cliniccounts only with a subcommand.py-spycounts only withrecord|dump|top, andperfonly withrecord|top|stat.sudo,gdb,lldb,straceand0xcount only at command position, and not before--version,--help,-hor-v.--profno longer matches--prof-process.--checkor-c../or absolute path, andcd workers && node export.js.node inspect,requireof the worker, andkill -USR1.=. This removes an exponential backtracking path that the security review measured.node(?:\s+-[-\w=]+)*still matchednode --check workers/export.js.names-cpu-kind(both cases). It requires--kind cpuor--kind=cpuamong the capture command's own arguments, in any order. It is a separate grader so that reordered flags still pass.no-heap-kind(both cases).match: not_containson a heap kind among the capture command's own arguments. A heap capture offered only as an extra if memory also climbs, which 3 correct with-arm replies did, still passes.asks-for-the-file(attended case,llm).samples/for every grader in both cases./evals:validatechecks the deterministic ones offline against the YAML-parsed pattern through nodeRegExp.Verification
/evals:validate plugins/debugging/evals: exit 0, no FAIL (55 no-profiler-run samples, 10 names-cpu-kind, 8 no-heap-kind per case). The first version of these samples, run against theorigin/maingraders, gave 9 FAILs, one per old false hit.Selected no-profiler-run samples, as JSON-encoded Bash calls:
origin/maincommand -v py-spy perf node clinic 0xnode --check workers/export.js,node -c ...cat clinical-notes.md,which gdb,grep -n sudo README.mdnode --prof-process isolate-0x1-v8.log0x --version,gdb --versioncommand -v node(description: "Check whether clinic or 0x is installed")node workers/export.js orders.json,node ./workers/...,node "workers/export.js"node --max-old-space-size=4096 ...,node -r ./trace.js ...node -e "const run = require('./workers/export.js')",node inspect ...py-spy record,perf record,sudo perf top,clinic doctor,0x workers/export.jsgdb -p 1,cd app && gdb -p 1,timeout 5 gdb -p 1,bash -c "gdb -p 1"cd workers && node export.js,kill -USR1 4242,strace -p 1,lldb -p 1,perf stat -p 1Eval runs.
claude plugin eval2.1.310, one--caseper invocation, with--scaffold --keep-temp --runs 3 --judge-model opus, against plugin copies outside any repository. Before is theorigin/maingraders; after is this branch's head. Every pass isverdict: VALID./app-control:drive capture --kind cpuand makes no Bash call.no-profiler-runfails it under both graders.origin/maingrader, and the expected CPU and heap verdicts.no-heap-kindpasses there.n too small to call(one case per pass). These numbers show the graders hold; they do not measure a plugin gain.asks-for-the-filehas labeled samples but is not calibrated by a judge run, because the owner has not settled its labels.Open review findings. Ready-review round 2 found these in the round-1 fixes. They are left for #9543 per the two-round stop:
npx 0x workers/export.jsis not caught, becausenpxis not a command-position prefix.\"command-position anchor matches a word at the start of any quoted string, socommand -v gdb || echo "gdb not installed"andgrep -rn "sudo" README.mdfail the grader.require\([^)]*workers/exportmatches a grep for that text, and it and the node\S*can run past the command intodescription.names-cpu-kindmisses`/app-control:drive capture` with `--kind cpu`(two code spans).no-heap-kindfails "capture --kind cpu and not --kind heap" written as prose.Related
asks-for-the-filecalibration.🤖 Generated with Claude Code