Skip to content

fix(docs-hygiene): probe markdownlint-cli2 with --help, not --version - #13206

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13201-41824425057-1
Nov 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-13201-41824425057-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13201

Summary

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

The docs-hygiene setup check probed markdownlint-cli2 with --version. markdownlint-cli2 has no such flag and treats the argument as a glob, so a read-only check loaded the repository's markdownlint config and any code it names, and linted the config's globs (rewriting those files when the config sets fix). The probe now runs --help, which returns before any config is read. It passes when the first line of stdout is the version banner markdownlint-cli2 v<version> (markdownlint v<version>), whatever the exit code, since --help exits 2. SKILL.md, the README row, the evals and a patch changelog fragment are updated to match. Means choice: banner on stdout rather than exit code, because the v0.24.0 source returns 2 from showHelp on a working install and logs errors to stderr.

Not verified

  • Done-when item 3 (eval evidence that the skill-text rewrite lost nothing) is a person check per person_checks; no eval run was made here
  • The setup SKILL.md body went from 165 to 170 lines, and check-changed-skills warns that it is above the 160-line measured max (warning only)
  • Tidy: ran on every changed line within budget. The ai-slop pass was rubric-only, because detect.sh is not among the wrappers this lane may run; the changed lines had no rubric findings. Simplify, comment and residue passes had nothing to change in evals.json, and write-for-agents/write-for-humans…
  • Review findings not acted on, all low: (a) the --help claims hold from markdownlint-cli2 v0.12.0 on, where --help became a flag; the PASS rule still works on older versions; (b) eval 3 has no narration state that gives the shim's actual stderr; (c) the README row's 'writes nothing' already ignores…
  • verify: no build or test suite covers this skill's markdown and eval JSON; the suites are left to the PR's CI (evals-schema, lychee-offline, purged-em-dashes and others listed CI-only by check-affected)
  • The working tree shows untracked dotfiles at the repo root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) that this run did not create; they are not part of this change

Fix

  • plugins/docs-hygiene/skills/setup/SKILL.md: check step 2 runs --help, forbids --version and says why, and sets PASS as the banner on the first line of stdout (exit 2 expected), FAIL as no banner with the stderr text in the remediation line; the 'does NOT do' bullet names the --help liveness probe
  • plugins/docs-hygiene/README.md: the /docs-hygiene:setup row says it runs --help and checks for the version banner
  • plugins/docs-hygiene/skills/setup/evals/evals.json: evals 1, 3 and 4 name --help; eval 1 adds expectations that --version is never run and that PASS comes from the banner, not the exit code; eval 3's FAIL is the missing banner under --help; the prompts of evals 4 and 7 state that the --help output…
  • .changes/docs-hygiene/work-resolve-issue-issue-13201-41824425057-1-1470dd98.md: new patch fragment under ### Fixed

Verification

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

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

