Skip to content

fix(source-control): recognize the PR Review Security caller's security-review check - #16094

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/babysit-security-check-display-name
Nov 14, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/babysit-security-check-display-name

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: melodic-software/standards#985

Summary

A synced security-review caller whose job carries the display name PR Review Security reports its check as PR Review Security / security-review. The babysit merge gate matched only pr-review-security / security-review, so on such a pull request it read the security review as not succeeded and never armed auto-merge. standards#985 gives the synced caller that display name.

Fix

  • babysit_merge.py AI_REVIEW_CHECKS: accept PR Review Security / security-review (whole-name match). The code lane's PR Review / claude-review-status is already covered by the bare claude-review-status entry.
  • babysit_review_evidence.py LANES and babysit_merge_policy.py REVIEW_LANES (the cost-hold read): add PR Review Security / security-review and PR Review / claude-review-status. Both tables match by exact name and already listed the lower-case forms of the standards-synced callers.
  • The /source-control:pull-request merge script (reference/providers/github/pull-request/merge.md) and the merge and safety docs name the same checks.
  • Unchanged: .github/scripts/pr-merge/merge-holds.mjs REVIEW_LANES, clear-escalations.mjs LANE_RECORDS and pr-require-checks.yml. They read only this repository's own pr-review-security-hosted.yml, which runs pr-review-cli.yml and reports review-status.

Verification

  • python3 -m unittest discover over test_babysit_merge.py (164 tests), test_babysit_review_evidence.py (282), test_merge_holds_sync.py (21), test_babysit_merge_*.py (1188) and the lane binding and lane-run tests (200): all pass.
  • New tests: a successful PR Review Security / security-review arms auto-merge, a failing one holds, and both new names map to their lanes in lane_of_job.
  • scripts/run-ruff.sh check on the changed Python passes.

Related

🤖 Generated with Claude Code

…ty-review check

A synced security caller whose job carries the display name `PR Review
Security` reports `PR Review Security / security-review`. The babysit
merge gate matched only `pr-review-security / security-review`, so it read
the security review as not succeeded and never armed auto-merge.

Add the display-named check to the gate's AI_REVIEW_CHECKS, and add it
and `PR Review / claude-review-status` to the review-evidence LANES and
the cost-hold REVIEW_LANES tables, the pull-request merge script, and the
merge and safety docs. Tests cover the passing and failing display-named
security check and the lane mapping of both new names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T02:21:36.880176Z 3d37715 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.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 4e026f5b341710ebb09f2b4f0a048e8627a65420: no file of this pull request changed since the review of 3d37715.

Code review: no findings

I read every hunk of all 9 changed files in the full diff. I also read the unchanged code those lines feed: AI_REVIEW_CHECKS and is_ai_review_check in babysit_merge.py, lane_of_job and CALLER_JOBS in babysit_review_evidence.py, and the jq lane() gate in the pull-request merge script.

The change. A synced security caller can report its check as PR Review Security / security-review. The PR adds that name, and its code-lane counterpart PR Review / claude-review-status, to the tables that match lanes by exact name.

Correctness

  • babysit_merge.py: the new PR Review Security / security-review entry contains /, so is_ai_review_check compares it against the whole check name. A generic security-review job under some other caller still does not count, and the new test's PR Review / security-review → "" case covers that. The code lane's PR Review / claude-review-status was already accepted through the bare claude-review-status segment, so leaving it out of this table is correct.
  • babysit_review_evidence.py: LANES gains both display names. lane_of_job matches by exact name, so the new names map to their lanes and nothing else changes. CALLER_JOBS comes from the caller prefixes, and PR Review and PR Review Security were already in it, so the caller-workflow checks are unchanged.
  • babysit_merge_policy.py: REVIEW_LANES gains the same two names. Nothing in the repository keeps this table in sync with .github/scripts/pr-merge/merge-holds.mjs; I searched for one and found none. The PR explains why merge-holds.mjs stays unchanged: it reads only this repository's own pr-review-security-hosted.yml.
  • The jq gate in reference/providers/github/pull-request/merge.md and the two prose docs now list the same names as the Python tables.

