Skip to content

feat(cli): show repo allocation in miner score#1284

Open
bittoby wants to merge 1 commit into
entrius:testfrom
bittoby:feature/miner-score-allocation-breakdown
Open

feat(cli): show repo allocation in miner score#1284
bittoby wants to merge 1 commit into
entrius:testfrom
bittoby:feature/miner-score-allocation-breakdown

Conversation

@bittoby
Copy link
Copy Markdown
Contributor

@bittoby bittoby commented May 14, 2026

Summary

Add a per-repository emission allocation breakdown to gitt miner score.

The JSON output now includes an allocation_breakdown array showing each relevant repository’s emission slice, PR/issue split, miner scores, and allocated rewards. The normal table output also includes a compact repo allocation table.

This makes the final blended reward easier to understand after repo-bounded emission allocation.

Related Issues

Closes #1283

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested
.venv/bin/python -m pytest tests/validator/test_blend_emission_pools.py tests/cli/test_miner_score.py
.venv/bin/python -m ruff check gittensor/validator/emission_allocation.py gittensor/cli/miner_commands/score.py tests/validator/test_blend_emission_pools.py tests/cli/test_miner_score.py
.venv/bin/python -m ruff format --check gittensor/validator/emission_allocation.py gittensor/cli/miner_commands/score.py tests/validator/test_blend_emission_pools.py tests/cli/test_miner_score.py
git diff --check

Results:

  • 34 passed
  • Ruff check passed
  • Ruff format check passed
  • Diff whitespace check passed

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

@xiao-xiao-mao xiao-xiao-mao Bot added the enhancement New feature or request label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add repo allocation breakdown to gitt miner score

1 participant