Repository navigation
test(debugging): close the remaining no-profiler-run and routing grader gaps - #9655
Conversation
…er gaps Co-Authored-By: Claude Opus 5.5 <[email protected]>
…no-profiler-run Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 read the full diff (9 files) and the PR context. Every changed file is an eval fixture: the
critical-findings: 0 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa5c867183
ℹ️ 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 Review of PR #9655, which changes the two drive-routing eval cases' Findings
Kind graders. I traced the new Closing issue #9543.
Manifest. No Hold. None: no model or API spend change, no trust-gate paths touched, and no security finding. |
Closes #9543
Summary
The drive-routing eval cases (
capture-request-routes-to-drive,capture-request-unattended-names-drive) still had the grader gaps the ready review of #9539 found:no-profiler-runmissed0xrun throughnpx.description.The
asks-for-the-filejudge was also uncalibrated. This PR fixes all of these, plus what two rounds of ready review found in the fixes.Fix
Both case files carry identical grader blocks, and their
samples/files are byte-identical.input_matchis a flagless JavaScript regex over each call's JSON-encoded input (grader types).no-profiler-runCommand position (B1). A quoted string no longer counts as command position. It now takes one of:
;,&,|,() or a JSON newline, followed by optional spaces or tabs;-c(bash,zsh,dash,ksh,sh, with flags before-cand an optional--),eval,watch,ssh <host>,su … -candscript … -c.A tool name may be quoted at command position (
"gdb" -p 1), and the--version/--helpguard still applies after the closing quote.Runners (A1).
npxtakes its own options, with or without values (-y,--package=0x).pnpm dlxandyarn dlxtake options before and afterdlx.Require (B2). The require branch needs
nodeearlier in the command, a quote afterrequire((optionally inside one nested call such asrequire.resolve(), and a path that cannot cross a quote, backslash or paren. A second branch catches require text piped into a barenodeornode -;|| nodeand| node -e …do not count.Staying inside the command (B2). Every
\Sin the node branch and intimeout <value>is now an escape-aware token, so no part of a match can leave the command value. The lazy spans are bounded ({0,4000}?,{0,300}?), and thetimeoutandnpxvalue classes exclude separators. Together these remove quadratic paths the reviews measured.Newlines. Tool names match right after a JSON
\nor\tescape, through(?<=(?<!\\)\\[nt]), so a shell-level\ninside a quoted string does not count.Spelling. The shells are spelled out because
typosrejects(?:ba|z|da)?sh.names-cpu-kindandno-heap-kindshare one argument pattern and differ only in the kind word:captureand before--kind, and punctuation after the closing backtick, letRun `/app-control:drive capture` with `--kind cpu`pass. A heap kind written that way now failsno-heap-kind.--kind:no-heap-kind.names-cpu-kind; onorigin/mainit passed.Samples. Each case gains 52 samples: 45 for
no-profiler-run, 3 fornames-cpu-kindand 4 forno-heap-kind. Each fixed gap has a sample that fails under the grader it fixes and passes under this branch. A few samples are guards that pass both before and after:npx 0x --version,yarn dlx 0x …andscript -qc "gdb -p 1" /dev/null.asks-for-the-filelabels. Each of its 5 samples follows from one explicit clause of the criteria:I checked these labels against the rubric; the owner has not reviewed them. That review is item 6 of #9657.
Verification
/evals:validate plugins/debugging/evals: exit 0 with no FAIL. Its node check covers only theregexgraders, so a node harness also graded everyno-profiler-runsample throughRegExp. Each case now has 100no-profiler-runsamples, 13names-cpu-kindand 12no-heap-kind, and every one sorts to its label. Theinput_matchalso compiles under Pythonre.Selected samples, as JSON-encoded Bash calls or replies. "First pass" is 9cf3534, before review; "Round 1" is 944e3e2, after the first review round; "Final" is this head.
origin/maincommand -v gdb || echo "gdb not installed",which 0x || echo "0x missing",grep -rn "sudo" README.mdgrep -n "require(./workers/export" -r src,grep -rn "require('./workers/export" srcnode -p 1(description: "Load workers/export.js"),timeout 5(description: "Bound gdb by time")rg "require('./workers/export')" src || node --version,grep -n eval "sudo.txt","gdb" --versionnpx 0x workers/export.js,npx -y 0x …,pnpm dlx 0x …,bash -c 'gdb -p 1'ssh prod "gdb -p 1234","gdb" -p 1,bash -l -c "gdb -p 1",printf "require('./workers/export')" | node,cd /w\nnode -e "require('./workers/export')"npx --package=0x 0x …,pnpm --silent dlx 0x …,cd /w\nperf record -g -p 1watch -n 1 "strace -c -p 1",bash --login -c "gdb -p 1"cd /w\n\tgdb -p 1node -eone-liner that ends inrequire('./workers/export').run()Run `/app-control:drive capture` with `--kind cpu`, then come back with the file.(names-cpu-kind)Run /app-control:drive capture --kind heap, not --kind cpu.(names-cpu-kind)Run /app-control:drive capture --kind cpu and not --kind heap.(no-heap-kind)Backtracking. Node 24.21.0 timed every construct in the final patterns at 30 and 3000 repetitions:
\\escapes;ssh,su,bash -l -x,watch -n 1,npx --a=;,pnpm -a,timeout;require(',| node,\n node,\n\t gdb;--kindtokens.The worst time at 30 repetitions was 0.77 ms, against a 50 ms bar. At 3000 repetitions every construct stays under 35 ms except
node -a(24 KB, 181 ms). That construct sits in the node-flags loop, which this PR did not change; #9657 item 4 tracks it. As a control, the pre-#9539 node construct took 80 s on 26 x--x= = =.Judge calibration.
calibrate-judge.pyran onasks-for-the-filewith an opus judge, 3 runs per sample. Agreement was 15 of 15 runs (100%) over 5 samples, every run reproduced against its trace, at 0.58 USD.Eval runs.
claude plugin eval2.1.310, one--caseper invocation, with--scaffold --keep-temp --runs 3 --judge-model opus --allow-tools Bash.git archiveexport outside any repository:origin/main(b22a875);(?:bash|zsh|dash|sh), which matches the same strings;verdict: VALID; its only warning isskill fired.asks-for-the-filejudge on differing agent replies, not from these graders:no-profiler-run. test(debugging): close the drive-routing grader gaps left by the ready reviews #9657 item 7 tracks the judge miss.origin/mainand the final graders forno-profiler-run,names-cpu-kindandno-heap-kind. No verdict flipped, and both match the recorded verdicts.n too small to call(one case per pass). These numbers show the graders hold on real traffic; they do not measure a plugin gain.Ready reviews. Two rounds of fresh-context code and security review ran locally, since
review-venuereports no CI lane for either.--versionguard, the literal-\nlookbehind, the 500-character bound, the npx value quadratic, and missing tab and long-flag forms. All are fixed in fa5c867.origin/mainshares, the node-flags loop timing, a single shared grader copy, the owner's review of the labels, and the judge miss above.Other checks:
check-affected.sh --tests: 11 passed, 3 skipped.check-changelog-fragments.sh --checkandtypospass.Related
🤖 Generated with Claude Code