feat(scoring): model upstream review-collateral and non-code caps (Fixes #809) - #916
feat(scoring): model upstream review-collateral and non-code caps (Fixes #809)#916kiannidev wants to merge 6 commits into
Conversation
JSONbored#809) Pull MAX_OPEN_PR_REVIEW_COLLATERAL_MULTIPLIER, MAX_LINES_SCORED_FOR_NON_CODE_EXT, and DEFAULT_ISSUE_DISCOVERY_SHARE into the scoring snapshot and apply them in preview collateral math, non-code line capping, and registry normalization defaults. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #916 +/- ##
=======================================
Coverage 96.60% 96.60%
=======================================
Files 109 109
Lines 14914 14924 +10
Branches 5390 5392 +2
=======================================
+ Hits 14408 14418 +10
Misses 104 104
Partials 402 402 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…Nbored#916) Export a typed DEFAULT_ISSUE_DISCOVERY_SHARE constant and assert registry normalization uses it when issue_discovery_share is missing or invalid. Co-authored-by: Cursor <cursoragent@cursor.com>
JSONbored
left a comment
There was a problem hiding this comment.
merge conflicts, please resubmit.
|
Hi, @JSONbored |




Summary
MAX_OPEN_PR_REVIEW_COLLATERAL_MULTIPLIER,MAX_LINES_SCORED_FOR_NON_CODE_EXT, andDEFAULT_ISSUE_DISCOVERY_SHAREto the scoring constant snapshot so upstream sync no longer drops them as unmodeled drift.reviewCollateralMultiplierand applies it to effectivecollateralFraction(OPEN_PR_COLLATERAL_PERCENT × multiplier), matching upstream'scalculate_review_collateral_multiplier.nonCodeLinesexceeds the upstream line cap (wired from local-branch analysis); registry normalization now defaults missingissue_discovery_sharefromDEFAULT_ISSUE_DISCOVERY_SHARE.Fixes #809
Test plan
npm run typechecknpm test -- test/unit/scoring.test.ts test/unit/registry.test.tsnpm run ui:openapi(OpenAPI schema includesreviewCollateralMultiplier)