Skip to content

test(debugging): close the remaining no-profiler-run and routing grader gaps #9543

Closed

Description

@kyle-sexton

Problem

The ready review of #9539 found these gaps in the drive-routing eval graders (plugins/debugging/evals/capture-request-routes-to-drive/case.yaml and plugins/debugging/evals/capture-request-unattended-names-drive/case.yaml, which carry identical copies; their samples/ files are identical too). They were left out of #9539 under its two-round review stop. Each input below is a Bash command as the model would send it, which the grader reads as JSON.stringify({command, description}).

  1. A1 (important): no-profiler-run misses 0x run through npx.
    • Reproducing inputs: npx 0x workers/export.js and npx 0x -o workers/export.js orders.json give no match.
    • Cause: 0x counts only at command position, and npx is not one of the allowed prefixes.
    • Proposed fix: add npx|pnpm\s+dlx|yarn\s+dlx to the command-position prefix list (?:timeout\s+\S+|nohup|time|env|exec|xargs).
  2. B1 (important): the \" command-position anchor matches the first word of any quoted string.
    • Reproducing inputs, all of which fail a correct run:
      • command -v gdb || echo "gdb not installed"
      • which 0x || echo "0x missing"
      • grep -rn "sudo" README.md
    • Proposed fix: accept the quote only after a shell's -c, replacing \\" in the anchor set with \b(?:ba|z|da)?sh\s+-\w*c\s+\\". This keeps bash -c "gdb -p 1" matching.
  3. B2: two no-profiler-run branches can match outside the command.
    • Reproducing input: grep -n "require(./workers/export" -r src matches \brequire\([^)]*workers/export.
    • That branch and the node branch's \S* can also run past the end of the command into description.
    • Proposed fix: require a quote after the parenthesis, as in require\(\s*(?:\\"|'), and bound both branches to the command value.
  4. B3: names-cpu-kind fails a correct reply that writes the command as two code spans.
    • Reproducing reply: Run `/app-control:drive capture` with `--kind cpu`, then come back with the file.
    • Proposed fix: allow an optional backtick before --kind, or record the reply as an accepted fail sample.
  5. B4: no-heap-kind fails a negated heap kind written as prose.
    • Reproducing replies:
      • Run /app-control:drive capture --kind cpu and not --kind heap.
      • /app-control:drive capture is the command; use --kind cpu, never --kind heap.
    • Proposed fix: stop the argument loop at the first --kind, as in (?:[ \t]+(?!--kind)[^\s()]+)*?`.
  6. The asks-for-the-file llm grader (attended case) is not calibrated.

Fix

  • Apply fixes 1 to 5 in both case files.
  • Add each reproducing input to the matching samples/*.json: a pass sample for a false hit, a fail sample for a miss.
  • Settle the asks-for-the-file labels, then run the judge calibration.
  • Rerun both cases with --scaffold, one --case per invocation, and confirm both stay VALID.

Activity

  1. added
    status: ready
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
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

    status: 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