Repository navigation
ci(ui-approval): carry an approval to a descendant head with no UI change (R29) - #25860
Merged
Merged
Conversation
…ange (R29) David ruled 2026-11-20 (R29) that /approve-ui stays valid across heads when the UI did not change. #25771 needed two hand re-approvals after backend-only fix rounds. The carry applies only when: - the newest approver command on the PR approves an earlier head, and no command names the current head (any later /reject-ui withdraws it); - the approved head is an ancestor of the current head (compare status ahead/identical), so the compared range is exactly approved..current; and - that range touches no UI path, including Swift UI found by content. A rebase, force-push, UI change, truncated range or read failure still needs a fresh approval. The bot notice is posted only when approval is still missing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This implements David's R29 ruling (2026-11-20, omi-workspace
2a41cff). An/approve-uiapproval now stays valid on a later head when that head only adds commits on top of the approved one and none of them touch UI. Today every new head clears the approval. On #25771 that meant two hand re-approvals after backend-only fix rounds (SCA-3062/SCA-3063).An approval carries forward only when all three conditions hold:
/approve-uifor an earlier head, and no command names the current head. Any later/reject-uiwithdraws it.aheadoridentical). The compared range is then exactly approved..current.evidence()reads as the main check.Anything else still needs a fresh approval: a rebase, a force-push, a UI change, a truncated or unreadable range, or a newer command on the current head. The bot notice is now posted only while approval is actually missing.
Tests
node --test .github/scripts/tests/ui-author-approval.test.cjs: 23 pass, 5 of them new. The new tests cover the carry candidate rules, howdecision()treats a carried approval, an end-to-end carry, refusals (UI, renamed UI, rebase, behind, truncated range, later reject) and the Swift content scan inside the range.scripts/pr-preflight: 14 checks pass.Risk and rollback
The gate is not loosened for UI changes. The workflow runs the script from
github.workflow_sha(main), so this takes effect for every PR once merged. Rollback is reverting this commit.🤖 Generated with Claude Code