Tests. Two new tests check that a successful display-named security check arms auto-merge and a failing one holds with the security-lane blocker. The lane_of_job table test gains both new names plus a negative case, so a regression in any of the changed tables would fail a test. The author reports running the test suites and ruff; I did not run them, since this lane has no shell.

Closing issue. The PR only references melodic-software/standards#985 and closes no issue, so I had no acceptance criteria to check.

Changelog. The fragment's bump: patch fits a bug fix that only accepts additional check names. No plugin manifest changed.

Trusted paths. babysit_merge.py, babysit_merge_policy.py and babysit_review_evidence.py match trusted-path globs. I read their whole changes and what they gate. Each change only adds an exact caller-qualified check name to a lane's list, so it does not widen the gate beyond those names.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #16094 (head 4e026f5)

I found no security issues.

What changed

The PR adds two display-name check names to the babysit merge gate and its matching tables:

  • PR Review Security / security-review is added to AI_REVIEW_CHECKS in babysit_merge.py, REVIEW_LANES in babysit_merge_policy.py and LANES in babysit_review_evidence.py.
  • PR Review / claude-review-status is added to REVIEW_LANES in babysit_merge_policy.py and LANES in babysit_review_evidence.py.

The /source-control:pull-request merge script, the gate docs and the tests list the same names. I read the whole change in all 9 listed files.

Merge-hold control (trusted paths babysit_merge.py, babysit_merge_policy.py, babysit_review_evidence.py)

  • How the gate matches checks. babysit_merge.py#L343-L346 matches any name containing / against the whole check name only. The new entry is caller-qualified, so a stray job called security-review under some other caller still does not satisfy the security lane. The new test "PR Review / security-review": "" covers this case for lane_of_job.
  • Effect of adding a name. Under babysit_merge.py#L2125-L2134, every matching check must have effective_state == "SUCCESS". On a head that already carries an accepted name, the new name only adds another check that must pass. The single relaxation is a head whose only security check is the new display-named one: before this PR it held, now it passes when that check succeeds. That is the stated intent: the same caller job, now under its display name.
  • Spoofing. A pull request could add a workflow that emits a check under this name. The existing pr-review-security / security-review entry has the same name-only exposure, so this PR adds no new kind of exposure. Under the owner's throughput-phase threat model, the only pull request authors are the owner, its bots and its agents, so the diff admits no new actor.
  • Other gates. The repository's own merge-hold gates (merge-holds.mjs, clear-escalations.mjs, pr-require-checks.yml) are unchanged.

Other controls and instructions

  • No trusted-actor list, token scope, kill switch, workflow permissions:, or plugin manifest is touched.
  • The doc edits only add names to the existing accepted-name lists. No standing instruction is deleted or softened, so the instruction-surface lens finds nothing.

Embedded text

The PR context contains no directive aimed at the review lane.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit d4bcee0 Nov 14, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the fix/babysit-security-check-display-name branch November 14, 2026 03:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 2026
kyle-sexton added a commit to melodic-software/standards that referenced this pull request Nov 14, 2026
Refs: #985

## Summary

The naming lint's `job-name` rule warned about 25 jobs in this
repository that had no display name. Each now has a Title Case `name:`.
Job ids are unchanged.

## Fix

- Add `name:` to 25 jobs across 9 workflow files (16 in
`pr-require-checks.yml`).
- The callers of the review lanes are named `PR Review` and `PR Review
Security`, so their checks read `PR Review / <job>` and `PR Review
Security / <job>`.
- The gate's header comment names the required check `CI Status`.

## Verification

- The naming lint, run locally in enforcing mode before the change and
after, went from 25 `job-name` warnings to 0.
- `CI Status` on this pull request runs the lint and the workflow tests.
- Readers of the changed check names: the babysit merge gate learned `PR
Review Security / security-review` in
melodic-software/claude-code-plugins#16094 (merged). No hub script
matches a standards job by name.

## Related

- #985 flips `displayNameLevel` to `error` once standards, ci-workflows
and claude-code-plugins report no `job-name` or `step-name` warning.
ci-workflows' reusable-workflow jobs follow in their own pull request.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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