fix(review): stop requiring routine PR rebases#589
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 24, 2026, 4:38 AM ET / 08:38 UTC. ClawSweeper reviewWhat this changesThis PR updates ClawSweeper’s PR-review guidance, base-drift metadata, cache invalidation, and focused tests so ordinary behind branches are non-blocking while conflicts and stale merge bases receive separate handling. Merge readinessKeep this PR open: the requested policy is still necessary and was explicitly adopted in the maintainer decision, but the current head is draft and has a real dirty merge state against current Priority: P2 Review scores
Verification
How this fits togetherClawSweeper hydrates GitHub pull-request state, derives review context, and sends that context to Codex for a maintainer-facing decision. The changed path turns mergeability and merge-base information into prompt guidance, a review-cache key, and a non-blocking freshness metric. flowchart LR
A[Pull request metadata] --> B[Mergeability assessment]
B --> C[Merge-base comparison]
C --> D[Base freshness state]
D --> E[Review prompt and cache digest]
E --> F[Codex review output]
F --> G[Maintainer-facing metric]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes review-automation policy rather than fixing a user-reported runtime failure. The relevant verification is the focused prompt and cache regression coverage plus a refreshed merge result. Is this the best way to solve the issue? Yes, the adopted distinction is the right direction: ordinary behind state should not create contributor churn, while actual conflicts and demonstrated integration failures still require resolution. The branch must first be reconciled with current main because its current merge tree is unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 822608f7ec54. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Maintainer decision (relayed from @steipete): policy adopted. Behind-only branches stop being a contributor blocker; rebase/resolve guidance is reserved for conflicts, unavailable merge trees, and concrete merge-result integration failures, with the non-blocking base-freshness note at 7+ days as proposed. Please move this out of draft and rebase onto current |
Summary
Motivation
High-throughput repositories can advance by thousands of commits per day. Commit-count drift alone therefore creates noisy, repeated contributor work without proving that a PR is unsafe to merge. This keeps contributor action tied to concrete integration evidence while retaining a simple signal for genuinely old branches.
Impact
Only PRs whose GitHub mergeable state is behind trigger the compare lookup. A stale result adds review context and a non-blocking metric for maintainers or merge automation; it does not lower the PR rating or add contributor next steps. Compare failures fail soft.
Validation
pnpm run checkpnpm run checkdid not complete because Codex runner tests reached the real Codex API and received 401 Unauthorized