fix(engine): preserve explicit zero pairwise calibration weights - #7477
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Closes JSONbored#7443 Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7477 +/- ##
==========================================
+ Coverage 91.36% 91.40% +0.04%
==========================================
Files 717 717
Lines 73020 73029 +9
Branches 21632 21636 +4
==========================================
+ Hits 66717 66755 +38
+ Misses 5265 5227 -38
- Partials 1038 1047 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-20 11:58:16 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
normalizePairwiseWeightsso explicit all-zero weights pass through as zeros instead of silently restoring the default 50/50 blend.computePairwiseCalibrationScore, matching the fix(engine): backport reviewer-consensus-calibration.ts's zero-weight and malformed-repo handling to its two older siblings #6170 sibling pattern.Closes #7443
Test plan
pairwise-calibrationnode:test suite (11 pass)npx vitest run test/unit/engine-calibration-convergence.test.tsgit diff --checkcodecov/patch≥99%)