fix(review): order-swapped dual-AI tie-break stability - #3569
Conversation
Run the tie-break judge twice with reviewer order swapped on consensus disagreement, accept only swap-stable resolutions, and fall back to the existing combineReviews path on instability or judge failure. Adds observability via gittensory_ai_review_tiebreak_order_unstable_total. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Add targeted tests for parse catch, judge usage, stable inconclusive, synthesis skip path, and remaining branch coverage on the JSONbored#2997 tie-break. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 17:38:15 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3569 +/- ##
==========================================
+ Coverage 93.09% 93.11% +0.02%
==========================================
Files 301 301
Lines 31450 31546 +96
Branches 11483 11526 +43
==========================================
+ Hits 29279 29375 +96
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
Exercise judge provider_error, unparsed judge exhaustion, and consensus title case-insensitivity to clear the remaining 0.05% patch gap. Co-authored-by: Cursor <cursoragent@cursor.com>
Refactor consensus title comparison for clearer branches and add tests when tie-break judges omit consensusTitle on consensus verdicts. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
combineReviewswhen order is unstable or judge is inconclusiveTest plan
npm run typechecknpx vitest run test/unit/ai-review.test.tsCloses #2997