feat(02-01): add year_opened to all 122 hardcoded stadiums

Added year_opened field to stadium data across all 4 sport modules:
- MLB: 30 ballparks (1912-2023)
- NBA: 30 arenas (1968-2024)
- NHL: 32 arenas (1968-2021)
- NFL: 30 stadiums (1924-2020)

Updated Stadium object creation in all modules to pass year_opened.
Stadium dataclass already supported the field.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-01-10 00:31:45 -06:00
parent 95861cae40
commit 90bdf1608c
7 changed files with 178 additions and 137 deletions

View File

@@ -41,7 +41,7 @@ Plans:
**Plans**: 2 plans
Plans:
- [ ] 02-01: Audit & complete hardcoded stadium data in sport modules
- [x] 02-01: Audit & complete hardcoded stadium data in sport modules
- [ ] 02-02: Regenerate canonical data and verify pipeline
### Phase 3: Alias Systems
@@ -89,7 +89,7 @@ Phases execute in numeric order: 1 → 2 → 3 → 4 → 5 → 6
| Phase | Plans Complete | Status | Completed |
|-------|----------------|--------|-----------|
| 1. Script Architecture | 3/3 | Complete | 2026-01-10 |
| 2. Stadium Foundation | 0/2 | Planned | - |
| 2. Stadium Foundation | 1/2 | In progress | - |
| 3. Alias Systems | 0/TBD | Not started | - |
| 4. Canonical Linking | 0/TBD | Not started | - |
| 5. CloudKit CRUD | 0/TBD | Not started | - |

View File

@@ -10,27 +10,28 @@ See: .planning/PROJECT.md (updated 2026-01-09)
## Current Position
Phase: 2 of 6 (Stadium Foundation)
Plan: 0 of TBD in current phase
Status: Ready to start
Last activity: 2026-01-10 — Completed Phase 1 (Script Architecture)
Plan: 1 of 2 in current phase
Status: In progress
Last activity: 2026-01-10 — Completed Plan 02-01 (Stadium Data Audit & Completion)
Progress: ████░░░░░░ 17% (1 of 6 phases complete)
## Performance Metrics
**Velocity:**
- Total plans completed: 3
- Average duration: 7.7 min
- Total execution time: 23 min
- Total plans completed: 4
- Average duration: 7.5 min
- Total execution time: 30 min
**By Phase:**
| Phase | Plans | Total | Avg/Plan |
|-------|-------|-------|----------|
| 1. Script Architecture | 3/3 | 23 min | 7.7 min |
| 2. Stadium Foundation | 1/2 | 7 min | 7 min |
**Recent Trend:**
- Last 5 plans: 01-01 (5 min), 01-02 (10 min), 01-03 (8 min)
- Last 5 plans: 01-01 (5 min), 01-02 (10 min), 01-03 (8 min), 02-01 (7 min)
- Trend: Consistent
## Accumulated Context
@@ -46,6 +47,8 @@ Recent decisions affecting current work:
- **01-02**: Each module has hardcoded stadium list with coordinates as reliable fallback
- **01-03**: NFL uses cross-calendar-year season format (2025-26) like NBA/NHL
- **01-03**: Non-core sports (WNBA, MLS, NWSL, CBB) remain inline with TODO markers
- **02-01**: Used original opening years (not renovation years) for year_opened field
- **02-01**: Stadium dataclass already supported year_opened - no changes needed to core.py
### Deferred Issues
@@ -58,6 +61,6 @@ None yet.
## Session Continuity
Last session: 2026-01-10
Stopped at: Completed Phase 1 (Script Architecture)
Stopped at: Completed Plan 02-01 (Stadium Data Audit & Completion)
Resume file: None
Next action: Begin Phase 2 (Stadium Foundation)
Next action: Execute Plan 02-02 (Pipeline Regeneration)

View File

@@ -0,0 +1,34 @@
# Phase 2 Plan 01: Stadium Data Audit & Completion Summary
**Added year_opened field to all 122 hardcoded stadiums across MLB, NBA, NHL, and NFL modules.**
## Accomplishments
- Audited all 4 sport modules confirming expected stadium counts:
- MLB: 30 stadiums
- NBA: 30 stadiums
- NHL: 32 stadiums
- NFL: 30 stadiums (includes 2 shared: SoFi Stadium, MetLife Stadium)
- Verified Stadium dataclass in core.py already has `year_opened: Optional[int] = None`
- Added year_opened to all hardcoded stadium dictionaries
- Updated Stadium object creation in all 4 modules to pass year_opened
## Files Modified
- `Scripts/mlb.py` - Added year_opened to 30 ballparks, updated Stadium creation
- `Scripts/nba.py` - Added year_opened to 30 arenas, updated Stadium creation
- `Scripts/nhl.py` - Added year_opened to 32 arenas, updated Stadium creation
- `Scripts/nfl.py` - Added year_opened to 30 stadiums, updated Stadium creation
## Decisions Made
- Used original opening years (not renovation years) for historical accuracy
- Stadium dataclass already supported year_opened field - no changes needed to core.py
## Issues Encountered
None - all expected stadium counts matched, all fields present.
## Next Step
Ready for 02-02-PLAN.md (pipeline regeneration)