Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions gittensor/validator/issue_discovery/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,16 @@ def _collect_issues_from_prs(
data.closed_count += 1
continue

# Count valid solved (PR quality gate only — independent of same-account/one-per-PR)
if pr.token_score >= MIN_TOKEN_SCORE_FOR_BASE_SCORE:
data.valid_solved_count += 1

# Same-account: discoverer == solver → 0 score but credibility counts
if discoverer_id == pr.github_id:
continue

# Count valid solved (PR quality gate only — independent of same-account/one-per-PR)
# NOTE: must be after same-account guard so self-solved issues don't
# falsely count toward the eligibility threshold for the reward pool.
if pr.token_score >= MIN_TOKEN_SCORE_FOR_BASE_SCORE:
data.valid_solved_count += 1

# One-issue-per-PR: only the first (earliest-created) issue gets scored
pr_key = (pr.repository_full_name, pr.number)
if pr_key in pr_scored:
Expand Down