Skip to content

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

Closed

Description

@kyle-sexton

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.

  1. Kind graders and negations.

    • Run /app-control:drive capture without --kind heap; pass --kind cpu instead. fails names-cpu-kind, because the argument loop stops at the first --kind. It also fails no-heap-kind. test(debugging): close the remaining no-profiler-run and routing grader gaps #9655 introduced the names-cpu-kind failure.
    • 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. Python re must still compile it for /evals:validate.
  2. no-profiler-run misses. 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 in ssh h "bash -c \"gdb -p 1\"".
    • The worker run another way:
      • node workers/export (no .js)
      • node --require ./workers/export
      • node --title "x y" workers/export.js
      • nodemon workers/export.js
      • cat x.js | node
      • node -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 exec and bunx to 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.
  3. no-profiler-run false 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: \b lets a - continue the tool name. (?![\w-]) fixes this, but it then misses gdb-multiarch -p 1.
  4. 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 -a repeated 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 a thousands of times on one line.
  5. One copy of each grader. Every fix to these graders needs the same edit in both cases. Check whether graders/<name>.md or another mechanism can share one grader and one samples file between the two cases.

  6. Owner sign-off on the asks-for-the-file labels. 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.

  7. The asks-for-the-file judge 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:validate on plugins/debugging/evals.
  • Rerun both cases with --scaffold, one --case per invocation, and confirm both stay VALID.
  • Decide item 5, and get the owner's review of the labels in item 6.

Activity

  1. added
    status: ready
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
  3. kyle-sexton commented on Oct 24, 2026

    @kyle-sexton
    MemberAuthor

    Added from the CI review of #9655 at fa5c867 (after its two-round cap):

    • Qualified shell wrappers: a debugger run through /bin/bash -c "gdb ..." (a path-qualified shell) is not caught; the wrapper alternatives match a bare shell name only.
    • Require false hit: the require branch fires on a search for require text when node appears earlier in the same command, because it needs only node somewhere before require(.
    • Unquoted wrappers: ssh, watch and eval count as wrappers only when the inner command is quoted, so ssh host gdb -p 1 is missed.
  4. github-actions commented on Oct 26, 2026

    @github-actions
    Contributor

    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:

  5. github-actions commented on Oct 26, 2026

    @github-actions
    Contributor

    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

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    [quote truncated; the full decision is at the link]

    #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-file samples, include the maintainer-comment gaps, and handle gdb-multiarch explicitly.

    I understood this as a bounded test-grader change across the two debugging eval cases. The host-run steps (--scaffold reruns, judge recalibration) can't be done in this lane and are left for a maintainer.

    Automated triage, applied by the lanes App.

  6. added
    needs-owner-decision
    needs-triage
    on Oct 26, 2026
  7. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  8. added and removed
    status: ready
    needs-triage
    on Oct 26, 2026
  9. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    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

    1. Item 5: should the two cases share one grader and samples file, or keep two identical copies?
      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
    2. Item 2: widen the command-position prefix list, or add a backstop grader that fails any Bash call naming a pid (-p <n>, --pid)?
      RECOMMENDED: Add the pid backstop grader and also add the listed prefixes, since a tool-name list is never complete. Basis: judgment
    3. Item 6: should closing this issue wait on the owner's review of the 5 asks-for-the-file labels?
      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
    4. Are the gaps in the maintainer comment (path-qualified shells, require false hit, unwrapped ssh/watch/eval) in scope?
      RECOMMENDED: Yes, add them to items 2 and 3, each with a sample. Basis: judgment
    5. Item 3: how should gdb-multiarch be handled, given that (?![\w-]) fixes npx gdb-js but misses it?
      RECOMMENDED: Use (?![\w-]) plus an explicit allowlist of known gdb-* variants with samples. Basis: judgment

    Sources read

    • /home/runner/work/_temp/refine-data/context.json: issue 9657 body, intake triage and a maintainer comment adding gaps
    • plugins/debugging/evals/capture-request-routes-to-drive/case.yaml:14: no-profiler-run grader, with names-cpu-kind at line 25 and asks-for-the-file at line 41
    • plugins/debugging/evals/capture-request-unattended-names-drive: second case holding duplicated graders and samples

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  10. removed
    needs-owner-decision
    on Oct 27, 2026
  11. kyle-sexton commented on Oct 27, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    I should only ever be in the loop ONLY when necessary (intent/vision changed, something came up during implementation that impacts trajectory/alignment, OR a high security risk) - I've covered this all before

    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)).

    1. Item 5: share one grader and samples file, or keep two copies?
      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 puts graders/<grader-name>.md inside 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 by diff. 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).
    2. Item 2: widen the command-position prefixes, or add a pid backstop grader?
      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 1 is a must-pass sample (plugins/debugging/evals/capture-request-routes-to-drive/samples/no-profiler-run.json:336, inside the pass list that runs to line 475), and false hits on harmless commands are the defect item 3 removes.
    3. Item 6: does closing wait on the owner's review of the 5 asks-for-the-file labels?
      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.
    4. Are the maintainer-comment gaps in scope?
      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 when node appears earlier, and unquoted ssh, watch and eval.
    5. Item 3: gdb-multiarch?
      Decided: use (?![\w-]) after the tool names and name gdb-multiarch explicitly, 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.

    • The fixes for items 1 to 4, and the maintainer-comment gaps, are applied in both plugins/debugging/evals/capture-request-routes-to-drive/case.yaml and plugins/debugging/evals/capture-request-unattended-names-drive/case.yaml.
    • For each fix, a sample is added that fails before the fix and passes after it.
    • diff of the two cases' no-profiler-run, names-cpu-kind, no-heap-kind and drive-not-invoked grader blocks and of their samples/ files shows no difference.
    • A 30-repetition adversarial input timed in node for each changed construct stays under 50 ms.
    • samples/asks-for-the-file.json has a fail sample in item 7's shape: a reply reporting the agent's own profiling results.
    • The PR body records three independent agent labels for each of the 5 original asks-for-the-file samples and states that each matches the existing label, or names the disagreement.
    • /evals:validate on plugins/debugging/evals passes.

    Host run (host-run label):

    • Rerun both cases with --scaffold, one --case per invocation, and confirm both stay VALID.
    • Recalibrate the asks-for-the-file judge with calibrate-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.
  12. 5 remaining items

  13. added
    agent-ready
    and removed
    agent-ready
    on Oct 27, 2026
  14. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    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-ready started, before it did any work; that run ended at 2026-10-27T17:45:26Z. work-unblock has now removed and added agent-ready back 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 added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  15. added
    agent-ready
    and removed
    agent-ready
    on Oct 27, 2026
  16. melodic-automation-lanes commented on Oct 28, 2026

    @melodic-automation-lanes
    Contributor

    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

  17. added
    agent-ready
    host-run
    and removed
    agent-ready
    on Oct 28, 2026
  18. melodic-automation-lanes commented on Oct 28, 2026

    @melodic-automation-lanes
    Contributor

    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-run and removed agent-ready: a maintainer session on a host builds it, and it waits on no decision from a person.

    In the run's words:

    host-only: the issue's acceptance criteria need executed checks this lane cannot run. These are /evals:validate on plugins/debugging/evals (python3 plugins/evals/skills/validate/scripts/validate-cases.py, which grades each regex grader against its samples/ files under Python re and, with node on PATH, JavaScript RegExp), the fail-before/pass-after proof for each new sample, and the 30-repetition adversarial timing in node for each changed construct. This lane's Bash runs only its named wrappers, and none of them runs python3, node or the validator. The PR's CI does not run them either: scripts/affected-tests-no-suite.txt:155-163 makes plugin eval suites an on-demand lane run by hand, and no workflow under .github/workflows calls validate-cases.py. Items 1 to 4 and the maintainer-comment gaps mean rewriting the single-line no-profiler-run pattern and both kind patterns in two case files. Doing that without running a sample could break the existing must-pass and must-fail samples, and nothing would show it. A host run with python3 and node can do the whole issue as the 2026-10-27 decision scopes it, together with the host-run steps that decision already assigns (the --scaffold reruns and the asks-for-the-file recalibration).

    What the run says it did not do:

    • Grader fixes for items 1 to 4 and the maintainer-comment gaps (path-qualified shells, the require false hit, unquoted ssh/watch/eval), applied in both case files with a sample for each: not started, because no sample can be graded here
    • /evals:validate on plugins/debugging/evals: python3 and the validator cannot run in this lane, and no PR CI job runs it
    • 30-repetition adversarial timing in node for each changed construct (under 50 ms each): node cannot run in this lane
    • Item 7 fail sample in samples/asks-for-the-file.json, and the three blind agent labels of the 5 original asks-for-the-file samples for the PR body: left for the host run so that they land with the grader fixes in one PR
    • Host-run steps from the decision: rerun both cases with --scaffold, one --case per invocation, and recalibrate the asks-for-the-file judge with calibrate-judge.py
    • Tidy, review, build/test and class audits: skipped because nothing changed

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40628901708

    To hand it back to the lane, remove host-run and add agent-ready again.

  19. added
    needs-triage
    on Oct 28, 2026
  20. kyle-sexton commented on Oct 29, 2026

    @kyle-sexton
    MemberAuthor

    Host run. Validated the drive-routing grader fixes on a host with python3 and node, recalibrated the asks-for-the-file judge, and opened the PR; the --scaffold reruns 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.

    • Fixes for items 1 to 4 and the maintainer-comment gaps: applied in both cases. The work builds on the lane's partial branch work-resolve-issue/issue-9657-40597915992-1, plus a typos fix ([Nn]ot spelled [Nn]o[t]). Every input in the issue body and the maintainer comment is a sample, and each grades as the issue asks.
    • A sample per fix that fails before and passes after: checked against the origin/main patterns.
      • 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.
    • The two cases are identical: the four shared grader blocks are equal as parsed, and their samples/ files are byte-identical.
    • Timing (30-repetition adversarial inputs in node): the worst case is 2.3 ms, against the 50 ms limit.
      • The item 4 kind input, repeated 5000 times, took 469 ms on base and 3 ms on head.
      • The 181 ms node -a figure in the issue did not reproduce on base (0.1 ms).
    • Item 7 fail sample: present in samples/asks-for-the-file.json.
    • Three blind agent labels: three fresh agents labeled the 5 original samples plus item 7. Each saw only the rubric and the answers, shuffled. All three matched every existing label, with no disagreement. The per-sample table is in the PR body.
    • /evals:validate on plugins/debugging/evals: exit 0, 0 FAIL.
    • Judge recalibration: 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.
    • --scaffold reruns (one --case each, --runs 3): blocked. The CLI refused all 12 runs because this host's Docker credential store holds a link under contexts, which is the WSL2 Docker Desktop condition recorded in plugins/evals/skills/plugin-eval/reference/records.md. run-validity.py reports 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 --tests on the committed head: 13 passed, 3 skipped.

    PR: #11061 (Refs: #9657; the issue stays open for the --scaffold reruns).

    Target labels: add none; remove none.

  21. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Host run (lane 4). The --scaffold reruns are done and both cases stay VALID, which was the last open step. #11061 merged the grader fixes earlier.

    • Source: a copy of plugins/debugging from main c7e50d15a0, outside any repository.
    • Command: 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 --case per invocation. It ran with an empty HOME and a short TMPDIR, 16:11Z to 16:16Z.
    • The Docker credential-store refusal from the 2026-10-29 run did not recur.
    Case With Without run-validity.py --runs 3 --scaffolded
    capture-request-routes-to-drive 0.94 0.33 VALID (warning: skill fired)
    capture-request-unattended-names-drive 1.00 0.33 VALID (warning: skill fired)
    • The one with-arm miss is asks-for-the-file in run 2 of capture-request-routes-to-drive. Every other with-arm grader passed.
    • The "skill fired" warning is expected: the slash command loads the hub without a Skill tool call.

    Closing as done.

    This was generated by AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    host-runneeds-triagestatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions