Skip to content

fix(pr-pipeline): read the review status jobs under their review-status names - #14075

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/review-status-check-names
Nov 8, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/review-status-check-names

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Refs: melodic-software/ci-workflows#866

Summary

ci-workflows#866 gives pr-review-cli.yml's status job a literal name, review-status, for both lanes. Today the name is an expression, and a skipped job shows that raw expression as its check name. The caller job tells the two lanes apart: pr-review / review-status and pr-review-security / review-status. Callers use ci-workflows @main, so the rename goes live as soon as it merges. Every reader here must accept the new names first. This is step 1 of 3. Step 2 is the ci-workflows rename. Step 3 removes the old names from this repository's own readers once a real review run shows the new ones.

Fix

Each reader of the review status jobs now accepts the new caller-qualified name alongside the current one:

  • ci-status (pr-require-checks.yml): the Require both review lanes on this head step and the cost-hold step. Each lane line now carries a |-separated list of names. Messages print the new name, and reconcile.mjs still matches them because it reads any quoted name.
  • merge-holds.mjs: REVIEW_LANES becomes [file, names]. Its Python twin, babysit_merge_policy.REVIEW_LANES, gets the same shape.
  • clear-escalations.mjs: LANE_RECORDS and laneReview.
  • babysit:
    • AI_REVIEW_CHECKS gains both new full names.
    • babysit_review_evidence.LANES now holds whole names, with a new lane_of_job helper.
    • collect_lane_runs and the rerun gate's lane lookup.
    • The run-cache key keeps a slash-free name, because carry-run-cache.mjs accepts no other.
  • The merge reference's lane() jq list, and its prose in pull-request/reference/merge.md.

Several readers matched only the last segment of a name: _lane_job, _has_lane_job, _gate_stopped, collect_lane_runs, and the rerun gate in babysit_merge.py. They now match the whole caller-qualified name. A shared review-status segment would otherwise send every security job to the code lane.

Verification

  • Python: 623 tests passed across the babysit evidence, gh, merge, merge cost, rerun and merge-holds sync suites. An earlier run of the full babysit suite showed failures only in tests this PR then updated.
  • Node: 225 tests passed in merge-holds.test.mjs and the three clear-escalations suites.
  • scripts/ci-review-lanes.test.sh: PASS=251. scripts/ci-hold-cost-decision.test.sh: PASS=176.
  • Each reader has tests for both new names, both earlier names, and three cases that must not count: other / review-status, a bare review-status, and the other lane's name.
  • I checked that the new tests can fail. With the earlier names removed from merge-holds.mjs and clear-escalations.mjs, three tests failed. With pr-review-security / review-status removed from LANES, the evidence and rerun tests failed. Both changes were reverted.
  • run-ruff.sh check, actionlint and shellcheck are clean. The pre-push check-affected hook passed.

Left out: the full babysit Python suite after the last test edits (4162 passed on the earlier run; CI runs it), and the docs that name the status checks, which change with step 3 once the new names are live.

Related

  • Refs pr-review-cli: skipped jobs render their lane-expression name instead of a literal name ci-workflows#866
  • The babysit plugin keeps accepting the earlier whole names pr-review / claude-review-status and pr-review-security / security-review for good, not only during the transition, and the rollup gate keeps its existing legacy list. cursor-plugins, dotfiles, standards and songwriting still call pr-review.yml and pr-review-security.yml, whose status checks carry those names. The evidence table reads only the pr-review-hosted.yml and pr-review-security-hosted.yml callers, and every repository that has those files names its caller jobs pr-review and pr-review-security. Step 3 can drop those names only from this repository's own CI readers: pr-require-checks.yml, merge-holds.mjs and clear-escalations.mjs.
  • pr-pipeline-sandbox pins pr-review-cli.yml at 4fbceb4, so this rename does not reach it. It is left as is.

Remaining

  • ci-workflows#866, step 2: rename the status job to review-status and the helper jobs to literal names in pr-review-cli.yml.
  • Step 3 (this repository): once a real review run shows the new names, drop the earlier names from pr-require-checks.yml, merge-holds.mjs and clear-escalations.mjs, and update the docs that name the checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmbdW8moDiQ5Rtgt7d5

kyle-sexton and others added 3 commits November 8, 2026 00:51
…us names

ci-workflows#866 renames pr-review-cli.yml's status job to the literal
`review-status` for both lanes, so a skipped job keeps a readable check
name. The caller job tells the lanes apart: `pr-review / review-status`
and `pr-review-security / review-status`.

Every reader of those status jobs now accepts the new caller-qualified
name beside the current one, so the rename can merge without a gap:

- ci-status's review-lane and cost-hold steps (pr-require-checks.yml);
- merge-holds.mjs and clear-escalations.mjs;
- babysit: AI_REVIEW_CHECKS, the review-evidence lane table, the lane
  run reads, the cost-decision reads and the rerun gate's lane lookup;
- the merge reference's `lane()` check list.

Readers that matched only the last name segment now match the whole
caller-qualified name, since `review-status` is shared by both lanes.

Refs: melodic-software/ci-workflows#866

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmbdW8moDiQ5Rtgt7d5
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 8, 2026 05:58
@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-08T05:58:05.481489Z
We couldn’t complete this review. Comment @codex review to try again.
cecd51d 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.

@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
Contributor

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

Security review: no security issues found

critical-findings: 0

I read every hunk of all 25 changed files in .claude-lane/pr.diff, so this review is complete, not partial. The prior-findings file shows no earlier review by this lane (blocking only: no), so this is a full review. The PR context holds no embedded instructions aimed at the lane.

