Skip to content

refactor(code-tidying): cut ecosystem specifics from remove-comments references - #17990

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17761-44933022468-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17761-44933022468-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17761

Summary

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

Part 5 of 5 of #16756. This part has 6 rows (R11 4, R4 1, R8 1). Every row is cut or replaced at a routing site, and none is GONE.

Row Rule Outcome
F0096 R8 Cut, pending its targeted case: the whole "What was measured, and when" section of tooling.md is gone. So are the two sentences that pointed at it (the pwsh install row's "checked below" and "The numbers are in the table above"). safety.md's "was measured and rejected" now reads "is not used as a backend".
F0097 R11 Cut, no replacement: the CS1572/CS1573, Ruff DOC and eslint-plugin-jsdoc sentence and the Vale paragraph are gone. The contradiction-detection bullet stays as "Nothing packaged exists."
F0100 R4 Replaced: test-net step 1 now finds the test command by the steps in the plugin's new synced copy, plugins/code-tidying/reference/ecosystem-resolution.md. It ships no command, and step 4 (propose, never apply) covers no resolved command. code-tidying joins the ecosystem-resolution carriers through scripts/shared-copies.txt.
F0101 R11 Replaced at a routing site, since the skill still decides which doc comments are public. The per-language list (docstrings, C# XML docs, JSDoc/TSDoc, GoDoc, PowerShell help, the Python underscore and __all__ rules) becomes generic text: the language's structured doc-comment form; public by the language's export keyword, visibility modifier or private-name convention; a listed export is public. A language with none of those three that lists its exports elsewhere keeps every doc comment exempt, which carries over the old PowerShell behavior.
F0104 R11 Cut, no replacement: triage.md's Vale sentence.
F0105 R11 Replaced at a routing site: the Doc comments section names the language's structured doc-comment form and points at safety.md for what counts as public. "docstring" in the private bullet becomes "doc comment".

Script readers: none. Each R11 row's script-reader search:

  • remove-comments/reference/(tooling|safety|triage) over every non-markdown file in the repository (glob !**/*.md) finds only scripts/docs-anchor-baseline.txt:25, scripts/spoke-plugin-root-baseline.txt:27 and docs/architecture/landscape.json:30,42,69 (a generated record of external cites). No script parses these pages for rules.
  • (?i)exempt|doc.?comment|public over plugins/code-tidying/skills/remove-comments/scripts: detect.sh:283 and lib/comment-shapes.sh:150,211,241 exempt license blocks and TODO markers from the audit shapes, and lib/comment-shapes.sh:66 strips /// and //! leaders. None encodes the doc-comment exempt list (F0101, F0105).
  • docstring|JSDoc|TSDoc|GoDoc|XML doc|SYNOPSIS|__all__ over non-markdown files in plugins/code-tidying: scripts/commented-out-code.py:164,179 treats PowerShell help keywords as documentation, so its commented-out-code reparse skips them. That is an executed adapter and does not read the exempt list. git-hooks/comment-lint.py:80 is this…

Not verified

  • tidy: skipped because the change touches scripts/shared-copies.txt, under the listed shared path scripts/
  • docs/architecture/landscape.json:42 still records 4 actions/runner-images cites from tooling.md, all in the deleted table. The file is generated by map-landscape (docs/conventions/docs-naming.yaml), no repository check gates it, and regenerating it would add a second area
  • Review findings left alone because they are outside this part's rows: keep-list.md:6-7 still names docstring, XML doc, JSDoc/TSDoc and GoDoc; triage.md's "Never deleted, in any posture" conflicts with a comment_keep_list under necessary (this predates the change); tooling.md's "The PowerShell…
  • evals.json id 2's prompt still says "no ecosystem default that resolves". Left unchanged so the before-and-after case stays the same
  • check-affected could not run comment-hygiene (network fetch blocked) or size-check (script missing in the lane), and typos is not installed. CI runs them
  • The eval hold, the targeted before-and-after cases (F0096 included) and the eval-pair record are host-session work after the PR opens, per the issue
  • verify: no build or test suite covers these markdown and list-file changes. The CI-only suites (lychee, eval-cases, evals-quality, portability-lint) run on the PR

Fix

  • plugins/code-tidying/skills/remove-comments/reference/tooling.md: removed the "What was measured, and when" section (F0096) and the two sentences that pointed at it; removed the CS1572/CS1573, Ruff DOC, eslint-plugin-jsdoc and Vale text (F0097)
  • plugins/code-tidying/skills/remove-comments/reference/safety.md: test-net step 1 now cites the plugin's ecosystem-resolution copy, with no bundled runner (F0100); the per-language exempt-surface bullet is now generic (F0101); the PowerShell-grammar pointer no longer says "measured"
  • plugins/code-tidying/skills/remove-comments/reference/triage.md: removed the Vale sentence (F0104); the Doc comments section uses generic wording and points at safety.md (F0105)
  • plugins/code-tidying/reference/ecosystem-resolution.md: new, generated by sync-shared-copies from docs/contracts/ecosystem-resolution/generic-resolution.md (version 1.1.0)
  • scripts/shared-copies.txt: registers plugins/code-tidying/reference/ecosystem-resolution.md as a copy of generic-resolution.md, so code-tidying joins the carriers
  • .changes/code-tidying/work-resolve-issue-issue-17761-44933022468-1-8a0061a6.md: patch changelog fragment for the test-net and reference changes

Verification

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

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

The run reports:

  • check-changelog-fragments: all 13 fragments valid (run before and after the review fixes)
  • check-changed-skills: remove-comments PASS, 0 errors, 3 warnings about SKILL.md size and description length that this change does not touch
  • check-affected: 14 passed, 9 skipped over 6 changed files, validate-plugins included (docs-anchor and spoke-plugin-root baselines)
  • sync-shared-copies: generated plugins/code-tidying/reference/ecosystem-resolution.md, exit 0
  • script-reader Grep searches quoted in the summary: no script reads tooling.md, safety.md or triage.md, or encodes the doc-comment exempt list
  • fresh-context review subagent over the whole diff: links resolve and nothing dangles; 1 medium finding (the generic exempt clause dropped the PowerShell case) and 2 low findings in changed lines (proof wording, the "measured" pointer) were fixed; 3 low findings outside the rows are listed in…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44933022468

Left out: the items under Not verified.

Related

#17761

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17761 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17990 (head b2353c4)

I found no security issues.

This PR changes only markdown and a list file in the code-tidying plugin: three remove-comments reference pages, a newly generated shared copy of the ecosystem-resolution steps, one new row in scripts/shared-copies.txt, and a changelog fragment. It changes no code, workflow, action, manifest or trust control, and none of the six changed files matches a TRUSTED PATHS: glob.

Instruction-surface lens. The diff narrows or rewords standing skill instructions, so I checked them against the instruction exception register (docs/contracts/instruction-exception-register/README.md, the Gate 0 classes: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority):

  • Test net, step 1 (safety.md). The old fallback to commands shipped with the skill (dotnet test, npm test, pytest, go test ./..., bats) is gone. Step 1 now uses the plugin's copy of the ecosystem-resolution steps. That copy is stricter than the old text:

    • An unattended run executes only a command that is recorded, stated or implied by the repository.
    • It installs nothing and copies no command text out of CI workflow files.
    • It never falls back to a choice shipped with the skill.
    • When no command resolves, the existing step 4 applies: the refactoring is proposed, never applied.

    No new command reaches execution. I checked the generated copy's key lines against the canonical docs/contracts/ecosystem-resolution/generic-resolution.md ("Never fall back to a choice shipped with the skill" and "Unattended limits"); both are present there.

  • Doc-comment exemption (safety.md, triage.md). The per-language list became generic wording, and every case it covered still has an equivalent:

    • The Python underscore and __all__ rules become the language's private-name convention plus "a name the module lists as exported".
    • PowerShell's "exempt whether exported or not" becomes the clause for a language that lists its exports elsewhere.
    • The rule that shell and make have no exempt surface is kept.

    This shortens the rule without changing what it forbids, and it touches none of the protected classes.

  • Removed text (tooling.md, triage.md). The measurement table, the Vale "optional lane" sentences and the CS1572/CS1573, Ruff DOC and eslint-plugin-jsdoc pointers were reference material, not guardrails.

Embedded text in the PR context. The description holds no instruction aimed at the review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings. I read every hunk in all 6 changed files.

The PR makes the six row changes that #17761 asks for:

  • F0096: the "What was measured, and when" table and the two sentences that pointed at it are gone. safety.md now says the PowerShell grammar "is not used as a backend".
  • F0097 and F0104: the CS1572/CS1573, Ruff DOC, eslint-plugin-jsdoc and Vale text is removed from tooling.md and triage.md.
  • F0100: the bundled fallback test runners are gone. Test-net step 1 in safety.md now routes to the plugin's new synced reference/ecosystem-resolution.md, and step 4 (propose, never apply) covers the case where no command resolves. That makes the apply path stricter, not looser.
  • F0101 and F0105: the per-language exempt list is now generic routing text. It still covers the old PowerShell behavior: a language that marks visibility with no keyword, modifier or naming convention and lists its exports elsewhere keeps every doc comment exempt.

Checks I made myself (read-only; I had no shell):

  • plugins/code-tidying/reference/ecosystem-resolution.md matches its canonical source docs/contracts/ecosystem-resolution/generic-resolution.md (version 1.1.0) except for the generated header. The new scripts/shared-copies.txt row registers it.
  • The relative link ../../../reference/ecosystem-resolution.md from skills/remove-comments/reference/safety.md resolves to plugins/code-tidying/reference/ecosystem-resolution.md.
  • The issue's "Done when" item on baselines holds:
    • scripts/docs-anchor-baseline.txt:25 (tooling.md, 1): after the cut, tooling.md has one line with a docs link that has no section anchor (https://docs.astral.sh/ruff/). The removed docs.vale.sh link was a second one, so the count now equals the baseline and the row is neither stale nor exceeded.
    • scripts/spoke-plugin-root-baseline.txt:27 (safety.md, 1): safety.md still holds one CLAUDE_PLUGIN_ROOT occurrence.
  • Path-scoped rules that match these files: .claude/rules/skill-bodies-state-current-rules.md and .claude/rules/cost-claims.md. The change removes measured upstream values from skill bodies, which the first rule asks for. No cost claim changed.
  • The other "Done when" items, about what the PR body states (row count, outcomes, script-reader searches, eval case, whole-page or partial cut), are met in the PR description as far as I can read it. The eval hold and the before-and-after cases are host-session work after merge and are out of this lane's scope.

The checks the PR lists under Verification (check-changelog-fragments, check-changed-skills, check-affected) were run by the author and I did not re-run them.

Not checked or not applicable:

  • No .claude-plugin/plugin.json or marketplace.json changed, so there are no manifest lines.
  • No paved-path entry was relevant.
  • I found no embedded instructions in the PR context.

Loosened checks would be marked: fail (default; the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. There was no loosened_check_decision_record: line, so I did not check the citation requirement. No loosening found.

Verifier dropped 0 of 0 candidates.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head b2353c4305f7b96a92ede9cd19ef2bedc47ee319, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=b2353c4305f7b96a92ede9cd19ef2bedc47ee319 rubric=10.4.5 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 02059ec Nov 21, 2026
122 of 126 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17761-44933022468-1 branch November 21, 2026 20:25
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.

Cut the model-read ecosystem specifics from code-tidying: remove-comments references

1 participant