Repository navigation
fix(code-review-rules): require exactly one org-wide criteria pointer - #719
Conversation
A stale second "- Org-wide criteria:" line beside the correct one passed the check, because the target test only asked whether any pointer line linked the expected target. The checker now counts every line in the section that opens with "- Org-wide criteria:", linked or not, fails with "<n> org-wide criteria pointer lines, expected one" when there is not exactly one, and validates that single line's target. Adds duplicate-pointer fixtures (correct plus stale, the correct line twice, and correct plus an unlinked line) and a fleet case, and states the exactly-one rule in the component README. Part of #669. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G3BsUv4VeQ81gAPhk73xvs
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 finished @kyle-sexton's task in 2m 38s —— View job Code review complete
Scope: all three changed files — Findings: none blocking. Traced the new duplicate-detection logic in
Not independently verified: I don't have shell-execution permission in this environment, so I read the logic rather than running |
|
Claude finished @kyle-sexton's task in 1m 42s —— View job Security review — no issues found
Scope reviewed: all three changed files — This PR tightens an internal CI compliance checker (a bash script that validates a repo's
No CRITICAL / IMPORTANT / SUGGESTION findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4c49adf586
ℹ️ 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".
|
claude-security-review has reviewed this pull request through 779e935; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through 779e935; a later push is reviewed from there. |
The pointer collector matched only lines that open with the label at column one, so a stale `- Org-wide criteria:` bullet with leading spaces, still a Markdown list item, was ignored and correct plus indented-stale passed. Lines now count at any indentation, and the single counted pointer must be unindented, since the inherited block is copied verbatim; an indented one fails with its own message rather than a misleading target error. Adds fixtures for correct plus indented-stale and for an indented sole pointer. Part of #669. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G3BsUv4VeQ81gAPhk73xvs
|
Claude finished @kyle-sexton's task in 1m 0s —— View job Security review — no issues found
Scope reviewed (incremental, since This is an internal CI compliance checker (validates a repo's
Instruction-surface lens: this script enforces (doesn't itself constitute) the No CRITICAL / IMPORTANT / SUGGESTION findings. |
|
Claude finished @kyle-sexton's task in 1m 26s —— View job Code review complete
Scope: incremental diff only (commit Findings: none blocking. Traced the updated collector and the new indentation guard in
This directly resolves the Codex P2 finding (indented second pointer bypassing the exactly-one check) without reopening the target-match or duplicate-detection paths it added in the prior commit. Not independently verified: no shell-execution permission in this environment, so this is a logic trace rather than an actual run of |

No related issue: partial fix for #669 (duplicate-pointer item); the issue stays open for the remaining items.
Summary
A stale second
- Org-wide criteria:line beside the correct one passedcomponents/code-review-rules/code-review-rules.sh, because the target test only asked whether any pointer line linked the expected target. This makes the checker require exactly one org-wide criteria pointer line.Fix
code-review-rules.shcounts every line in the## Code Review Rulessection that opens with- Org-wide criteria:, linked or not. More than one fails with<n> org-wide criteria pointer lines, expected one. The single line must linkREVIEW.mdwhen the repository has a rootREVIEW.md, and the canonical URL when it does not (targets unchanged).code-review-rules.test.shadds three failing fixtures (correct + stale, correct twice, correct + an unlinked line) and a fleet case that names the duplicate.Verification
OK:). After it,bash components/code-review-rules/code-review-rules.test.shpasses 39/39.bash components/code-review-rules/code-review-rules.sh filepasses on this repository'sAGENTS.md.needsentry ofci-statusinpr-require-checks.ymlappears in itsresults:list, and the mcp-launcher tests run in thetest-cloud-environmentlane (the code-review-rules: four follow-ups from the #656 rollout #669 mcp-launcher item was resolved by the ci(pr-require-checks): group the gate lanes into one job per ecosystem #699 regroup).Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01G3BsUv4VeQ81gAPhk73xvs
Generated by Claude Code