The run reports:

  • read https: //raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.24.0/markdownlint-cli2.mjs: no --version flag, so unrecognized args are kept as globs; --help sets shouldShowHelp, and main returns showHelp(logMessage, true) before readOptionsOrConfig, config import and custom-rule loading;…
  • read https: //raw.githubusercontent.com/DavidAnson/markdownlint-cli2/v0.24.0/constants.mjs: packageName markdownlint-cli2, libraryName markdownlint, which fixes the banner text markdownlint-cli2 v<version> (markdownlint v<version>)
  • read node_modules/markdownlint-cli2/markdownlint-cli2.mjs:416-429 in the checkout: the config's options are merged over the fix default and its globs are appended to the glob list, which backs the stated harm of the old probe
  • Grep for --version in plugins/docs-hygiene: the only hits left are the SKILL.md sentence that forbids it and the eval expectation 'Never runs markdownlint-cli2 with --version'
  • check-changelog-fragments: all 1 fragment valid
  • check-changed-skills: setup PASS, 0 errors, 3 warnings (description 595 chars above the 419 warn line, which predates this change; body 170 lines, above 160 and up from 165)
  • check-affected: 12 passed, 7 skipped, 0 failed
  • check-evals-quality plugins/docs-hygiene/skills/setup/evals/evals.json: PASS, 0 warnings
  • fresh-context review subagent over the whole diff: no high findings; the medium one (the old probe's harm was understated) and two low ones (say 'first line of stdout'; the eval 4/7 prompts) were fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41824425057

Left out: the items under Not verified.

Related

#13201

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

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13206 (incremental, a39cb1a..17ef4b5)

I found no security issues in this push. This review was blocking only, because the lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings.

What changed. One file changed: plugins/docs-hygiene/skills/setup/SKILL.md, check step 2. The probe still runs the resolved markdownlint-cli2 with --help. The rule is now stricter: never pass --version or any argument but --help, and the stated reason is that the probe must read no markdownlint configuration and touch no file. PASS is still judged by the version banner on the first line of stdout, never by the exit code. A shim that resolves but prints no banner is still FAIL, with the stderr text in the remediation line. The step also gains a Pointer / As of / Recheck trigger block. It names the upstream README section and the argument-parsing source pinned to the v0.24.0 tag, and it says to fetch them live only when the probe's argument handling, help output or exit code is in question.

What I checked:

  • Instruction-surface lens: the push removes no guardrail and softens none. The old ban covered only --version; the new one bans every argument but --help. The FAIL rule for a broken shim is unchanged. Nothing was removed, so I did not need the instruction exception register.
  • The new fetch pointer: it points at the tool's own upstream repository. The source link is pinned to a release tag. Fetching is read-only and happens only when the probe's behaviour is in doubt. It sends nothing from the repository or session off the machine and widens no execution surface.
  • Not touched: no plugin manifest, workflow, trust control or merge hold.
  • PR context: I found no embedded instructions aimed at this lane.

The earlier summary comment on a39cb1a reported no findings, so nothing carries over.

No cost or credit spend.

critical-findings: 0

@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: 2 inline finding(s) on a39cb1ad3cd707213cbede6756d9d50301cc53ba; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): a39cb1ad → 17ef4b53

Scope: I read the one file this push changed, plugins/docs-hygiene/skills/setup/SKILL.md (1 of 1, every hunk). It is not on a trusted path, and no plugin manifest changed. This lane already reviewed an earlier head (blocking only: yes), so this review reports only blocking findings.

