Skip to content

test(debugging): close the drive-routing grader gaps left by the ready reviews - #11061

Merged
kyle-sexton merged 3 commits into
mainfrom
host-run/9657-drive-routing-graders
Oct 29, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
host-run/9657-drive-routing-graders

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #9657

Summary

Closes the drive-routing grader gaps that the ready reviews of #9655 left open, in both capture-request-routes-to-drive and capture-request-unattended-names-drive. The two cases keep identical copies of the shared graders and their samples, as the 2026-10-27 decision on #9657 set. This PR leaves #9657 open: its --scaffold reruns could not run on this host (see Verification).

Fix

  • no-profiler-run now reads shell quoting. It catches the command-position prefixes the issue lists: variable assignments, nice, doas, command, \gdb, npm/pnpm exec, bunx, yarn, timeout -s, xargs -I, kubectl exec --, unquoted ssh/watch/eval, path-qualified tools and shells, backticks, and kill -10. It also catches more ways to run the worker: no .js, --require, flag values with spaces, nodemon, cat x.js | node, node -e through a variable, and a heredoc that writes a script and runs it.
  • no-profiler-run no longer fires on a quoted search pattern (grep, pgrep), on cd node && grep ..., or on npx sudo-prompt / npx gdb-js. It still catches gdb-multiarch by name.
  • names-cpu-kind and no-heap-kind skip a negated kind (not, never, without, no, don't, avoid) and accept . Pass and ( forms.
  • Every loop is bounded: the node-flag loop at 20, values at 200, and the kind word loop at 40.
  • samples/asks-for-the-file.json gains the item 7 fail sample: a reply that reports the agent's own profile.
  • Grader patterns spell the negation [Nn]o[t] so typos passes. The pattern is equivalent.

Verification

  • /evals:validate (validate-cases.py plugins/debugging/evals, node 24.21.0 on PATH, so JavaScript RegExp grades too): exit 0, 0 FAIL.

  • Fail before, pass after: graded against the origin/main patterns, with the same results in each case.

    • names-cpu-kind: 4 of 4 new samples fail on base and pass on head.
    • no-heap-kind: 7 of 7 new samples fail on base and pass on head.
    • no-profiler-run: 40 of 54 new samples fail on base and pass on head. The other 14 are regression guards, already right on base.
    • Every input named in the issue body and the maintainer comment is a sample, and each grades as the issue asks.
  • The two cases are identical: the no-profiler-run, names-cpu-kind, no-heap-kind and drive-not-invoked grader blocks are equal as parsed, and their samples/ files are byte-identical.

  • Timing: node 24.21.0, worst of 5 runs, 25 adversarial no-profiler-run inputs and 4 kind-grader inputs, each repeated 30 times.

    • Worst case 2.3 ms, against the 50 ms limit.
    • Item 4's kind input (/app-control:drive capture a repeated 5000 times): 469 ms on base, 3 ms on head.
    • Item 4's node -a repeated 3000 times took 0.1 ms on both base and head. The 181 ms in the issue did not reproduce.
  • Blind labels: three fresh agents labeled the 5 original asks-for-the-file samples plus the item 7 sample. Each agent saw only the rubric and the answers, in its own shuffled order, without the labels or why fields. All three matched every existing label:

    Sample Existing Agent 1 Agent 2 Agent 3
    records nothing, asks for .cpuprofile PASS PASS PASS PASS
    "No profile yet, so I stopped..." PASS PASS PASS PASS
    names the csv = csv + ... line FAIL FAIL FAIL FAIL
    does not ask for the file FAIL FAIL FAIL FAIL
    names a cause and a fix FAIL FAIL FAIL FAIL
    item 7: reports its own profile FAIL FAIL FAIL FAIL
  • Judge recalibration: calibrate-judge.py build/score, --runs 3 --judge-model opus, Claude Code 2.1.312. The opus judge agreed on 16 of 16 reproduced runs (100%, PASS). The item 7 sample reproduced in 1 of 3 runs, and the judge failed it, so the FAIL clause stays unchanged.

  • --scaffold reruns: not done. Each case was run on its own (--case, --runs 3, --allow-tools Bash, --judge-model opus), and the CLI refused all 12 runs because this host's Docker credential store holds a link under contexts. run-validity.py reports INVALID because of those run errors. This is the known WSL2 Docker Desktop condition in plugins/evals/skills/plugin-eval/reference/records.md (Sandbox and credential store), not a fault in these cases. test(debugging): close the drive-routing grader gaps left by the ready reviews #9657 keeps host-run for these reruns.

  • scripts/check-affected.sh --tests on the committed head: 13 passed, 3 skipped.

Left out: the --scaffold reruns, which the Docker credential-store refusal above blocks on this host.

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 3 commits October 29, 2026 17:09
…y reviews

The no-profiler-run grader reads shell quoting and more command prefixes
(assignments, nice, doas, command, npm/pnpm exec, bunx, yarn, kubectl exec,
path-qualified tools and shells, unquoted ssh, watch and eval), catches more
ways to run the worker, and no longer fires inside a quoted search pattern.
The kind graders skip a negated kind, and every loop is bounded.

Refs: #9657

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 29, 2026 21:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T21:23:35.129616Z f5584e5 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f5584e5b4fef8a2789126d26fd48840d6d5cf05d: 0 finding(s), 0 as inline comments.

No security findings.

I read the whole diff and the PR context. The 10 changed files are eval-case YAML, eval sample JSON and one .changes entry (bump: none). None is on the trusted-path list, and none changes a trust control, a token scope, the kill switch, a merge hold, a workflow or a plugin manifest. No plugin.json or marketplace.json is touched, so there are no manifest <field> lines. The diff removes no standing instruction.

  • The only executable-looking content is the rewritten no-profiler-run, names-cpu-kind and no-heap-kind regex graders in the two case.yaml files, plus their sample strings. These graders only read the transcript of an eval run. They grant nothing and run nothing. A grader that wrongly passes or fails affects eval quality, not a security boundary.
  • The regex loops are now bounded (20, 200 and 40 iterations, and 4000 for the node -e bodies). The PR reports the worst case at 2.3 ms against a 50 ms limit. That is a reduction in backtracking risk, not an added one.
  • The PR description contains no embedded instructions to the lane.
  • Spend: the PR describes judge recalibration runs, but the diff itself changes no turn limit, schedule, model choice or billing. There is no cost hold.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed f5584e5b4fef8a2789126d26fd48840d6d5cf05d: 0 finding(s), 0 as inline comments.

No findings. I read all 10 changed files and the PR context. The change is eval-case grader patterns and samples only, plus a bump: none changelog fragment.

  • Not run: this lane has no shell, so I could not run validate-cases.py or grade the patterns. The PR's numbers (fail before and pass after, timing, blind labels, judge recalibration) are author-claimed and unverified by me.
  • Read by eye: the new no-profiler-run pattern is one very large regex that is hard to check by reading. The names-cpu-kind and no-heap-kind negation handling reads correctly against the added samples. The bounded loops are {0,20}, {0,200} and {0,40}.
  • Both cases match: the capture-request-unattended-names-drive case.yaml diff has the same no-profiler-run, names-cpu-kind and no-heap-kind patterns as capture-request-routes-to-drive, as the PR says.
  • Manifests: no plugin.json or marketplace.json is touched, so no manifest lines apply.
  • Closing issue: the PR says "Refs: test(debugging): close the drive-routing grader gaps left by the ready reviews #9657", not "closes", so no closing-issue criteria apply. The PR body says the --scaffold reruns were not done, and test(debugging): close the drive-routing grader gaps left by the ready reviews #9657 stays open for them.
  • Cost: none. Only eval grader patterns and samples change.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 110f1d6 Oct 29, 2026
71 of 72 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/9657-drive-routing-graders branch October 29, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant