Commit 41cea1c
fix(scoring): Use baseScore=100 for Skills Tracking (BUG #4)
PROBLEM:
- Skills Tracking shows Security 18/100 for 4 critical + 4 high issues
- User calculation: 100 - (4×5 + 4×3) = 100 - 32 = 68 ✅
- Actual score: 18/100 ❌
ROOT CAUSE:
- SESSION 13 FIX used baseScore=50 for Skills (neutral baseline)
- This creates confusing UX: 0 issues = 50/100 (looks like failing)
- baseScore=50: 50 - 32 = 18 (matches report but unintuitive)
USER FEEDBACK:
- "4 critical + 4 high should be 68/100, not 18/100"
- baseScore=50 suggests code is mediocre even with 0 issues
- baseScore=100 is more intuitive: starts perfect, deducts for issues
FIX APPLIED (3 locations):
1. v9-grouped-report-formatter.ts wrapper (Skills Tracking display)
2. score-calculator.ts full V9 scoring (Supabase persistence)
3. score-calculator.ts simplified scoring (fallback)
All now use baseScore=100 consistently for Skills:
- 0 issues = 100/100 (perfect) ✅
- 4 critical + 4 high = 68/100 (needs work) ✅
- Intuitive: starts perfect, issues deduct from 100
FILES:
- src/two-branch/analyzers/v9-grouped-report-formatter.ts:1142
- src/two-branch/report/score-calculator.ts:196-205, 458-466
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 325562c commit 41cea1c
2 files changed
Lines changed: 19 additions & 13 deletions
File tree
- packages/agents/src/two-branch
- analyzers
- report
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1140 | 1143 | | |
1141 | 1144 | | |
1142 | 1145 | | |
| |||
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
456 | | - | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
| |||
0 commit comments