Skip to content

fix: history command shows n/a for non-scorable repos instead of 100.0/A#68

Merged
hummbl-dev merged 2 commits into
mainfrom
fix/codex/history-non-scorable-na
May 13, 2026
Merged

fix: history command shows n/a for non-scorable repos instead of 100.0/A#68
hummbl-dev merged 2 commits into
mainfrom
fix/codex/history-non-scorable-na

Conversation

@hummbl-dev
Copy link
Copy Markdown
Owner

Summary

Root Cause

cmd_history() used _score_to_grade() which blindly maps any numeric score to a letter grade, showing non-scorable repos (0 Python LOC) as 100.0 A. Meanwhile cmd_analyze() correctly shows n/a (N/A).

Fix

  • Replaced _score_to_grade() calls in cmd_history (both markdown and plain-text paths) with _grade_score(score, total_loc) which correctly returns "N/A" when total_loc <= 0
  • Score column now displays n/a instead of the meaningless 100.0 for non-scorable repos
  • Removed now-dead _score_to_grade() function

Files Changed

  • src/arbiter/__main__.py: Updated cmd_history to use _grade_score and display n/a for non-scorable repos

@hummbl-dev hummbl-dev merged commit 007f856 into main May 13, 2026
1 of 3 checks passed
@hummbl-dev hummbl-dev deleted the fix/codex/history-non-scorable-na branch May 13, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: history command shows non-scorable repos as 100.0/A instead of N/A

1 participant