fix(engine): restore default blend on NaN/negative calibration weights - #8721
fix(engine): restore default blend on NaN/negative calibration weights#8721joaovictor91123 wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8721 +/- ##
==========================================
- Coverage 93.79% 93.77% -0.02%
==========================================
Files 797 797
Lines 79477 79492 +15
Branches 24078 24087 +9
==========================================
+ Hits 74542 74547 +5
- Misses 3563 3566 +3
- Partials 1372 1379 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 01:07:02 UTC
Review summary Nits — 5 non-blocking
CI checks failing
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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
gate-verdict,reviewer-consensus, andfinding-severitynormalizeCompositeWeightswithpairwise-calibration.ts: NaN/negative weights fall back to each file's documented default blend instead of collapsing to a 100%-objective-anchor composite.pairwise-calibration.test.ts).Closes #8643
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) - a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ?99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
packages/loopover-enginecalibration composers and their unit tests. Validated withtsc+ targetednode --testfor the invalid-weight and explicit all-zero cases in all three suites (plus pairwise). Fullcodecov/patchwill run in CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Not applicable - engine-only change, no visible UI.
Notes
isInvalidWeight()distinction already present inpairwise-calibration.ts(fix(engine): pairwise-calibration.js's normalizePairwiseWeights silently restores the default 50/50 blend on explicit all-zero weights, unlike its three sibling calibration modules (#6170 precedent) #7443).