Prior findings

  • Missing source record for volatile upstream specifics (discussion_r4467253310's sibling, fix(docs-hygiene): probe markdownlint-cli2 with --help, not --version #13206 (comment)): fixed. Step 2 now states our decision in our own words: probe with --help only, judge by the stdout banner, never by the exit code. It no longer restates the exact banner or the exit-2 behavior. Step 2 also adds a links-only record that has all the parts .claude/rules/skill-bodies-state-current-rules.md asks for: a pointer to the README's Command Line section and to markdownlint-cli2.mjs at v0.24.0, the v0.12.0 version floor, an as-of date (2026-11-04) and a recheck trigger. The earlier advisory about the version floor is covered by the same record.
  • Eval-evidence criterion (fix(docs-hygiene): probe markdownlint-cli2 with --help, not --version #13206 (comment)): still unmet. I reposted it inline on step 2, because the skill text was rewritten again and still has no eval run.

Consistency: I checked the looser PASS wording ("the tool's version banner, naming markdownlint-cli2 and its version") against evals/evals.json evals 1, 3, 4 and 7. They talk about "the version banner" in general and do not quote the exact text, so they still agree with the skill. I did not run the skill or its evals.

Closing issue #13201

  • "No file in plugins/docs-hygiene runs markdownlint-cli2 --version": still met. The only mention of --version is the sentence that forbids it.
  • "Any eval expectation on the probe names --help": still met.
  • "A cut or rewrite of the skill text carries eval evidence of no loss": not met (inline comment).

Embedded text: none in the PR context or prior-findings data tries to direct this lane.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 17ef4b5.

@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 17ef4b53d173af590e52be0b657ada2dd4a6da93; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=13206 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 17ef4b5.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 4, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Hold: #13201's done-when asks for eval evidence of no loss. Running the setup eval cases needs Bash, which needs the user-scope ~/.docker link swap (docker-links.py), and that is the owner's call. Releases when: the owner picks an evidence route (swap and run evals 1, 3, 4, 7 at head and base; head only; or drop the eval item), and that route's evidence or the issue edit lands.

@kyle-sexton

Copy link
Copy Markdown
Member

Eval evidence of no loss for the setup skill rewrite (#13201 done-when)

Verdict: no loss. The head is non-inferior to the base at a 0.10 margin on the three setup cases that could run. Case 1 is excluded; the reason is below.

How it ran

  • claude plugin eval 2.1.318. Model under test: claude-opus-5-5. Judge: opus, 3 votes per grader.
  • 3 runs per case, with-arm only (--ablation none): this compares base against head, not plugin against no plugin.
  • Base is the merge-base with main (9542682059). Head is 17ef4b53d1. Each version was run on its own converted evals.json suite.
  • The converted setup cases do not list Bash in allowed_tools. For these runs only, Bash was added to both copies the same way and granted with --allow-tools Bash. Nothing was committed.
  • The llm judge graders are uncalibrated: the converter's samples are unconfirmed expected_output text. Read the scores as a comparison between the two versions under the same judge, not as absolute quality.

Results (mean with-arm score over 3 runs)

Case Base Head Change
3 setup-broken-shim-is-a-fail 0.89 0.89 0.00
4 setup-check-reports-effective-compress-articles 0.67 0.67 0.00
7 setup-check-invalid-repo-value-resolves-to-default-not-userconfig 0.58 0.75 +0.17

Some graders have the same wording in both versions: case 3 graders 2 and 3, and all graders in cases 4 and 7. Runs passing each one, base then head:

  • Case 3: error text in the remediation line 2/3 and 2/3; no success claimed from resolution alone 3/3 and 3/3.
  • Case 4:
    • absent repository file reported as INFO: 3/3 and 3/3;
    • cut named as coming from userConfig: 0/3 and 1/3;
    • writes no file: 3/3 and 2/3. All three head votes on this grader were split. The head runs send the probe's stderr to a file under $TMPDIR so they can quote it, which some judge votes counted as a write.
  • Case 7:
    • WARN naming the file, key and value: 0/3 and 0/3. This is a floor in both versions: the narrated file does not exist in the eval workspace.
    • effective value keep: 1/3 and 3/3;
    • cut not used: 3/3 and 3/3;
    • writes nothing: 3/3 and 3/3.

Validity and delta

  • Validity gate (run-validity.py --runs 3): VALID for both versions.
    • Warnings: the skill-fired check is not checked (every case is invoked by slash command), and some judge votes were split (1 in base, 3 in head, all named above).
  • Noise report, head against base, paired over the 3 cases: change in with-arm score +0.06, 95% interval -0.05 to +0.16.
    • compare verdict: non-inferior at margin 0.10.
    • The interval includes 0, so this shows no loss. It does not show a gain.
  • Cost: about 21.5 USD for the two runs (list-price estimate).

Excluded

Case 1, setup-resolves-and-runs-the-binary. The setup skill sets disable-model-invocation: true, and this case's prompt does not start with the slash command ("Set up docs-hygiene for this repo. /docs-hygiene:setup"). The skill therefore cannot load in either version. A single trial run confirmed it: no Skill call, and the agent reported the setup skill as unavailable. The case measures nothing for this change until its prompt starts with /docs-hygiene:setup.

🤖 Generated with Claude Code

@kyle-sexton kyle-sexton removed do-not-merge Hard merge gate: do not merge while applied. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. labels Nov 4, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Direct check of the probe change, which the eval could not exercise (case 1 excluded; markdownlint-cli2 does not start in the eval sandbox). markdownlint-cli2 v0.24.0 from npm:

The eval comment above covers no loss in the rest of the rewritten step; this covers the flag itself.

Merged via the queue into main with commit 7c584ae Nov 4, 2026
144 of 146 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-13201-41824425057-1 branch November 4, 2026 15:34
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(docs-hygiene): stop the setup probe running markdownlint-cli2 --version

1 participant