Commit graph

1 commit

Author SHA1 Message Date
Claude
06a011f0ed
Address code review findings in AutoRacingSimulator
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m32s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Failing after 50s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
- Extract VOLATILITY_DECAY_FACTOR named constant (was magic 0.7) with docstring
- Replace two complementary allEvents.filter() calls with a single for-loop pass
- Move blendedProbs construction inside the in-season else branch (was built
  unconditionally even in pre-season where it was never read)
- Flatten nested totalCurrentPoints/pts conditions to a single ternary
- Emit a console.warn when participants are missing from standings data, so
  degraded blending is visible rather than silent
- Add AutoRacingSimulator test suite covering pre-season path, in-season
  standings-dominant blending, zero-points fallback, missing-standings warning,
  schedule_event exclusion, and column normalization

https://claude.ai/code/session_01FyG28zxsjSrgr8aKYuy6xY
2026-06-15 01:31:43 +00:00