docs: document cross-season stat accumulation decision + season 11 start #195
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#195
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Decision
Refractor stat accumulation is cross-season by design — a card's progress accumulates across all seasons, not reset per season. This is the intended behavior.
Critical caveat: Accumulation starts at Season 11 (launching later this month, April 2026). Stats from seasons 1–10 must NOT count toward refractor progress.
Current State
The evaluator sums stats across all seasons with no season filter. The PRD (
04-milestones.md) says "cumulative within a season" which contradicts the actual design intent.Work Needed
PlayerSeasonStatsqueries filter toseason_id >= 11(or whatever the Season 11 ID is). If there's no filter, add one.REFRACTOR_START_SEASONconfig — environment variable or constant so the season floor is configurable, not hardcodedReferences
app/services/refractor_evaluator.py— evaluation logiccard-creation/docs/prd-evolution/04-milestones.md— stale spec textPR #209 opened: #209
Approach:
REFRACTOR_START_SEASON = int(os.environ.get("REFRACTOR_START_SEASON", "11"))todb_engine.pyalongside the existing game-config constantsseason >= REFRACTOR_START_SEASONfilter to bothBattingSeasonStatsandPitchingSeasonStatsqueries inrefractor_evaluator.pyNote on PRD:
card-creation/docs/prd-evolution/04-milestones.mdis untracked in thepaper-dynasty-card-creationrepo so the text update ("cumulative across all seasons, starting from Season 11") was applied locally but needs a separate commit in that repo.