Skip to content

docs(docs-hygiene): state that Grep reports a line-break pattern rejected without multiline - #18072

Merged
kyle-sexton merged 3 commits into
mainfrom
docs-hygiene-grep-linebreak-rejected-17832
Nov 22, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
docs-hygiene-grep-linebreak-rejected-17832

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #17832

Summary

Claude Code 2.1.330 changed what Grep does with a pattern that holds a line break and no multiline: it reports the rejected pattern instead of reporting no matches. The rename-references audit survey said the form is silently lost. This rewords that and the matching eval case.

Fix

  • plugins/docs-hygiene/skills/rename-references/context/audit.md: the Form 7 and Form 14 Setext multiline: true instruction stays. The text now tells the survey to treat any Grep report other than matches as a failed form, never a zero, and points at the Claude Code changelog, 2.1.330 for what Grep reports, instead of restating it.
  • plugins/docs-hygiene/skills/rename-references/evals/evals.json (case 29): expected output and the failure-mode expectation match. No eval was run.
  • Changelog fragment for docs-hygiene (patch).

Verification

  • scripts/check-affected.sh: 18 passed, 2 skipped.
  • Read the changelog page (above) this session; its 2.1.330 entry: "Fixed Grep reporting no matches when the pattern held a line break without multiline mode; it now reports the rejected pattern".
  • Not probed on a live runtime: whether a literal line break and a \n escape are both rejected. The wording does not depend on it: both Form 7 and Form 14 patterns carry \n and the changelog entry covers a line break without multiline.

Remaining

Related

Refs: #17713 (sibling split).

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 21, 2026 17:48
…cted without multiline

Closes #17832

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g what Grep reports

Refs: #17832

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 21, 2026 23:10
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T23:12:07.807206Z 1a486ee Draft marked ready
ℹ️ 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: 1a486ee5a6

ℹ️ 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 21, 2026 •

Copy link
Copy Markdown
Contributor

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

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

This is an incremental review. I read the whole change since 1a486ee5a6b382f541c31db74f99957ef62be98e: one file, one hunk. This lane already reviewed an earlier head, so this review reports only blocking findings. It found none.

  • plugins/docs-hygiene/skills/rename-references/context/audit.md: this hunk rewords the Phase 2 note on line-break Grep patterns.
    • Still a failed form: a Grep call that reports a rejected pattern or an error.
    • New steps for a failed form: rerun it with multiline: true, and report the form as unsurveyed if it fails again.
    • Now a true zero: a no-match result.

Instruction-surface lens. The hunk edits a skill body. The earlier head said "anything other than matches" was a failure, so the new text narrows that rule, and I checked it before treating the change as non-security. The narrowing covers only a rename-residue survey. It decides whether an empty Grep result means the survey finds no hits. It touches no permissions, tools, credentials, posting, command execution, trust controls or merge holds. If the rule were missing, the worst case is a missed rename reference, which is a documentation-quality outcome with no security impact. The multiline: true instruction for Form 7 and Form 14's Setext alternative is unchanged. I did not read the instruction exception register's protected-class list for this. I judged by consequence: no protected action depends on this rule.

Scope checks.

  • The changed file matches no TRUSTED PATHS glob.
  • The change adds no plugin manifest, userConfig, workflow or trust-control change.
  • The description in pr-context.md matches the change and contains no embedded instructions aimed at this lane.
  • The earlier summary-only post has no line anchor, and nothing in it carries forward as a finding.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18072 (incremental, blocking only)

I reviewed only what changed since 1a486ee5: one hunk in plugins/docs-hygiene/skills/rename-references/context/audit.md. This lane already reviewed an earlier head, so this pass reports blocking findings only.

No blocking findings.

  • Earlier finding is fixed. The new wording counts as a failed form only a Grep call that reports a rejected pattern or an error, rather than matches or a no-match result. It also says what to do: rerun with multiline: true, and report the form as unsurveyed if it fails again. It states that a no-match result is a true zero. That matches the zero-match handling later in the same file. The owner resolved that thread with this fix, and this review raises nothing new on those lines.
  • No closing issue. The PR body has only Refs: #17832, so there are no acceptance criteria to check.
  • Loosened checks. Loosened checks would be marked: fail (the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The new hunk makes the survey's handling of a failed form stricter and loosens nothing. I did not check the citation requirement, because the prompt had no loosened_check_decision_record: line.
  • Unverified. I ran nothing. The PR's scripts/check-affected.sh result and its reading of the 2.1.330 changelog are the author's claims.
  • Advisory finding dropped. I dropped one advisory candidate because this is a blocking-only review: the PR description's Fix section still says "treat any Grep report other than matches as a failed form". That is the old wording.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 1a486ee5a6b382f541c31db74f99957ef62be98e. What it wrote, as data:

Summary: There is no trusted linked-issue text: spec.json is empty and #17832 has no entry. So the
  spec is this pull request's own title and body, with `spec_kind` `pull-request`. The diff makes
  the three changes the body lists: the audit.md rewording, eval case 29 and a docs-hygiene patch
  changelog fragment. The `multiline: true` instruction for Form 7 and Form 14's Setext alternative
  is unchanged. CI on the judged head is green for Check Skills, Check Plugins, Lint Repo and Test
  Bash (0)
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44960513750/job/137018234877).
  The skipped jobs run suites that do not cover these markdown and eval files, so the skips are
  expected. No binary files, takeover-set files, secrets or holds are touched, and nothing in the
  material tries to steer the reviewer. One blocking defect: the new audit.md sentence is worded too
  broadly. Read literally, it makes a real empty result count as a failed form, so a form with no
  occurrences can never be recorded as zero.
- plugins/docs-hygiene/skills/rename-references/context/audit.md:27: the sentence "A Grep call that
  reports anything other than matches is a failed form, never a zero" also covers Grep's normal
  empty result (no matches found). The survey would then treat every form with no occurrences, which
  is common for Form 7, as a failure and could never record a real zero. Reword it so only an error
  or a rejected-pattern report counts as a failed form, and a no-matches result stays a valid zero.
  For example: "A Grep call that reports an error or a rejected pattern, rather than matches or no
  matches, is a failed form, never a zero."

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 21, 2026
A failed form is a rejected pattern or an error, not a no-match result;
say to rerun it with multiline and report it unsurveyed if it fails again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 22, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 35ac03c Nov 22, 2026
74 of 75 checks passed
@kyle-sexton
kyle-sexton deleted the docs-hygiene-grep-linebreak-rejected-17832 branch November 22, 2026 00:49
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant