Make PR closeout work-conserving across review and CI#212
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
WalkthroughThe PR separates current-head reviewer checks from validation CI, requiring complete review-wave settlement and reviewer artifacts before consolidated triage. It permits independent closeout work, invalidates both cohorts after pushes, updates continuation guidance, and adds contract tests and validation wiring. ChangesReview closeout coordination
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant PRBatchCoordinator
participant ReviewGate
participant gh_pr_checks
participant ReviewerArtifacts
PRBatchCoordinator->>ReviewGate: resolve expected review cohort
ReviewGate-->>PRBatchCoordinator: REVIEW_CHECK_NAMES_JSON
PRBatchCoordinator->>gh_pr_checks: poll expected checks
gh_pr_checks-->>PRBatchCoordinator: terminal check states
PRBatchCoordinator->>ReviewerArtifacts: snapshot current-head artifacts
ReviewerArtifacts-->>PRBatchCoordinator: reviewer outputs and dispositions
PRBatchCoordinator->>PRBatchCoordinator: perform one consolidated fetch and triage
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by #213, recreated from an upstream-owned branch after repository write access was granted. The replacement uses the same validated commit and preserves the original scope. |
Why
PR closeout currently serializes bounded CI/reviewer polling ahead of review triage. That leaves runnable closeout work idle and can cause partial reviewer triage when only the hardcoded Claude check has completed.
What changed
address-reviewfail closed on missing, pending, malformed, or unknown reviewer-wave state instead of fetching partial feedbackVerification
ruby skills/pr-batch/bin/review-wave-contract-test.rbruby skills/pr-batch/bin/single_target_entrypoint_test.rbruby skills/pr-batch/bin/goal-completion-contract-test.rbbash -non the updatedaddress-reviewStep 4 shell blockbin/validateon the rebased committed head (with a temporary Linuxshasum->sha256sumcompatibility shim for existing tests)Related: #179, #23. Neither issue tracks or is closed by this scheduling fix.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests