Skip to content

fix(claude-lanes-hosted): cancel security reviews of superseded heads - #789

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/security-review-cancel-superseded
Oct 15, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/security-review-cancel-superseded

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner-approved follow-up to melodic-software/claude-code-plugins#7499

Summary

The security-review caller now cancels an in-flight run when a newer commit supersedes it. The old cancel-in-progress: false existed because a cancelled check used to wedge merges; claude-code-plugins#7499 changed the merge guard to judge only the newest run of each check, so a cancelled run on a superseded head no longer blocks merge.

Fix

  • components/claude-lanes-hosted/claude-security-review.yml and components/claude-lanes/claude-security-review.yml: replace the job-level non-cancelling group with a top-level ${{ github.workflow }}-<PR number || run_id> group and cancel-in-progress: true; comments state the current reason.
  • .github/workflows/pr-review-security.yml (repo-local caller): same change.
  • .github/concurrency-policy.json: remove the delegated-job-level exception, which the canonical block makes unnecessary.

Affected consumers (the next sync PR delivers the change; nothing pins these files by SHA, so no repin):

  • Hosted copy: claude-code-plugins, pr-pipeline-sandbox, ci-runner, cursor-plugins, codex-plugins, claude-code-account-rotation, agent-plugins.
  • Fleet copy: dotfiles, github-iac, medley, provisioning.

Verification

npm run lint:concurrency-policy, lint:runner-policy, lint:github-actions-conventions, test:concurrency-policy and test:runner-policy all pass. No test was loosened; the hosted-equals-fleet-sibling test passes because both files changed together.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQKJiE8NBix1bgynWFSkqp

Move the security-review caller concurrency to a top-level per-PR group with
cancel-in-progress true, in the hosted and fleet components and the repo-local
caller, and drop the now-unneeded delegated-job-level exception.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CQKJiE8NBix1bgynWFSkqp
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 15, 2026 06:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T06:03:25.631470Z f5d11f0 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.

@claude

claude Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

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


Code review — PR #789

  • Gather context (diff, changed files, repo conventions)
  • Run /review:code-review procedure
  • Post findings

Scope: .github/concurrency-policy.json, .github/workflows/pr-review-security.yml, components/claude-lanes/claude-security-review.yml, components/claude-lanes-hosted/claude-security-review.yml. Security-specific findings are out of scope for this lane (dedicated security lane); this pass is correctness/maintainability only.

The concurrency change itself checks out: the new top-level group ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} is exactly the canonical form components/concurrency-policy/concurrency-policy.mjs's CANONICAL_GROUP requires, the removed delegated-job-level exception is no longer needed (the linter only scans .github/workflows/*.yml, so the components/** templates were never covered by it anyway), and the pattern mirrors the already-established ${{ github.workflow }}-<pr-or-run-id> + cancel-in-progress: true shape used elsewhere in this repo (e.g. .github/workflows/pr-require-checks.yml, .github/workflows/pr-review.yml). I did not re-run the author's cited lint/test commands; those are author-claimed, not independently verified here.

Finding: stale cross-reference comment left unreconciled by this PR

This PR makes the security-review caller cancel superseded runs, but it leaves a comment in the sibling code-review caller that explicitly claims the opposite — that the security caller does not do this:

Both files previously referenced the security caller's old header comment, which this PR rewrites to say the opposite (components/claude-lanes/claude-security-review.yml#L56-L61: "a newer event ... cancels the older run ... the group is the canonical form the standards concurrency-policy component requires"). The two callers now use the identical cancel-in-progress: true + canonical-group shape, so "the security caller does not copy it" is false the moment this PR merges — a maintainer reading claude-review.yml next will be told the two lanes differ when they no longer do. This is exactly the kind of unreconciled citation AGENTS.md's "Normative-doc changes reconcile every file that cites or assumes the rule before merge" calls out, and neither claude-review.yml file is in this PR's diff.

Fix this →

claude-lane-summary: lane=claude-review sha=f5d11f0a0de96a9398195259cae31c14f527351e run=38689892660

@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: f5d11f0a0d

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

Copy link
Copy Markdown

claude-review has reviewed this pull request through 29f21d1; a later push is reviewed from there.

@claude

claude Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 48s —— View job


Code review — PR #789 (incremental)

  • Gather context (incremental diff, prior review scope)
  • Run /review:code-review procedure on changed lines
  • Post findings

Scope: incremental — this lane last reviewed f5d11f0. Only the diff since then was in scope: components/claude-lanes/claude-review.yml and components/claude-lanes-hosted/claude-review.yml (both +2/-2, comment-only changes).

What changed: the new commit reconciles the stale cross-reference that the previous review (and Codex) flagged — both claude-review.yml files previously said "the security caller does not copy it (see its own concurrency note)," which became false once this PR's earlier commit made the security caller cancel superseded runs too. The new wording:

"...the security caller cancels superseded runs the same way."

I checked this against the current content of both claude-security-review.yml files (components/claude-lanes/claude-security-review.yml#L52-L60) — the security caller does now use the same ${{ github.workflow }}-<pr-or-run-id> + cancel-in-progress: true shape, so the updated sentence is accurate and the inconsistency is resolved.

No new findings on this incremental diff.

claude-lane-summary: lane=claude-review sha=29f21d154fc731c0237d7e8fe14e198ff3e014a9 run=38690386420

@kyle-sexton
kyle-sexton merged commit 561d2b0 into main Oct 15, 2026
21 of 22 checks passed
@kyle-sexton
kyle-sexton deleted the fix/security-review-cancel-superseded branch October 15, 2026 13:08
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