Skip to content

fix(scoring): report issue close-window drift#1725

Open
JSONbored wants to merge 1 commit into
mainfrom
codex/propose-fix-for-scoring-drift-bug
Open

fix(scoring): report issue close-window drift#1725
JSONbored wants to merge 1 commit into
mainfrom
codex/propose-fix-for-scoring-drift-bug

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Motivation

  • Restore reporting of MAX_ISSUE_CLOSE_WINDOW_DAYS as an unmodeled upstream constant because it controls linked-issue close-window eligibility and was mistakenly excluded, which hid a real scoring-model gap.

Description

  • Remove MAX_ISSUE_CLOSE_WINDOW_DAYS from NON_SCORING_UPSTREAM_CONSTANT_NAMES in src/scoring/model.ts so the constant surfaces in unmodeled-drift detection.
  • Update the unit test in test/unit/scoring.test.ts to assert that MAX_ISSUE_CLOSE_WINDOW_DAYS is reported by findUnmodeledUpstreamConstants while DEFAULT_PROGRAMMING_LANGUAGE_WEIGHT remains ignored.

Testing

  • Ran npx vitest run test/unit/scoring.test.ts -t "close-window", which passed (1 passed, 73 skipped).
  • Ran npm run typecheck (tsc --noEmit), which passed.
  • Attempted npm run test:ci and npm 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

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 29, 2026
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.58%. Comparing base (6228967) to head (3128aea).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

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           
Files with missing lines Coverage Δ
src/scoring/model.ts 98.11% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gittensory-orb

gittensory-orb Bot commented Jun 29, 2026

Copy link
Copy Markdown

Warning

🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨

⏸️ Gittensory review result - manual review recommended

Review updated: 2026-06-29 15:21:47 UTC

2 files · 1 AI reviewer · no blockers · readiness 68/100 · CI green · clean

⏸️ Suggested Action - Manual Review

  • Touches a guarded path — held for manual review

Review summary
The change narrows `NON_SCORING_UPSTREAM_CONSTANT_NAMES` so `MAX_ISSUE_CLOSE_WINDOW_DAYS` is reported by `findUnmodeledUpstreamConstants`, while keeping `DEFAULT_PROGRAMMING_LANGUAGE_WEIGHT` ignored as loader metadata. The updated unit test exercises both the single-gap case and ordering alongside another unmodeled constant, matching the current sorted-key implementation. This is a small, coherent fix and the post-change file content supports the intended behavior.

Nits — 2 non-blocking
  • Readiness score is below the configured threshold — Use the readiness panel as advisory maintainer context; the score does not block this PR.
  • Touches a guarded path — held for manual review — A maintainer must review and merge this change.
Signal Result Evidence
Code review ✅ No blockers 1 reviewer
Linked issue ⚠️ Missing No linked issue or no-issue rationale found.
Related work ⚠️ 2 scoped overlaps Top overlaps are listed below; lower-confidence bulk is hidden.
Review load ❌ 8/20 Readiness component derived from cached public PR metadata and labels; size label size:XS.
Validation evidence ✅ 25/25 PR body includes validation/test evidence.
Open PR queue ❌ 3/10 24 open PR(s), 11 likely reviewable, 13 unlinked.
Contributor context ✅ Confirmed Gittensor contributor JSONbored; Gittensor profile; 74 PR(s), 280 issue(s).
Gate result ⚠️ Not blocking Advisory; not blocking this PR.
Review context
  • Author: JSONbored
  • Role context: owner (maintainer lane)
  • Public audience mode: oss maintainer
  • Lane context: Repository registration is not available in the local Gittensory cache.
  • Public profile languages: not available
  • Official Gittensor activity: 74 PR(s), 280 issue(s).
  • Related work: Titles/paths share 8 meaningful terms. (PR #1679, PR #1690)
  • Related work: Titles/paths share 6 meaningful terms. (PR #1693, PR #1716)
Contributor next steps
  • Treat this as maintainer-lane context rather than normal contributor-lane activity.
  • Explain no-issue PR.
  • Review top overlaps.
  • Add scope summary.
  • Expect slower review.
  • No action.
  • Link the issue being solved, or explicitly explain why this is a no-issue PR.
  • Check active issues and PRs before submitting.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Review load = cached public PR metadata such as size labels, changed paths, and preflight status.
  • Open PR queue = repo-wide review pressure; it is not a PR quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.

🟩 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.

  • Re-run Gittensory review

@gittensory-orb gittensory-orb Bot added gittensor Gittensor contributor context gittensor:bug Gittensor-scored bug fix - worth 0.5x multiplier. labels Jun 29, 2026
@JSONbored JSONbored self-assigned this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aardvark codex gittensor:bug Gittensor-scored bug fix - worth 0.5x multiplier. gittensor Gittensor contributor context size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant