Repository navigation
fix(source-control): hold pr-merge enqueues on a human veto comment - #9308
Conversation
…path pr-merge's --authority pr-merge gate read labels and a body hold before the enqueue but no comment text, so a person's "do not merge" comment did not hold a lane pull request until after it was queued. The autopilot tier's scan over human issue comments, review summaries and inline review comments moves into human_blocking_logins, the tier calls it unchanged, and the pr-merge path calls it when the tier is not configured, with the lane identity counted as automation. The veto regex is unchanged, so a bare "wait" holds nothing. Refs: #9216 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #9308 (head 41fede1)Result: no security issues found. No inline comments posted. The PR adds a fail-closed control: the
Not a finding: the PR notes it uses the default token for the extra reads, a cost and consistency follow-up with no security effect. Manifests: the PR has no critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read the full diff and I did not run the tests: the sandbox refused the What I checked
Minor, not blocking
|
…-not-merge comment
The lane path reused the tier's full scan, which matched blocking words
such as "regression" and had no release: a veto held every later run
until the comment was deleted. The lane now holds only when a person's
newest comment, review or inline comment matches HUMAN_MERGE_VETO_RE,
so a later comment from them ("go ahead") lifts it. The tier's scan is
unchanged; both read one shared corpus helper.
Refs: #9216
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub records an inline-only review, and an Approve with no text, as a review summary with an empty body and a later submittedAt, so the newest-item rule let that empty summary lift the veto with nothing said. Items with no text no longer count as anyone's newest comment. Refs: #9216 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and collaborators On a public repository any commenter could hold a lane pull request. The lane veto now reads only comments whose author_association is OWNER, MEMBER or COLLABORATOR (the policy's BLOCKER_ASSOCIATIONS); everyone else's comments hold nothing and do not count as newest. Refs: #9216 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs: #9216
Summary
The third checkbox of #9216: pr-merge now checks a person's merge-veto comment (the
HUMAN_MERGE_VETO_REphrase) before it enqueues a pull request. Before this, the--authority pr-mergegate read labels and aHold:body line before the enqueue but no comment text. A comment only counted after the pull request was queued, throughlane_queued_at_head.Fix
_human_commentsreader. The tier's scan,human_blocking_logins, is unchanged.--authority pr-merge, no tier) runshuman_veto_logins. It holds when the newest comment from anOWNER,MEMBERorCOLLABORATOR(author_association) matchesHUMAN_MERGE_VETO_RE. A later comment from that person lifts the hold, and so does editing the veto away. Another person's comment does not lift it, and neither does an item with no text (an Approve with no comment, or the empty summary of an inline-only review).merge.agent-identityand bots count as automation. The blocker readshuman merge veto from <logins> -- ....docs/conventions/pr-pipeline/README.md(The pr-merge lane) and thebabysit_merge.pymodule docstring.Verification
python3 -m unittest discoveroverplugins/source-control/skills/babysit-prs/scripts/tests(test_babysit_*.py): 2290 tests, OK, after mergingorigin/main(perf(pr-pipeline): cap each gate candidate so one slow PR cannot hold the queue #9301).NONE/CONTRIBUTOR/FIRST_TIME_CONTRIBUTORvetoes holding nothing whileOWNER/MEMBER/COLLABORATORones hold, a bot or lane-identity comment, another authority (no scan), the tier not repeating the scan, and amain()lane run refusing the enqueue. Each hold or lift test failed against the code before it.scripts/check-affected.sh --tests: 13 passed, 1 skipped (pre-push, on the merged head).check-affected.shlists, which run in CI.Related
_lane_evidence's reads onto the verdict reader's token. This reader still uses the default token, as the tier does: three paginated GETs per candidate. A follow-up could pass the sameenv_overrides.🤖 Generated with Claude Code