feat(calibration): per-provider reviewer track records from the consensus corpus - #8238
Merged
loopover-orb[bot] merged 1 commit intoJul 23, 2026
Conversation
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8238 +/- ##
=======================================
Coverage 92.10% 92.10%
=======================================
Files 776 777 +1
Lines 78328 78387 +59
Branches 23668 23683 +15
=======================================
+ Hits 72147 72202 +55
Misses 5062 5062
- Partials 1119 1123 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
|
Important 🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪 🔍 LoopOver is reviewing…AI analysis is in progress. This comment will update when the review is complete. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟪 Reviewing |
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packages/loopover-engine/src/calibration/provider-track-record.ts(Epic: calibration expansion — self-correcting configuration and measured judgment #8211 track F):computeProviderTrackRecords(signals, cases)joins per-provider reviewer signals against the reversal-labeled corpus and reports, per (provider, repo) and per provider overall:{signals, decided, confirmed, reversed, precision|null, agreementRate|null, consensusRate|null, splitRate|null}.targetKeyjoin (undecided targets count towardsignalsbut never a rate);precision= P(label confirmed | provider votedfail) — the correct-firing-as-numerator discipline at reviewer grain;agreementRate= symmetric matched-the-human share;consensusRate/splitRatemeasured only over targets another provider also reviewed, null for one-provider corpora.ReviewerConsensusVotefrom the consensus-calibration module beside it.Closes #8228
Test plan
test/unit/provider-track-record-engine.test.ts(vitest, importing the engine source — the root mirror suite): both-provider consensus + split with per-provider precision/agreement; one-provider null consensus; undecided-target and never-voted-fail null-precision floors; zero-decided null agreement; per-repo→overall rollup equality + deterministic ordering; the no-target-key leak invariant; empty inputspackages/loopover-engine/test/provider-track-record.test.ts(node:test vs dist): barrel re-export + round-trip + null disciplinenpm run typecheckclean