From 1004584167e09c21eed9cc7292436fc700db3720 Mon Sep 17 00:00:00 2001 From: aliyuldashev Date: Sat, 7 Feb 2026 09:29:13 +0900 Subject: [PATCH 1/3] refactor: sort scored commits by timestamp before updating miner scores --- src/validator/_core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/validator/_core.py b/src/validator/_core.py index 9d5bb54..5fc8cd7 100644 --- a/src/validator/_core.py +++ b/src/validator/_core.py @@ -5,6 +5,7 @@ import traceback from copy import deepcopy + import requests import numpy as np import bittensor as bt @@ -883,13 +884,15 @@ def _sync_state_from_scored_commits( ): self.miner_commits[key][challenge_name] = latest - # Push latest per UID into challenge manager's miner_states + scored_commits_sorted_by_timestamp = sorted( + scored_commits, key=lambda x: x.scored_timestamp or 0 + ) if latest_commits and challenge_name in self.challenge_managers: self.challenge_managers[challenge_name].update_miner_infos( latest_commits ) self.challenge_managers[challenge_name].update_miner_scores( - latest_commits + scored_commits_sorted_by_timestamp ) except Exception as e: From c80d1c09d2890a79bfc6356d0d7151b904f11481 Mon Sep 17 00:00:00 2001 From: aliyuldashev Date: Sat, 7 Feb 2026 17:43:55 +0900 Subject: [PATCH 2/3] feat: remove all comparison logs that are lower then highest penalty --- src/validator/_core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/validator/_core.py b/src/validator/_core.py index 5fc8cd7..ac34c34 100644 --- a/src/validator/_core.py +++ b/src/validator/_core.py @@ -437,6 +437,7 @@ def get_centralized_scoring_results( # Only include commits that have been scored (have scoring_logs) if validated_commit.scoring_logs: validated_commit.remove_redundant_logs() + validated_commit.remove_lower_than_highest_score() scored_commits.append(validated_commit) except Exception as e: @@ -872,6 +873,7 @@ def _sync_state_from_scored_commits( key=lambda x: x.scored_timestamp or 0, ) latest.remove_redundant_logs() + latest.remove_lower_than_highest_score() latest_commits.append(latest) # Update miner_commits map From 9ecfbe3632953a44affc330cb684d3772d641fdc Mon Sep 17 00:00:00 2001 From: Batkhuu Byambajav Date: Tue, 10 Feb 2026 14:33:19 +0900 Subject: [PATCH 3/3] ci: update actions/checkout to v6 in workflow files and dependabot configuration --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/1.bump-version.yml | 2 +- .github/workflows/2.build-publish.yml | 2 +- .github/workflows/3.create-release.yml | 2 +- .github/workflows/4.update-changelog.yml | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5aa288d..a79b056 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,16 @@ updates: open-pull-requests-limit: 10 schedule: interval: "daily" + + - package-ecosystem: "docker" + directory: "/" + labels: + - "dependency" + - "docker" + open-pull-requests-limit: 10 + schedule: + interval: "daily" + - package-ecosystem: "docker-compose" directory: "/" labels: diff --git a/.github/workflows/1.bump-version.yml b/.github/workflows/1.bump-version.yml index 3fe4363..fc16d78 100644 --- a/.github/workflows/1.bump-version.yml +++ b/.github/workflows/1.bump-version.yml @@ -17,7 +17,7 @@ jobs: contents: write steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Bump version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/2.build-publish.yml b/.github/workflows/2.build-publish.yml index a83af30..cc17993 100644 --- a/.github/workflows/2.build-publish.yml +++ b/.github/workflows/2.build-publish.yml @@ -23,7 +23,7 @@ jobs: actions: write steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Get latest version run: | git pull origin main diff --git a/.github/workflows/3.create-release.yml b/.github/workflows/3.create-release.yml index 9654196..04ad2a0 100644 --- a/.github/workflows/3.create-release.yml +++ b/.github/workflows/3.create-release.yml @@ -23,7 +23,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Create release run: ./scripts/release.sh - name: Check Workflow diff --git a/.github/workflows/4.update-changelog.yml b/.github/workflows/4.update-changelog.yml index 01477a3..d0781dd 100644 --- a/.github/workflows/4.update-changelog.yml +++ b/.github/workflows/4.update-changelog.yml @@ -17,7 +17,7 @@ jobs: contents: write steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Update changelog env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}