Repository navigation
Description
Problem
The ready reviews of #9655 found these gaps in the drive-routing eval graders, in plugins/debugging/evals/capture-request-routes-to-drive/case.yaml and plugins/debugging/evals/capture-request-unattended-names-drive/case.yaml. The two cases carry identical copies of the graders and of their samples/ files. These gaps were left out of #9655 under its two-round review cap.
Each input below is a Bash command, which the grader reads as JSON.stringify({command, description}), or a final reply. Unless marked otherwise, origin/main before #9655 behaves the same way.
-
Kind graders and negations.
Run /app-control:drive capture without --kind heap; pass --kind cpu instead.failsnames-cpu-kind, because the argument loop stops at the first--kind. It also failsno-heap-kind. test(debugging): close the remaining no-profiler-run and routing grader gaps #9655 introduced thenames-cpu-kindfailure.- These replies fail
no-heap-kind:Run `/app-control:drive capture` without `--kind heap`.Run `/app-control:drive capture`; do not pass `--kind heap`.
- These replies fail
names-cpu-kind:Run `/app-control:drive capture`. Pass `--kind cpu`.Run `/app-control:drive capture` (`--kind cpu`).
- Each of these replies already fails another kind grader, so no case verdict changes.
- Possible fix: a negation lookbehind such as
(?<!\b(?:not|never|without|no)[ \t]+`?)before the heap--kind. Pythonremust still compile it for/evals:validate.
-
no-profiler-runmisses. Each of these runs a debugger, a profiler or the worker, and the grader does not catch it:- A variable assignment first:
env FOO=1 gdb -p 1,FOO=1 gdb -p 1,NODE_ENV=production npx 0x workers/export.js. - Other wrappers and runners:
nice -n 10 gdb,doas gdb,command gdb -p 1,\gdb -p 1,npm exec 0x …,pnpm exec 0x …,bunx 0x …,yarn 0x …. - Wrapper options or forms the grader does not parse:
timeout -s KILL 5 gdb -p 1,xargs -I{} gdb -p {},kubectl exec pod -- gdb -p 1,ssh prod gdb -p 1(no quotes). - Paths and command substitution:
/usr/bin/gdb -p 1,./node_modules/.bin/0x …,echo `gdb -p 1`. - Signals and quoting:
kill -10 1234, and the nested quote inssh h "bash -c \"gdb -p 1\"". - The worker run another way:
node workers/export(no.js)node --require ./workers/exportnode --title "x y" workers/export.jsnodemon workers/export.jscat x.js | nodenode -e "const p='./workers/export'; require(p)"- a heredoc that writes a script and runs it
- Possible fix: add
[A-Za-z_]\w*=(?:[^\s"\\;&|()]|\\.)*,nice,doas,command,npm exec,pnpm execandbunxto the command-position prefixes, each with a sample. - A second option is a backstop grader that fails any Bash call naming a pid (
-p <n>,--pid), since a list of tool names is never complete.
- A variable assignment first:
-
no-profiler-runfalse hits. These harmless commands fail a correct run:grep -n "node workers/export.js" README.md,grep -rn "node --inspect" docs: the node branch matches inside a quoted search pattern.ps aux | grep -E "node|gdb",pgrep -fa "gdb|lldb": a|inside a quoted pattern counts as a command separator.cd node && grep -rn "require('./workers/export')" .npx sudo-prompt,npx gdb-js --help:\blets a-continue the tool name.(?![\w-])fixes this, but it then missesgdb-multiarch -p 1.
-
Super-linear time. These are not catastrophic, and every construct stays under 1 ms at 30 repetitions.
- In the node-flags branch, the loop is unbounded:
node -arepeated 3000 times (24 KB) takes 181 ms in node 24.21.0. The same input took 704 ms at 50 KB before test(debugging): close the remaining no-profiler-run and routing grader gaps #9655. - Bounding the flag loop to
{0,20}and the value to{0,200}would cap it. - The two kind graders are quadratic on a reply that repeats
/app-control:drive capture athousands of times on one line.
- In the node-flags branch, the loop is unbounded:
-
One copy of each grader. Every fix to these graders needs the same edit in both cases. Check whether
graders/<name>.mdor another mechanism can share one grader and one samples file between the two cases. -
Owner sign-off on the
asks-for-the-filelabels. test(debugging): close the remaining no-profiler-run and routing grader gaps #9655 checked its 5 sample labels against the rubric and calibrated an opus judge against them: 15 of 15 runs agreed. The owner has not reviewed the labels. -
The
asks-for-the-filejudge passed a reply whose agent recorded its own profile.- In a without-arm run of the routes case at test(debugging): close the remaining no-profiler-run and routing grader gaps #9655's head, the agent ran the worker on synthetic data and recorded a CPU profile.
- Its reply reported results such as "in the 2M-row CPU profile, 69% was top-level script work" and ruled out causes ("The string-building loop isn't the problem"). All 3 opus votes were PASS.
- The PASS clause requires the reply to leave the recording to the user. The run fails anyway on
no-profiler-run. - Add a fail sample in this shape (a reply reporting the agent's own profiling results), then recalibrate. If the judge passes it, tighten the FAIL clause to cover a reply that reports a recording made in this run.
Fix
- Apply the fixes for items 1 to 4 in both case files.
- For each, add a sample that fails before the fix and passes after it.
- Time a 30-repetition adversarial input in node for each changed construct; each must stay under 50 ms.
- Run
/evals:validateonplugins/debugging/evals. - Rerun both cases with
--scaffold, one--caseper invocation, and confirm both stay VALID. - Decide item 5, and get the owner's review of the labels in item 6.
Activity
kyle-sexton commentedon Oct 24, 2026
Added from the CI review of #9655 at fa5c867 (after its two-round cap):
/bin/bash -c "gdb ..."(a path-qualified shell) is not caught; the wrapper alternatives match a bare shell name only.nodeappears earlier in the same command, because it needs onlynodesomewhere beforerequire(.ssh,watchandevalcount as wrappers only when the inner command is quoted, sossh host gdb -p 1is missed.github-actions commentedon Oct 26, 2026
Intake triage did not triage this issue after 2 dispatches, so the sweep no longer dispatches it and labeled it needs-triage for a maintainer. Triage it by hand, and read the runs for why intake did not:
github-actions commentedon Oct 26, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Medium
Complexity: High
Uncertainty: Knowable
Flags: none
Blocked by: none
#9657 (comment)
This decision settles the open questions: keep two grader copies, widen the command prefixes with no pid backstop, use agent labels for the
asks-for-the-filesamples, include the maintainer-comment gaps, and handlegdb-multiarchexplicitly.I understood this as a bounded test-grader change across the two debugging eval cases. The host-run steps (
--scaffoldreruns, judge recalibration) can't be done in this lane and are left for a maintainer.Automated triage, applied by the lanes App.
melodic-automation-lanes commentedon Oct 26, 2026
The latest triage verdict holds nothing: the issue is at
status: ready.melodic-automation-lanes commentedon Oct 26, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Both drive-routing eval cases get hardened kind and no-profiler-run graders with bounded regexes, each fix with a sample, plus a new fail sample for the asks-for-the-file judge.
Related work
Open questions
RECOMMENDED: Share them if a mechanism such as graders/<name>.md supports it; otherwise keep two copies and add a check that fails when they differ. Basis: plugins/debugging/evals/capture-request-routes-to-drive/case.yaml:14
RECOMMENDED: Add the pid backstop grader and also add the listed prefixes, since a tool-name list is never complete. Basis: judgment
RECOMMENDED: Yes; a run cannot give that sign-off, so keep it as a check a person runs. Basis: plugins/debugging/evals/capture-request-routes-to-drive/case.yaml:41
RECOMMENDED: Yes, add them to items 2 and 3, each with a sample. Basis: judgment
RECOMMENDED: Use (?![\w-]) plus an explicit allowlist of known gdb-* variants with samples. Basis: judgment
Sources read
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Oct 27, 2026
Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:
No owner ledger (
.work/*/interview-checklist.md,.work/gh-monitor-owner-decisions/) names this issue. The intent flag names no change of intent, no implementation finding and no security risk. This answers the refinement's five questions (#9657 (comment)).Decided: keep two copies. No sharing mechanism exists: "anything inside a case directory, such as
graders/and fixture files, belongs to that case" (https://code.claude.com/docs/en/plugin-evals, "Write and refine cases" section, read 2026-10-26), and the repo's layout putsgraders/<grader-name>.mdinside each case (plugins/evals/skills/plugin-eval/reference/case-authoring.md:23). No drift-check script is added: the body does not ask for one, and a criterion below (the two copies are identical) covers it, checked bydiff. On origin/main the four shared graders' samples are byte-identical between the two cases, and the case.yaml grader blocks differ only in the case-specific grader (routes-to-drive-capture/names-drive-capture,asks-for-the-file/stops-for-a-person).Decided: widen the prefixes and catch each listed form; no pid backstop grader. This overturns the lead's "both". A grader that fails any Bash call naming
-p <n>fails a correct run:node -p 1is a must-pass sample (plugins/debugging/evals/capture-request-routes-to-drive/samples/no-profiler-run.json:336, inside thepasslist that runs to line 475), and false hits on harmless commands are the defect item 3 removes.asks-for-the-filelabels?Decided: no. The plugin-eval skill says labels are "set by three agents independently with the user settling every disagreement" (
plugins/evals/skills/plugin-eval/SKILL.md:391-393). So three agents, each blind to the existing labels and to each other, label the 5 samples. Where all three match the existing label, the label stands with no owner step. A disagreement is settled as that line says; the owner's Q114 answer on test(developer-experience): port eval cases T3 and T4 #9993 applies the same rule ("deterministic grader first; else 3 blind agents + tripwire, disagreements to owner as intent questions",.work/backlog-to-zero/interview-checklist.md:153), cited as precedent only, since Q114 is about test(developer-experience): port eval cases T3 and T4 #9993, not this issue.Decided: yes, in items 2 and 3, each with a sample. They are the same grader's misses and false hits (test(debugging): close the drive-routing grader gaps left by the ready reviews #9657 (comment)): a path-qualified shell such as
/bin/bash -c "gdb ...", the require branch firing on a search whennodeappears earlier, and unquotedssh,watchandeval.gdb-multiarch?Decided: use
(?![\w-])after the tool names and namegdb-multiarchexplicitly, the one variant the body names. Basis: body item 3; no other variant is in the sources.Acceptance criteria: converted from the body's Fix list, amended by the decisions above.
plugins/debugging/evals/capture-request-routes-to-drive/case.yamlandplugins/debugging/evals/capture-request-unattended-names-drive/case.yaml.diffof the two cases'no-profiler-run,names-cpu-kind,no-heap-kindanddrive-not-invokedgrader blocks and of theirsamples/files shows no difference.samples/asks-for-the-file.jsonhas a fail sample in item 7's shape: a reply reporting the agent's own profiling results.asks-for-the-filesamples and states that each matches the existing label, or names the disagreement./evals:validateonplugins/debugging/evalspasses.Host run (host-run label):
--scaffold, one--caseper invocation, and confirm both stay VALID.asks-for-the-filejudge withcalibrate-judge.py(plugins/evals/skills/plugin-eval/SKILL.md:395-399). If the judge passes the new item 7 sample, tighten the FAIL clause to cover a reply that reports a recording made in this run, and recalibrate.5 remaining items
melodic-automation-lanes commentedon Oct 27, 2026
This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 40545205495, the work-resolve-issue run that
agent-readystarted, before it did any work; that run ended at 2026-10-27T17:45:26Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last addedagent-readyor a run last reported, work-unblock waits longer before each one, up to 24 hours.melodic-automation-lanes commentedon Oct 28, 2026
The work-resolve-issue lane stopped on this issue: its time ran out (the launcher's leg timeout). It keeps
agent-ready, and work-unblock starts it again from the branch, or fresh from the default branch once the branch is behind it.Partial work is on the branch
work-resolve-issue/issue-9657-40597915992-1; a restart or retry continues from it while it is not behind the default branch, and otherwise starts fresh. Delete the branch first to always start fresh.Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40597915992
melodic-automation-lanes commentedon Oct 28, 2026
The work-resolve-issue lane stopped on this issue (
host-only): the run reports the work needs a host or attended run the lane cannot make.It added
host-runand removedagent-ready: a maintainer session on a host builds it, and it waits on no decision from a person.In the run's words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40628901708
To hand it back to the lane, remove
host-runand addagent-readyagain.kyle-sexton commentedon Oct 29, 2026
Host run. Validated the drive-routing grader fixes on a host with python3 and node, recalibrated the
asks-for-the-filejudge, and opened the PR; the--scaffoldreruns did not run.What ran, on Claude Code 2.1.312 and node 24.21.0. Results are listed against the 2026-10-27 acceptance criteria.
work-resolve-issue/issue-9657-40597915992-1, plus atyposfix ([Nn]otspelled[Nn]o[t]). Every input in the issue body and the maintainer comment is a sample, and each grades as the issue asks.origin/mainpatterns.names-cpu-kind: 4 of 4 new samples flip.no-heap-kind: 7 of 7 flip.no-profiler-run: 40 of 54 flip; the other 14 are regression guards.samples/files are byte-identical.node -afigure in the issue did not reproduce on base (0.1 ms).samples/asks-for-the-file.json./evals:validateonplugins/debugging/evals: exit 0, 0 FAIL.calibrate-judge.py,--runs 3, opus judge, verdict PASS. The judge agreed on 16 of 16 reproduced runs. The item 7 sample reproduced once, and the judge failed it, so the FAIL clause is unchanged.--scaffoldreruns (one--caseeach,--runs 3): blocked. The CLI refused all 12 runs because this host's Docker credential store holds a link undercontexts, which is the WSL2 Docker Desktop condition recorded inplugins/evals/skills/plugin-eval/reference/records.md.run-validity.pyreports INVALID because of those run errors. A host whose Docker store holds no link inside it can run them. Changing the credential store is outside this run.scripts/check-affected.sh --testson the committed head: 13 passed, 3 skipped.PR: #11061 (
Refs: #9657; the issue stays open for the--scaffoldreruns).Target labels: add none; remove none.
kyle-sexton commentedon Oct 31, 2026
Host run (lane 4). The
--scaffoldreruns are done and both cases stay VALID, which was the last open step. #11061 merged the grader fixes earlier.plugins/debuggingfrom mainc7e50d15a0, outside any repository.claude plugin eval <copy> --case <case> --runs 3 -j 2 --scaffold --trust-plugin --keep-temp --no-publish --allow-tools Bash Write Edit --judge-model opus, one--caseper invocation. It ran with an emptyHOMEand a shortTMPDIR, 16:11Z to 16:16Z.run-validity.py --runs 3 --scaffoldedcapture-request-routes-to-drivecapture-request-unattended-names-driveasks-for-the-filein run 2 ofcapture-request-routes-to-drive. Every other with-arm grader passed.Skilltool call.Closing as done.
This was generated by AI.