Load master repo weights from on-chain registry - #1668
Open
LandynDev wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of repo-registration phase 2a (task 2a-5). Stacked on #1667 — merge order #1665 -> #1666 -> #1667 -> this.
repo_registry/loader.py:RegistryLoaderreads the registry once per scoring round at the snapshot block hash (atomic across validators), decodes the FP6 hyperparam table (keys 1-26), memoizes per snapshot, and maintains a last-good disk cacheload_weights.pyboundary: contractgithub_idresolves to lowercaseowner/namedict keys — downstream scoring sees zero changes; renames appear as a new key next snapshot (forward-only, no history migration)set_pausedrollback is not defeated by stale cache. Worst case = today's behavior.issue_discovery_sharedefault fix:DEFAULT_ISSUE_DISCOVERY_SHARE0.5 -> 0.0. Bug: novel repos entering via consensus inherited the 0.5 default, silently diverting half their slice to issue discovery (17/18 live repos use 0.0). All baked entries set the field explicitly, so baked behavior is unchanged. Regression tests included. (Checked das-gittensor: only aggregatesissue_discovery_scoreDB columns, no mirrored default constant — no cross-repo change needed.)Tests: +26 (ladder legs, shim + rename, snapshot atomicity, discovery-share regression, novel-repo consensus entry); full suite 1123 passed; ruff clean.