Skip to content

fix(docs-hygiene): sweep rename-references one form per Grep call - #13430

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/7296-docs-hygiene-rr-sweep
Nov 5, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/7296-docs-hygiene-rr-sweep

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Refs: #7296

Summary

docs-hygiene rename-references eval case rr-review-skill-stragglers failed swept-with-grep (at least 3 Grep calls) in every round 15-17 run: the with-arm made 1 to 2 Grep calls. Round 16 found the grader correct. SKILL.md, context/audit.md and context/audit-modes.md said to run the full pattern library through Grep, but not that each form is its own call, so one alternation or one token grep read as compliant.

Once the sweep ran per form, it also found the dated CHANGELOG 1.4.0 entry. In 2 of 3 runs the reply then put that entry in a "your call" table. context/triage.md treats only "clearly-archived paths" as frozen, and the audit report gave an excluded hit a count but no line of its own.

Fix

  • SKILL.md, context/audit.md and context/audit-modes.md require one Grep call per form in context/patterns.md (Orphans: the forms its section names), never one alternation or one token grep for all of them.
  • context/triage.md: a released, dated or versioned entry in a live changelog is frozen. Without --include-historical, a frozen hit never enters a bucket and is never a question or a suggestion; the report names it on one Kept as history: <file>:<line> line.
  • context/audit.md Phase 4 template and the context/triage.md bucket-count report gain that line. SKILL.md Auto-exclusions name released changelog entries, unless --include-historical is passed.
  • Patch changelog fragment.

Verification

  • Local claude plugin eval (Claude Code 2.1.318), --runs 3 -j 2 --scaffold --allow-tools Bash Write Edit --judge-model opus, auto memory off, case rr-review-skill-stragglers, judged with run-validity.py from origin/main:
    • Per-form sweep only (d34f451): VALID; with-arm 0.78 (0.67 / 0.67 / 1.00), failing history-and-prose-left-alone in 2 runs on the CHANGELOG "your call" line; without-arm 0.67.
    • Measured at 1d4dda2: verdict: VALID, no denied call in 6 traces. With-arm 1.00 / 1.00 / 1.00, without-arm 0.67 / 0.67 / 0.67 (fails swept-with-grep). No grader in this case needs Bash.
  • The eval was measured at 1d4dda2. The later commit 5e1c928 changed only skill text: the --include-historical qualifier in context/triage.md and the SKILL.md Auto-exclusions entry, and the Kept as history report-template line in context/triage.md mirroring context/audit.md:181. The eval was not re-run on it.

Remaining on #7296

The other round-18 items are tracked on the issue.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 4, 2026 20:30
The pattern-library pointer, the audit survey and Blast said to run all
patterns through the Grep tool but not that each form is its own Grep
call, so audit runs folded the sweep into one or two greps and missed
the hidden forms. State one Grep call per form in patterns.md where the
model reads it on each path.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The frozen-records rule named archived paths but not a released entry
in a live changelog, and the report format gave an excluded hit no
line of its own, so a per-form sweep that found one put it in the
ambiguous table as a choice for the user. Name released changelog
entries as frozen and report frozen hits on one "Kept as history" line.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T02:48:55.178060Z 1d4dda2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d4dda2595

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13430 (head 5e1c928), incremental since 1d4dda2

No security issues found.

critical-findings: 0

This lane already reviewed an earlier head, so this review reports blocking findings only (CRITICAL and IMPORTANT). It found none at either level.

What I reviewed

I read every hunk of both files on the incremental list. Neither path matches a trusted-path glob.

  • plugins/docs-hygiene/skills/rename-references/SKILL.md (Auto-exclusions): the rule that frozen historical records are reported only as "Kept as history" now applies "unless --include-historical is passed".
  • plugins/docs-hygiene/skills/rename-references/context/triage.md: the same qualifier is added to the frozen-record rule. With the flag, frozen records are swept and triaged like any other file. The bucket-count report template also gains the "Kept as history" line.

Instruction-surface check

The diff narrows a standing skill rule, so I checked it under the instruction-surface lens before deciding it has no security surface.

  • --include-historical already existed before this change, with the same meaning: "Sweep archived/completed work notes and frozen records of past work" (SKILL.md:71, context/audit-modes.md:161). The qualifier makes the earlier head's unconditional exclusion agree with that existing flag. It adds no new capability.
  • The user has to pass the flag explicitly. When they do, frozen hits go through the normal triage buckets and their confirmations, so nothing is edited with fewer checks than any other swept file gets.
  • No tool grants, hooks, allowlists, permissions or block lists change. No protected-class action becomes reachable without a check. I did not consult the protected-class register; I judged the change by its consequence instead.

Not in this diff

  • No plugin manifest, userConfig key, workflow, action, token scope or trust control is touched. None of the owner's friction holds changes.

Other notes

  • Prior findings: the lane's earlier summary at 1d4dda2 reported 0 findings, so nothing carries forward.
  • Embedded text in the PR context: none that tries to direct the lane.
  • Spend: none. Nothing here can cause a charge or draw on prepaid credit.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): PR #13430 at 5e1c9281

Scope. This review covers only what changed since 1d4dda25. I read every hunk of both files in the incremental diff: plugins/docs-hygiene/skills/rename-references/SKILL.md and plugins/docs-hygiene/skills/rename-references/context/triage.md. This lane already reviewed an earlier head, so it reports blocking findings only. Neither file matches a trusted-path glob, the diff touches no plugin manifest, and nothing in it costs money.

What changed:

  • triage.md:142 now applies only when --include-historical is not passed. With the flag, frozen records are swept and triaged like any other file.
  • SKILL.md:147 (the Auto-exclusions entry) gets the same qualifier.
  • triage.md:165 adds the optional Kept as history: <file>:<line>[, …] line under the "Reporting bucket counts" table. It matches audit.md:181.

The flag behavior agrees with the existing definitions in SKILL.md:71 and audit-modes.md:161 ("Sweep archived/completed work notes and frozen records of past work"). I found no contradiction among the files that mention --include-historical.

Prior finding. My earlier advisory (discussion_r4476041567) said only the audit template had the Kept as history line. The new line at triage.md:165 fixes it: apply and preview runs use this template through apply.md:48. The owner's reply on that thread says the same, so I am not raising it again.

Findings. None.

Verification. The PR says the eval ran at 1d4dda2595 and was not re-run on 5e1c928188. That is the author's claim; I did not run it. This commit changes only skill text.

Closing issue. The PR body says Refs: #7296, not "Closes", so there is no closing issue and no acceptance criteria to check.

Embedded text. Nothing in the PR context, settled-threads or prior-findings data tells this review to do anything.

…n every report

The frozen-hit rule in triage.md and the SKILL.md Auto-exclusions entry
applied unconditionally, contradicting the --include-historical override.
Both now apply only when the flag is absent. The triage.md bucket-count
report gains the optional "Kept as history" line audit.md already has.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 68e8b17 Nov 5, 2026
61 checks passed
@kyle-sexton
kyle-sexton deleted the fix/7296-docs-hygiene-rr-sweep branch November 5, 2026 03:07
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.

1 participant