Skip to content

fix(pr-review-cli): give every job a literal name - #1034

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/866-literal-review-job-names
Nov 8, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/866-literal-review-job-names

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #866

Summary

pr-review-cli.yml named its jobs with ${{ inputs.lane == 'security' && ... }} expressions. When a job is skipped, GitHub shows that raw expression as the check name, for example pr-review-security / inputs.lane == 'security' && 'security-review-subscription' || 'claude-review-subscription'. Every job now has a literal name.

Fix

  • The six jobs are now named, in both lanes:
    • resolve-pull-request
    • key-credit
    • key
    • subscription
    • fallback
    • review-status, for the status job
  • The caller job tells the two lanes apart: pr-review / review-status and pr-review-security / review-status.
  • STATUS_JOB, which apply-review-hold's cost-decision carry reads, is now review-status.
  • The key-job input stays lane-specific. check-key-credit/gate.cjs builds the credit-stop marker artifact name from it, and both lanes run this one file.
  • The README's pr-review-cli section names the new status check.

The readers of these check names in claude-code-plugins accept both the old and new names since claude-code-plugins#14075, merged before this PR.

Verification

  • node --test on pr-review-cli.test.cjs, apply-review-hold.test.cjs and check-key-credit.test.cjs: 163 passed.
  • New test: every job's name in pr-review-cli.yml is the literal above and holds no ${{. STATUS_JOB is review-status.
  • actionlint reports only the known $/ noise. zizmor --offline reports no findings.

Left out: a live run showing the new names. The first review run after merge provides it, and claude-code-plugins step 3 waits for it.

Related

  • claude-code-plugins#14075: the readers accept both names. Step 3 there drops the old names from pr-require-checks.yml, merge-holds.mjs and clear-escalations.mjs once a real run shows the new ones.
  • apply-review-hold reads only review-status after this PR. A cost decision recorded before the rename stops carrying, so that PR re-holds once and fails closed. The owner accepted this.
  • pr-pipeline-sandbox pins pr-review-cli.yml at 4fbceb4, so this change does not reach it.

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmbdW8moDiQ5Rtgt7d5

A skipped job shows its `name:` unevaluated, so the lane expressions in
pr-review-cli.yml's job names showed as raw `${{ inputs.lane == ... }}`
check names. Every job now carries a literal name, the same in both
lanes: resolve-pull-request, key-credit, key, subscription, fallback,
and review-status for the status job. The caller job tells the lanes
apart (`pr-review / review-status`, `pr-review-security / review-status`).
STATUS_JOB, which the cost-hold carry reads, follows the status job.

The key-job input stays lane-specific: check-key-credit builds its
marker artifact name from it, and both lanes run one workflow file.

Closes #866

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmbdW8moDiQ5Rtgt7d5
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-08T06:19:38.043970Z
We couldn’t complete this review. Comment @codex review to try again.
7c468a4 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

claude-review reviewed 51ebb7c91501e2af8455a346dfda8415ffec9ee1: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

claude-review reviewed 51ebb7c91501e2af8455a346dfda8415ffec9ee1: read 4 of 4 changed files; 0 findings, 0 as inline comments.

This is a blocking-only review. The prior-findings file shows the lane already reviewed an earlier head. I found nothing blocking.

What I checked

  • Literal names: All six jobs in pr-review-cli.yml (resolve-pull-request, key-credit, key, subscription, fallback, review-status) now have literal names. This meets the issue pr-review-cli: skipped jobs render their lane-expression name instead of a literal name #866 problem statement, which asks for literal job names so a skipped job no longer shows a raw expression.
  • Status job match: STATUS_JOB becomes the literal review-status. .github/actions/apply-review-hold/hold.cjs:388 matches name === statusJob or a name ending in / review-status, so the caller-qualified check name pr-review / review-status still matches. The PR body says cost decisions recorded before the rename stop carrying and that the owner accepted this. I did not verify that acceptance.
  • Key-job input: key-job at pr-review-cli.yml:594 stays lane-specific. check-key-credit.test.cjs and select-model-credential.test.cjs still use the old key names, which is consistent.
  • Old-name references elsewhere: The remaining claude-review-status mentions are in pr-review.yml, pr-review-security.yml, claude-lane-status-check.test.cjs and the README section for those files. This PR does not change those workflows, so those mentions remain valid.
  • Tests: The new test pins every job name and the STATUS_JOB env value. It replaces the removed fallback.name assertion.
  • Docs: The README and the header comment in pr-review-cli.yml match the new naming.

Not checked

  • I ran no tests. The PR's reported results (163 passing, actionlint and zizmor clean) are author-claimed and unverified by me.
  • I could not verify the claim that the readers in claude-code-plugins accept both names after claude-code-plugins#14075. It is author-claimed.
  • No live run shows the new names. The author says that waits for the first review run after merge.

Other lines

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

claude-security-review reviewed 51ebb7c91501e2af8455a346dfda8415ffec9ee1: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

claude-security-review reviewed 51ebb7c91501e2af8455a346dfda8415ffec9ee1: read 4 of 4 changed files in full. 0 findings. This is a blocking-only review, because the lane already reviewed an earlier head, 7c468a4. That earlier review found nothing, and it left no inline thread to carry forward.

critical-findings: 0

The change gives six jobs in pr-review-cli.yml literal name: values and sets STATUS_JOB to review-status. The other edits are a test fixture constant, a new test that checks the job names, and a header comment and a README line.

  • Cost-decision carry. The apply-review-hold action reads STATUS_JOB in hold.cjs. The security and code lanes now share the job name review-status. The earlier review found that the cost notices a lane reads are still filtered by LANE_ID, and LANE_ID still differs between the two lanes at the unchanged line in pr-review-cli.yml. So one lane cannot read the other's cost notices. A cost decision recorded under the old name stops carrying. That fails closed: the PR re-holds once, and the PR says the owner accepted it.
  • No widening of any trust control. The diff adds no permissions:, triggers, inputs, secrets or token scope. It does not change the trusted-actor check, the kill switch or the token broker. Nothing new reads untrusted text.
  • Merge holds in this repository. I found nothing here that reads the old check names claude-review-status or security-review. The only other hits are pr-review.yml (the older reusable workflow, whose names are unchanged) and a test for it.
  • Check-name readers in claude-code-plugins (not checked). I could not check them. The consumers pr-require-checks, merge-holds and clear-escalations live outside this repository. The PR says they accept both the old and new names since claude-code-plugins#14075. If a reader matches only the last segment review-status, pr-review-security / review-status and pr-review / review-status look the same to it. Its handling of a missing, skipped or failed check is outside this diff, so no weakened hold here is demonstrated.

Spend: none. The change only renames jobs, so it has no billing or prepaid-credit cost.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit a28bf47 Nov 8, 2026
39 checks passed
@kyle-sexton
kyle-sexton deleted the fix/866-literal-review-job-names branch November 8, 2026 15:55
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.

pr-review-cli: skipped jobs render their lane-expression name instead of a literal name

1 participant