What changed. Each reader of the review status jobs now accepts a second name for each lane: pr-review / review-status and pr-review-security / review-status, the names pr-review-cli.yml will give after ci-workflows#866. The earlier names are still accepted. Several babysit readers used to match only the last segment of a job name (rsplit(" / ")[-1]); they now match the whole name.

Trust controls checked. These are merge-hold files on the trusted-path list: merge-holds.mjs, clear-escalations.mjs, pr-require-checks.yml (the cost-hold step and the "Require both review lanes" step), babysit_merge.py, babysit_merge_policy.py, babysit_review_evidence.py and babysit_gh.py.

  • ci-status / merge-holds.mjs / clear-escalations.mjs / babysit_merge_policy.py: the extra names only apply to jobs inside runs of one fixed workflow file (pr-review-hosted.yml or pr-review-security-hosted.yml). Those runs are still filtered by head repository, event=pull_request and head SHA. Matching is still exact against a list fixed in code: names.includes(...) and IN($checks | split("|")[]), both over a literal heredoc. A pull request that edits its own copy of a caller workflow could already name a job with the earlier exact name, so one more exact name in the same run admits nothing new. The cost-notice and completion-record checks after the match (the HOLD_NOTICE regex, the head and repository checks, the cutoff) are unchanged. In the shell, ${checks%%|*} is used only in messages, and $checks reaches jq only through --arg, so nothing is injected.
  • babysit_review_evidence.py / babysit_gh.collect_lane_runs / the rerun gate: this narrows matching. Any <anything> / claude-review-status or <anything> / security-review job used to bind a lane; now only the listed caller-qualified names do. The new lane_of_job maps the shared review-status segment to the right lane only under its own caller prefix, so a security job can't be read as the code lane's. The run-cache key now uses the segment review-status for both lanes. It also includes repo|run_id|attempt (babysit_gh.py#L2505-L2506), and the two lanes always have different run ids, so their keys can't collide. The format change only causes cache misses.
  • babysit_merge.AI_REVIEW_CHECKS: this list adds two exact caller-qualified names to the check-rollup matcher that babysit consults before arming auto-merge. It follows the same pattern as the existing pr-review-security / security-review entry and does not replace ci-status, which still reads the review lanes by workflow file.

Docs: the merge.md reference changes only add the new accepted names to the existing exact-name list. No rule is deleted, narrowed or softened.

No token scope, trusted-actor list, kill switch, signer or plugin manifest is touched. No change can cause a charge, and none spends extra prepaid credit.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on cecd51df9195b26464fe1058536b447bde96aa46; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed cecd51df9195b26464fe1058536b447bde96aa46: read 25 of 25 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #14075, accepting the review-status check names

The PR makes each reader of the review status jobs accept the new pr-review / review-status and pr-review-security / review-status names beside the current ones. It also replaces last-segment matching with whole-name matching. Both changes are carried through consistently in the following places:

  • pr-require-checks.yml: both steps.
  • merge-holds.mjs and clear-escalations.mjs.
  • The babysit gate, evidence, cost and rerun readers.
  • The merge reference's jq list.

I read every hunk of all 25 changed files.

What I checked and found correct:

  • ci-status step. read -r file lane checks puts the rest of the line, inner spaces and | included, into checks. lane_at matches with IN($checks | split("|")[]). carried()'s warning at pr-require-checks.yml:7323 still uses $check, but it only runs inside the second loop. That loop sets check=${checks%%|*} first, so the variable is never empty there.
  • Fork loop. It now prints the first name of each lane.
  • REVIEW_LANES shape. Every consumer reads the new tuple of names: merge-holds.mjs noticedHead, the only other caller clear-escalations.mjs laneReview (via line 1130), and babysit_merge_policy._noticed_head.
  • Run-cache key. collect_lane_runs now builds the key from job_names[0]'s last segment, review-status, for both lanes. Run IDs are unique per run, so the two lanes cannot collide. carry-run-cache.mjs:146 accepts the key, since its pattern [A-Za-z0-9_.-]+ matches review-status.
  • AI_REVIEW_CHECKS. Each new caller-qualified name has to match the whole check name, so a shared review-status segment cannot satisfy both lanes. The new tests cover this.
  • Tests. They cover both new names, both earlier names, another caller's job, a bare review-status, and the other lane's name, across the JS, Python and bash readers. I did not run them. The PR's test counts and its claim that the new tests can fail are the author's and unverified.

Finding (1, advisory, inline): babysit_review_evidence.LANES now accepts fewer caller names than babysit_merge.AI_REVIEW_CHECKS. Before this PR it matched any caller ending in claude-review-status or security-review. It now accepts only the pr-review and pr-review-security callers. A repository on the legacy security-review / security-review caller, which the rollup gate still accepts, gets no-lane-job and loses its evidence binding. That fails closed, so no merge goes through by mistake, but it contradicts the PR's statement that the earlier names stay accepted in the babysit plugin. Details are on the inline comment.

Closing issue: the PR only refers to ci-workflows#866 and closes no issue, so there are no closing-issue criteria to check.

Manifests: no plugin.json or marketplace.json changed. The changelog fragment's bump: patch fits a fix.

Embedded text: none found in the PR context or prior-findings files.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 3fcd8f2 Nov 8, 2026
116 checks passed
@kyle-sexton
kyle-sexton deleted the fix/review-status-check-names branch November 8, 2026 06:18
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant