Completed remaining Session 1 work: Part 4: Remove offensive approach field - Removed `approach` field from OffensiveDecision model - Removed approach validation and validator - Updated 7 backend files (model, tests, handlers, AI, validators, display) Part 5: Server-side depth validation - Added walk-off validation for shallow outfield (home batting, 9th+, close game, runners) - Updated outfield depths from ["in", "normal"] to ["normal", "shallow"] - Infield validation already complete (corners_in/infield_in require R3) - Added comprehensive test coverage Part 6: Client-side smart filtering - Updated DefensiveSetup.vue with dynamic option filtering - Infield options: only show infield_in/corners_in when R3 present - Outfield options: only show shallow in walk-off scenarios - Hybrid validation (server authority + client UX) Total Session 1: 25 files modified across 6 parts - Removed unused config fields - Fixed hit location requirements - Removed alignment/approach fields - Added complete depth validation All backend tests passing (730/731 - 1 pre-existing failure) Next: Session 2 - Offensive decision workflow refactor (Changes #10-11) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| .git-hooks | ||
| alembic/versions | ||
| app | ||
| scripts | ||
| terminal_client | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .python-version | ||
| CLAUDE.md | ||
| clean_test_data.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| mypy.ini | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| pytest.ini | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
| TEST_COVERAGE_SUMMARY.md | ||
| test_db_playground.py | ||
| test_pd_api_live.py | ||
| test_pd_api_mock.py | ||
| test_redis_cache.py | ||
| uv.lock | ||
Paper Dynasty Backend
FastAPI-based real-time baseball game engine with WebSocket support.
Quick Start
# Install UV
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies
uv sync
# Run server
uv run python -m app.main
Documentation
See CLAUDE.md for full documentation.