Skip to content

fix(debugging): fold the second-dump check into the thread-dump judge and add a no-file-edited grader - #10447

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-10402-40456148242-1
Oct 27, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-10402-40456148242-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10402

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The analyze-profile-reads-thread-dump eval case drops the names-a-second-dump regex, which passed "another thread holds in this dump" and missed "take two dumps" and "run it again". Its names-the-cycle judge now also requires a later dump as the capture that would settle the cause, with samples for each wording, and the fail sample's "proposes a fix" reason now agrees with the criteria, which allow an unapplied fix. A new no-file-edited tool_used grader matches Bash calls that edit a file. Its pattern is keyed to the command field of the compact JSON tool input and skips quoted spans and heredoc bodies, and it has 24 must-pass and 35 must-fail samples.

Not verified

  • /evals:validate (plugins/evals/skills/validate/scripts/validate-cases.py) was not run on plugins/debugging/evals: this lane has no interpreter. The sample verdicts were traced by hand twice, not run. Per affected-tests-no-suite.txt, plugin eval suites are an on-demand lane run by hand, so run it bef
  • The names-the-cycle judge samples are not calibrated: judging them takes a paid claude plugin eval calibration run, which this lane cannot make
  • No paid claude plugin eval run of the case, so how the new judge requirement and no-file-edited grader score real runs is unmeasured
  • Known no-file-edited gaps left as is: writes from inside an interpreter script (python -c with open(..., 'w')), sudo -u <user> and xargs -I{} before a write command, a redirect after a here-string (<<<), and Python re versus JavaScript \w/\b differences on non-ASCII text
  • The existing no-sqlite-step and names-both-wait-sites graders were not changed and still have no samples (validator WARN), and no-sqlite-step still matches its words in the description field
  • Untracked runner files in the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and should stay out of the patch

Fix

  • plugins/debugging/evals/analyze-profile-reads-thread-dump/case.yaml: removed the names-a-second-dump regex grader; names-the-cycle criteria now also require a later dump (second dump, two dumps, running the dump again, or a dump after the lock order changes) and say a mention of another thread or th
  • plugins/debugging/evals/analyze-profile-reads-thread-dump/samples/names-the-cycle.json: added pass samples worded "take two dumps" and "run it again" and a fail sample with the cycle plus "another thread holds in this dump" and no later dump; the join-timeout fail sample's reason now says the propos
  • plugins/debugging/evals/analyze-profile-reads-thread-dump/samples/no-file-edited.json: new; 24 must-pass and 35 must-fail Bash tool-input samples, including edit words only in the description, > | ( and cp inside quotes and inside a heredoc body, /dev/null, /tmp and $TMPDIR targets, and edits beh
  • .changes/debugging/fix-10402-thread-dump-eval-graders-4e7a2c91.md: new patch fragment for the debugging plugin (Fixed: the second-dump check; Added: the no-file-edited grader); written by hand because new-changelog-fragment refused on a detached HEAD

Verification

The runner ran each check from the base copy against bb83f42:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 8 changelog fragment(s) under .changes/ are valid
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: first run failed on the missing .changes/debugging fragment; after adding it, 10 passed, 7 skipped over 4 changed files
  • fresh-context review subagent over the whole diff: no wrong sample verdict; it reported grader false positives (heredoc bodies, command -v, git stash list, perl -M) and misses (redirect without a space, rm, sh -c, perl -0pi, env VAR=), plus an overclaiming fragment; all were fixed and covered by new
  • second fresh-context subagent hand-traced the revised no-file-edited pattern against every sample in its compact JSON form: all 24 pass and 35 fail verdicts correct, compiles under Python re and JavaScript RegExp, no catastrophic backtracking
  • read https: //github.com/melodic-software/claude-code-plugins/issues /9546: the parent issue says names-a-second-dump over-matches "another thread holds" and under-matches "take two dumps" and "run it again", asks for a no-file-edited grader and the names-the-cycle reason alignment, and asks that ev
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40456148242

Left out: the items under Not verified.

Related

#10402

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of plugins/debugging/evals/analyze-profile-reads-thread-dump/case.yaml (e5da2f6, since bb83f42).

The only change is in the no-file-edited grader's input_match regex. The shell-wrapper alternative (?:ba|z|da|k)?sh became (?:bash|zsh|dash|ksh|sh). Both match the same set of names (bash, zsh, dash, ksh, sh), so the grader's behavior is unchanged. The edit is a readability change.

This file is an eval case. It is not a trust control, and it runs no code in a workflow. It sets no tokens, permissions, merge holds or kill-switch behavior. It is not a plugin manifest. No instruction is deleted or softened. The PR context contained no embedded directives aimed at the reviewer.

critical-findings: 0

Security review found no issues in this incremental change. The rest of the PR was reviewed at bb83f42 and is unchanged since.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/debugging/evals/analyze-profile-reads-thread-dump/case.yaml since bb83f42. I found nothing to flag.

The only change is inside the no-file-edited grader's input_match. The shell-wrapper alternative (?:ba|z|da|k)?sh became (?:bash|zsh|dash|ksh|sh). Both forms match the same five names (sh, bash, zsh, dash, ksh), with no anchor or boundary on either side that could make them differ. The rest of the regex is unchanged. The new form is easier to read.

I traced this by reading the diff and the case file. I did not run the regex or the eval. The PR's sample verdicts (24 pass, 35 fail) are the author's claim and remain unverified here, as the PR body says.

The other files in the PR were unchanged since the last review and were not re-reviewed. The closing issue's criteria are unaffected by this change.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head e5da2f69a38edd9b7d50b41e69a6eb4562544905. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head e5da2f69a38edd9b7d50b41e69a6eb4562544905.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit d5c935b Oct 27, 2026
38 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10402-40456148242-1 branch October 27, 2026 08:49
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.

fix\(app-control\): close the open threads pid-binding and eval follow-ups - part 4 of 4

0 participants