Skip to content

fix(docs-naming): print audit site counts from the sweep and quote them - #18834

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-18810-45437535327-1
Nov 24, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #18810

Summary

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

emit-findings.sh now prints, after its 'wrote' line, one 'finding' line per record (site count, file count, tier breakdown, review count, generated files) and a 'total' line (the sweep's SITES count, sites by action, report-site total), all counted from the sweep's REF rows in the same loop that writes the plan, so the per-finding counts add up to SITES. audit-file-names SKILL.md tells the run to quote those lines as printed instead of tallying its own counts, and to state the emitter's figure when its own disagrees. The plan file format is unchanged, so realign-file-names reads it as before, and the eval case is untouched. Design choice: the summary goes to stdout rather than into the plan, because the plan's References/By tier lines must keep their format for the realign skill.

Remaining work

  • Confirm audit-plans-renames-tiers-frozen passes at runs 3, every grader at 1.00 (rows-and-tiers and report-count-stated included), in a scoped suite run on main after this merges.

Not verified

  • emit-findings.test.sh, sweep.test.sh and inventory.test.sh were not executed in this run: the lane's Bash runs only the named wrappers, and check-affected's output does not name the suites it ran. Left to the PR's CI.
  • The scoped eval suite run of plugins/docs-naming/evals/audit-plans-renames-tiers-frozen at runs 3 on main needs this change merged and a model-backed suite run; not runnable in this lane.
  • check-affected skipped comment-hygiene (could not fetch its action from ci-workflows: network denied), size-check (audit-size.sh missing from the lane checks), typos (not installed), reference-verify and lint-full (absent here), and the validate-plugins steps that run checked-tree code. Left to the…
  • tidy's ai-slop pass ran the rubric only: the lane's Bash cannot run the plugin's detect.sh, so the deterministic detector did not run on the changed markdown.
  • The review's one watch item, not a bug: the eval's form-table-first regex fails if a reply prints an FN- id before 'links-and-paths'. SKILL.md still puts the form table first, so the reply only trips it if it pastes the finding lines above the table.

Fix

  • plugins/docs-naming/skills/audit-file-names/scripts/emit-findings.sh: builds a per-finding summary line in the existing ranking loop and prints it plus a total line (SITES, sites by action, report sites) after the 'wrote' line; the plan body is unchanged.
  • plugins/docs-naming/skills/audit-file-names/scripts/emit-findings.test.sh: asserts one summary line per finding, that the per-finding site counts sum to the sweep's SITES, that the total line carries SITES, that the report-site total equals the report REF rows (and that the fixture has some), that…
  • plugins/docs-naming/skills/audit-file-names/SKILL.md: step 3 describes the emitter's finding and total lines; 'Present the result' says to quote each count from them verbatim, never recount, and to state the emitter's figure on any disagreement.
  • .changes/docs-naming/work-resolve-issue-issue-18810-45437535327-1-97351181.md: patch changelog fragment for docs-naming.

Verification

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

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

The run reports:

  • check-changelog-fragments: all 10 fragments valid (failed once on a missing ### section, fixed)
  • check-changed-skills: audit-file-names PASS, 0 errors, 3 warnings (description length and body size above advisory maxima; body grew 187 -> 199 lines)
  • check-affected: 17 passed, 10 skipped, 0 failed over 4 changed files
  • review: one fresh-context subagent reviewed the whole diff and found no correctness bugs; it traced the new test assertions against sweep.sh (each REF row increments SITES) and test-helpers.sh, checked the empty-sweep, zero-offender and no-SITES edge cases, and found no caller that parses…
  • tidy (code-tidying:tidy-diff): simplify, comment and residue passes found nothing to edit; write-for-agents removed a bolded rule sentence and a restatement in SKILL.md; write-for-humans split a long sentence in the fragment; ai-slop rubric read by hand found no tells
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45437535327

Left out: the items under Not verified.

Related

#18810

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

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

This review covers only what changed since cf1e953ba23e78a66d7c37c773a9a31e7b0f0b66. This lane already reviewed an earlier head, so it reports only CRITICAL and IMPORTANT findings. I read the whole change in both files in scope. Neither file matches a trusted path, and neither touches a trust control, a manifest, a workflow or a token.

  • plugins/docs-naming/skills/audit-file-names/scripts/emit-findings.test.sh: One test line changed. It used to pipe printf '%s\n' "$out" into grep -m1, and now it passes $out to grep as a here-string (<<<"$out"). The value is quoted and only grep reads it, so it is never evaluated or run. This is a test-only fix for the pipefail check, with no security surface.
  • .changes/docs-naming/...-f03a1c12.md: A new changelog fragment (bump: none) that is prose only.

The PR context contains no text aimed at this review lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18834, incremental (blocking only), no findings

This review covers only what changed since cf1e953: the two files in .claude-lane/incremental.diff. I read both in full. This lane already reviewed an earlier head (blocking only: yes), so I looked only for blocking findings.

What changed

  • In emit-findings.test.sh L46, printf '%s\n' "$out" | grep -m1 '^finding ' | awk … becomes grep -m1 '^finding ' <<<"$out" | awk ….
    • With pipefail on, grep -m1 stops reading after its first match. That could send SIGPIPE to the upstream printf and fail the pipeline.
    • A here-string has no upstream writer, so the early exit can no longer fail it. The extracted value is the same: the first finding line's second field.
  • The next line, grep -m1 … "$work/plan.md" | awk, reads a file. grep is the writer there, not a reader that stops early, so it does not have the same problem.
  • A new changelog fragment adds bump: none for this test-only change. Other fragments in .changes/ already use bump: none. The PR's earlier bump: patch fragment for the emitter fix is still there, so docs-naming still gets its patch release.

Closing issue: none. The PR body says Refs: #18810 and closes no issue, so there are no acceptance criteria to check against.

Not independently verified: I did not run the test suite: this lane has no shell. Whether the pipefail gate now passes is the author's claim, unverified here.

Inputs and embedded text

  • No embedded instructions were found in the PR context.
  • The prompt gave no loosened-check verdict or patterns. By default the verdict is fail with no consumer entries, and the citation requirement was not checked. No changed line loosens a check.
  • Loosened checks would be marked: n/a (none found).
  • No plugin manifest changed, so there are no manifest lines.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 7c1135c6bf992f2ffe9d0269f57d20579a6194bc. 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)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 7c1135c6bf992f2ffe9d0269f57d20579a6194bc, 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=7c1135c6bf992f2ffe9d0269f57d20579a6194bc rubric=10.11.0 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 24, 2026
Merged via the queue into main with commit 92f175b Nov 24, 2026
65 of 66 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-18810-45437535327-1 branch November 24, 2026 18:04
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 92f175b89ec6138ce33a7075c82bc6c46be638bd; 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.

0 participants