Repository navigation
fix(pr-convention-policy): read the bounded-scan window in the hook validator - #862
Conversation
…alidator
claude-code-plugins #9476 made negation_trigger_to scan backward until it holds
five words (`${#words[@]} < 5`) instead of keeping `n - 5` onward, so
parseValidatorNegation no longer found the window and check-pr-convention-copies
went red on main. The parser now accepts either form; a bounded-scan validator
fixture is parsed and run through checkCopies, behavioral layer included.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR 862 @ e03f3c8No security issues found.
Scope: three files, all in
The change widens which validator form the drift check accepts. The behavioral layer still checks the parsed window values against
|
|
claude-review reviewed No findings. I read the full diff and the PR context, and I read
|
No related issue: standards main is red on check-pr-convention-copies since melodic-software/claude-code-plugins#9476 changed the hook validator's negation scan (standards run https://github.com/melodic-software/standards/actions/runs/40036458752).
Summary
parseValidatorNegationreads the hook validator's word window from((n > 5)) && first=$((n - 5)). claude-code-plugins#9476 replaced that forward pass with a backward scan bounded by${#words[@]} < 5, so the parser found no window andcheck-pr-convention-copiesfailed every standards run, PRs included.Fix
components/pr-convention-policy/lockstep-drift.mjs: the window matches either form; the "not only" exception and triggercaseanchors are unchanged.components/pr-convention-policy/fixtures/lockstep/pr-linkage-validator-bounded-scan.sh.txt: the validator as on claude-code-plugins main.components/pr-convention-policy/lockstep-drift.test.mjs: the bounded-scan validator parses to the policy's negation data and passescheckCopies, which runs the behavioral layer on it.Verification
npm run test:pr-convention-policy: 11/11 pass.node --test components/pr-convention-policy/lockstep-drift.test.mjs: 93/93 pass.npm run lint:pr-convention-copiesagainst live claude-code-plugins main: "every copy matches policy.json".Related
melodic-software/claude-code-plugins#9476
🤖 Generated with Claude Code