Skip to content

feat(code-tidying): write remove-comments reshape and root-cause rows to the review findings file - #15921

Merged
kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-15841-43394455626-1
Nov 13, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-15841-43394455626-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #15841

Summary

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

/code-tidying:remove-comments now writes its reshape flags, open root-cause work and lint-rule proposals as rows of one findings file in every remove mode (safe and report included). Each row leads with a rule id and names the file, line, symbol and the proposed fix or move. The skill still makes no behavior-changing edit. Choice of means and its basis: /review:fanout fix scans only <memory_dir>/reviews/<branch-slug>/ (plugins/review/reference/change-set.md "Findings location"; fix-pass-mode.md Step 1), so the file moves there from the old comment-pass/ directory, which no consumer scanned. Every non-fanout producer writing there owes the detector-findings contract (docs/contracts/detector-findings/README.md), so the change also adds three crosswalk rows: open-root-cause at IMPORTANT, reshape-flag and lint-proposal at SUGGESTION. All three are declared off-site, so the fix action surfaces the rows and never auto-applies them. That matches the owner's decision that a behavior fix needs a test net and an outcome check. The change also adds an Adopters row (contract 3.9.0). Open root-cause work now also lists a workaround comment the run keeps, so an unresolved keep-or-delete call can never withhold the row. Dogfooding step for this repository (AGENTS.md "Driving this repository's skills"): /app-control:drive claude-code-plugins code-tidying/remove-comments on a file with a workaround comment, then /review:fanout fix on the same branch. For an interactive run, use the docs/migration-playbook.md "Local development loop": claude --plugin-dir ./plugins/code-tidying, then /reload-plugins. The PR needs the do-not-merge label until the two-version eval record lands.

Not verified

  • Two-version eval compare (opus and sonnet aliases, three runs per side, --case filter, --max-cost-usd ceiling) for new case 35 and non-inferiority of the existing cases: the issue requires it in the one local eval-runner session, which this lane cannot run. Cases 19, 20 and 21 and the plugin-level…
  • The PR must carry the do-not-merge label until the eval record lands (issue done-when); this lane cannot apply labels, so the PR opener or a person must add it
  • Tidy skipped: the change spans two areas (plugins/code-tidying with .changes/code-tidying, and docs/contracts), over the tidy cutoff of 1 area
  • ai-slop:audit's detect.sh and docs-hygiene:audit-noise's scanner could not run in this lane (only the named wrappers may run); prep's inline fallback read the changed markdown instead, so no findings file was written
  • detector-findings-crosswalk, evals-schema, eval-cases, purged-em-dashes and the other CI-only scanners are left to the PR's CI
  • No live run of the skill followed by /review:fanout fix (the demo): the lane loads neither the code-tidying nor the review plugin. Consumption is argued from fix-pass-mode.md Step 1's admission test (type, exact branch, .md in the reviews directory, parseable ## Findings table)
  • Follow-up for a later change: plugins/corrections/skills/codify/reference/finding-classes.md has no rows for the three new rule ids, and its recheck trigger fires on this change. Codify falls through to its judgment step for them, and the table already lacked the code-metrics ids
  • Already stale before this change in detector-findings/README.md: the harness-config adopter row still says it is 'the only row meeting the new bar', and the docs-hygiene row says 'of the four'; neither was edited
  • The residue audit action is unchanged: it is read-only and has no step-7 lists, so 'every mode' was read as every remove mode (default postures, safe, report)

Fix

  • plugins/code-tidying/skills/remove-comments/actions/remove.md: new "Findings file" section that every mode writes (location under reviews/, shape, the rule-id/Tier/Action table, ## Surfaces declined counts, refused-write and report-naming rules); step 7 writes the file, and its open root-cause…
  • plugins/code-tidying/skills/remove-comments/SKILL.md: the orchestrator writes the findings file from comment-reviewer's rows, dropping reshape flags whose move it applied and adding flags for moves whose gate failed; ## Next names /review:fanout fix and the follow-on skills (four bullets)
  • plugins/code-tidying/skills/remove-comments/evals/evals.json: new case 35 (a workaround comment plus a cross-file unit annotation under necessary, producing open-root-cause and reshape-flag rows in the directory and frontmatter /review:fanout fix admits, with no fix claimed); case 21 points at…
  • plugins/code-tidying/evals/remove-report-mode-no-edits/case.yaml: the LLM grader no longer counts a findings file under the memory root as an edit
  • docs/contracts/detector-findings/README.md: three crosswalk rows for code-tidying/remove-comments/rule-open-root-cause, rule-reshape-flag and rule-lint-proposal, each with its tier argument and an off-site Auto-applicable cell; a code-tidying:remove-comments Adopters row with its remedy-pinning…
  • docs/contracts/detector-findings/CHANGELOG.md: 3.9.0 minor entry
  • .changes/code-tidying/work-resolve-issue-issue-15841-43394455626-1-8f9f5b4d.md: minor changelog fragment for code-tidying

Verification

The runner ran each check from the base copy against 40c7db4:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 3 fragments valid
  • check-changed-skills: remove-comments PASS, 0 errors; the description-length and body-length warnings were already over before this change, and the body grew 246 to 248 lines. A ## Next 5-bullet warning from the first pass was fixed
  • check-affected: 12 passed, 7 skipped, over 7 changed files
  • check-evals-quality on remove-comments/evals/evals.json: PASS; its 2 warnings are on cases 26 and 30, which this change did not touch
  • detector-findings crosswalk well-formedness, checked by regex because the gate is CI-only: each of the 3 new rows splits into 7 fields with no unescaped pipe, ids are qualified and unique, and the adopter row has 3 cells
  • Fresh-context review subagent over the whole diff: no blocking findings. Its should-fix findings were fixed: root-cause tier argument (third CRITICAL limb, read/never-read contradiction, fail-safe direction), reshape argument versus root-cause, the lint row's false cross-reference, the reshape…
  • Markdown prose (inline fallback for ai-slop:audit): no em dash, catalog AI vocabulary or filler phrase in the added prose of the changed .md files
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43394455626

Left out: the items under Not verified.

Related

#15841

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

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9dd0a2d100725998feb371c6b705814dcce3ffd1: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15921, head 9dd0a2d (incremental since 7ca42e5)

No security issues found.

critical-findings: 0

This review covers only the change pushed since 7ca42e5. That change is one file, plugins/code-tidying/skills/remove-comments/evals/evals.json, and I read all of it in .claude-lane/incremental.diff. This lane already reviewed an earlier head, so the review was blocking only. There were no blocking findings.

What changed

  • One eval expectation string in case 35 was reworded. It used to say "code-tidying:remove-comments as the surface". It now says "the skill code-tidying:remove-comments in its Surface(s) cell".
  • This changes only what the LLM grader is told to look for in the findings file the skill writes. The commit names it as a CI fix.

Why it has no security surface

  • The file does not match any trusted-path glob.
  • The change does not touch:
    • a trust control, merge hold or token scope;
    • a plugin manifest;
    • a standing instruction file. No rule is deleted, narrowed or softened, so the instruction-surface lens finds nothing.
  • No code, command or workflow reads the string as anything but grader text.

Prior findings

The earlier review posted one summary comment with no findings, so there is nothing to restate.

Embedded text in the PR context

The PR description still says the PR needs the do-not-merge label until the eval record lands. That is a process note for a person, not an instruction to this lane, and it does not change this review.

Spend

The change spends nothing beyond the existing eval grading.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on f7bf1889e937ab8052dfc75e9363c01456524a31; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 9dd0a2d100725998feb371c6b705814dcce3ffd1: read 1 of 1 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #15921, incremental (7ca42e5 → 9dd0a2d)

This lane already reviewed an earlier head, so this review covers blocking issues only. I read the whole incremental diff. It touches one file: plugins/code-tidying/skills/remove-comments/evals/evals.json.

What changed. One expectation in the lint-proposal eval case was reworded (L251). It used to say "code-tidying:remove-comments as the surface". It now says "the skill code-tidying:remove-comments in its Surface(s) cell". The new text uses the column name the PR's remove.md Findings file section gives (Surface(s) \code-tidying:remove-comments``). It also matches the wording of the new case 35 expectation. The change makes the expectation more precise and adds no new problem.

Findings

  1. Blocking: a closing-issue criterion is still not met. I am repeating this because it has no line anchor. The Write remove-comments' root-cause and reshape findings to a findings file the fix skills can read #15841 "Done when" list says: "the skill's existing cases are non-inferior on a two-version compare (opus and sonnet aliases, three runs per side, --case filter, a --max-cost-usd ceiling, no new batch after a usage-limit error), run in the one local eval-runner session; the pull request carries do-not-merge until the record lands." The PR body still lists that compare under "Not verified". It also says the work-resolve-issue lane could not apply do-not-merge. This lane can't see labels. A person needs to decide here: check that do-not-merge is on the PR, then run the two-version compare in the local eval-runner session before merging.

Other notes

  • The incremental change doesn't touch any .claude-plugin/plugin.json or marketplace.json, so there are no manifest lines.
  • The settled thread on docs/contracts/detector-findings/README.md L733 is still settled. Its lines are unchanged since it was resolved, and this push doesn't touch that file.
  • Advisory findings were dropped because this review covers blocking issues only.
  • Spend: nothing beyond review runs (prepaid usage).
  • The PR context, settled-threads and prior-findings files contain no instructions aimed at this lane.

Verifier dropped 0 of 1 candidates. I dispatched no verifier subagent; I checked the one candidate against the PR context file myself.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 9dd0a2d100725998feb371c6b705814dcce3ffd1. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: no-lane-job;
  evidence-unbound:claude-security-review: not bound: no-lane-job)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63B0xp
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 7ca42e5.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 689ab1d Nov 13, 2026
46 of 47 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-15841-43394455626-1 branch November 13, 2026 11:29
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.

Write remove-comments' root-cause and reshape findings to a findings file the fix skills can read

1 participant