Skip to content

Let org admins bypass the UAT rules, and keep the rollout script from removing it - #502

Merged
LunaUrsa merged 1 commit into
uatfrom
ci/org-admin-uat-bypass
Nov 27, 2026
Merged

LunaUrsa merged 1 commit into
uatfrom
ci/org-admin-uat-bypass

Conversation

@LunaUrsa

Copy link
Copy Markdown
Contributor

Summary

The UAT ruleset requires an independent code-owner review for .github/, package.json and the other paths in .github/CODEOWNERS. The code-owner team can be a single person, who can't approve their own PRs, so those PRs could never merge. Org admins now have an Always bypass on the live UAT ruleset, in both TripSit/website and TripSit/TripBot.

.github/scripts/configure-cicd.py builds these rulesets, and it set the UAT bypass list to []. Its next --phase queue --apply would have quietly removed the bypass. This PR makes the script, its test and the policy docs match the live setting:

  • configure-cicd.py: the UAT bypass is now OrganizationAdmin, always. This is exactly what the live ruleset returns.
  • configure-cicd.test.py: asserts that bypass, and that the branch-invariants ruleset (no deletion or force-push) still has none.
  • CICD-POLICY.md, .github/CICD-ROLLOUT.md, docs/ci-queue-verification.md: no longer say UAT has no bypass.

Only the org's two admin accounts get the bypass. Maintainers still need an approval for sensitive paths. The Main ruleset and the promotion flow are unchanged.

The same change is in TripSit/TripBot (PR opened alongside this one); the two patches are identical.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore
  • Other (describe above)

Test plan

  • python3 .github/scripts/configure-cicd.test.py: 5 pass.
  • node --test .github/scripts/release-policy.test.mjs: 17 pass.
  • python3 .github/scripts/configure-cicd.py --repository <repo> --phase queue (dry run) plans exactly the bypass the live UAT ruleset already has.

🤖 Generated with Claude Code

… removing it

The UAT ruleset requires an independent code-owner review for .github/,
package.json and other sensitive paths. The code-owner team can be one
person, who can't approve their own PRs, so those PRs could never merge.
Org admins now have an "always" bypass on the live UAT ruleset in both
repositories. configure-cicd.py set the UAT bypass list to empty, so its
next --apply would have silently removed that. Make the script, its test
and the policy docs match the live setting. The branch-invariants ruleset
(no deletion or force-push) still has no bypass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LunaUrsa

Copy link
Copy Markdown
Contributor Author

The matching TripBot change is TripSit/TripBot#1596.

@LunaUrsa
LunaUrsa disabled auto-merge November 27, 2026 03:53
@LunaUrsa
LunaUrsa merged commit 582fe61 into uat Nov 27, 2026
12 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 27, 2026
@LunaUrsa
LunaUrsa deleted the ci/org-admin-uat-bypass branch November 28, 2026 18:23
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.

1 participant