Commit 67ebb4c
feat: implement Phase 1 — ISU notation parser, validator, and scorer
Replaces generic scaffold with full ISU figure skating program analysis:
- ABI: JumpType, SpinType, StepType, ElementCode, GOE, TechnicalScore,
ProgramScore, Violation types with Display impls and segment limits
- Parser: parse ISU element codes (jumps 1-4 rotations, 6 types,
combinations, sequences, spins, step/choreo sequences)
- Validator: Zayak rule (triples/quads max 2 same type), element count
limits (short/free), combination rules (max 3 jumps, max combos)
- Scorer: ISU 2024-2025 Scale of Values for all jumps, spins, steps;
GOE adjustment calculation; second-half 1.1x bonus
- Manifest: ISU-specific TOML schema (discipline, segment, level, elements)
- Codegen: end-to-end pipeline producing formal program score reports
- 89 tests (36 unit + 36 bin + 17 integration) all passing
- Example: realistic senior women's free skate program (12 elements)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 171bc03 commit 67ebb4c
11 files changed
Lines changed: 3305 additions & 50 deletions
File tree
- examples/competition
- src
- abi
- codegen
- manifest
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments