Skip to content

fix: lower Excellent rating threshold from 90% to 80%#202

Merged
bug-ops merged 1 commit intomainfrom
201-excellent-scoring-tier-unreachable
Mar 25, 2026
Merged

fix: lower Excellent rating threshold from 90% to 80%#202
bug-ops merged 1 commit intomainfrom
201-excellent-scoring-tier-unreachable

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 25, 2026

Summary

  • Lowers the Excellent performance tier threshold from 90% to 80% so it is reachable with all existing scenarios
  • Adjusts remaining tiers: Good 60-79%, Fair 40-59%, Poor <40%
  • Adds regression tests verifying Excellent is achievable with optimal_count <= 7

Root cause

The Excellent tier (90-99%) was mathematically unreachable: with optimal_count <= 7 (current max in all scenario files), the first suboptimal score is floor(7/8 * 100) = 87%, which fell into Good, skipping Excellent entirely. The tier existed in code but was never shown to users.

Fix

Lower Excellent threshold to 80%. With this change:

  • optimal=4, actual=5 → 80% = Excellent
  • optimal=7, actual=8 → 87% = Excellent

Test plan

  • cargo nextest run — all 1857 tests pass
  • cargo clippy --all-targets --all-features -- -D warnings — no warnings
  • cargo +nightly fmt --check — no formatting issues
  • New regression tests verify Excellent is reachable with realistic scenario data

Closes #201

The Excellent tier (previously 90-99%) was mathematically unreachable
with all existing scenarios where optimal_count <= 7. With optimal=7
and actual=8 the score is 87%, which skipped directly from Perfect to Good.

Lower Excellent to 80-99%, Good to 60-79%, Fair to 40-59%, Poor to <40%.
With the new thresholds, optimal=4/actual=5 (80%) and optimal=7/actual=8
(87%) both correctly yield Excellent.

Add regression tests verifying Excellent is reachable with realistic
scenario data.
@github-actions github-actions bot added the bug Something isn't working label Mar 25, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 25, 2026 23:20
@github-actions github-actions bot added documentation Improvements or additions to documentation game Game logic and sessions labels Mar 25, 2026
@bug-ops bug-ops merged commit daa5787 into main Mar 25, 2026
18 checks passed
@bug-ops bug-ops deleted the 201-excellent-scoring-tier-unreachable branch March 25, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation game Game logic and sessions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Excellent scoring tier (90-99%) is unreachable in all current scenarios

1 participant