fix(scoring): report issue close-window drift#1725
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1725 +/- ##
=======================================
Coverage 95.58% 95.58%
=======================================
Files 204 204
Lines 22314 22314
Branches 8066 8066
=======================================
Hits 21329 21329
Misses 408 408
Partials 577 577
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-29 15:21:47 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 2 non-blocking
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.
|
Motivation
MAX_ISSUE_CLOSE_WINDOW_DAYSas an unmodeled upstream constant because it controls linked-issue close-window eligibility and was mistakenly excluded, which hid a real scoring-model gap.Description
MAX_ISSUE_CLOSE_WINDOW_DAYSfromNON_SCORING_UPSTREAM_CONSTANT_NAMESinsrc/scoring/model.tsso the constant surfaces in unmodeled-drift detection.test/unit/scoring.test.tsto assert thatMAX_ISSUE_CLOSE_WINDOW_DAYSis reported byfindUnmodeledUpstreamConstantswhileDEFAULT_PROGRAMMING_LANGUAGE_WEIGHTremains ignored.Testing
npx vitest run test/unit/scoring.test.ts -t "close-window", which passed (1 passed, 73 skipped).npm run typecheck(tsc --noEmit), which passed.npm run test:ciandnpm audit --audit-level=moderate, but those could not be completed locally due to environment/network limitations (actionlint setup retries / npm audit 403), so the full CI gate was not run here.Codex Task