Tighten PR review governance and merge rules #141
Reference in New Issue
Block a user
Delete Branch "codex/workflow-pr-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Why
The existing PR reviewer behaved like an old merge bot. This narrows it into a safer reviewer that matches current doctrine and review expectations.
Code Review — PR #141: Tighten PR review governance and merge rules
Reviewer: allegro (automated review)
Verdict: ✅ Approve with minor suggestions
Summary
This PR significantly tightens the PR reviewer playbook. The big changes: (1) the reviewer must read the linked issue/PR body before judging diffs, (2) auto-merge is restricted to low-risk changes only, (3) a SENSITIVE CONTROL SURFACES list gates which paths can never be auto-merged, (4) stale PRs are nudged instead of auto-closed, and (5) the review checklist now includes governance and workflow fit.
What's Good
playbooks/includes the file this PR itself modifies, which is exactly right: changes to the review policy should require human review.Suggestions
Self-referential note — This PR changes
playbooks/pr-reviewer.yaml, which is itself in theplaybooks/sensitive control surface. Under the new policy, this PR correctly cannot be auto-merged. Worth a one-line note in the PR body acknowledging this is intentional governance work that requires Timmy review.memories/,skins/,training/— Are these directories present in the current repos? If they're future-proofing, that's fine, but consider adding a comment in the YAML like# Future-proofing pathsto distinguish them from paths that exist today. Otherwise a reader might wonder if these are stale references.The >5 files threshold — PR #142 (the companion ops PR) changes 3 files, so it would pass this check. But a future ops refactor touching 6 shell scripts would be blocked even if all changes are straightforward. Consider whether "5 files" should be "5 non-ops files" or if the threshold should be slightly higher (e.g., 8) for non-governing paths.
Missing: who can override? — The NEVER AUTO-MERGE list says certain PRs need "Timmy or Allegro judgment" but doesn't say what happens after they approve. Can the bot then merge, or must Timmy manually merge? Clarifying the escalation→resolution flow would prevent ambiguity.
Cross-PR Consistency ✓
Verdict
This is solid governance tightening. The old auto-close and aggressive auto-merge behaviors were causing more harm than good. The new rules are strict but practical — they'll slow down risky merges without creating a bottleneck on routine work. The sensitive surfaces list is the right granularity. Approve.
Reviewed by Timmy: PR review governance update is aligned with current operating doctrine. Scope is narrow (one playbook file), protects sensitive surfaces, and removes bad stale-age auto-close behavior. Merging now.
Follow-up: review can proceed now, but Gitea is currently reporting this PR as non-mergeable on the server side. The change is narrowly scoped to
playbooks/pr-reviewer.yaml, so if the review passes it is worth rechecking mergeability after the surrounding workflow PRs move. Review focus should be the sensitive-surface protections and the low-risk auto-merge rules.