Open
Conversation
Contributor
Author
|
Hi @anderdc I put this PR as we discussed on the Discord |
Shows eligibility gate progress and PR overview using miner's PAT. Fetches PRs via GitHub GraphQL, calculates credibility locally. Supports --detail for per-PR breakdown and --json-output for scripting.
bac52a5 to
63a5530
Compare
Collaborator
|
why is this even necessary if someone can look at the UI? not sure I see the actual advantage/argument for including this? |
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.
Summary
Fixes #354
Adds
gitt miner status— a lightweight CLI command that lets miners check their eligibility gate progress and PR overview without running a full validator scoring pipeline.What it does:
load_miners_prs)calculate_credibility()(pure math — merged/(merged+closed-mulligan))What it does NOT do:
LIKELY ELIGIBLEwith a caveat since thetoken_score >= 5threshold can't be verified without the full pipeline (the threshold is very low, so false positives are rare)Usage
Example Output
Design Decisions
_error,_load_config_value,_resolve_endpointfrompost.py— no duplicationbittensor,MinerEvaluation,load_miners_prs,calculate_credibilityare imported inside the function body to keepgitt --helpfastminer_eval.github_pat = Noneafter fetching (line 112)_StatusContextclass: consolidates output parameters with derived properties to keep_output_rich/_output_jsonsignatures cleanpost/check, Rich status spinners,--json-outputflagRelated Issues
Fixes #354
Type of Change
Testing
Tests added/updated
Manually tested
All imports verified against current codebase (
calculate_credibility,load_miners_prs,load_master_repo_weights,get_github_user,MinerEvaluation)All
PullRequest/MinerEvaluationattributes used exist on the dataclassesruff check— all checks passedruff format— all files formattedModule loads cleanly:
from gittensor.cli.miner_commands.status import miner_statusChecklist