Skip to content

fix(code-tidying): repair acr eval graders and gate unproven dissolve-comments edits - #11529

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-8848-41194731635-1
Oct 31, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8848

Summary

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

Built the three done-when items of the recorded decision (2026-10-31T10:53Z). acr-readonly-strip-request now invokes /code-tidying:audit-comment-residue by name with its strip request, graders unchanged. acr-dir-batch-skips' batch-total accepts '2 comments to delete' and still rejects a 3-file total or a nonzero Tier 2 count; markdown-skipped accepts NOTES.md named as skipped and then described on another line, and still rejects a skipped-then-flagged row or bullet. dissolve-comments now states that an UNAVAILABLE or missing change-shape.sh verdict demotes the edit to a proposal, whether the file is written by Edit or by sed -i, a redirect or a script. Basis for aligning reference/safety.md: it said a pygments-level read 'may still apply deletions' without the proof, which contradicted the decision, the Hard rule and SKILL.md step 3. The exact wording of the host run's failing replies was not available (the issue only paraphrases them), so the new patterns were built from those paraphrases and pinned with grader samples.

Not verified

  • The new regexes and grader samples were checked only by hand-tracing; this lane cannot run Python. CI's evals-schema/validate-cases run and the paid acr-* re-run (tracked on #9966 per the decision) are the executable checks
  • The exact text of the host run's failing replies was not available; the patterns accept the paraphrased shapes the host run describes, and a differently worded correct reply may still miss
  • tidy: passes 1-3 ran and changed nothing; pass 4 (ai-slop fix) could not run its detector or digest guard, because this lane's Bash allows only the named wrappers, so it ran only as a hand read of the listed lines (no em dashes, no configured vocabulary)
  • The review's nit items were left: SKILL.md step 3's grep-precision clause is now redundant beside the tree-sitter clause; markdown-skipped's two lookahead word lists differ; comment-tooling-probe.sh's tree-sitter-absent row does not name the lost proof (outside the diff)
  • Lint and tests: no linter or test runner covers YAML eval cases, JSON samples or markdown in this lane beyond check-affected; typos is not installed (check-affected SKIP)

Fix

  • plugins/code-tidying/evals/acr-readonly-strip-request/case.yaml: prompt invokes /code-tidying:audit-comment-residue src/cache.ts with the strip request; description and tag (natural-language -> explicit) follow; graders unchanged
  • plugins/code-tidying/evals/acr-dir-batch-skips/case.yaml: batch-total accepts 'N comments to delete/remove' and an optional review count, requires 'total' then 2 files with no other number between, and rejects a nonzero Tier 2 count (count-first, label-first, or a word number); markdown-skipped exem
  • plugins/code-tidying/evals/acr-dir-batch-skips/samples/batch-total.json: added 3 pass samples ('2 comments to delete' forms, Tier-labelled to-remove/to-review form) and 3 fail samples (3-file miscount, 1 Tier 2, 'Tier 2: 1')
  • plugins/code-tidying/evals/acr-dir-batch-skips/samples/markdown-skipped.json: added 1 pass sample (skipped, then contents on a separate line) and 2 fail samples (skipped, then flagged as a table row or as a bullet)
  • plugins/code-tidying/skills/dissolve-comments/SKILL.md: Hard rules gate bullet states that UNAVAILABLE or no verdict demotes the edit to a proposal, and that the gate covers shell edits (sed -i, a redirect, a script) as well as Edit calls
  • plugins/code-tidying/skills/dissolve-comments/reference/safety.md: tree-sitter-unavailable paragraph now says every deletion and rename is a proposal, with no pygments-level apply path, and states the any-write-method rule
  • plugins/code-tidying/scripts/change-shape.py: docstring drops the clause saying exit 3 lets a coarser reading layer apply deletions
  • plugins/code-tidying/skills/dissolve-comments/evals/evals.json: eval 9's prompt now says tree-sitter is present for bash, since its expected applied deletion needs a COMMENT-ONLY proof under the stated rule
  • .changes/code-tidying/fix-8848-acr-evals-unproven-edits-8e4b1c27.md: new patch fragment (hand-written because new-changelog-fragment refuses a detached HEAD)

Verification

The runner ran each check from the base copy against 0694b82:

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

The run reports:

  • check-changelog-fragments (run after the edits, after tidy, and after the review fixes): all 27 fragments valid
  • check-affected (run three times, last after the review fixes): 12 passed, 6 skipped, over 9 changed files
  • check-evals-quality plugins/code-tidying/skills/dissolve-comments/evals/evals.json: PASS, 0 warnings
  • fresh-context review subagent over the diff: traced all 13 original samples against the new patterns, all correct; found one bug (the batch-total lookahead rejected '0 Tier 2 findings to review') and three should-fix items (label-first or word-number Tier 2 counts accepted; a skipped-then-flagged bu
  • read https: //github.com/melodic-software/claude-code-plugins/issues /8848: the page does not quote the failing replies' exact wording, only the paraphrases used here
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41194731635

Left out: the items under Not verified.

Related

#8848

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

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the incremental change.

The only file changed since the last reviewed commit (0694b82) is plugins/code-tidying/evals/acr-dir-batch-skips/case.yaml. It is one line, in the batch-total regex grader. The remove-or-delete word stem (?:remov|delet)\w* becomes (?:remov|delete|deleti|deleta)\w*. This is only a test-grader pattern. It does not touch a trust control, a manifest, a token scope, a kill switch, a merge hold, or a standing instruction. The file is not under any listed trusted path. The change has no security-relevant surface, so I applied skip gate 2 and did no deeper review.

The regex is a plain pattern with no nested quantifiers on the new alternation, so there is no ReDoS concern worth reporting. It runs only in eval grading.

critical-findings: 0

Spend: none beyond the normal review run.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/code-tidying/evals/acr-dir-batch-skips/case.yaml: no findings.

The only change is in the batch-total pattern. The alternation (?:remov|delet)\w* became (?:remov|delete|deleti|deleta)\w*. The new form still matches delete, deletes, deleted, deleting, deletion and deletable. It no longer matches a bare delet stem or a misspelling such as deletx. That matches no reply the grader is meant to accept, so grader behavior is effectively unchanged. The likely reason for the edit is to keep a spell checker from flagging delet. The YAML single-quoting is intact, and the rest of the pattern and its flags: mi are untouched.

I did not run the pattern against the grader samples. This lane cannot run Python, so the equivalence above comes from reading the regex.

Everything else in the pull request was reviewed at 0694b82 and is unchanged.

No cost or security hold applies.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 0694b8254aad5111e3281c0c2768d81ecf457043. 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 13c2f6225f12c0cbc477dc4609f3895e9cdf6118.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 362d42c Oct 31, 2026
39 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-8848-41194731635-1 branch October 31, 2026 12:28
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.

test(code-tidying): measure audit-comment-residue --added-since on Windows Git Bash and run the acr evals after #8764

0 participants