feat(WP-13): post-game evolution callback hook (#78) #93
No reviewers
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
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-discord#93
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/wp13-postgame-hook"
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?
Closes cal/paper-dynasty-database#78
Summary
complete_game()inlogic_gameplay.pyto fire two API calls after every game:POST season-stats/update-game/{game_id}— updates player_season_statsPOST evolution/evaluate-game/{game_id}— evaluates evolution for all participating playersnotify_tier_completionstub added for WP-14 to replaceTest plan
After complete_game() saves the game result and posts rewards, fire two non-blocking API calls in order: 1. POST season-stats/update-game/{game_id} 2. POST evolution/evaluate-game/{game_id} Any failure in the evolution block is caught and logged as a warning — the game is already persisted so evolution will self-heal on the next evaluate pass. A notify_tier_completion stub is added as a WP-14 target. Closes #78 on cal/paper-dynasty-database Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>LGTM — reviewed by automation.