Fix MLB-wide pitching coverage validation - #62
Conversation
|
@claude please review |
|
Claude finished @Mattsface's task in 20s —— View job Review of PR #62: MLB-wide pitching coverage validationThe change does what the PR says. I found no blocking issues. Scope of this review: I read the diff for What looks good
Suggestions (non-blocking)
VerdictLooks good to merge once CI is green. Suggestion 1 is the one I'd consider before merging. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lq1wEM8iKcWF7v4T9b5akF
Summary
Fixes #61.
Prevent partial pitching data from being presented as an MLB-wide pitching baseline.
The pitching comparison now requires:
COMPLETE; and(team_id, game_pk)identity set inteam_game_pitching_linesto exactly match the corresponding stored batting identity set for the season.This closes the mixed-state hole where a historical complete batting import followed by a one-team pitching backfill could otherwise be treated as league-wide pitching coverage.
What changed
Scope
This intentionally does not redesign league completeness or add snapshot/version tracking. It only verifies that the currently stored pitching dataset covers the same stored team-game identities as the complete batting dataset before an MLB-wide pitching baseline is calculated.
Verification
Expected PR checks: