Skip to content

fix(review): recognize the renamed pr-review-security lane in REVIEW.md - #681

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/review-rules-renamed-security-lane
Oct 4, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/review-rules-renamed-security-lane

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: Phase 4 follow-up of the GitHub Actions conventions program (tracking: #672)

Summary

The security-lane detector in REVIEW.md matched only the old claude-security-review*.yml workflow names. ci-workflows v0.34.0 renamed the lanes to pr-review.yml and pr-review-security.yml, so a repo on the new names would lose the code-review/security scope split.

Fix

The detector now matches claude-security-review*.yml and pr-review-security*.yml, so old and new names both work while consumers stay on v0.33.0. The lane-name labels in the intro also list pr-review and pr-review-security. pr-review.yml needs no detector change: only the security workflow gates the split.

Verification

  • bash harness/shell/run-tests.sh components/code-review-rules/code-review-rules.test.sh passes (the component's CI command).
  • markdownlint and typos are clean on REVIEW.md.
  • No test asserts the detector prose.

Related

  • REVIEW.md is synced to every repo through the code-review-rules component's sync entry.
  • ci-workflows v0.34.0 rename.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Match pr-review-security*.yml alongside claude-security-review*.yml so
repos on either name keep the code-review/security scope split.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 39s —— View job


Security review complete

  • Gather context (PR diff, changed files)
  • Review REVIEW.md changes for security-relevant impact
  • Check instruction-surface deletion lens (detector rename)
  • Post findings / conclusion

Scope: this PR touches only REVIEW.md (+5/-5), widening the security-lane
detector from two literal workflow filenames
(claude-security-review.yml, claude-security-review-hosted.yml) to two glob
patterns (claude-security-review*.yml, pr-review-security*.yml), per
REVIEW.md#L56-L58.

Instruction-surface check: this is a detector rule inside a standing
instruction file (REVIEW.md governs whether the code-review lane suppresses
security findings), so I checked it against the instruction-exception-register
lens rather than treating it as prose-only. Note: docs/conventions/instruction-exception-register/README.md
is not present in this checkout and the register URL isn't reachable with this
skill's tools, so the protected-class list itself wasn't consulted — this
conclusion rests on recognition-by-consequence only.

  • The fallback safety net is preserved verbatim in intent: when no matching
    workflow is found, the code-review lane still self-reports security findings
    rather than silently dropping them (REVIEW.md#L63-L65). Detection misses
    therefore fail safe, unchanged by this PR.
  • The risk class this detector has always carried — filename existence is
    trusted as a proxy for "a security lane actually runs," with no check that
    the matched workflow is enabled or functions as security review — is
    pre-existing, not introduced here. The prior version already extended that
    same trust to a second, suffixed filename (-hosted), so widening the match
    to a glob enlarges the set of matching names but doesn't introduce a new
    category of trust the prior wording didn't already have.
  • Net effect of the diff is a same-shape, slightly wider filename allowlist for
    an existing non-cryptographic, non-enforced detection heuristic — not a new
    guardrail removal with no other mitigation.

Conclusion: No security findings. This is a scoped renaming/alias update to
a review-routing convention doc; no vulnerability, authorization, injection, or
credential-handling issue is introduced by this change.

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 2m 25s —— View job


Code review complete

  • Gather context (PR diff, REVIEW.md, custom instructions)
  • Understand request (CI code-review lane invocation)
  • Review changed file (REVIEW.md) for correctness
  • Verify author's claimed verification steps
  • Post findings

No blocking or high-signal findings.

What I checked

  • Diffed REVIEW.md against origin/main (5 lines changed in two spots: the
    intro's lane-name parenthetical, and the code-review lane's
    workflow-existence detector).
  • Confirmed internal consistency: all four lane-name mentions in REVIEW.md
    (lines 12, 14, 57, 58) now consistently list both the old and new names —
    no stale mention of the old-only names remains in the file.
  • Cross-checked the rename against
    components/github-actions-conventions/rename-map.json,
    which documents the same claude-review.yml → pr-review.yml and
    claude-security-review(-hosted).yml → pr-review-security.yml rename as a
    ci-workflows v0.34.0 change. The new glob (claude-security-review*.yml,
    pr-review-security*.yml) correctly subsumes the old -hosted variant and
    matches the new name, so the detector claim checks out.
  • Confirmed pr-review.yml itself needs no change here: the code-review
    lane's gate condition is keyed only on the security workflow's presence,
    per the unchanged logic right below the edited lines.
  • Read components/code-review-rules/code-review-rules.sh — it validates
    AGENTS.md structure/pointer, not REVIEW.md prose, so it's unaffected by
    and doesn't exercise this change either way. This matches the PR's own
    "No test asserts the detector prose" note.
  • I was not able to execute the author's cited verification commands
    (run-tests.sh, markdownlint, typos) myself in this session — tool
    permissions didn't allow running them. Those results are author-claimed
    and unverified by me.
  • Checked for other normative docs citing the renamed lane names (per
    governance-process.md#cross-doc-reconciliation-before-a-normative-doc-change-merges).
    conventions/review/ai-review-bot-composition.md and runner-policy/README.md
    still reference only the old literal names, but they describe this repo's
    actual, currently-pinned workflow files (still claude-review.yml /
    claude-security-review.yml at v0.30.1/v0.32.0 — the rename hasn't been
    adopted here yet), so nothing is contradicted by this PR's forward-compatible
    wording. Not a finding.

Scope was a 5/5-line prose edit to one doc with no code or test surface — clean,
narrowly scoped, and consistent with the stated rename.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 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-10-04T12:22:18.884618Z 418c9aa 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: 418c9aa4ac

ℹ️ 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".

Comment thread REVIEW.md Resolved
@kyle-sexton
kyle-sexton merged commit b77cf39 into main Oct 4, 2026
2 checks passed
@kyle-sexton
kyle-sexton deleted the fix/review-rules-renamed-security-lane branch October 4, 2026 12:25
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