Skip to content

fix(docs-hygiene): let one rename-references Grep combine forms - #13457

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/7296-rr-grep-alternation
Nov 5, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/7296-rr-grep-alternation

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #7296

Summary

/docs-hygiene:rename-references now lets one Grep combine forms in an alternation, provided every form's regex is in it. Previously #13430 required one Grep call per form. Round 15 showed the per-form rule found nothing more. Both arms passed the outcome graders finds-hidden-forms and history-and-prose-left-alone 3/3. Only the Grep-count grader failed. A real sweep cost about 15 tool calls to meet that grader.

Fix

  • SKILL.md, context/audit.md (Phase 2) and context/audit-modes.md (Blast) say to run every form's regex. One Grep may combine forms; a token-only grep still does not count as a sweep.
  • fix(docs-hygiene): sweep rename-references one form per Grep call #13430's frozen-changelog triage rule is unchanged.
  • evals/rr-review-skill-stragglers/graders/swept-with-grep.md: min: 3 -> min: 1. On round-15 data this is the case's only grader that separates the arms: the with-arm passed 3/3 and the no-plugin arm 0/3.
  • The grader's samples now pass a single alternation and fail answers with no Grep. The old fail samples each made one Grep call and would pass at min: 1.
  • New changelog fragment. fix(docs-hygiene): sweep rename-references one form per Grep call #13430's fragment was already released.

Verification

Remaining on #7296

  • 59 skills are still open on the close map, measured in round 19.
  • rr-review-skill-stragglers is re-measured on merged main after this PR merges.

Related

🤖 Generated with Claude Code

The per-form rule raised tool calls without finding more: round 15's
outcome graders passed 3/3 in both arms, and only the Grep-count
grader failed. One alternation covering every form's regex is a full
sweep; a token-only grep still is not. swept-with-grep moves to min 1,
which separates the arms (3/3 against 0/3) on that data.

Refs #7296

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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-05T06:45:22.148813Z c51308e 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.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13457 (incremental, c51308e → 3712538)

No security issues found. This was a blocking-only review, because this lane already reviewed an earlier head. I read every hunk of the 2 files in the incremental scope.

What changed

  • plugins/docs-hygiene/evals/rr-review-skill-stragglers/graders/swept-with-grep.md gains an input_match regex. With it, the tool_used: Grep grader passes only when a Grep pattern contains a \d (the table-row form). A token-only Grep no longer passes.
  • plugins/docs-hygiene/evals/rr-review-skill-stragglers/samples/swept-with-grep.json gets one new Grep in the existing passing sample. It also gets two new failing samples: a single token-only Grep, and one combined Grep that leaves out the table-row form.

Why there is no security surface

  • Both files are eval data that score answer quality, and both are offline.
  • Neither file matches a trusted-path glob.
  • The change touches no workflow, action, token scope, trusted-actor list, merge hold, plugin manifest or standing instruction.
  • No untrusted input reaches a credentialed context through these files.

Prior finding: the earlier head's summary had no findings, so nothing carries forward.

Embedded text: none aimed at this lane in the incremental diff.

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: 1 inline finding(s) on c51308ebaa545adbee439a8f56eb5bbb7058d622; 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 371253893da14ee59b048afa994757d8de33d1c0: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #13457, incremental (c51308eb → 37125389)

Scope. This was an incremental, blocking-only review: this lane already reviewed an earlier head. I read every hunk of both changed files:

  • plugins/docs-hygiene/evals/rr-review-skill-stragglers/graders/swept-with-grep.md
  • plugins/docs-hygiene/evals/rr-review-skill-stragglers/samples/swept-with-grep.json

Result: no blocking findings.

Earlier finding is fixed. The owner resolved this lane's earlier advisory: with min: 1, nothing in the eval caught a token-only grep. This push fixes it:

  • New input_match on the grader. The grader now has input_match: '"pattern":"[^"]*\\\\d'. YAML single quotes keep backslashes as written, so the regex needs a Grep pattern whose compact JSON contains \\d, which is the JSON encoding of \d.
  • The grader reads compact JSON. call_matches in plugins/evals/skills/validate/scripts/validate-cases.py (L1424-1426) uses separators=(",", ":"), and its drift record says the binary does the same. So "pattern":" with no space matches what the grader reads.
  • What the regex requires. A bare /review token pattern cannot satisfy it. A combined alternation that leaves out the table-row form \|\s*\d+\.\s*review\b cannot either. That form comes from context/patterns.md L136-137.
  • Samples. By reading them through:
    • Both pass samples (the single alternation, and one Grep per form, which now includes the table-row regex) match.
    • All five fail samples miss: no calls, Read only, Glob plus Read, the token-only /review grep, and the combined grep without \d.
  • The second point is also fixed. The pass sample "one Grep per form" now runs all four form regexes.

Not reported because this review is blocking only:

  • The grader stands in for "every form" with one form only. A sweep that leaves out the brace or skills/review/ form but keeps the table-row regex still passes.
  • A correct sweep that writes [0-9]+ instead of \d+ would fail.

Manifests. No plugin.json or marketplace.json changed in this push, so no manifest lines apply.

Not verified by this lane. These are the author's claims, and I did not run them:

  • validate-cases.py reports 0 FAIL for docs-hygiene.
  • All 7 samples grade as labeled.

Closing issue. The PR says Refs: #7296, not closes, so there are no acceptance criteria to check. I found no embedded instructions in the PR context, settled threads or prior findings.

…ader

With min: 1 the swept-with-grep grader passed any single Grep, so a
token-only `/review` grep, which the skill says is not a sweep, passed.
The grader now requires a Grep whose pattern carries the table-row form
(`\d`), which a bare token pattern cannot. The fail samples gain a
token-only Grep and a combined Grep that leaves out the table-row form,
and the one-Grep-per-form pass sample gains the table-row regex it was
missing. validate-cases.py reports 0 FAIL for docs-hygiene.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit fe1a22b Nov 5, 2026
43 checks passed
@kyle-sexton
kyle-sexton deleted the fix/7296-rr-grep-alternation branch November 5, 2026 07:42
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