Skip to content

docs(code-metrics): cut restated upstream tool figures from skill prose - #16983

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16853-44195790976-1
Nov 18, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16853

Summary

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

Works the five code-metrics rows of #15527 (part 1 of 7). code-metrics-3: audit-duplication drops the per-tool exit clause (jscpd's exit behavior had no record); the rule that a detector's non-zero exit is not a failure when it produced a report stays. code-metrics-4: the gotcha drops 'the defaults are the detector's own conservative pair'; the rule that lowering min_tokens finds more, mostly boilerplate, clones stays. code-metrics-9: the SonarSource S3776 figure 15 is cut from measures.md, and from the same claim in literature.md and thresholds.md, keeping 'a product decision by the same vendor, not a claim the paper makes'. code-metrics-10: thresholds.md names the vendor threshold pages only (the ESLint, ReSharper, CA1502, NDepend and NASA SWEHB figures and their 2026-09-11 read date are gone) and keeps the rule to read a vendor's page live before citing its default as current. Skipped: code-metrics-14 (literature.md ISO/IEC 25023 'Recency' bullet). Its proposed change adds an as-of date and recheck trigger, a restamp that needs the ISO catalogue status re-read, and iso.org returned HTTP 403 to this lane's fetch, so the revision status could not be re-derived; the issue's rules say to skip such a row with its reason. No pointer gained an as-of date or recheck trigger.

Not verified

  • code-metrics-14 skipped: its proposed restamp of the ISO/IEC 25023 revision status needs a re-read of the ISO catalogue page, which returned HTTP 403 here
  • Tidy pass 5 (ai-slop fix): detect.sh is not a lane-allowed command, so the deterministic detector did not run; the rubric was read inline over the listed lines with no findings, and no semantic-diff subagent ran because nothing was rewritten. Tidy passes 1-3 had nothing to do (markdown-only…
  • check-affected items marked CI only (lychee, markdown/schema lints, whole-repo scanners) and the skipped typos/validate-plugins checks are left to the PR's CI
  • Pre-existing, out of scope: audit-duplication SKILL.md says collectors.md records each tool's own defaults, but no collectors.md row records jscpd's min-tokens/min-lines defaults
  • Untracked dotfiles at the repo root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are sandbox artifacts, not part of this change; left untouched

Fix

  • plugins/code-metrics/skills/audit-duplication/SKILL.md: dropped the jscpd/PMD CPD exit clause from the exit-code bullet and the 'detector's own conservative pair' clause from the min_tokens gotcha
  • plugins/code-metrics/skills/principles/reference/measures.md: cut the S3776 default figure; kept the vendor-decision statement
  • plugins/code-metrics/skills/principles/reference/literature.md: cut the S3776 default figure from 'Does not claim'; kept the misattribution reason
  • plugins/code-metrics/skills/principles/reference/thresholds.md: vendor threshold pages named without their figures; S3776 figure cut; dated 'as read on 2026-09-11' sentence replaced by the read-live-before-citing rule
  • .changes/code-metrics/work-resolve-issue-issue-16853-44195790976-1-5c47a8a5.md: patch changelog fragment for code-metrics

Verification

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

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

The run reports:

  • check-changelog-fragments: all 2 fragments valid
  • check-changed-skills: audit-duplication and principles PASS, 0 errors (pre-existing warnings: description length 434 > 419, body lines over 160; body did not grow vs base)
  • check-affected: 15 passed, 7 skipped, over 5 changed files
  • grep of the repo for the removed phrases ('conservative pair', 'ESLint (20)', 'default of 15', 'as read on 2026-09-11'): no remaining code-metrics hits
  • fresh-context review subagent over the whole diff: no blocking findings; two wording nits applied (exit-code bullet now ends at 'report'; thresholds.md 'citing a vendor's default as current')
  • read https: //www .iso.org/standard/35747.html: HTTP 403, not read, so code-metrics-14 was skipped
  • web search 'ISO/IEC 25023:2016 replaced by ISO/IEC 25000-23 status': results only, not used as a source for any edit
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44195790976

Left out: the items under Not verified.

Related

#16853

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 98a37c98ac561e50870f901ac7deb13fc5772527: no file of this pull request changed since the review of fee30ee.

Security review: no security issues found

I read the whole diff for all 5 changed files. The changes are prose only and touch no code. No changed file matches a trusted path.

  • A new changelog fragment, .changes/code-metrics/…-5c47a8a5.md, with a patch bump.
  • plugins/code-metrics/skills/audit-duplication/SKILL.md:
    • The exit-code bullet no longer names jscpd and PMD CPD.
    • The min_tokens gotcha no longer has the clause "the defaults are the detector's own conservative pair".
  • principles/reference/literature.md, measures.md and thresholds.md: the SonarSource S3776 figure (15) and the vendor cyclomatic figures, with their read date, are removed. The rule to read a vendor's page live before citing its default stays.

Instruction-surface lens. The SKILL.md edit narrows a skill body, so I checked it before applying the skip. Both removed clauses are factual notes about upstream tools, not rules.

  • The exit-code rule is unchanged: a detector's non-zero exit is not a failure when it produced a report.
  • The min_tokens gotcha still warns that lowering the value finds more clones, most of them boilerplate.
  • No removed text guarded a destructive action, a credential, a publish step, an external write or a trust decision.

The register at docs/contracts/instruction-exception-register/README.md was not consulted. I judged by consequence: nothing breaks when the clauses are gone.

Other checks.

  • No plugin manifest, workflow, script, hook, token, trusted-actor list or merge-hold surface is touched.
  • The PR context file has no embedded instructions aimed at this lane.
  • Prior findings: none, and this is not a blocking-only review.
  • No spend on prepaid API credits or subscription usage, and no billing.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #16983, docs(code-metrics): cut restated upstream tool figures

No findings. I read every hunk of all 5 changed files. This PR changes Markdown prose and adds a changelog fragment. It does not touch code, tests, manifests or any trusted path.

Closing issue #16853 checks

  • Code-metrics rows -3, -4, -9 and -10 are cut, and every rule they supported still stands.
    • The exit-code bullet keeps "a detector's own non-zero exit is not a failure when it produced a report".
    • The min_tokens gotcha keeps the rule that a lower value finds more clones, mostly boilerplate.
    • All three files keep the point that the S3776 default is "a product decision by the same vendor, not a claim the paper makes".
    • The thresholds.md row keeps "No source attributes 22 to anyone". The new sentence keeps the rule to read a vendor's page live before citing its default as current.
  • Row code-metrics-14 is skipped, and the PR body gives the reason: iso.org returned HTTP 403, so the ISO revision status could not be re-read. The issue allows a skip with a stated reason, so this counts as met.
  • "No pointer gains an as-of date or recheck trigger" is met. The diff adds no dates or triggers. It removes one dated sentence, "as read on 2026-09-11".
  • Leftover references: a search across plugins/code-metrics (CHANGELOG excluded) finds no other text that depends on the removed figures. That covers the phrases "conservative pair", "default of 15" and the S3776 figure, and no eval asserts them. The only remaining S3776 mentions are the three rewritten lines.
  • Tests: no test could check these criteria, because they concern prose content rather than behavior.

Changelog fragment: bump: patch is the right level for a docs-only change. The PR changes no plugin manifest, so no manifest lines apply.

Loosened-check verdict: fail (the default). The prompt had no loosened_check_verdict: or loosened_check_patterns: lines, so no consumer entries apply. The diff loosens no check, test, lint or threshold.

Author's verification: the PR body's verification results (check-changelog-fragments, check-changed-skills, check-affected) are the author's claims and I did not check them. I had no shell in this run.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 98a37c98ac561e50870f901ac7deb13fc5772527, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 98a37c9

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16983-98a37c98ac561e50870f901ac7deb13fc5772527, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=98a37c98ac561e50870f901ac7deb13fc5772527 rubric=10.2.1 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 18, 2026
Merged via the queue into main with commit 682031b Nov 18, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16853-44195790976-1 branch November 18, 2026 02:59
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 682031b82e15ce43614b288d18fb71f2f14282f1; later checks count it verified from this comment.

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.

skills: cut restated upstream text to pointers (held form-only rows, group 3: seven plugins) - part 1 of 7

1 participant