feat(scoring): explain issue-discovery validity floor in score breakdown#2003
feat(scoring): explain issue-discovery validity floor in score breakdown#2003bohdansolovie wants to merge 4 commits into
Conversation
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-01 11:38:43 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 6 non-blocking
Why this is blocked
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.
|
Surface the upstream MIN_VALID_SOLVED_ISSUES / MIN_ISSUE_CREDIBILITY gate in explainScoreBreakdown with the same neutral/full/blocked pattern used for merged-PR history, so linked-issue previews show an actionable lever. Co-authored-by: Cursor <cursoragent@cursor.com>
Handle inactive linked-issue mode and partial history inputs explicitly so breakdown wording matches upstream gating in preview.ts. Co-authored-by: Cursor <cursoragent@cursor.com>
Fork workflows cannot read CODECOV_TOKEN, so protected-branch uploads fail with "Token required". Only fail CI on upload errors for trusted runs (main pushes and upstream-repo PRs). Co-authored-by: Cursor <cursoragent@cursor.com>
ab19f51 to
c6b6013
Compare
Tie score-breakdown expectations to the same sanitizer used at export time so raw "credibility" multiplier copy and public "private context" output are tested as one contract. 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 #2003 +/- ##
==========================================
- Coverage 95.69% 0 -95.70%
==========================================
Files 222 0 -222
Lines 24584 0 -24584
Branches 8923 0 -8923
==========================================
- Hits 23526 0 -23526
+ Misses 433 0 -433
+ Partials 625 0 -625 🚀 New features to boost your workflow:
|
JSONbored
left a comment
There was a problem hiding this comment.
See blockers as well as merge conflicts, closing.
Summary
issueDiscoveryHistoryBreakdowntoexplainScoreBreakdownso contributors see when upstreamMIN_VALID_SOLVED_ISSUES/MIN_ISSUE_CREDIBILITYfloors apply.preview.tsinvariants: neutral when linked-issue mode is inactive, when both history fields are unobserved, or when only one ofvalidSolvedIssues/issueCredibilityis present; full/blocked only when linked-issue scoring is active and both fields are observed.main(includes feat(scoring): surface the non-code line cap in the score breakdown #1978nonCodeLineCapbreakdown); resolves conflicts from closed feat(scoring): explain issue-discovery validity floor in score breakdown #1984.Supersedes #1979 and #1984.
Test plan
npx vitest run test/unit/score-breakdown.test.ts(18 tests)Made with Cursor