Spaces:
Running on T4
Running on T4
github-actions[bot] commited on
Commit ·
35e80ff
1
Parent(s): e21e264
Automated Deploy: f4f01388c7b26e818cffbd64414eac11381a7891
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .codacy/.gitignore +1 -0
- .codacy/codacy.config.baseline.json +1347 -0
- .codacy/codacy.config.json +1343 -0
- .dockerignore +7 -0
- .env.example +5 -0
- .gitignore +4 -0
- AI-coach-agent/.dockerignore +12 -0
- AI-coach-agent/.env.example +33 -0
- AI-coach-agent/.gitignore +8 -0
- AI-coach-agent/Dockerfile +22 -0
- AI-coach-agent/README.md +132 -0
- AI-coach-agent/docs/AGENT_INPUT_SPEC.md +275 -0
- AI-coach-agent/docs/DEPLOYMENT.md +38 -0
- AI-coach-agent/docs/FRONTEND_INTEGRATION.md +415 -0
- AI-coach-agent/docs/FRONTEND_UI_GUIDE.md +206 -0
- AI-coach-agent/docs/ML_PIPELINE_RESPONSE.md +211 -0
- AI-coach-agent/docs/MODEL_CHOICE.md +60 -0
- AI-coach-agent/docs/OBSERVABILITY.md +126 -0
- AI-coach-agent/docs/POSE_DATA_SPEC.md +423 -0
- AI-coach-agent/docs/coach_input.schema.json +476 -0
- AI-coach-agent/docs/coach_note.schema.json +135 -0
- AI-coach-agent/docs/examples/pose_track_example.json +1 -0
- AI-coach-agent/docs/examples/responses/hitting_clean.json +62 -0
- AI-coach-agent/docs/examples/responses/hitting_with_timing.json +130 -0
- AI-coach-agent/docs/examples/responses/pitching_arm_care.json +130 -0
- AI-coach-agent/docs/examples/responses/record_again.json +39 -0
- AI-coach-agent/docs/examples/responses/score_withheld_low_fps.json +44 -0
- AI-coach-agent/docs/examples/responses/timing_only.json +82 -0
- AI-coach-agent/docs/pose_track.schema.json +537 -0
- AI-coach-agent/evals/run_eval.py +82 -0
- AI-coach-agent/examples/inputs/hitting_30fps_geometry_only.json +390 -0
- AI-coach-agent/examples/inputs/hitting_late_launch_hs_240fps.json +445 -0
- AI-coach-agent/examples/inputs/hitting_lunging_120fps.json +445 -0
- AI-coach-agent/examples/inputs/hitting_ok_240fps.json +445 -0
- AI-coach-agent/examples/inputs/hitting_one_bad_rep_240fps.json +445 -0
- AI-coach-agent/examples/inputs/hitting_overstride_240fps.json +445 -0
- AI-coach-agent/examples/inputs/hitting_stride_and_lunging_240fps.json +445 -0
- AI-coach-agent/examples/inputs/pitching_ok_240fps.json +684 -0
- AI-coach-agent/examples/inputs/pitching_short_stride_240fps.json +684 -0
- AI-coach-agent/examples/inputs/pitching_short_stride_hs_rough_range_240fps.json +684 -0
- AI-coach-agent/examples/inputs/pitching_short_stride_soft_knee_240fps.json +684 -0
- AI-coach-agent/examples/inputs/pitching_slot_inconsistent_240fps.json +684 -0
- AI-coach-agent/examples/inputs/real_hitting_30fps_low_confidence.json +171 -0
- AI-coach-agent/pyproject.toml +46 -0
- AI-coach-agent/src/ai_coach/__init__.py +7 -0
- AI-coach-agent/src/ai_coach/analysis.py +259 -0
- AI-coach-agent/src/ai_coach/api.py +93 -0
- AI-coach-agent/src/ai_coach/cache.py +131 -0
- AI-coach-agent/src/ai_coach/chain.py +183 -0
- AI-coach-agent/src/ai_coach/cli.py +51 -0
.codacy/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
generated/
|
.codacy/codacy.config.baseline.json
ADDED
|
@@ -0,0 +1,1347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"metadata": {
|
| 4 |
+
"source": "auto",
|
| 5 |
+
"provider": null,
|
| 6 |
+
"organization": null,
|
| 7 |
+
"repositoryId": null,
|
| 8 |
+
"repositoryName": null,
|
| 9 |
+
"createdAt": "2026-10-10T17:31:39.513Z",
|
| 10 |
+
"updatedAt": "2026-10-10T17:31:39.513Z",
|
| 11 |
+
"languages": [
|
| 12 |
+
"Dockerfile",
|
| 13 |
+
"JSON",
|
| 14 |
+
"Markdown",
|
| 15 |
+
"Python",
|
| 16 |
+
"YAML"
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
"tools": [
|
| 20 |
+
{
|
| 21 |
+
"toolId": "jackson",
|
| 22 |
+
"patterns": [
|
| 23 |
+
{
|
| 24 |
+
"patternId": "jackson_duplicate-keys"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"patternId": "jackson_parse-error"
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"toolId": "markdownlint",
|
| 33 |
+
"patterns": [
|
| 34 |
+
{
|
| 35 |
+
"patternId": "markdownlint_MD001"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"patternId": "markdownlint_MD003"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"patternId": "markdownlint_MD004"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"patternId": "markdownlint_MD005"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"patternId": "markdownlint_MD007"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"patternId": "markdownlint_MD010"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"patternId": "markdownlint_MD011"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"patternId": "markdownlint_MD012"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"patternId": "markdownlint_MD014"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"patternId": "markdownlint_MD018"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"patternId": "markdownlint_MD019"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"patternId": "markdownlint_MD020"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"patternId": "markdownlint_MD021"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"patternId": "markdownlint_MD022"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"patternId": "markdownlint_MD023"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"patternId": "markdownlint_MD024"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"patternId": "markdownlint_MD025"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"patternId": "markdownlint_MD026"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"patternId": "markdownlint_MD027"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"patternId": "markdownlint_MD028"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"patternId": "markdownlint_MD029"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"patternId": "markdownlint_MD030"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"patternId": "markdownlint_MD032"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"patternId": "markdownlint_MD033"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"patternId": "markdownlint_MD034"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"patternId": "markdownlint_MD035"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"patternId": "markdownlint_MD036"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"patternId": "markdownlint_MD037"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"patternId": "markdownlint_MD038"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"patternId": "markdownlint_MD039"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"patternId": "markdownlint_MD042"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"patternId": "markdownlint_MD044"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"patternId": "markdownlint_MD045"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"patternId": "markdownlint_MD046"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"patternId": "markdownlint_MD048"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"patternId": "markdownlint_MD049"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"patternId": "markdownlint_MD050"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"patternId": "markdownlint_MD051"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"patternId": "markdownlint_MD052"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"patternId": "markdownlint_MD053"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"patternId": "markdownlint_MD054"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"patternId": "markdownlint_MD055"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"patternId": "markdownlint_MD056"
|
| 162 |
+
}
|
| 163 |
+
]
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"toolId": "Hadolint",
|
| 167 |
+
"patterns": [
|
| 168 |
+
{
|
| 169 |
+
"patternId": "Hadolint_DL3000"
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"patternId": "Hadolint_DL3001"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"patternId": "Hadolint_DL3002"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"patternId": "Hadolint_DL3003"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"patternId": "Hadolint_DL3004"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"patternId": "Hadolint_DL3006"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"patternId": "Hadolint_DL3007"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"patternId": "Hadolint_DL3008"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"patternId": "Hadolint_DL3009"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"patternId": "Hadolint_DL3010"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"patternId": "Hadolint_DL3011"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"patternId": "Hadolint_DL3012"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"patternId": "Hadolint_DL3013"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"patternId": "Hadolint_DL3014"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"patternId": "Hadolint_DL3015"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"patternId": "Hadolint_DL3020"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"patternId": "Hadolint_DL3021"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"patternId": "Hadolint_DL3022"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"patternId": "Hadolint_DL3023"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"patternId": "Hadolint_DL3024"
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"patternId": "Hadolint_DL4000"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"patternId": "Hadolint_DL4001"
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"patternId": "Hadolint_DL4003"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"patternId": "Hadolint_DL4004"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"patternId": "Hadolint_DL4005"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"patternId": "Hadolint_SC1079"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"patternId": "Hadolint_SC2046"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"patternId": "Hadolint_SC2086"
|
| 251 |
+
}
|
| 252 |
+
]
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"toolId": "Ruff",
|
| 256 |
+
"localConfigurationFile": "pyproject.toml",
|
| 257 |
+
"useLocalConfigurationFile": true,
|
| 258 |
+
"patterns": []
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"toolId": "Trivy",
|
| 262 |
+
"patterns": [
|
| 263 |
+
{
|
| 264 |
+
"patternId": "Trivy_malicious_packages"
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"patternId": "Trivy_secret"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"patternId": "Trivy_vulnerability_critical"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"patternId": "Trivy_vulnerability_high"
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"patternId": "Trivy_vulnerability_medium"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"patternId": "Trivy_vulnerability_minor"
|
| 280 |
+
}
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"toolId": "Semgrep",
|
| 285 |
+
"patterns": [
|
| 286 |
+
{
|
| 287 |
+
"patternId": "Semgrep_dockerfile.security.dockerd-socket-mount.dockerfile-dockerd-socket-mount"
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"patternId": "Semgrep_dockerfile.security.last-user-is-root.last-user-is-root"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"patternId": "Semgrep_dockerfile.security.missing-user-entrypoint.missing-user-entrypoint"
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"patternId": "Semgrep_dockerfile.security.missing-user.missing-user"
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"patternId": "Semgrep_dockerfile.security.no-sudo-in-dockerfile.no-sudo-in-dockerfile"
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"patternId": "Semgrep_generic.secrets.security.detected-onfido-live-api-token.detected-onfido-live-api-token"
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"patternId": "Semgrep_generic.secrets.security.detected-stripe-restricted-api-key.detected-stripe-restricted-api-key"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"patternId": "Semgrep_generic.secrets.security.detected-username-and-password-in-uri.detected-username-and-password-in-uri"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"patternId": "Semgrep_generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"patternId": "Semgrep_json.aws.security.public-s3-bucket.public-s3-bucket"
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"patternId": "Semgrep_json.aws.security.public-s3-policy-statement.public-s3-policy-statement"
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"patternId": "Semgrep_json.aws.security.wildcard-assume-role.wildcard-assume-role"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"patternId": "Semgrep_python.cryptography.security.empty-aes-key.empty-aes-key"
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4"
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms-blowfish.insecure-cipher-algorithm-blowfish"
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-mode-ecb.insecure-cipher-mode-ecb"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1"
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5"
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size"
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"patternId": "Semgrep_python.cryptography.security.mode-without-authentication.crypto-mode-without-authentication"
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"patternId": "Semgrep_python_crypto_rule-HTTPConnectionPool"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"patternId": "Semgrep_python.distributed.security.require-encryption"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"patternId": "Semgrep_python_flask_rule-path-traversal-open"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"patternId": "Semgrep_python_jwt_rule-jwt-none-alg"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"patternId": "Semgrep_python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"patternId": "Semgrep_python.jwt.security.jwt-none-alg.jwt-python-none-alg"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"patternId": "Semgrep_python.jwt.security.unverified-jwt-decode.unverified-jwt-decode"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-asyncio-exec-tainted-env-args.dangerous-asyncio-exec-tainted-env-args"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-asyncio-shell-tainted-env-args.dangerous-asyncio-shell-tainted-env-args"
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-code-run-tainted-env-args.dangerous-interactive-code-run-tainted-env-args"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-os-exec-tainted-env-args.dangerous-os-exec-tainted-env-args"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-spawn-process-tainted-env-args.dangerous-spawn-process-tainted-env-args"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-subinterpreters-run-string-tainted-env-args.dangerous-subinterpreters-run-string-tainted-env-args"
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-subprocess-use-tainted-env-args.dangerous-subprocess-use-tainted-env-args"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-system-call-tainted-env-args.dangerous-system-call-tainted-env-args"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-testcapi-run-in-subinterp-tainted-env-args.dangerous-testcapi-run-in-subinterp-tainted-env-args"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-file-permissions.insecure-file-permissions"
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"patternId": "Semgrep_python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"patternId": "Semgrep_python.lang.security.audit.md5-used-as-password.md5-used-as-password"
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"patternId": "Semgrep_python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces"
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"patternId": "Semgrep_python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation"
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"patternId": "Semgrep_python.lang.security.audit.network.http-not-https-connection.http-not-https-connection"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"patternId": "Semgrep_python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"patternId": "Semgrep_python.lang.security.audit.subprocess-shell-true.subprocess-shell-true"
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"patternId": "Semgrep_python.lang.security.audit.weak-ssl-version.weak-ssl-version"
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"patternId": "Semgrep_python.lang.security.dangerous-code-run.dangerous-interactive-code-run"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"patternId": "Semgrep_python.lang.security.dangerous-os-exec.dangerous-os-exec"
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"patternId": "Semgrep_python.lang.security.dangerous-spawn-process.dangerous-spawn-process"
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"patternId": "Semgrep_python.lang.security.dangerous-subinterpreters-run-string.dangerous-subinterpreters-run-string"
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"patternId": "Semgrep_python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"patternId": "Semgrep_python.lang.security.dangerous-system-call.dangerous-system-call"
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"patternId": "Semgrep_python.lang.security.dangerous-testcapi-run-in-subinterp.dangerous-testcapi-run-in-subinterp"
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"patternId": "Semgrep_python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load"
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"patternId": "Semgrep_python.lang.security.deserialization.avoid-unsafe-ruamel.avoid-unsafe-ruamel"
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"patternId": "Semgrep_python.lang.security.deserialization.pickle.avoid-shelve"
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1"
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5"
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-function.insecure-hash-function"
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"patternId": "Semgrep_python.lang.security.insecure-uuid-version.insecure-uuid-version"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"patternId": "Semgrep_python.lang.security.unverified-ssl-context.unverified-ssl-context"
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"patternId": "Semgrep_python.lang.security.use-defused-xml-parse.use-defused-xml-parse"
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"patternId": "Semgrep_python_pyramid_rule-pyramid-csrf-origin-check"
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"patternId": "Semgrep_yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"patternId": "Semgrep_yaml.docker-compose.security.privileged-service.privileged-service"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"patternId": "Semgrep_yaml.openapi.security.openai-consequential-action-false.openai-consequential-action-false"
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"patternId": "Semgrep_yaml.openapi.security.use-of-basic-authentication.use-of-basic-authentication"
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"patternId": "Semgrep_yaml_spring_rule-SpringActuatorFullyEnabled"
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"toolId": "spectral",
|
| 509 |
+
"patterns": [
|
| 510 |
+
{
|
| 511 |
+
"patternId": "spectral_array-items"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"patternId": "spectral_asyncapi-3-channel-no-empty-parameter"
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"patternId": "spectral_asyncapi-3-channel-no-query-nor-fragment"
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"patternId": "spectral_asyncapi-3-channel-no-trailing-slash"
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"patternId": "spectral_asyncapi-3-channel-servers"
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"patternId": "spectral_asyncapi-3-document-resolved"
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"patternId": "spectral_asyncapi-3-document-unresolved"
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"patternId": "spectral_asyncapi-3-headers-schema-type-object"
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"patternId": "spectral_asyncapi-3-operation-description"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"patternId": "spectral_asyncapi-3-operation-security"
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"patternId": "spectral_asyncapi-3-payload-unsupported-schemaFormat"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"patternId": "spectral_asyncapi-3-server-no-empty-variable"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"patternId": "spectral_asyncapi-3-server-no-trailing-slash"
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"patternId": "spectral_asyncapi-3-tags"
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"patternId": "spectral_asyncapi-3-tags-uniqueness"
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"patternId": "spectral_asyncapi-channel-no-empty-parameter"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"patternId": "spectral_asyncapi-channel-no-query-nor-fragment"
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"patternId": "spectral_asyncapi-channel-no-trailing-slash"
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"patternId": "spectral_asyncapi-channel-parameters"
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"patternId": "spectral_asyncapi-channel-servers"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"patternId": "spectral_asyncapi-headers-schema-type-object"
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"patternId": "spectral_asyncapi-info-contact"
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"patternId": "spectral_asyncapi-info-contact-properties"
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"patternId": "spectral_asyncapi-info-description"
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"patternId": "spectral_asyncapi-info-license"
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"patternId": "spectral_asyncapi-latest-version"
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"patternId": "spectral_asyncapi-message-examples"
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"patternId": "spectral_asyncapi-message-messageId-uniqueness"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"patternId": "spectral_asyncapi-operation-description"
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"patternId": "spectral_asyncapi-operation-operationId"
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"patternId": "spectral_asyncapi-operation-operationId-uniqueness"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"patternId": "spectral_asyncapi-operation-security"
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"patternId": "spectral_asyncapi-payload"
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"patternId": "spectral_asyncapi-payload-default"
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"patternId": "spectral_asyncapi-payload-examples"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"patternId": "spectral_asyncapi-payload-unsupported-schemaFormat"
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"patternId": "spectral_asyncapi-schema"
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"patternId": "spectral_asyncapi-schema-default"
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"patternId": "spectral_asyncapi-schema-examples"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"patternId": "spectral_asyncapi-server-no-empty-variable"
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"patternId": "spectral_asyncapi-server-no-trailing-slash"
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"patternId": "spectral_asyncapi-servers"
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"patternId": "spectral_asyncapi-server-security"
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"patternId": "spectral_asyncapi-server-variables"
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"patternId": "spectral_asyncapi-tags"
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"patternId": "spectral_asyncapi-tags-uniqueness"
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"patternId": "spectral_asyncapi-unused-components-schema"
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"patternId": "spectral_asyncapi-unused-components-server"
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"patternId": "spectral_duplicated-entry-in-enum"
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"patternId": "spectral_info-contact"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"patternId": "spectral_info-description"
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"patternId": "spectral_no-eval-in-markdown"
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"patternId": "spectral_no-$ref-siblings"
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"patternId": "spectral_no-script-tags-in-markdown"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"patternId": "spectral_oas2-anyOf"
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"patternId": "spectral_oas2-api-host"
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"patternId": "spectral_oas2-api-schemes"
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"patternId": "spectral_oas2-discriminator"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"patternId": "spectral_oas2-host-trailing-slash"
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"patternId": "spectral_oas2-oneOf"
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"patternId": "spectral_oas2-operation-formData-consume-check"
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"patternId": "spectral_oas2-operation-security-defined"
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"patternId": "spectral_oas2-schema"
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"patternId": "spectral_oas2-unused-definition"
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"patternId": "spectral_oas2-valid-media-example"
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"patternId": "spectral_oas2-valid-schema-example"
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"patternId": "spectral_oas3_1-callbacks-in-webhook"
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"patternId": "spectral_oas3_1-servers-in-webhook"
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"patternId": "spectral_oas3-api-servers"
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"patternId": "spectral_oas3-callbacks-in-callbacks"
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"patternId": "spectral_oas3-examples-value-or-externalValue"
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"patternId": "spectral_oas3-operation-security-defined"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"patternId": "spectral_oas3-schema"
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"patternId": "spectral_oas3-server-trailing-slash"
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"patternId": "spectral_oas3-server-variables"
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"patternId": "spectral_oas3-unused-component"
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"patternId": "spectral_oas3-valid-media-example"
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"patternId": "spectral_oas3-valid-schema-example"
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"patternId": "spectral_openapi-tags-uniqueness"
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"patternId": "spectral_operation-description"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"patternId": "spectral_operation-operationId"
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"patternId": "spectral_operation-operationId-unique"
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"patternId": "spectral_operation-operationId-valid-in-url"
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"patternId": "spectral_operation-parameters"
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"patternId": "spectral_operation-success-response"
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"patternId": "spectral_operation-tag-defined"
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"patternId": "spectral_operation-tags"
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"patternId": "spectral_path-declarations-must-exist"
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"patternId": "spectral_path-keys-no-trailing-slash"
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"patternId": "spectral_path-not-include-query"
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"patternId": "spectral_path-params"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"patternId": "spectral_typed-enum"
|
| 785 |
+
}
|
| 786 |
+
]
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"toolId": "Bandit",
|
| 790 |
+
"patterns": [
|
| 791 |
+
{
|
| 792 |
+
"patternId": "Bandit_B101"
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"patternId": "Bandit_B102"
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"patternId": "Bandit_B103"
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"patternId": "Bandit_B104"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"patternId": "Bandit_B105"
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"patternId": "Bandit_B106"
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"patternId": "Bandit_B107"
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"patternId": "Bandit_B108"
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"patternId": "Bandit_B110"
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"patternId": "Bandit_B112"
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"patternId": "Bandit_B202"
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"patternId": "Bandit_B301"
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"patternId": "Bandit_B302"
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"patternId": "Bandit_B303"
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"patternId": "Bandit_B304"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"patternId": "Bandit_B305"
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"patternId": "Bandit_B306"
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"patternId": "Bandit_B307"
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"patternId": "Bandit_B309"
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"patternId": "Bandit_B310"
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"patternId": "Bandit_B311"
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"patternId": "Bandit_B312"
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"patternId": "Bandit_B313"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"patternId": "Bandit_B314"
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"patternId": "Bandit_B315"
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"patternId": "Bandit_B316"
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"patternId": "Bandit_B317"
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"patternId": "Bandit_B318"
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"patternId": "Bandit_B319"
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"patternId": "Bandit_B321"
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"patternId": "Bandit_B322"
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"patternId": "Bandit_B323"
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"patternId": "Bandit_B324"
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"patternId": "Bandit_B325"
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"patternId": "Bandit_B401"
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"patternId": "Bandit_B402"
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"patternId": "Bandit_B403"
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"patternId": "Bandit_B404"
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"patternId": "Bandit_B405"
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"patternId": "Bandit_B406"
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"patternId": "Bandit_B407"
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"patternId": "Bandit_B408"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"patternId": "Bandit_B409"
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"patternId": "Bandit_B411"
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"patternId": "Bandit_B412"
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"patternId": "Bandit_B415"
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"patternId": "Bandit_B502"
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"patternId": "Bandit_B503"
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"patternId": "Bandit_B504"
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"patternId": "Bandit_B505"
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"patternId": "Bandit_B506"
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"patternId": "Bandit_B602"
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"patternId": "Bandit_B603"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"patternId": "Bandit_B604"
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"patternId": "Bandit_B605"
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"patternId": "Bandit_B606"
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"patternId": "Bandit_B607"
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"patternId": "Bandit_B608"
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"patternId": "Bandit_B609"
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"patternId": "Bandit_B612"
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"patternId": "Bandit_B613"
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"patternId": "Bandit_B614"
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"patternId": "Bandit_B615"
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"patternId": "Bandit_B704"
|
| 982 |
+
}
|
| 983 |
+
]
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"toolId": "PyLintPython3",
|
| 987 |
+
"localConfigurationFile": "pyproject.toml",
|
| 988 |
+
"useLocalConfigurationFile": true,
|
| 989 |
+
"patterns": []
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"toolId": "Checkov",
|
| 993 |
+
"patterns": [
|
| 994 |
+
{
|
| 995 |
+
"patternId": "Checkov_CKV2_DOCKER_1"
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"patternId": "Checkov_CKV2_DOCKER_10"
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"patternId": "Checkov_CKV2_DOCKER_11"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"patternId": "Checkov_CKV2_DOCKER_12"
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"patternId": "Checkov_CKV2_DOCKER_13"
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"patternId": "Checkov_CKV2_DOCKER_14"
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"patternId": "Checkov_CKV2_DOCKER_15"
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"patternId": "Checkov_CKV2_DOCKER_16"
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"patternId": "Checkov_CKV2_DOCKER_17"
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"patternId": "Checkov_CKV2_DOCKER_2"
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"patternId": "Checkov_CKV2_DOCKER_3"
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"patternId": "Checkov_CKV2_DOCKER_4"
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"patternId": "Checkov_CKV2_DOCKER_5"
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"patternId": "Checkov_CKV2_DOCKER_6"
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"patternId": "Checkov_CKV2_DOCKER_7"
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"patternId": "Checkov_CKV2_DOCKER_8"
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"patternId": "Checkov_CKV2_DOCKER_9"
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"patternId": "Checkov_CKV_BITBUCKET_1"
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"patternId": "Checkov_CKV_DOCKER_1"
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"patternId": "Checkov_CKV_DOCKER_10"
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"patternId": "Checkov_CKV_DOCKER_11"
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"patternId": "Checkov_CKV_DOCKER_2"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"patternId": "Checkov_CKV_DOCKER_3"
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"patternId": "Checkov_CKV_DOCKER_4"
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"patternId": "Checkov_CKV_DOCKER_5"
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"patternId": "Checkov_CKV_DOCKER_6"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"patternId": "Checkov_CKV_DOCKER_7"
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"patternId": "Checkov_CKV_DOCKER_8"
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"patternId": "Checkov_CKV_DOCKER_9"
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"patternId": "Checkov_CKV_GITHUB_1"
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"patternId": "Checkov_CKV_GITHUB_10"
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"patternId": "Checkov_CKV_GITHUB_11"
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"patternId": "Checkov_CKV_GITHUB_12"
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"patternId": "Checkov_CKV_GITHUB_13"
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"patternId": "Checkov_CKV_GITHUB_14"
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"patternId": "Checkov_CKV_GITHUB_15"
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"patternId": "Checkov_CKV_GITHUB_16"
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"patternId": "Checkov_CKV_GITHUB_17"
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"patternId": "Checkov_CKV_GITHUB_18"
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"patternId": "Checkov_CKV_GITHUB_19"
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"patternId": "Checkov_CKV_GITHUB_2"
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"patternId": "Checkov_CKV_GITHUB_20"
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"patternId": "Checkov_CKV_GITHUB_21"
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"patternId": "Checkov_CKV_GITHUB_22"
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"patternId": "Checkov_CKV_GITHUB_23"
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"patternId": "Checkov_CKV_GITHUB_26"
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"patternId": "Checkov_CKV_GITHUB_27"
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"patternId": "Checkov_CKV_GITHUB_28"
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"patternId": "Checkov_CKV_GITHUB_3"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"patternId": "Checkov_CKV_GITHUB_4"
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"patternId": "Checkov_CKV_GITHUB_5"
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"patternId": "Checkov_CKV_GITHUB_6"
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"patternId": "Checkov_CKV_GITHUB_7"
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"patternId": "Checkov_CKV_GITHUB_8"
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"patternId": "Checkov_CKV_GITHUB_9"
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"patternId": "Checkov_CKV_GITLAB_1"
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"patternId": "Checkov_CKV_OPENAPI_1"
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"patternId": "Checkov_CKV_OPENAPI_10"
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"patternId": "Checkov_CKV_OPENAPI_11"
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"patternId": "Checkov_CKV_OPENAPI_12"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"patternId": "Checkov_CKV_OPENAPI_13"
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"patternId": "Checkov_CKV_OPENAPI_14"
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"patternId": "Checkov_CKV_OPENAPI_15"
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"patternId": "Checkov_CKV_OPENAPI_16"
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"patternId": "Checkov_CKV_OPENAPI_17"
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"patternId": "Checkov_CKV_OPENAPI_18"
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"patternId": "Checkov_CKV_OPENAPI_19"
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"patternId": "Checkov_CKV_OPENAPI_2"
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"patternId": "Checkov_CKV_OPENAPI_20"
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"patternId": "Checkov_CKV_OPENAPI_21"
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"patternId": "Checkov_CKV_OPENAPI_3"
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"patternId": "Checkov_CKV_OPENAPI_4"
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"patternId": "Checkov_CKV_OPENAPI_5"
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"patternId": "Checkov_CKV_OPENAPI_6"
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"patternId": "Checkov_CKV_OPENAPI_7"
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"patternId": "Checkov_CKV_OPENAPI_8"
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"patternId": "Checkov_CKV_OPENAPI_9"
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"patternId": "Checkov_CKV_SECRET_1"
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"patternId": "Checkov_CKV_SECRET_11"
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"patternId": "Checkov_CKV_SECRET_12"
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"patternId": "Checkov_CKV_SECRET_13"
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"patternId": "Checkov_CKV_SECRET_14"
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"patternId": "Checkov_CKV_SECRET_15"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"patternId": "Checkov_CKV_SECRET_16"
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"patternId": "Checkov_CKV_SECRET_17"
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"patternId": "Checkov_CKV_SECRET_18"
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"patternId": "Checkov_CKV_SECRET_19"
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"patternId": "Checkov_CKV_SECRET_2"
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"patternId": "Checkov_CKV_SECRET_3"
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"patternId": "Checkov_CKV_SECRET_4"
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"patternId": "Checkov_CKV_SECRET_5"
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"patternId": "Checkov_CKV_SECRET_6"
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"patternId": "Checkov_CKV_SECRET_7"
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"patternId": "Checkov_CKV_SECRET_8"
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"patternId": "Checkov_CKV_SECRET_9"
|
| 1278 |
+
}
|
| 1279 |
+
]
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"toolId": "Lizard",
|
| 1283 |
+
"patterns": [
|
| 1284 |
+
{
|
| 1285 |
+
"patternId": "Lizard_file-nloc-medium"
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"patternId": "Lizard_nloc-medium",
|
| 1289 |
+
"parameters": {
|
| 1290 |
+
"threshold": "60"
|
| 1291 |
+
}
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"patternId": "Lizard_parameter-count-medium"
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"patternId": "Lizard_nloc-critical",
|
| 1298 |
+
"parameters": {
|
| 1299 |
+
"threshold": "170"
|
| 1300 |
+
}
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"patternId": "Lizard_ccn-critical",
|
| 1304 |
+
"parameters": {
|
| 1305 |
+
"threshold": "50"
|
| 1306 |
+
}
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"patternId": "Lizard_ccn-medium",
|
| 1310 |
+
"parameters": {
|
| 1311 |
+
"threshold": "20"
|
| 1312 |
+
}
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"patternId": "Lizard_parameter-count-critical"
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"patternId": "Lizard_file-nloc-critical"
|
| 1319 |
+
}
|
| 1320 |
+
]
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"toolId": "Prospector",
|
| 1324 |
+
"patterns": [
|
| 1325 |
+
{
|
| 1326 |
+
"patternId": "Prospector_dodgy"
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"patternId": "Prospector_mccabe"
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"patternId": "Prospector_profile-validator"
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"patternId": "Prospector_pycodestyle"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"patternId": "Prospector_pydocstyle"
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"patternId": "Prospector_pyflakes"
|
| 1342 |
+
}
|
| 1343 |
+
]
|
| 1344 |
+
}
|
| 1345 |
+
],
|
| 1346 |
+
"exclude": []
|
| 1347 |
+
}
|
.codacy/codacy.config.json
ADDED
|
@@ -0,0 +1,1343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"metadata": {
|
| 4 |
+
"source": "auto",
|
| 5 |
+
"provider": null,
|
| 6 |
+
"organization": null,
|
| 7 |
+
"repositoryId": null,
|
| 8 |
+
"repositoryName": null,
|
| 9 |
+
"createdAt": "2026-10-10T17:19:48.521Z",
|
| 10 |
+
"updatedAt": "2026-10-10T17:31:39.514Z",
|
| 11 |
+
"languages": [
|
| 12 |
+
"Dockerfile",
|
| 13 |
+
"JSON",
|
| 14 |
+
"Markdown",
|
| 15 |
+
"Python",
|
| 16 |
+
"YAML"
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
"tools": [
|
| 20 |
+
{
|
| 21 |
+
"toolId": "jackson",
|
| 22 |
+
"patterns": [
|
| 23 |
+
{
|
| 24 |
+
"patternId": "jackson_duplicate-keys"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"patternId": "jackson_parse-error"
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"toolId": "markdownlint",
|
| 33 |
+
"patterns": [
|
| 34 |
+
{
|
| 35 |
+
"patternId": "markdownlint_MD001"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"patternId": "markdownlint_MD003"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"patternId": "markdownlint_MD004"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"patternId": "markdownlint_MD005"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"patternId": "markdownlint_MD007"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"patternId": "markdownlint_MD010"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"patternId": "markdownlint_MD011"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"patternId": "markdownlint_MD012"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"patternId": "markdownlint_MD014"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"patternId": "markdownlint_MD018"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"patternId": "markdownlint_MD019"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"patternId": "markdownlint_MD020"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"patternId": "markdownlint_MD021"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"patternId": "markdownlint_MD022"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"patternId": "markdownlint_MD023"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"patternId": "markdownlint_MD024"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"patternId": "markdownlint_MD025"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"patternId": "markdownlint_MD026"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"patternId": "markdownlint_MD027"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"patternId": "markdownlint_MD028"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"patternId": "markdownlint_MD029"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"patternId": "markdownlint_MD030"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"patternId": "markdownlint_MD032"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"patternId": "markdownlint_MD033"
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"patternId": "markdownlint_MD034"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"patternId": "markdownlint_MD035"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"patternId": "markdownlint_MD036"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"patternId": "markdownlint_MD037"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"patternId": "markdownlint_MD038"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"patternId": "markdownlint_MD039"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"patternId": "markdownlint_MD042"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"patternId": "markdownlint_MD044"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"patternId": "markdownlint_MD045"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"patternId": "markdownlint_MD046"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"patternId": "markdownlint_MD048"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"patternId": "markdownlint_MD049"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"patternId": "markdownlint_MD050"
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"patternId": "markdownlint_MD051"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"patternId": "markdownlint_MD052"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"patternId": "markdownlint_MD053"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"patternId": "markdownlint_MD054"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"patternId": "markdownlint_MD055"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"patternId": "markdownlint_MD056"
|
| 162 |
+
}
|
| 163 |
+
]
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"toolId": "Hadolint",
|
| 167 |
+
"patterns": [
|
| 168 |
+
{
|
| 169 |
+
"patternId": "Hadolint_DL3000"
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"patternId": "Hadolint_DL3001"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"patternId": "Hadolint_DL3002"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"patternId": "Hadolint_DL3003"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"patternId": "Hadolint_DL3004"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"patternId": "Hadolint_DL3006"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"patternId": "Hadolint_DL3007"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"patternId": "Hadolint_DL3008"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"patternId": "Hadolint_DL3009"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"patternId": "Hadolint_DL3010"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"patternId": "Hadolint_DL3011"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"patternId": "Hadolint_DL3012"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"patternId": "Hadolint_DL3013"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"patternId": "Hadolint_DL3014"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"patternId": "Hadolint_DL3015"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"patternId": "Hadolint_DL3020"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"patternId": "Hadolint_DL3021"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"patternId": "Hadolint_DL3022"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"patternId": "Hadolint_DL3023"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"patternId": "Hadolint_DL3024"
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"patternId": "Hadolint_DL4000"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"patternId": "Hadolint_DL4001"
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"patternId": "Hadolint_DL4003"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"patternId": "Hadolint_DL4004"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"patternId": "Hadolint_DL4005"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"patternId": "Hadolint_SC1079"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"patternId": "Hadolint_SC2046"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"patternId": "Hadolint_SC2086"
|
| 251 |
+
}
|
| 252 |
+
]
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"toolId": "Ruff",
|
| 256 |
+
"localConfigurationFile": "pyproject.toml",
|
| 257 |
+
"useLocalConfigurationFile": true,
|
| 258 |
+
"patterns": []
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"toolId": "Trivy",
|
| 262 |
+
"patterns": [
|
| 263 |
+
{
|
| 264 |
+
"patternId": "Trivy_malicious_packages"
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"patternId": "Trivy_secret"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"patternId": "Trivy_vulnerability_critical"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"patternId": "Trivy_vulnerability_high"
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"patternId": "Trivy_vulnerability_medium"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"patternId": "Trivy_vulnerability_minor"
|
| 280 |
+
}
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"toolId": "Semgrep",
|
| 285 |
+
"patterns": [
|
| 286 |
+
{
|
| 287 |
+
"patternId": "Semgrep_dockerfile.security.dockerd-socket-mount.dockerfile-dockerd-socket-mount"
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"patternId": "Semgrep_dockerfile.security.last-user-is-root.last-user-is-root"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"patternId": "Semgrep_dockerfile.security.missing-user-entrypoint.missing-user-entrypoint"
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"patternId": "Semgrep_dockerfile.security.missing-user.missing-user"
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"patternId": "Semgrep_dockerfile.security.no-sudo-in-dockerfile.no-sudo-in-dockerfile"
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"patternId": "Semgrep_generic.secrets.security.detected-onfido-live-api-token.detected-onfido-live-api-token"
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"patternId": "Semgrep_generic.secrets.security.detected-stripe-restricted-api-key.detected-stripe-restricted-api-key"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"patternId": "Semgrep_generic.secrets.security.detected-username-and-password-in-uri.detected-username-and-password-in-uri"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"patternId": "Semgrep_generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"patternId": "Semgrep_json.aws.security.public-s3-bucket.public-s3-bucket"
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"patternId": "Semgrep_json.aws.security.public-s3-policy-statement.public-s3-policy-statement"
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"patternId": "Semgrep_json.aws.security.wildcard-assume-role.wildcard-assume-role"
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"patternId": "Semgrep_python.cryptography.security.empty-aes-key.empty-aes-key"
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4"
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms-blowfish.insecure-cipher-algorithm-blowfish"
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-cipher-mode-ecb.insecure-cipher-mode-ecb"
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1"
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"patternId": "Semgrep_python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5"
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size"
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"patternId": "Semgrep_python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"patternId": "Semgrep_python.cryptography.security.mode-without-authentication.crypto-mode-without-authentication"
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"patternId": "Semgrep_python_crypto_rule-HTTPConnectionPool"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"patternId": "Semgrep_python.distributed.security.require-encryption"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"patternId": "Semgrep_python_flask_rule-path-traversal-open"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"patternId": "Semgrep_python_jwt_rule-jwt-none-alg"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"patternId": "Semgrep_python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret"
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"patternId": "Semgrep_python.jwt.security.jwt-none-alg.jwt-python-none-alg"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"patternId": "Semgrep_python.jwt.security.unverified-jwt-decode.unverified-jwt-decode"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-asyncio-exec-tainted-env-args.dangerous-asyncio-exec-tainted-env-args"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-asyncio-shell-tainted-env-args.dangerous-asyncio-shell-tainted-env-args"
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-code-run-tainted-env-args.dangerous-interactive-code-run-tainted-env-args"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-os-exec-tainted-env-args.dangerous-os-exec-tainted-env-args"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-spawn-process-tainted-env-args.dangerous-spawn-process-tainted-env-args"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-subinterpreters-run-string-tainted-env-args.dangerous-subinterpreters-run-string-tainted-env-args"
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-subprocess-use-tainted-env-args.dangerous-subprocess-use-tainted-env-args"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-system-call-tainted-env-args.dangerous-system-call-tainted-env-args"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"patternId": "Semgrep_python.lang.security.audit.dangerous-testcapi-run-in-subinterp-tainted-env-args.dangerous-testcapi-run-in-subinterp-tainted-env-args"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-file-permissions.insecure-file-permissions"
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http"
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"patternId": "Semgrep_python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"patternId": "Semgrep_python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"patternId": "Semgrep_python.lang.security.audit.md5-used-as-password.md5-used-as-password"
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"patternId": "Semgrep_python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces"
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"patternId": "Semgrep_python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation"
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"patternId": "Semgrep_python.lang.security.audit.network.http-not-https-connection.http-not-https-connection"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"patternId": "Semgrep_python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"patternId": "Semgrep_python.lang.security.audit.subprocess-shell-true.subprocess-shell-true"
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"patternId": "Semgrep_python.lang.security.audit.weak-ssl-version.weak-ssl-version"
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"patternId": "Semgrep_python.lang.security.dangerous-code-run.dangerous-interactive-code-run"
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"patternId": "Semgrep_python.lang.security.dangerous-os-exec.dangerous-os-exec"
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"patternId": "Semgrep_python.lang.security.dangerous-spawn-process.dangerous-spawn-process"
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"patternId": "Semgrep_python.lang.security.dangerous-subinterpreters-run-string.dangerous-subinterpreters-run-string"
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"patternId": "Semgrep_python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use"
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"patternId": "Semgrep_python.lang.security.dangerous-system-call.dangerous-system-call"
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"patternId": "Semgrep_python.lang.security.dangerous-testcapi-run-in-subinterp.dangerous-testcapi-run-in-subinterp"
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"patternId": "Semgrep_python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load"
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"patternId": "Semgrep_python.lang.security.deserialization.avoid-unsafe-ruamel.avoid-unsafe-ruamel"
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"patternId": "Semgrep_python.lang.security.deserialization.pickle.avoid-shelve"
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1"
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5"
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"patternId": "Semgrep_python.lang.security.insecure-hash-function.insecure-hash-function"
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"patternId": "Semgrep_python.lang.security.insecure-uuid-version.insecure-uuid-version"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"patternId": "Semgrep_python.lang.security.unverified-ssl-context.unverified-ssl-context"
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"patternId": "Semgrep_python.lang.security.use-defused-xml-parse.use-defused-xml-parse"
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"patternId": "Semgrep_python_pyramid_rule-pyramid-csrf-origin-check"
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"patternId": "Semgrep_yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"patternId": "Semgrep_yaml.docker-compose.security.privileged-service.privileged-service"
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"patternId": "Semgrep_yaml.openapi.security.openai-consequential-action-false.openai-consequential-action-false"
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"patternId": "Semgrep_yaml.openapi.security.use-of-basic-authentication.use-of-basic-authentication"
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"patternId": "Semgrep_yaml_spring_rule-SpringActuatorFullyEnabled"
|
| 504 |
+
}
|
| 505 |
+
]
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"toolId": "spectral",
|
| 509 |
+
"patterns": [
|
| 510 |
+
{
|
| 511 |
+
"patternId": "spectral_array-items"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"patternId": "spectral_asyncapi-3-channel-no-empty-parameter"
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"patternId": "spectral_asyncapi-3-channel-no-query-nor-fragment"
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"patternId": "spectral_asyncapi-3-channel-no-trailing-slash"
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"patternId": "spectral_asyncapi-3-channel-servers"
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"patternId": "spectral_asyncapi-3-document-resolved"
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"patternId": "spectral_asyncapi-3-document-unresolved"
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"patternId": "spectral_asyncapi-3-headers-schema-type-object"
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"patternId": "spectral_asyncapi-3-operation-description"
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"patternId": "spectral_asyncapi-3-operation-security"
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"patternId": "spectral_asyncapi-3-payload-unsupported-schemaFormat"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"patternId": "spectral_asyncapi-3-server-no-empty-variable"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"patternId": "spectral_asyncapi-3-server-no-trailing-slash"
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"patternId": "spectral_asyncapi-3-tags"
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"patternId": "spectral_asyncapi-3-tags-uniqueness"
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"patternId": "spectral_asyncapi-channel-no-empty-parameter"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"patternId": "spectral_asyncapi-channel-no-query-nor-fragment"
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"patternId": "spectral_asyncapi-channel-no-trailing-slash"
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"patternId": "spectral_asyncapi-channel-parameters"
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"patternId": "spectral_asyncapi-channel-servers"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"patternId": "spectral_asyncapi-headers-schema-type-object"
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"patternId": "spectral_asyncapi-info-contact"
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"patternId": "spectral_asyncapi-info-contact-properties"
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"patternId": "spectral_asyncapi-info-description"
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"patternId": "spectral_asyncapi-info-license"
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"patternId": "spectral_asyncapi-latest-version"
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"patternId": "spectral_asyncapi-message-examples"
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"patternId": "spectral_asyncapi-message-messageId-uniqueness"
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"patternId": "spectral_asyncapi-operation-description"
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"patternId": "spectral_asyncapi-operation-operationId"
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"patternId": "spectral_asyncapi-operation-operationId-uniqueness"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"patternId": "spectral_asyncapi-operation-security"
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"patternId": "spectral_asyncapi-payload"
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"patternId": "spectral_asyncapi-payload-default"
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"patternId": "spectral_asyncapi-payload-examples"
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"patternId": "spectral_asyncapi-payload-unsupported-schemaFormat"
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"patternId": "spectral_asyncapi-schema"
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"patternId": "spectral_asyncapi-schema-default"
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"patternId": "spectral_asyncapi-schema-examples"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"patternId": "spectral_asyncapi-server-no-empty-variable"
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"patternId": "spectral_asyncapi-server-no-trailing-slash"
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"patternId": "spectral_asyncapi-servers"
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"patternId": "spectral_asyncapi-server-security"
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"patternId": "spectral_asyncapi-server-variables"
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"patternId": "spectral_asyncapi-tags"
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"patternId": "spectral_asyncapi-tags-uniqueness"
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"patternId": "spectral_asyncapi-unused-components-schema"
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"patternId": "spectral_asyncapi-unused-components-server"
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"patternId": "spectral_duplicated-entry-in-enum"
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"patternId": "spectral_info-contact"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"patternId": "spectral_info-description"
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"patternId": "spectral_no-eval-in-markdown"
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"patternId": "spectral_no-$ref-siblings"
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"patternId": "spectral_no-script-tags-in-markdown"
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"patternId": "spectral_oas2-anyOf"
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"patternId": "spectral_oas2-api-host"
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"patternId": "spectral_oas2-api-schemes"
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"patternId": "spectral_oas2-discriminator"
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"patternId": "spectral_oas2-host-trailing-slash"
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"patternId": "spectral_oas2-oneOf"
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"patternId": "spectral_oas2-operation-formData-consume-check"
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"patternId": "spectral_oas2-operation-security-defined"
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"patternId": "spectral_oas2-schema"
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"patternId": "spectral_oas2-unused-definition"
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"patternId": "spectral_oas2-valid-media-example"
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"patternId": "spectral_oas2-valid-schema-example"
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"patternId": "spectral_oas3_1-callbacks-in-webhook"
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"patternId": "spectral_oas3_1-servers-in-webhook"
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"patternId": "spectral_oas3-api-servers"
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"patternId": "spectral_oas3-callbacks-in-callbacks"
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"patternId": "spectral_oas3-examples-value-or-externalValue"
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"patternId": "spectral_oas3-operation-security-defined"
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"patternId": "spectral_oas3-schema"
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"patternId": "spectral_oas3-server-trailing-slash"
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"patternId": "spectral_oas3-server-variables"
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"patternId": "spectral_oas3-unused-component"
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"patternId": "spectral_oas3-valid-media-example"
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"patternId": "spectral_oas3-valid-schema-example"
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"patternId": "spectral_openapi-tags-uniqueness"
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"patternId": "spectral_operation-description"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"patternId": "spectral_operation-operationId"
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"patternId": "spectral_operation-operationId-unique"
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"patternId": "spectral_operation-operationId-valid-in-url"
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"patternId": "spectral_operation-parameters"
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"patternId": "spectral_operation-success-response"
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"patternId": "spectral_operation-tag-defined"
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"patternId": "spectral_operation-tags"
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"patternId": "spectral_path-declarations-must-exist"
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"patternId": "spectral_path-keys-no-trailing-slash"
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"patternId": "spectral_path-not-include-query"
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"patternId": "spectral_path-params"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"patternId": "spectral_typed-enum"
|
| 785 |
+
}
|
| 786 |
+
]
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"toolId": "Bandit",
|
| 790 |
+
"patterns": [
|
| 791 |
+
{
|
| 792 |
+
"patternId": "Bandit_B101"
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"patternId": "Bandit_B102"
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"patternId": "Bandit_B103"
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"patternId": "Bandit_B104"
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"patternId": "Bandit_B105"
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"patternId": "Bandit_B106"
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"patternId": "Bandit_B107"
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"patternId": "Bandit_B108"
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"patternId": "Bandit_B110"
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"patternId": "Bandit_B112"
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"patternId": "Bandit_B202"
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"patternId": "Bandit_B301"
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"patternId": "Bandit_B302"
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"patternId": "Bandit_B303"
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"patternId": "Bandit_B304"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"patternId": "Bandit_B305"
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"patternId": "Bandit_B306"
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"patternId": "Bandit_B307"
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"patternId": "Bandit_B309"
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"patternId": "Bandit_B310"
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"patternId": "Bandit_B311"
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"patternId": "Bandit_B312"
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"patternId": "Bandit_B313"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"patternId": "Bandit_B314"
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"patternId": "Bandit_B315"
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"patternId": "Bandit_B316"
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"patternId": "Bandit_B317"
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"patternId": "Bandit_B318"
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"patternId": "Bandit_B319"
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"patternId": "Bandit_B321"
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"patternId": "Bandit_B322"
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"patternId": "Bandit_B323"
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"patternId": "Bandit_B324"
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"patternId": "Bandit_B325"
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"patternId": "Bandit_B401"
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"patternId": "Bandit_B402"
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"patternId": "Bandit_B403"
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"patternId": "Bandit_B404"
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"patternId": "Bandit_B405"
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"patternId": "Bandit_B406"
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"patternId": "Bandit_B407"
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"patternId": "Bandit_B408"
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"patternId": "Bandit_B409"
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"patternId": "Bandit_B411"
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"patternId": "Bandit_B412"
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"patternId": "Bandit_B415"
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"patternId": "Bandit_B502"
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"patternId": "Bandit_B503"
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"patternId": "Bandit_B504"
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"patternId": "Bandit_B505"
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"patternId": "Bandit_B506"
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"patternId": "Bandit_B602"
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"patternId": "Bandit_B603"
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"patternId": "Bandit_B604"
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"patternId": "Bandit_B605"
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"patternId": "Bandit_B606"
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"patternId": "Bandit_B607"
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"patternId": "Bandit_B608"
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"patternId": "Bandit_B609"
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"patternId": "Bandit_B612"
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"patternId": "Bandit_B613"
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"patternId": "Bandit_B614"
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"patternId": "Bandit_B615"
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"patternId": "Bandit_B704"
|
| 982 |
+
}
|
| 983 |
+
]
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"toolId": "PyLintPython3",
|
| 987 |
+
"localConfigurationFile": "pyproject.toml",
|
| 988 |
+
"useLocalConfigurationFile": true,
|
| 989 |
+
"patterns": []
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"toolId": "Checkov",
|
| 993 |
+
"patterns": [
|
| 994 |
+
{
|
| 995 |
+
"patternId": "Checkov_CKV2_DOCKER_1"
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"patternId": "Checkov_CKV2_DOCKER_10"
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"patternId": "Checkov_CKV2_DOCKER_11"
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"patternId": "Checkov_CKV2_DOCKER_12"
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"patternId": "Checkov_CKV2_DOCKER_13"
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"patternId": "Checkov_CKV2_DOCKER_14"
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"patternId": "Checkov_CKV2_DOCKER_15"
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"patternId": "Checkov_CKV2_DOCKER_16"
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"patternId": "Checkov_CKV2_DOCKER_17"
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"patternId": "Checkov_CKV2_DOCKER_2"
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"patternId": "Checkov_CKV2_DOCKER_3"
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"patternId": "Checkov_CKV2_DOCKER_4"
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"patternId": "Checkov_CKV2_DOCKER_5"
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"patternId": "Checkov_CKV2_DOCKER_6"
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"patternId": "Checkov_CKV2_DOCKER_7"
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"patternId": "Checkov_CKV2_DOCKER_8"
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"patternId": "Checkov_CKV2_DOCKER_9"
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"patternId": "Checkov_CKV_BITBUCKET_1"
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"patternId": "Checkov_CKV_DOCKER_1"
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"patternId": "Checkov_CKV_DOCKER_10"
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"patternId": "Checkov_CKV_DOCKER_11"
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"patternId": "Checkov_CKV_DOCKER_2"
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"patternId": "Checkov_CKV_DOCKER_3"
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"patternId": "Checkov_CKV_DOCKER_4"
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"patternId": "Checkov_CKV_DOCKER_5"
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"patternId": "Checkov_CKV_DOCKER_6"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"patternId": "Checkov_CKV_DOCKER_7"
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"patternId": "Checkov_CKV_DOCKER_8"
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"patternId": "Checkov_CKV_DOCKER_9"
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"patternId": "Checkov_CKV_GITHUB_1"
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"patternId": "Checkov_CKV_GITHUB_10"
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"patternId": "Checkov_CKV_GITHUB_11"
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"patternId": "Checkov_CKV_GITHUB_12"
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"patternId": "Checkov_CKV_GITHUB_13"
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"patternId": "Checkov_CKV_GITHUB_14"
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"patternId": "Checkov_CKV_GITHUB_15"
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"patternId": "Checkov_CKV_GITHUB_16"
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"patternId": "Checkov_CKV_GITHUB_17"
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"patternId": "Checkov_CKV_GITHUB_18"
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"patternId": "Checkov_CKV_GITHUB_19"
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"patternId": "Checkov_CKV_GITHUB_2"
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"patternId": "Checkov_CKV_GITHUB_20"
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"patternId": "Checkov_CKV_GITHUB_21"
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"patternId": "Checkov_CKV_GITHUB_22"
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"patternId": "Checkov_CKV_GITHUB_23"
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"patternId": "Checkov_CKV_GITHUB_26"
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"patternId": "Checkov_CKV_GITHUB_27"
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"patternId": "Checkov_CKV_GITHUB_28"
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"patternId": "Checkov_CKV_GITHUB_3"
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"patternId": "Checkov_CKV_GITHUB_4"
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"patternId": "Checkov_CKV_GITHUB_5"
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"patternId": "Checkov_CKV_GITHUB_6"
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"patternId": "Checkov_CKV_GITHUB_7"
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"patternId": "Checkov_CKV_GITHUB_8"
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"patternId": "Checkov_CKV_GITHUB_9"
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"patternId": "Checkov_CKV_GITLAB_1"
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"patternId": "Checkov_CKV_OPENAPI_1"
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"patternId": "Checkov_CKV_OPENAPI_10"
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"patternId": "Checkov_CKV_OPENAPI_11"
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"patternId": "Checkov_CKV_OPENAPI_12"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"patternId": "Checkov_CKV_OPENAPI_13"
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"patternId": "Checkov_CKV_OPENAPI_14"
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"patternId": "Checkov_CKV_OPENAPI_15"
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"patternId": "Checkov_CKV_OPENAPI_16"
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"patternId": "Checkov_CKV_OPENAPI_17"
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"patternId": "Checkov_CKV_OPENAPI_18"
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"patternId": "Checkov_CKV_OPENAPI_19"
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"patternId": "Checkov_CKV_OPENAPI_2"
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"patternId": "Checkov_CKV_OPENAPI_20"
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"patternId": "Checkov_CKV_OPENAPI_21"
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"patternId": "Checkov_CKV_OPENAPI_3"
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"patternId": "Checkov_CKV_OPENAPI_4"
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"patternId": "Checkov_CKV_OPENAPI_5"
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"patternId": "Checkov_CKV_OPENAPI_6"
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"patternId": "Checkov_CKV_OPENAPI_7"
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"patternId": "Checkov_CKV_OPENAPI_8"
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"patternId": "Checkov_CKV_OPENAPI_9"
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"patternId": "Checkov_CKV_SECRET_1"
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"patternId": "Checkov_CKV_SECRET_11"
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"patternId": "Checkov_CKV_SECRET_12"
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"patternId": "Checkov_CKV_SECRET_13"
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"patternId": "Checkov_CKV_SECRET_14"
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"patternId": "Checkov_CKV_SECRET_15"
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"patternId": "Checkov_CKV_SECRET_16"
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"patternId": "Checkov_CKV_SECRET_17"
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"patternId": "Checkov_CKV_SECRET_18"
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"patternId": "Checkov_CKV_SECRET_19"
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"patternId": "Checkov_CKV_SECRET_2"
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"patternId": "Checkov_CKV_SECRET_3"
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"patternId": "Checkov_CKV_SECRET_4"
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"patternId": "Checkov_CKV_SECRET_5"
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"patternId": "Checkov_CKV_SECRET_6"
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"patternId": "Checkov_CKV_SECRET_7"
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"patternId": "Checkov_CKV_SECRET_8"
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"patternId": "Checkov_CKV_SECRET_9"
|
| 1278 |
+
}
|
| 1279 |
+
]
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"toolId": "Lizard",
|
| 1283 |
+
"patterns": [
|
| 1284 |
+
{
|
| 1285 |
+
"patternId": "Lizard_file-nloc-medium"
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"patternId": "Lizard_nloc-medium"
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"patternId": "Lizard_parameter-count-medium"
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"patternId": "Lizard_nloc-critical",
|
| 1295 |
+
"parameters": {
|
| 1296 |
+
"threshold": "170"
|
| 1297 |
+
}
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"patternId": "Lizard_ccn-critical",
|
| 1301 |
+
"parameters": {
|
| 1302 |
+
"threshold": "50"
|
| 1303 |
+
}
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"patternId": "Lizard_ccn-medium",
|
| 1307 |
+
"parameters": {
|
| 1308 |
+
"threshold": "20"
|
| 1309 |
+
}
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"patternId": "Lizard_parameter-count-critical"
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"patternId": "Lizard_file-nloc-critical"
|
| 1316 |
+
}
|
| 1317 |
+
]
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"toolId": "Prospector",
|
| 1321 |
+
"patterns": [
|
| 1322 |
+
{
|
| 1323 |
+
"patternId": "Prospector_dodgy"
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"patternId": "Prospector_mccabe"
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"patternId": "Prospector_profile-validator"
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"patternId": "Prospector_pycodestyle"
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"patternId": "Prospector_pydocstyle"
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"patternId": "Prospector_pyflakes"
|
| 1339 |
+
}
|
| 1340 |
+
]
|
| 1341 |
+
}
|
| 1342 |
+
]
|
| 1343 |
+
}
|
.dockerignore
CHANGED
|
@@ -6,9 +6,16 @@
|
|
| 6 |
!requirements-api-gpu.txt
|
| 7 |
!requirements-tracking-export.txt
|
| 8 |
!requirements-sam.txt
|
|
|
|
| 9 |
!pyproject.toml
|
| 10 |
!baseball_batting/
|
| 11 |
!baseball_batting/*.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
!configs/
|
| 13 |
!configs/*.yaml
|
| 14 |
!tools/
|
|
|
|
| 6 |
!requirements-api-gpu.txt
|
| 7 |
!requirements-tracking-export.txt
|
| 8 |
!requirements-sam.txt
|
| 9 |
+
!requirements-coach.txt
|
| 10 |
!pyproject.toml
|
| 11 |
!baseball_batting/
|
| 12 |
!baseball_batting/*.py
|
| 13 |
+
!baseball_batting/product.html
|
| 14 |
+
!AI-coach-agent/
|
| 15 |
+
!AI-coach-agent/pyproject.toml
|
| 16 |
+
!AI-coach-agent/README.md
|
| 17 |
+
!AI-coach-agent/src/
|
| 18 |
+
!AI-coach-agent/src/**
|
| 19 |
!configs/
|
| 20 |
!configs/*.yaml
|
| 21 |
!tools/
|
.env.example
CHANGED
|
@@ -6,5 +6,10 @@ BASEBALL_MAX_FRAMES=7200
|
|
| 6 |
BASEBALL_MAX_DURATION_S=120
|
| 7 |
BASEBALL_JOB_TIMEOUT_S=1800
|
| 8 |
BASEBALL_RETENTION_HOURS=24
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Required only for the optional HTTPS proxy. Point its DNS at your GPU server.
|
| 10 |
BASEBALL_DOMAIN=
|
|
|
|
| 6 |
BASEBALL_MAX_DURATION_S=120
|
| 7 |
BASEBALL_JOB_TIMEOUT_S=1800
|
| 8 |
BASEBALL_RETENTION_HOURS=24
|
| 9 |
+
# Optional video review; use a server secret, never a frontend or notebook key.
|
| 10 |
+
GOOGLE_API_KEY=
|
| 11 |
+
COACH_MODEL=gemini-3.1-flash-lite
|
| 12 |
+
COACH_VIDEO_REVIEW_MODEL=gemini-3.8-flash
|
| 13 |
+
COACH_DAILY_BUDGET_USD=1
|
| 14 |
# Required only for the optional HTTPS proxy. Point its DNS at your GPU server.
|
| 15 |
BASEBALL_DOMAIN=
|
.gitignore
CHANGED
|
@@ -24,3 +24,7 @@ api-data/
|
|
| 24 |
.env
|
| 25 |
.env.*
|
| 26 |
!.env.example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
.env
|
| 25 |
.env.*
|
| 26 |
!.env.example
|
| 27 |
+
.venv*/
|
| 28 |
+
data_ref/obp/
|
| 29 |
+
data_ref/downloads/
|
| 30 |
+
.coach_cache/
|
AI-coach-agent/.dockerignore
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv
|
| 2 |
+
.env
|
| 3 |
+
.coach_cache
|
| 4 |
+
.git
|
| 5 |
+
.pytest_cache
|
| 6 |
+
.ruff_cache
|
| 7 |
+
__pycache__
|
| 8 |
+
tests
|
| 9 |
+
evals
|
| 10 |
+
docs
|
| 11 |
+
examples
|
| 12 |
+
tools
|
AI-coach-agent/.env.example
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copy to .env (git-ignored) and fill in. Never commit real keys.
|
| 2 |
+
GOOGLE_API_KEY=
|
| 3 |
+
COACH_MODEL=gemini-3.1-flash-lite
|
| 4 |
+
COACH_ESCALATION_MODEL=gemini-3.8-flash
|
| 5 |
+
COACH_DAILY_BUDGET_USD=1.00
|
| 6 |
+
COACH_CACHE_PATH=.coach_cache/responses.sqlite3
|
| 7 |
+
COACH_CACHE_TTL_DAYS=30
|
| 8 |
+
COACH_FAILURE_CACHE_TTL_S=300
|
| 9 |
+
COACH_TIMEOUT_S=20
|
| 10 |
+
COACH_MAX_OUTPUT_TOKENS=700
|
| 11 |
+
# Thinking tokens are billed as output. Set only what the model accepts (verify with the live smoke test):
|
| 12 |
+
# COACH_THINKING_LEVEL=low # Gemini 3+: minimal | low | medium | high
|
| 13 |
+
# COACH_THINKING_BUDGET=0 # Gemini 2.5 style
|
| 14 |
+
|
| 15 |
+
# Logs and ledger
|
| 16 |
+
COACH_ENV=dev
|
| 17 |
+
COACH_LOG_DIR=.coach_cache/logs
|
| 18 |
+
COACH_LOG_LEVEL=INFO
|
| 19 |
+
# COACH_LOG_TO_CONSOLE=true
|
| 20 |
+
|
| 21 |
+
# LangSmith tracing (optional, see docs/OBSERVABILITY.md)
|
| 22 |
+
COACH_TRACING=false
|
| 23 |
+
LANGSMITH_API_KEY=
|
| 24 |
+
LANGSMITH_PROJECT=ai-coach
|
| 25 |
+
# LANGSMITH_ENDPOINT=https://eu.api.smith.langchain.com
|
| 26 |
+
# COACH_TRACE_ALL=false # also trace cache hits and rule-based notes
|
| 27 |
+
# COACH_TRACE_SAMPLE_RATE=1.0
|
| 28 |
+
# COACH_TRACE_HIDE_INPUTS=false
|
| 29 |
+
# COACH_TRACE_HIDE_OUTPUTS=false
|
| 30 |
+
|
| 31 |
+
# HTTP API (docs/DEPLOYMENT.md). COACH_API_KEY is required when COACH_ENV=prod; callers send it as X-API-Key.
|
| 32 |
+
COACH_API_KEY=
|
| 33 |
+
# COACH_MAX_BODY_BYTES=2000000
|
AI-coach-agent/.gitignore
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv/
|
| 2 |
+
.env
|
| 3 |
+
__pycache__/
|
| 4 |
+
*.pyc
|
| 5 |
+
.pytest_cache/
|
| 6 |
+
.ruff_cache/
|
| 7 |
+
*.egg-info/
|
| 8 |
+
.coach_cache/
|
AI-coach-agent/Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# syntax=docker/dockerfile:1
|
| 2 |
+
FROM python:3.11-slim AS build
|
| 3 |
+
WORKDIR /src
|
| 4 |
+
COPY pyproject.toml README.md ./
|
| 5 |
+
COPY src ./src
|
| 6 |
+
RUN pip install --no-cache-dir --prefix=/install ".[api]"
|
| 7 |
+
|
| 8 |
+
FROM python:3.11-slim
|
| 9 |
+
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 \
|
| 10 |
+
COACH_CACHE_PATH=/data/responses.sqlite3 \
|
| 11 |
+
COACH_LOG_DIR=/data/logs \
|
| 12 |
+
COACH_ENV=prod
|
| 13 |
+
COPY --from=build /install /usr/local
|
| 14 |
+
RUN useradd --system --uid 10001 --home-dir /nonexistent coach && mkdir /data && chown coach /data
|
| 15 |
+
USER coach
|
| 16 |
+
VOLUME /data
|
| 17 |
+
EXPOSE 8000
|
| 18 |
+
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
|
| 19 |
+
CMD python -c "import urllib.request as u; u.urlopen('http://127.0.0.1:8000/healthz', timeout=2)"
|
| 20 |
+
# One worker on purpose: the response cache's single-flight and the in-memory budget guard live in the process.
|
| 21 |
+
# Scale by running more containers behind a load balancer, each with its own /data (or a shared budget store later).
|
| 22 |
+
CMD ["uvicorn", "ai_coach.api:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
|
AI-coach-agent/README.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AI Coach Agent
|
| 2 |
+
|
| 3 |
+
Reads the **measurements** from the pose pipeline and writes a short, honest coaching note for a baseball player: **what looks solid,
|
| 4 |
+
what to work on (one priority fix), a cue, one drill, and caveats about data quality**. The agent does the judging. The pipeline only
|
| 5 |
+
sends numbers; the agent finds the problems the repeated measurements support, decides what matters most and explains it. Deterministic
|
| 6 |
+
code supplies verified evidence and checks every claim; a rule-based note is the always-available fallback and the yardstick.
|
| 7 |
+
|
| 8 |
+
* Cost: about **$0.002 per note** on `gemini-3.1-flash-lite`; $0 for repeats and for sessions with nothing to judge (see `docs/MODEL_CHOICE.md`).
|
| 9 |
+
* Safe by construction: numbers only (never video), every problem must be backed by evidence, no invented numbers, no praise on estimates,
|
| 10 |
+
drills only from the library, no medical language, rule-based fallback.
|
| 11 |
+
* For the ML / pipeline engineer: read **`docs/POSE_DATA_SPEC.md`** then **`docs/AGENT_INPUT_SPEC.md`** (measurements only; he never sends
|
| 12 |
+
faults, a priority fix or drills) and run `python -m ai_coach.validate session.json`.
|
| 13 |
+
|
| 14 |
+
## Layout
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
src/ai_coach/
|
| 18 |
+
schemas.py CoachInput (what the agent sees) / CoachNote (what it returns) / CoachResult
|
| 19 |
+
input_builder.py measurements -> compact CoachInput; adds the agent's own ranges, problems and drills; sanitises free text
|
| 20 |
+
analysis.py deterministic evidence: per-metric stats, which problems the repeated measurements support, baseline ranking
|
| 21 |
+
knowledge/ ranges.yaml (typical ranges by level), problems.yaml (14 problems + evidence rules), drills.yaml (30 drills),
|
| 22 |
+
metrics.yaml (labels, aliases), bounds.yaml (plausible values) <- the agent's own, editable reference data
|
| 23 |
+
prompts/ system.md, examples.md, user.md (edit prompts here; the version hash changes the cache key)
|
| 24 |
+
prompt_loader.py loads + versions prompts, builds the LangChain ChatPromptTemplate
|
| 25 |
+
chain.py GeminiGenerator: prompt | ChatGoogleGenerativeAI.with_structured_output(CoachNote)
|
| 26 |
+
guardrails.py evidence-based checks (problem supported + cited, drill from library, praise rules, numbers, vocabulary, tone)
|
| 27 |
+
fallback.py deterministic rule-based note = the software baseline (always available)
|
| 28 |
+
scoring.py the 0-100 mechanics score (code, never the model)
|
| 29 |
+
timing.py load-and-timing section built by code from the engine's timing measurements
|
| 30 |
+
response.py the app-facing response v2.0 assembled from the note, score and timing
|
| 31 |
+
cache.py sqlite response cache with TTL cost.py usage ledger (calls + requests), prices, budget guard
|
| 32 |
+
tracing.py LangSmith tracing (explicit client) observability.py JSON logs, redaction report.py usage report
|
| 33 |
+
service.py CoachService: cache -> Gemini (repair, escalate) -> guardrails -> fallback; records agreement with the baseline
|
| 34 |
+
validate.py checks pipeline output before it reaches the coach cli.py command line
|
| 35 |
+
docs/ POSE_DATA_SPEC.md (pose points/objects/events), AGENT_INPUT_SPEC.md (measurements for the coach), OBSERVABILITY.md,
|
| 36 |
+
MODEL_CHOICE.md, *.schema.json, examples/pose_track_example.json
|
| 37 |
+
examples/inputs/ 10 synthetic measurement sessions + 1 real clip (hitting and pitching, one and two problems, low fps, bad rep)
|
| 38 |
+
evals/run_eval.py quality / cost / cache report tools/ make_examples, export_schema, check_pose_json, import_reference_data
|
| 39 |
+
tests/ 300+ offline tests; tests/test_live.py is opt-in
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Setup
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
python3.11 -m venv .venv && source .venv/bin/activate
|
| 46 |
+
pip install -e ".[dev]"
|
| 47 |
+
cp .env.example .env # then put your key in GOOGLE_API_KEY (the file is git-ignored)
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
## Use
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
from ai_coach import CoachService
|
| 54 |
+
|
| 55 |
+
service = CoachService()
|
| 56 |
+
result = service.coach(session_json, level="hs_varsity") # never raises for model/network problems
|
| 57 |
+
print(result.note.headline, result.source, result.usage.cost_usd) # source is "llm" or "rules"
|
| 58 |
+
response = service.respond(session) # what the HTTP API returns: score, summary, focus, drill, timing ...
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
python -m ai_coach.cli examples/inputs/hitting_overstride_240fps.json # uses Gemini if a key is set
|
| 63 |
+
python -m ai_coach.cli examples/inputs/hitting_overstride_240fps.json --fallback-only
|
| 64 |
+
python -m ai_coach.validate examples/inputs/pitching_short_stride_240fps.json
|
| 65 |
+
python evals/run_eval.py --mode rules # offline
|
| 66 |
+
python evals/run_eval.py --mode live --repeat 2 # real calls; second pass shows cache hits
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
`await service.acoach(...)` is the async variant (runs the blocking call in a worker thread).
|
| 70 |
+
|
| 71 |
+
## HTTP API and Docker
|
| 72 |
+
|
| 73 |
+
`POST /v1/coach` takes a session (and optional hitting `timing`) and returns the response v2.0: score, summary, strengths, focus, drill, timing, arm care and data quality ([API contract](docs/FRONTEND_INTEGRATION.md), [screen guide](docs/FRONTEND_UI_GUIDE.md)); `GET /v1/usage`, `/healthz` and `/readyz` too. Build and run with `docker build -t ai-coach-agent .`.
|
| 74 |
+
Endpoints, auth, scaling notes and what to mount: [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md).
|
| 75 |
+
|
| 76 |
+
## How a note is produced
|
| 77 |
+
|
| 78 |
+
1. `input_builder` takes the measurements (anything the pipeline says about faults, focus, drills or ranges is ignored), looks up the
|
| 79 |
+
typical ranges for the player's level in the agent's own data, and `analysis` finds the problems the **repeated, trustworthy**
|
| 80 |
+
measurements support (one bad rep is not a pattern; estimates are never evidence). Free text is sanitised.
|
| 81 |
+
2. Nothing judgeable, or capture failed: rule-based note, no model call.
|
| 82 |
+
3. Response cache hit (re-checked against the guardrails): return it. Otherwise one Gemini call with structured output (`CoachNote`).
|
| 83 |
+
4. **Gemini judges**: it picks what looks solid, chooses ONE priority fix among the supported problems (it may differ from the software's
|
| 84 |
+
suggested order), cites the evidence, picks a drill from the library offered for that problem and writes the caveats.
|
| 85 |
+
5. `guardrails.check_note` must pass. If not: repair retry (same model), then one call on the escalation model, then the rule-based note.
|
| 86 |
+
6. Only guardrail-clean notes are cached. Every call's tokens and cost go to the ledger, the JSON log and (if enabled) LangSmith, together
|
| 87 |
+
with whether Gemini's priority fix agreed with the software baseline (`ai-coach-report` shows the agreement rate).
|
| 88 |
+
|
| 89 |
+
## Usage, cost and logs
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
python -m ai_coach.report --days 7 # tokens, cost, cache hit rate, fallbacks, latency, budget
|
| 93 |
+
python -m ai_coach.tracing check # verify LangSmith is connected (needs your key)
|
| 94 |
+
tail -f .coach_cache/logs/coach.jsonl # one JSON line per model call and per request
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
* **LangSmith** shows every Gemini call as a trace (prompt, output, tokens, latency) with `cost_usd`, attempts, fallback reason and
|
| 98 |
+
`request_id` as filterable metadata. Turn it on with `COACH_TRACING=true` and `LANGSMITH_API_KEY` in `.env`.
|
| 99 |
+
* The **local ledger and JSON logs** also cover cache hits and rule-based notes, enforce the daily budget, and never contain note text
|
| 100 |
+
or session data. Full guide: [`docs/OBSERVABILITY.md`](docs/OBSERVABILITY.md).
|
| 101 |
+
|
| 102 |
+
## Configuration (env or `.env`)
|
| 103 |
+
|
| 104 |
+
| Variable | Default | Meaning |
|
| 105 |
+
|---|---|---|
|
| 106 |
+
| `GOOGLE_API_KEY` | none | without it the service uses rule-based notes only |
|
| 107 |
+
| `COACH_MODEL` / `COACH_ESCALATION_MODEL` | `gemini-3.1-flash-lite` / `gemini-3.8-flash` | set escalation empty to disable |
|
| 108 |
+
| `COACH_DAILY_BUDGET_USD` | `1.00` | stops model calls when spent |
|
| 109 |
+
| `COACH_CACHE_PATH`, `COACH_CACHE_TTL_DAYS` | `.coach_cache/responses.sqlite3`, `30` | response cache |
|
| 110 |
+
| `COACH_FAILURE_CACHE_TTL_S` | `300` | how long a rule-based outcome is remembered so identical requests do not repeat the model chain (0 = off) |
|
| 111 |
+
| `COACH_TIMEOUT_S`, `COACH_MAX_OUTPUT_TOKENS`, `COACH_TEMPERATURE` | `20`, `700`, `0.2` | model call limits |
|
| 112 |
+
| `COACH_THINKING_LEVEL` / `COACH_THINKING_BUDGET` | unset | thinking tokens are billed as output; sent only when set; verify the model accepts it |
|
| 113 |
+
| `COACH_TRACING`, `LANGSMITH_API_KEY`, `LANGSMITH_PROJECT`, `LANGSMITH_ENDPOINT` | off | LangSmith tracing, see `docs/OBSERVABILITY.md` |
|
| 114 |
+
| `COACH_LOG_DIR`, `COACH_LOG_LEVEL`, `COACH_ENV` | `.coach_cache/logs`, `INFO`, `dev` | JSON logs and the environment tag |
|
| 115 |
+
|
| 116 |
+
## Tests and quality
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
pytest -m "not live" # offline, no network, no key needed
|
| 120 |
+
pytest -m live -s # real Gemini calls (needs GOOGLE_API_KEY); prints cost and cache tokens
|
| 121 |
+
ruff check . && ruff format --check .
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
Editing a prompt: change `src/ai_coach/prompts/*.md`; `tests/test_prompts.py` checks the worked examples against the guardrails, so an
|
| 125 |
+
example that teaches a rule violation fails the build. After changing `schemas.py` run `python tools/export_schema.py`.
|
| 126 |
+
|
| 127 |
+
## Limits (be honest with users)
|
| 128 |
+
|
| 129 |
+
* The coach cannot be more accurate than the metrics. Reference ranges are mostly unverified drafts, so notes say "typical range" and add a
|
| 130 |
+
"ranges are drafts" caveat. Pitching has not been validated on real 240 fps footage.
|
| 131 |
+
* No memory across sessions yet (no trend or "fixed" moments); the pipeline owns session history.
|
| 132 |
+
* Never log or commit the API key. `.env` is git-ignored.
|
AI-coach-agent/docs/AGENT_INPUT_SPEC.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AI Coach Agent: what the ML / pipeline engineer sends (contract v2: measurements only)
|
| 2 |
+
|
| 3 |
+
**For:** the ML / pose-pipeline engineer. **Read first:** `POSE_DATA_SPEC.md` (the 2D points, objects and timestamps).
|
| 4 |
+
This document covers the next stage: the **measurements** computed from those points.
|
| 5 |
+
|
| 6 |
+
> **Start with `ML_PIPELINE_RESPONSE.md` (the one-page response structure; it includes the 2D-versus-3D decision and what is judged today).**
|
| 7 |
+
>
|
| 8 |
+
> **Your job ends at numbers.** You do **not** decide what is wrong with the player, what is right, what to improve, or which drill to give.
|
| 9 |
+
> The AI coach agent decides all of that. You send accurate, honestly-labelled measurements and nothing else.
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
## 1. Who decides what
|
| 14 |
+
|
| 15 |
+
| Question | Decided by |
|
| 16 |
+
|---|---|
|
| 17 |
+
| Where are the joints, objects and timestamps? | **You** (`POSE_DATA_SPEC.md`) |
|
| 18 |
+
| What are the events (foot plant, release...) and the measurements (stride, knee angle...)? | **You** (this document), or us from your points if you only deliver points (see section 8 of the pose spec) |
|
| 19 |
+
| How trustworthy is each number (`high` / `medium` / `est`)? | **You**: this is the most important thing you tell us |
|
| 20 |
+
| **What is wrong with the player? What is right? What matters most? Which drill?** | **The AI coach agent** (never you) |
|
| 21 |
+
| What is a typical range for this player's level? | The agent's own reference data (not sent by you) |
|
| 22 |
+
| Player context (level, age, bats/throws), pitch counts and rest dates | The app, not you |
|
| 23 |
+
|
| 24 |
+
## 2. What you send
|
| 25 |
+
|
| 26 |
+
One JSON per session. Measurements only:
|
| 27 |
+
|
| 28 |
+
```json
|
| 29 |
+
{
|
| 30 |
+
"schema_version": "2.0",
|
| 31 |
+
"discipline": "hitting",
|
| 32 |
+
"view": "face_on",
|
| 33 |
+
"fps": 240.0,
|
| 34 |
+
"capture": {
|
| 35 |
+
"ok": true,
|
| 36 |
+
"reasons": []
|
| 37 |
+
},
|
| 38 |
+
"reps": [
|
| 39 |
+
{
|
| 40 |
+
"rep": 1,
|
| 41 |
+
"discipline": "hitting",
|
| 42 |
+
"events_ms": {
|
| 43 |
+
"stance_set": 100,
|
| 44 |
+
"load_start": 500,
|
| 45 |
+
"stride": 750,
|
| 46 |
+
"foot_plant": 1000,
|
| 47 |
+
"swing_start": 1050,
|
| 48 |
+
"contact": 1221,
|
| 49 |
+
"finish": 1721
|
| 50 |
+
},
|
| 51 |
+
"metrics": [
|
| 52 |
+
{
|
| 53 |
+
"key": "stride_pct_height",
|
| 54 |
+
"value": 61.7,
|
| 55 |
+
"unit": "%",
|
| 56 |
+
"confidence": "high"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"key": "head_movement_pct_height",
|
| 60 |
+
"value": 2.0,
|
| 61 |
+
"unit": "%",
|
| 62 |
+
"confidence": "high"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"key": "lead_knee_angle_contact_deg",
|
| 66 |
+
"value": 165.1,
|
| 67 |
+
"unit": "deg",
|
| 68 |
+
"confidence": "medium",
|
| 69 |
+
"note": "capped at medium for this metric"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 73 |
+
"value": -13.0,
|
| 74 |
+
"unit": "deg",
|
| 75 |
+
"confidence": "est",
|
| 76 |
+
"note": "Estimate: 2D image-plane angle between shoulder and hip lines, not transverse-plane twist.; capped at est for this metric"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"key": "load_tempo_s",
|
| 80 |
+
"value": null,
|
| 81 |
+
"unit": "s",
|
| 82 |
+
"confidence": "est",
|
| 83 |
+
"note": "not computed: event 'load_start' not found"
|
| 84 |
+
}
|
| 85 |
+
],
|
| 86 |
+
"quality": {
|
| 87 |
+
"pose_conf": 0.9,
|
| 88 |
+
"blur": 0.1
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
]
|
| 92 |
+
}
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Per session: `schema_version` (`"2.0"`), `discipline` (`hitting` or `pitching`), `view`, `fps` (the **real capture** frame rate), `capture`
|
| 96 |
+
(`ok` plus machine `reasons`, from the capture check), and `reps[]`.
|
| 97 |
+
|
| 98 |
+
Per rep: `rep` (1, 2, 3...), optional `events_ms` (event times in ms from the start of the rep, only events you found), and `metrics[]`.
|
| 99 |
+
|
| 100 |
+
Per metric: `key`, `value` (a number, or `null` if it could not be measured), `unit`, `confidence` (`high`, `medium` or `est`) and, for any `null`
|
| 101 |
+
or limited value, a short `note` saying why. Optional per rep: `quality` (`pose_conf`, `blur`).
|
| 102 |
+
|
| 103 |
+
### Do NOT send (the agent ignores these and a checker will warn)
|
| 104 |
+
|
| 105 |
+
`faults`, `focus` / priority fix, `drill`, any explanation text (what / why / cue), `zone`, `band` / reference range, `ref`, `consistency`, `coach_flags`,
|
| 106 |
+
`retest`. Typical ranges and the list of problems are the agent's own reference data, so that we can improve them without touching your code.
|
| 107 |
+
Also never send video, frames, keypoints, names or ids to the agent (the pose file in `POSE_DATA_SPEC.md` is a separate hand-off).
|
| 108 |
+
|
| 109 |
+
## 3. The measurements we ask for
|
| 110 |
+
|
| 111 |
+
This is the list we request. If yours differs (added, removed, renamed or defined differently), tell us in writing; do not change a definition silently.
|
| 112 |
+
All distances are normalised by the athlete's body height so they do not depend on how far the camera is.
|
| 113 |
+
|
| 114 |
+
### Hitting (face-on camera)
|
| 115 |
+
|
| 116 |
+
| Key | Unit | Definition | Uses points / events |
|
| 117 |
+
|---|---|---|---|
|
| 118 |
+
| `stride_pct_height` | % | **redefined: foot to foot**: horizontal distance between the lead and back ankle at `foot_plant`, as % of body height (the old "lead-ankle travel from load start" measures about 15%, which matches no reference) | ankles; `foot_plant` |
|
| 119 |
+
| `foot_plant_to_contact_ms` | ms | time from foot plant to arm extension (a contact PROXY, not ball contact; reference-only, never judged) | `foot_plant`, `contact` |
|
| 120 |
+
| `load_tempo_s` | s | time from load start to foot plant | `load_start`, `foot_plant` |
|
| 121 |
+
| `load_launch_ratio` | ratio | load time divided by the foot plant to contact time | the three events above |
|
| 122 |
+
| `head_movement_pct_height` | % | path travelled by the head (nose) from stance set to contact, as % of body height | nose; `stance_set`, `contact` |
|
| 123 |
+
| `lead_knee_angle_contact_deg` | deg | interior hip-knee-ankle angle of the lead leg at contact (180 = straight) | lead hip, knee, ankle; `contact` |
|
| 124 |
+
| `lateral_trunk_tilt_contact_deg` | deg | tilt of the shoulder line from horizontal at contact | shoulders; `contact` |
|
| 125 |
+
| `hip_shoulder_separation_foot_plant_deg` | deg | **estimate** (2D): shoulder-line tilt minus hip-line tilt at foot plant | shoulders, hips; `foot_plant` |
|
| 126 |
+
| `com_drift_pct_height` | % | hip midpoint position relative to the lead ankle at contact, as % of height (positive = past the front foot) | hips, ankles; `contact` |
|
| 127 |
+
|
| 128 |
+
### Pitching (open-side camera)
|
| 129 |
+
|
| 130 |
+
| Key | Unit | Definition | Uses points / events |
|
| 131 |
+
|---|---|---|---|
|
| 132 |
+
| `stride_pct_height` | % | horizontal distance between back ankle and lead ankle at foot plant, as % of height | ankles; `foot_plant` |
|
| 133 |
+
| `lead_knee_flexion_fp_deg` | deg | 180 minus the interior hip-knee-ankle angle of the lead leg at foot plant (0 = straight) | lead leg; `foot_plant` |
|
| 134 |
+
| `lead_knee_flexion_release_deg` | deg | same at release | lead leg; `release` |
|
| 135 |
+
| `lead_knee_block_deg` | deg | flexion at foot plant minus flexion at release (positive = the leg firmed up) | the two above |
|
| 136 |
+
| `trunk_forward_tilt_release_deg` | deg | trunk lean toward the plate, from vertical, at release | shoulders, hips; `release` |
|
| 137 |
+
| `trunk_lateral_tilt_release_deg` | deg | trunk side lean (positive = glove-side lean) at release | shoulders; `release` |
|
| 138 |
+
| `arm_slot_deg` | deg | throwing-arm angle (shoulder to wrist) at release; best seen from the front, so cap at `medium` | throwing shoulder, wrist; `release` |
|
| 139 |
+
| `leg_lift_to_fp_ms` | ms | time from peak leg lift to foot plant | `leg_lift`, `foot_plant` |
|
| 140 |
+
| `fp_to_release_ms` | ms | time from foot plant to release | `foot_plant`, `release` |
|
| 141 |
+
| `head_stability_pct_height` | % | **redefined**: vertical range of the head (max minus min height) from leg lift to release, as % of height (path length is dominated by the whole body moving forward) | nose; `leg_lift`, `release` |
|
| 142 |
+
| `hip_shoulder_sep_fp` | deg | **estimate** (2D): shoulder-line tilt minus hip-line tilt at foot plant | shoulders, hips; `foot_plant` |
|
| 143 |
+
|
| 144 |
+
Not measured in v1, do not send: bat speed, exit velocity, pitch velocity, spin, arm speed, maximum external rotation, kinematic sequence (a single
|
| 145 |
+
phone cannot measure them credibly).
|
| 146 |
+
|
| 147 |
+
## 4. What the agent does with your numbers (so you know why accuracy matters)
|
| 148 |
+
|
| 149 |
+
1. **It looks up typical ranges for the player's level** in its own reference data (mostly unverified drafts today; it says so to the player).
|
| 150 |
+
2. **It finds the problems itself.** A metric outside its typical range, measured on enough reps and labelled `high` or `medium`, is a candidate problem.
|
| 151 |
+
Repeated across reps counts more than a single outlier. Every problem the agent names must point to the metrics that show it.
|
| 152 |
+
3. **It decides what matters most**: one priority fix (lower-body problems are generally addressed before upper-body ones), explained in plain language with a cue
|
| 153 |
+
and one drill chosen from our drill library.
|
| 154 |
+
4. **It says what is right**: in-range `high` / `medium` metrics.
|
| 155 |
+
5. **It stays honest**: `est` metrics and `null` values are never praised or blamed (they become a short "estimate" caveat); low fps or a failed capture
|
| 156 |
+
means a cautious note or "record again".
|
| 157 |
+
6. **It cannot invent**: every number it writes must come from your data or its reference data, and its claims are checked automatically
|
| 158 |
+
(evidence, drill, vocabulary, numbers, reading level) before a player sees them.
|
| 159 |
+
|
| 160 |
+
Because the agent judges, **your confidence labels are what keep it from judging wrongly**. A confident wrong number becomes a wrong coaching message.
|
| 161 |
+
|
| 162 |
+
## 5. Data requirements and acceptance checks
|
| 163 |
+
|
| 164 |
+
### 5.1 Values must be physically plausible
|
| 165 |
+
|
| 166 |
+
Outside these bounds is a pipeline bug, not a finding: send `null` plus a `note` instead.
|
| 167 |
+
|
| 168 |
+
| Hitting metric | Unit | Plausible range | Pitching metric | Unit | Plausible range |
|
| 169 |
+
|---|---|---|---|---|---|
|
| 170 |
+
| `stride_pct_height` | % | 10 to 120 | `stride_pct_height` | % | 20 to 130 |
|
| 171 |
+
| `foot_plant_to_contact_ms` | ms | 30 to 800 | `lead_knee_flexion_fp_deg` | deg | 0 to 120 |
|
| 172 |
+
| `load_tempo_s` | s | 0.05 to 3.0 | `lead_knee_flexion_release_deg` | deg | 0 to 120 |
|
| 173 |
+
| `load_launch_ratio` | ratio | 0.1 to 20 | `lead_knee_block_deg` | deg | -60 to 90 |
|
| 174 |
+
| `head_movement_pct_height` | % | 0 to 40 | `trunk_forward_tilt_release_deg` | deg | -30 to 90 |
|
| 175 |
+
| `lead_knee_angle_contact_deg` | deg | 60 to 200 | `trunk_lateral_tilt_release_deg` | deg | -60 to 60 |
|
| 176 |
+
| `lateral_trunk_tilt_contact_deg` | deg | -90 to 90 | `arm_slot_deg` | deg | -30 to 150 |
|
| 177 |
+
| `hip_shoulder_separation_foot_plant_deg` | deg | -90 to 90 | `leg_lift_to_fp_ms` | ms | 100 to 3000 |
|
| 178 |
+
| `com_drift_pct_height` | % | -80 to 80 | `fp_to_release_ms` | ms | 30 to 800 |
|
| 179 |
+
| | | | `head_stability_pct_height` | % | **redefined**: vertical range of the head (max minus min height) from leg lift to release, as % of height (path length is dominated by the whole body moving forward) | nose; `leg_lift`, `release` |
|
| 180 |
+
| | | | `hip_shoulder_sep_fp` | deg | -90 to 90 |
|
| 181 |
+
|
| 182 |
+
### 5.2 Confidence labels must be honest
|
| 183 |
+
|
| 184 |
+
* `high` and `medium` mean "safe to coach from". `est` means rough. **When unsure, use `est`.**
|
| 185 |
+
* The 2D hip-shoulder separation metrics are always `est`.
|
| 186 |
+
* Timing metrics are `null` below 60 fps and drop one level below 120 fps; do not report millisecond timing from 30 fps video.
|
| 187 |
+
* A metric that reads a weak event (for example the estimated `contact`) is capped at `est` or `medium`.
|
| 188 |
+
* We would like to see, on real footage, how often your `high` labels are within tolerance of a hand measurement.
|
| 189 |
+
|
| 190 |
+
### 5.3 Nulls need a reason, capture reasons must be known keys, events must be ordered
|
| 191 |
+
|
| 192 |
+
* `value: null` must carry a `note` ("not computed: event 'load_start' not found", "timing needs >= 60 fps").
|
| 193 |
+
* `capture.reasons`: `no_person, multiple_people, player_switched, person_too_small, partly_out_of_frame, too_dark, a_bit_dark, too_blurry,
|
| 194 |
+
a_bit_blurry, low_pose_confidence, pose_confidence_fair, low_fps, very_low_fps, wrong_view, view_uncertain`. `capture.ok = false` needs at least one reason.
|
| 195 |
+
* `events_ms` follow the discipline order (hitting: `stance_set, load_start, stride, foot_contact, foot_plant, swing_start, contact, finish`; pitching:
|
| 196 |
+
`first_move, leg_lift, hand_break, foot_contact, foot_plant, release, finish`). Send only events you found.
|
| 197 |
+
* Send **every rep's own numbers** (not only an average): the agent needs them to tell a repeated problem from a single outlier. At least 3 reps when possible.
|
| 198 |
+
* `fps` must be the real capture rate (see `POSE_DATA_SPEC.md`, section 6).
|
| 199 |
+
|
| 200 |
+
## 6. Known weak spots (affect what the agent can say)
|
| 201 |
+
|
| 202 |
+
* **30 fps footage:** timing is only +-1 to 3 frames (33 to 100 ms), so timing metrics are `null` and the agent says so.
|
| 203 |
+
* **Dry swings:** `load_start` is often not found, so stride length and load timing are `null`.
|
| 204 |
+
* **Contact** is an estimate.
|
| 205 |
+
* **Pitching stride** measured ankle to ankle gives about 75% of height while the published reference is about 83% (3D mocap): the agent will
|
| 206 |
+
flag normal pitchers as short-stride until this is calibrated on real pitchers.
|
| 207 |
+
* **Arm slot and side lean** need a front or back view; from the side they are unreliable.
|
| 208 |
+
* **Reference ranges** are mostly unverified drafts (all hitting; parts of pitching); the agent calls them "typical range" and says they are drafts.
|
| 209 |
+
* Pitching has only been tested on synthetic skeletons and 15 fps public clips.
|
| 210 |
+
|
| 211 |
+
## 7. Questions we need answered
|
| 212 |
+
|
| 213 |
+
1. Is your metric list the one in section 3? What did you add, remove or define differently?
|
| 214 |
+
2. Which confidence rules do you use, and have your `high` / `medium` labels been checked against hand measurements?
|
| 215 |
+
3. How do you decide `capture.ok`, and which reasons can you produce?
|
| 216 |
+
4. Do you send every rep separately (not only averages)?
|
| 217 |
+
5. Which events do you detect for pitching, and at what accuracy?
|
| 218 |
+
|
| 219 |
+
## 8. Changing this contract
|
| 220 |
+
|
| 221 |
+
`schema_version` is `2.0`. Adding an optional field is safe. Renaming or re-defining a metric, changing a unit or an event definition needs a version
|
| 222 |
+
bump and a note to everyone downstream.
|
| 223 |
+
|
| 224 |
+
## 9. Check your output before sending it
|
| 225 |
+
|
| 226 |
+
```bash
|
| 227 |
+
cd AI-coach-agent && source .venv/bin/activate
|
| 228 |
+
python -m ai_coach.validate path/to/session.json # errors = the coach cannot use it, warnings = a weaker note
|
| 229 |
+
python -m ai_coach.validate path/to/session.json --strict # warnings also fail
|
| 230 |
+
python -m ai_coach.cli path/to/session.json --fallback-only # see the software baseline's note without calling Gemini
|
| 231 |
+
```
|
| 232 |
+
|
| 233 |
+
`examples/inputs/*.json` are valid sessions (10 synthetic, 1 real clip) covering one and two problems, 30/120/240 fps, a single bad rep and a
|
| 234 |
+
failed capture. Your output should produce **0 errors**.
|
| 235 |
+
|
| 236 |
+
> **Status:** the agent now owns its reference data (typical ranges, the 14 problems and their evidence rules, the 30-drill library) in
|
| 237 |
+
> `src/ai_coach/knowledge/`, finds the problems from your measurements itself, and Gemini decides what matters most. Anything you send about
|
| 238 |
+
> faults, a priority fix, drills or ranges is ignored (the validator warns). Build to **this** document.
|
| 239 |
+
|
| 240 |
+
## Rules the agent applies to your measurements (v2 review changes)
|
| 241 |
+
|
| 242 |
+
- Unknown metric keys are ignored. The unit always comes from the agent's knowledge files; your `unit` field is not trusted.
|
| 243 |
+
- A value outside the plausible bounds is set to null and noted, never judged.
|
| 244 |
+
- `note` is mapped to a fixed vocabulary; free text is not passed to the model.
|
| 245 |
+
- Only High and Medium reps feed the statistics. Estimate-only reps are shown but never judged.
|
| 246 |
+
- A problem needs at least 2 showing reps; "major" needs at least 3 evaluated reps.
|
| 247 |
+
- `arm_care.next_eligible_date` must be an ISO date (`YYYY-MM-DD`), otherwise it is dropped.
|
| 248 |
+
|
| 249 |
+
### Problems that cannot fire with the default draft ranges
|
| 250 |
+
`early_shoulder_open` and `early_trunk_rotation` (rule type `never`: not measurable in 2D), `excess_lateral_lean`
|
| 251 |
+
(reference-only, not comparable to our 2D convention) and pitching `rushing` (no default bands). They need coach-supplied
|
| 252 |
+
`range_overrides` or a calibrated range before they can appear.
|
| 253 |
+
|
| 254 |
+
## Load and timing (optional `timing` object, contract 3.1, hitting only)
|
| 255 |
+
|
| 256 |
+
Send it next to the v2 fields in the same request. The agent turns it into the response's `timing` section by code (no model call),
|
| 257 |
+
so it never changes the coaching note and costs nothing. Field list, rules and an example: [FRONTEND_INTEGRATION.md](FRONTEND_INTEGRATION.md) section 3.1.
|
| 258 |
+
What the agent does with it:
|
| 259 |
+
|
| 260 |
+
- Describes what was measured and what was not. It does not call anything early, late or rushed: every timing metric is an
|
| 261 |
+
estimate (`judgment_eligible: false`), outcomes are mostly unknown and there is no pitch context to compare similar swings.
|
| 262 |
+
- `time_source: unknown` withholds all numbers. The video's frame length is stated when the capture rate is below 120 fps.
|
| 263 |
+
- `swing_duration_ms` needs `end_event` (`contact` or `closest_approach`) and `end_event_source`; an arm-extension proxy never counts.
|
| 264 |
+
- `foot_down_to_swing_ms` states before or after only when `order_resolved` is true.
|
| 265 |
+
- `early_late_shift_ms` is shown only for a validated miss against a moving ball (`soft_toss`, `machine`, `live`).
|
| 266 |
+
- A consistency summary needs at least 5 swings of the same known `practice_type` (`min_swings_for_consistency` in `knowledge/timing.yaml`).
|
| 267 |
+
- Reason codes are mapped to fixed sentences. Free-text `note` fields are never shown.
|
| 268 |
+
|
| 269 |
+
## The mechanics score
|
| 270 |
+
|
| 271 |
+
The response's `score` (0 to 100) is calculated by code from the judged measurements only (`knowledge/scoring.yaml`, `scoring.py`):
|
| 272 |
+
100 inside the typical range, falling in a straight line to 0 two range-widths away, averaged over reps, then weighted by body-chain
|
| 273 |
+
tier x measurement confidence x range confidence. It is withheld (`value: null` with a reason) when the capture failed or fewer than
|
| 274 |
+
2 measurements can be judged. Today only `stride_pct_height` and `com_drift_pct_height` have calibrated hitting ranges, so a hitting
|
| 275 |
+
score rests on at most two measurements; it grows as more ranges are calibrated.
|
AI-coach-agent/docs/DEPLOYMENT.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deployment
|
| 2 |
+
|
| 3 |
+
The agent runs as one small HTTP service. The ML pipeline (or your backend) posts a session of measurements and gets back the coaching note.
|
| 4 |
+
|
| 5 |
+
## Run it
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
docker build -t ai-coach-agent .
|
| 9 |
+
docker run -p 8000:8000 -v coach-data:/data \
|
| 10 |
+
-e GOOGLE_API_KEY=... -e COACH_API_KEY=... \
|
| 11 |
+
-e COACH_TRACING=true -e LANGSMITH_API_KEY=... \
|
| 12 |
+
ai-coach-agent
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
Without Docker: `pip install ".[api]"` then `uvicorn ai_coach.api:create_app --factory --port 8000`.
|
| 16 |
+
|
| 17 |
+
The image starts with `COACH_ENV=prod`. In prod the service **refuses to start without `COACH_API_KEY`** and hides `/docs`.
|
| 18 |
+
Keep the keys in your platform's secret store, never in the image.
|
| 19 |
+
|
| 20 |
+
## Endpoints
|
| 21 |
+
|
| 22 |
+
| Method and path | Auth | What it does |
|
| 23 |
+
|---|---|---|
|
| 24 |
+
| `POST /v1/coach?level=hs_jv\|hs_varsity\|college` | `X-API-Key` | Body: the session JSON ([AGENT_INPUT_SPEC.md](AGENT_INPUT_SPEC.md)). Returns the `CoachResult`: note, source (`llm` or `rules`), model, tokens, cost, request_id. |
|
| 25 |
+
| `GET /v1/usage?days=7` | `X-API-Key` | Requests, tokens, cache hit rate, cost, same numbers as `ai-coach-report`. |
|
| 26 |
+
| `GET /healthz` | none | Liveness. |
|
| 27 |
+
| `GET /readyz` | none | Ready, and whether the model is configured (`llm`). |
|
| 28 |
+
|
| 29 |
+
Errors: `401` wrong or missing key, `413` body over `COACH_MAX_BODY_BYTES` (2 MB), `422` bad JSON or bad measurements (the `detail` says what to fix).
|
| 30 |
+
Model, network and budget problems are **not** errors: the response still has a note, from the rules, and `source` is `rules` with a `fallback_reason`.
|
| 31 |
+
|
| 32 |
+
## Things to know before scaling
|
| 33 |
+
|
| 34 |
+
- **One worker per container, on purpose.** The response cache, single-flight (identical concurrent requests make one model call) and the daily budget guard are per process. Scale by adding containers.
|
| 35 |
+
- **`/data` must be a volume.** It holds the response cache, the spend ledger and the logs (JSON lines, no player content). Without it the cache and budget reset on every restart.
|
| 36 |
+
- **The daily budget is per container.** Two containers with a $1 budget can spend $2. Set `COACH_DAILY_BUDGET_USD` to your total divided by the number of containers, or move the ledger to a shared database when you outgrow this.
|
| 37 |
+
- Put TLS and rate limiting in front (load balancer or gateway). The service only checks the API key.
|
| 38 |
+
- Traces go to LangSmith if `COACH_TRACING=true` (see [OBSERVABILITY.md](OBSERVABILITY.md)); use `COACH_TRACE_HIDE_INPUTS/OUTPUTS` for minors' data.
|
AI-coach-agent/docs/FRONTEND_INTEGRATION.md
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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backend developer who shows the coaching result to the player.
|
| 4 |
+
**Building the screen?** See [FRONTEND_UI_GUIDE.md](FRONTEND_UI_GUIDE.md) (what to show for each field and state, with sample responses in `examples/responses/`).
|
| 5 |
+
**Related:** [DEPLOYMENT.md](DEPLOYMENT.md) (running the service), [AGENT_INPUT_SPEC.md](AGENT_INPUT_SPEC.md) (the measurements the ML pipeline produces).
|
| 6 |
+
|
| 7 |
+
## 1. The picture
|
| 8 |
+
|
| 9 |
+
```
|
| 10 |
+
phone video -> ML pipeline (pose + measurements) -> session JSON -> [your backend] -> AI Coach API -> coaching response (v2.0) -> your app screen
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
- The **ML pipeline** produces the session JSON (measurements only).
|
| 14 |
+
- **Your backend** forwards it to the AI Coach API and returns the response to the app.
|
| 15 |
+
- **The app** only renders the response. It never decides what is wrong and never calculates the score; the response already has both.
|
| 16 |
+
|
| 17 |
+
### Calling from the mobile app
|
| 18 |
+
|
| 19 |
+
CORS does not apply to native iOS/Android apps, so the app can call the API directly. The catch is the key:
|
| 20 |
+
|
| 21 |
+
> **Anything shipped inside an app (a hard-coded key, a config file, an `.env`) can be extracted by anyone who downloads the app.**
|
| 22 |
+
> With a shared `X-API-Key` in the app, a stranger could call the API as often as they like. The daily budget caps the damage (each container stops calling Gemini at `COACH_DAILY_BUDGET_USD`, default $1, and then serves free rule-based notes), but real players would get worse notes until the next day.
|
| 23 |
+
|
| 24 |
+
| Option | How | Use when |
|
| 25 |
+
|---|---|---|
|
| 26 |
+
| **A. Through your backend (recommended)** | App sends the session (or just a session id) to your backend, which holds the key and forwards the call. | You have a backend that already authenticates users. Best: the ML pipeline's backend calls the coach right after it computes the measurements and returns the finished note to the app, so the app never handles the session JSON. |
|
| 27 |
+
| **B. Direct from the app** | App calls `/v1/coach` with a key it fetches **after the user logs in**, never one baked into the build. Put the API behind a gateway that does per-user auth and rate limiting (for example 20 requests per user per hour). | Early pilot with few trusted testers. A key in the build is acceptable only for a closed pilot, with a low `COACH_DAILY_BUDGET_USD` and a plan to rotate the key. |
|
| 28 |
+
|
| 29 |
+
Either way: use HTTPS only, set the request timeout to 30 s, and rotate `COACH_API_KEY` if it ever leaks (change the env var and redeploy).
|
| 30 |
+
|
| 31 |
+
## 2. The one endpoint you need
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
POST {BASE_URL}/v1/coach?level=hs_varsity
|
| 35 |
+
X-API-Key: <secret>
|
| 36 |
+
Content-Type: application/json
|
| 37 |
+
|
| 38 |
+
<session JSON>
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
| Part | Value |
|
| 42 |
+
|---|---|
|
| 43 |
+
| `level` (query, optional) | `hs_jv`, `hs_varsity` or `college`. Overrides `level` inside the JSON. If neither is given the API assumes `hs_varsity` (the note then says the level was assumed, see `caveats`). |
|
| 44 |
+
| Body | One session JSON (section 3), with optional `timing`. Max **2 MB**. |
|
| 45 |
+
| Typical latency | 1.5 to 3 s when Gemini writes the note, a few ms when it is cached or rule-based. Set your client timeout to **30 s**. |
|
| 46 |
+
| Cost | About $0.0013 per new note; $0 for repeats and rule-based notes. |
|
| 47 |
+
|
| 48 |
+
Other endpoints: `GET /v1/usage?days=7` (cost and cache report, needs the key), `GET /healthz`, `GET /readyz` (no key; `readyz` returns `{"status":"ready","llm":true,"model":"..."}`).
|
| 49 |
+
In non-prod environments the interactive docs are at `/docs`.
|
| 50 |
+
|
| 51 |
+
## 3. What the API accepts (request body)
|
| 52 |
+
|
| 53 |
+
A session of **measurements only**, plus optional **timing**. Full definitions: [AGENT_INPUT_SPEC.md](AGENT_INPUT_SPEC.md). Minimal valid shape:
|
| 54 |
+
|
| 55 |
+
```json
|
| 56 |
+
{
|
| 57 |
+
"schema_version": "2.0",
|
| 58 |
+
"session_id": "sess_42",
|
| 59 |
+
"discipline": "hitting",
|
| 60 |
+
"level": "hs_varsity",
|
| 61 |
+
"view": "face_on",
|
| 62 |
+
"fps": 240.0,
|
| 63 |
+
"capture": { "ok": true, "reasons": [] },
|
| 64 |
+
"reps": [
|
| 65 |
+
{
|
| 66 |
+
"rep": 1,
|
| 67 |
+
"events_ms": { "foot_plant": 1000, "contact": 1221 },
|
| 68 |
+
"metrics": [
|
| 69 |
+
{ "key": "stride_pct_height", "value": 61.7, "unit": "%", "confidence": "high" },
|
| 70 |
+
{ "key": "com_drift_pct_height", "value": -12.0, "unit": "%", "confidence": "medium" },
|
| 71 |
+
{ "key": "load_tempo_s", "value": null, "unit": "s", "confidence": "est", "note": "not computed: event 'load_start' not found" }
|
| 72 |
+
]
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
| Field | Required | Notes |
|
| 79 |
+
|---|---|---|
|
| 80 |
+
| `discipline` | yes | `"hitting"` or `"pitching"` |
|
| 81 |
+
| `reps[]` | yes | Every rep separately, at least 3 when possible. Each has `metrics[]` with `key`, `value` (number or `null`), `unit`, `confidence` (`high`, `medium` or `est`) and an optional `note`. |
|
| 82 |
+
| `fps` | strongly advised | The **real capture** frame rate (240 for slow motion). Timing metrics are dropped below 60 fps. |
|
| 83 |
+
| `capture` | advised | `{ "ok": bool, "reasons": [...] }`. If `ok` is `false` the response only asks the player to record again, and the score is `null`. |
|
| 84 |
+
| `level` | optional | `hs_jv` / `hs_varsity` / `college` (or use the query parameter). |
|
| 85 |
+
| `session_id` | optional | Your own id, up to 64 characters of `A-Z a-z 0-9 _ . : -`. It is echoed back in the response so you can match it. Anything else is dropped. Never send names. |
|
| 86 |
+
| `arm_care` | optional, pitching only | Pitch-count facts from **your app**: `{ "known": true, "pitch_count_today": 40, "daily_max": 95, "next_eligible_date": "2026-10-13", "alerts": [] }`. They are repeated exactly in the response's `arm_care`, never advised on. |
|
| 87 |
+
| `timing` | optional, hitting only | The engine's load-and-timing object (below). Ignored for pitching. |
|
| 88 |
+
|
| 89 |
+
### 3.1 The `timing` object (contract 3.1, hitting only)
|
| 90 |
+
|
| 91 |
+
The engine measures **when** movements happen. The API turns it into the response's `timing` section. A bad `timing` object is a `422` and costs nothing.
|
| 92 |
+
|
| 93 |
+
```json
|
| 94 |
+
"timing": {
|
| 95 |
+
"schema_version": "3.1",
|
| 96 |
+
"discipline": "hitting",
|
| 97 |
+
"capture": { "capture_fps": 240.0, "time_source": "original_pts" },
|
| 98 |
+
"reps": [
|
| 99 |
+
{
|
| 100 |
+
"rep": 1,
|
| 101 |
+
"outcome": "unknown",
|
| 102 |
+
"stepped": true,
|
| 103 |
+
"context": { "practice_type": "tee" },
|
| 104 |
+
"frame_interval_ms": { "min": 4.1, "median": 4.17, "max": 4.3 },
|
| 105 |
+
"metrics": [
|
| 106 |
+
{ "key": "load_to_swing_ms", "value": 300, "unit": "ms", "status": "estimated", "confidence": "est" },
|
| 107 |
+
{ "key": "foot_down_to_swing_ms", "value": 50, "unit": "ms", "status": "estimated", "confidence": "est", "order_resolved": true },
|
| 108 |
+
{ "key": "swing_duration_ms", "value": null, "unit": "ms", "status": "unclear", "reason_codes": ["actual_end_unavailable"] },
|
| 109 |
+
{ "key": "early_late_shift_ms", "value": null, "unit": "ms", "status": "not_applicable" }
|
| 110 |
+
]
|
| 111 |
+
}
|
| 112 |
+
]
|
| 113 |
+
}
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
| Field | Notes |
|
| 117 |
+
|---|---|
|
| 118 |
+
| `schema_version` | `"3.0"` or `"3.1"`. Anything else is a 422. |
|
| 119 |
+
| `capture.time_source` | `original_pts`, `slowmo_rescaled`, `explicit_capture_times` or `unknown`. With `unknown` no timing number is shown (playback time must never be turned into milliseconds). |
|
| 120 |
+
| `reps[].outcome` | `hit`, `miss` or `unknown`. |
|
| 121 |
+
| `reps[].context.practice_type` | `tee`, `soft_toss`, `machine`, `live`, `dry_swing` or `unknown`. Swings are only compared with each other within the same known practice type. |
|
| 122 |
+
| `metrics[].status` | `estimated`, `not_applicable` or `unclear`. A `null` value is never shown as zero. |
|
| 123 |
+
| `metrics[].reason_codes` | Machine-readable reasons (for example `no_step`, `outcome_unknown`). The player sees fixed sentences for the known codes; unknown codes are ignored. Free-text notes are never shown. |
|
| 124 |
+
| `metrics[].judgment_eligible` | Default `false`. Today nothing is eligible, so the timing section only describes. |
|
| 125 |
+
| `swing_duration_ms` | Only shown when `end_event` is `contact` or `closest_approach` **and** `end_event_source` is set. An arm-extension proxy is never an endpoint. |
|
| 126 |
+
| `foot_down_to_swing_ms` | The sign (before or after) is only stated when `order_resolved` is `true`. |
|
| 127 |
+
|
| 128 |
+
**Timing on its own.** You may also post the engine's timing payload (`schema_version` 3.0 or 3.1) as the whole body, exactly as the engine returns it. The response then has the same shape with only `timing` filled: `score.value` is `null`, `focus`, `strengths` and `drill` are empty, `summary` repeats the timing summary and `meta.fallback_reason` is `"timing_only"`. Contract 3.0 says `time_basis: "capture"` instead of `capture.time_source`; both are accepted (`capture` means real recording time, `playback` means no numbers are shown).
|
| 129 |
+
|
| 130 |
+
**Do not send:** faults, a priority fix, drills, explanations, ranges, zones, video, frames, keypoints, names or ids. These are ignored (the agent decides them itself).
|
| 131 |
+
Unknown metric keys are ignored; values outside physically possible bounds are treated as missing.
|
| 132 |
+
|
| 133 |
+
Check a file before sending: `python -m ai_coach.validate session.json` (it also checks `timing`).
|
| 134 |
+
|
| 135 |
+
## 4. What the API returns (200): `response_version` "2.0"
|
| 136 |
+
|
| 137 |
+
This **replaces** the earlier `note` shape. There is no `note`, `usage`, `chosen_problem` or similar field any more.
|
| 138 |
+
|
| 139 |
+
```json
|
| 140 |
+
{
|
| 141 |
+
"response_version": "2.0",
|
| 142 |
+
"request_id": "73b87e482de5",
|
| 143 |
+
"session_id": "sess_42",
|
| 144 |
+
"discipline": "hitting",
|
| 145 |
+
"level": "college",
|
| 146 |
+
"level_assumed": false,
|
| 147 |
+
"score": {
|
| 148 |
+
"name": "Mechanics score",
|
| 149 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 150 |
+
"value": 77,
|
| 151 |
+
"band": "Mostly close to typical",
|
| 152 |
+
"confidence": "medium",
|
| 153 |
+
"basis": "2 of 9 measurements, 6 swings",
|
| 154 |
+
"in_range": 0,
|
| 155 |
+
"checked": 2,
|
| 156 |
+
"breakdown": [
|
| 157 |
+
{
|
| 158 |
+
"metric_key": "stride_pct_height",
|
| 159 |
+
"label": "Stride length",
|
| 160 |
+
"score": 84,
|
| 161 |
+
"weight": 0.588,
|
| 162 |
+
"zone": "outside_typical_range"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"metric_key": "com_drift_pct_height",
|
| 166 |
+
"label": "Body drift past front foot",
|
| 167 |
+
"score": 67,
|
| 168 |
+
"weight": 0.412,
|
| 169 |
+
"zone": "outside_typical_range"
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"reason_code": null,
|
| 173 |
+
"reason": null
|
| 174 |
+
},
|
| 175 |
+
"summary": "Here is the one thing to work on in your swing.",
|
| 176 |
+
"strengths": [],
|
| 177 |
+
"focus": [
|
| 178 |
+
{
|
| 179 |
+
"problem_key": "lunging",
|
| 180 |
+
"evidence": [
|
| 181 |
+
"com_drift_pct_height"
|
| 182 |
+
],
|
| 183 |
+
"text": "Your body slides forward past your front foot. Your weight gets ahead of your hands, and you lose power from the ground. This showed up in 100% of your reps."
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"problem_key": "over_stride",
|
| 187 |
+
"evidence": [
|
| 188 |
+
"stride_pct_height"
|
| 189 |
+
],
|
| 190 |
+
"text": "Your front foot lands too far out."
|
| 191 |
+
}
|
| 192 |
+
],
|
| 193 |
+
"drill": {
|
| 194 |
+
"name": "Balance Hold Tee",
|
| 195 |
+
"how": "Do 3x8. Turn, don't slide.",
|
| 196 |
+
"cue": "Stay behind your front knee. Turn, don't slide."
|
| 197 |
+
},
|
| 198 |
+
"timing": {
|
| 199 |
+
"summary": "Timing: Preparation to swing and Front foot down to swing were estimated. Swing duration and Early or late adjustment are unavailable.",
|
| 200 |
+
"observations": [
|
| 201 |
+
{
|
| 202 |
+
"metric_key": "load_to_swing_ms",
|
| 203 |
+
"label": "Preparation to swing",
|
| 204 |
+
"value_ms": 300,
|
| 205 |
+
"swings": 1,
|
| 206 |
+
"range_ms": null,
|
| 207 |
+
"status": "estimated",
|
| 208 |
+
"text": "Your preparation to the start of the forward swing took about 300 ms."
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"metric_key": "foot_down_to_swing_ms",
|
| 212 |
+
"label": "Front foot down to swing",
|
| 213 |
+
"value_ms": 50,
|
| 214 |
+
"swings": 1,
|
| 215 |
+
"range_ms": null,
|
| 216 |
+
"status": "estimated",
|
| 217 |
+
"text": "About 50 ms passed between your front foot first touching down and your swing starting. The video cannot show which came first."
|
| 218 |
+
}
|
| 219 |
+
],
|
| 220 |
+
"unavailable": [
|
| 221 |
+
{
|
| 222 |
+
"metric_key": "swing_duration_ms",
|
| 223 |
+
"label": "Swing duration",
|
| 224 |
+
"reason_codes": [],
|
| 225 |
+
"text": "This could not be measured reliably from this video."
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"metric_key": "early_late_shift_ms",
|
| 229 |
+
"label": "Early or late adjustment",
|
| 230 |
+
"reason_codes": [],
|
| 231 |
+
"text": "This could not be measured reliably from this video."
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"data_quality": [
|
| 235 |
+
"These timing numbers are estimates. On their own they cannot show a timing fault.",
|
| 236 |
+
"Whether the bat met the ball was not established, so hits and misses were not compared.",
|
| 237 |
+
"Only one swing was timed, so there is nothing to compare it with."
|
| 238 |
+
],
|
| 239 |
+
"consistency": null
|
| 240 |
+
},
|
| 241 |
+
"data_quality": [
|
| 242 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 243 |
+
],
|
| 244 |
+
"arm_care": null,
|
| 245 |
+
"meta": {
|
| 246 |
+
"source": "rules",
|
| 247 |
+
"model": null,
|
| 248 |
+
"prompt_version": "coach-v1-f0891b43",
|
| 249 |
+
"cache_hit": false,
|
| 250 |
+
"fallback_reason": "llm_disabled",
|
| 251 |
+
"latency_ms": 4
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
```
|
| 255 |
+
|
| 256 |
+
### 4.1 Fields the app shows
|
| 257 |
+
|
| 258 |
+
| Field | Type | How to render |
|
| 259 |
+
|---|---|---|
|
| 260 |
+
| `score` | object | The mechanics score (4.2). Always present; `value` can be `null`. |
|
| 261 |
+
| `summary` | string | Big title. Always present. |
|
| 262 |
+
| `strengths` | 0 to 3 × `{metric_key, text}` | "What looks good". Show `text`. |
|
| 263 |
+
| `focus` | 0 to 2 × `{problem_key, evidence[], text}` | "What to work on". **The first item is the priority fix.** `text` is player-ready. |
|
| 264 |
+
| `drill` | `{name, how, cue}` or `null` | "Try this drill", with the priority fix's cue shown prominently. `null` when there is nothing to fix. |
|
| 265 |
+
| `timing` | object or `null` | The load-and-timing section (4.3). `null` when no `timing` was sent. |
|
| 266 |
+
| `arm_care` | object or `null` | Pitching only. Show `lines` as given, they repeat your own app's facts. |
|
| 267 |
+
| `data_quality` | 0 to 3 × string | "Keep in mind" notes (video quality, draft ranges, "record again"). **Always show them.** |
|
| 268 |
+
|
| 269 |
+
All text is plain, short and player-ready. Render it as given; do not rewrite or translate numbers. Every block can be empty or `null`; design each so it disappears cleanly.
|
| 270 |
+
|
| 271 |
+
### 4.2 The score
|
| 272 |
+
|
| 273 |
+
```
|
| 274 |
+
"score": { "name": "Mechanics score", "meaning": "...", "value": 77, "band": "Mostly close to typical",
|
| 275 |
+
"confidence": "medium", "basis": "2 of 9 measurements, 6 swings", "in_range": 0, "checked": 2,
|
| 276 |
+
"breakdown": [ { "metric_key": "...", "label": "...", "score": 84, "weight": 0.588, "zone": "..." } ],
|
| 277 |
+
"reason_code": null, "reason": null }
|
| 278 |
+
```
|
| 279 |
+
|
| 280 |
+
- `value` is 0 to 100, or `null` when there is not enough to score (`reason_code`: `capture_not_ok` or `not_enough_measurements`, with a plain `reason`). **Show `reason` instead of a number; never show 0.**
|
| 281 |
+
- It is calculated by code from the measurements, not by the AI. The same swings always give the same number.
|
| 282 |
+
- It means how close the measured mechanics are to the typical range for the player's level. **It is not a rating of the player, and typical is not the same as ideal.** Show `name` as the label and keep `meaning` reachable (an info icon).
|
| 283 |
+
- `confidence` (`high`, `medium`, `low`) says how much to trust it. Low is common for high school levels, whose ranges rest on few athletes. Consider showing it as a small tag.
|
| 284 |
+
- `basis` says what it rests on. Today hitting has only two measurements with calibrated ranges (stride and body drift), so a hitting score rests on at most two. Show `basis` near the number.
|
| 285 |
+
- `breakdown` is optional detail ("what makes up the score"). Weights add up to 1.
|
| 286 |
+
- Only judged measurements count. Estimates, reference-only measurements and all timing numbers are left out for now.
|
| 287 |
+
|
| 288 |
+
### 4.3 The `timing` section
|
| 289 |
+
|
| 290 |
+
| Field | Meaning |
|
| 291 |
+
|---|---|
|
| 292 |
+
| `summary` | One sentence: which timings were estimated and which are unavailable. |
|
| 293 |
+
| `observations[]` | `{metric_key, label, value_ms, swings, range_ms, status: "estimated", text}`. `text` is player-ready; `value_ms` is for charts and is rounded to 10 ms. |
|
| 294 |
+
| `unavailable[]` | `{metric_key, label, reason_codes[], text}`: what could not be measured and why, in plain words. |
|
| 295 |
+
| `data_quality[]` | What the numbers cannot show (frame length of the video, hits and misses not compared, estimates only). Show them under the section. |
|
| 296 |
+
| `consistency` | `{practice_type, swings, notes[]}` or `null`. Only with at least 5 swings of the same known practice type. |
|
| 297 |
+
|
| 298 |
+
The section is descriptive only. It never says a player was early, late or rushed, and it says so in `data_quality`. Do not build "good or bad" colouring on `value_ms`.
|
| 299 |
+
|
| 300 |
+
### 4.4 `meta`: not for the player
|
| 301 |
+
|
| 302 |
+
| Field | Meaning | Use |
|
| 303 |
+
|---|---|---|
|
| 304 |
+
| `source` | `"llm"` (the model wrote the text) or `"rules"` (fixed-rule text) | Both are safe to show. |
|
| 305 |
+
| `fallback_reason` | Why `source` is `rules`: `nothing_to_judge`, `llm_disabled`, `daily_budget_exceeded`, `cached_failure:...`, or a model failure | Logging only. |
|
| 306 |
+
| `cache_hit`, `model`, `prompt_version`, `latency_ms` | Debugging | Internal dashboards only. |
|
| 307 |
+
| `request_id` (top level) | Ties the response to server logs and LangSmith | **Log it and attach it to support tickets.** |
|
| 308 |
+
|
| 309 |
+
The score, `timing` and `arm_care` are the same whether `source` is `llm` or `rules`.
|
| 310 |
+
|
| 311 |
+
### 4.5 Cases the UI must handle
|
| 312 |
+
|
| 313 |
+
1. **Record again.** When the capture failed: `score.value` is `null`, `focus` and `strengths` are empty, there is no `drill`, and `data_quality[0]` asks the player to record again. Show it as its own screen.
|
| 314 |
+
2. **Nothing to work on.** `focus` is empty but `strengths` is not: show a positive result.
|
| 315 |
+
3. **Score is `null`** with a good video: fewer than two measurements could be judged. Show `score.reason` and still show the rest.
|
| 316 |
+
4. **Rule-based text** (`meta.source: "rules"`): shorter and more generic, but valid.
|
| 317 |
+
5. **Draft ranges.** `data_quality` may say the typical ranges for the level are drafts or rough. Keep it visible; it is deliberate honesty.
|
| 318 |
+
|
| 319 |
+
## 5. Errors
|
| 320 |
+
|
| 321 |
+
| Status | Body | Meaning | What to do |
|
| 322 |
+
|---|---|---|---|
|
| 323 |
+
| 401 | `{"detail": "missing or invalid X-API-Key"}` | Key missing or wrong | Fix your server config. Do not retry. |
|
| 324 |
+
| 413 | `{"detail": "session too large"}` | Body over 2 MB | Send measurements only; never keypoints or video. |
|
| 325 |
+
| 422 | `{"detail": "..."}` | Bad JSON, bad measurements or bad `timing`. The detail says what to fix (for example `timing.schema_version must be one of [...]`) | A bug on the sending side. Fix it; do not retry. |
|
| 326 |
+
| 500 | `{"detail": "internal error"}` | Unexpected server error | Retry once after 1 s, then show "try again later". |
|
| 327 |
+
|
| 328 |
+
Model, network and budget problems are **not** errors: you still get a 200 with rule-based text.
|
| 329 |
+
Timeouts or connection errors on your side: retry once. Repeating a request is safe (identical sessions are cached and cost nothing).
|
| 330 |
+
|
| 331 |
+
## 6. Example calls
|
| 332 |
+
|
| 333 |
+
**curl**
|
| 334 |
+
```bash
|
| 335 |
+
curl -s -X POST "https://coach.example.com/v1/coach?level=hs_varsity" \
|
| 336 |
+
-H "X-API-Key: $COACH_API_KEY" -H "Content-Type: application/json" \
|
| 337 |
+
-d @session.json
|
| 338 |
+
```
|
| 339 |
+
|
| 340 |
+
**Node / TypeScript (your backend; the same call works from React Native with the key fetched after login)**
|
| 341 |
+
```ts
|
| 342 |
+
export interface CoachResponse {
|
| 343 |
+
response_version: "2.0";
|
| 344 |
+
request_id: string;
|
| 345 |
+
session_id: string | null;
|
| 346 |
+
discipline: "hitting" | "pitching";
|
| 347 |
+
level: string | null;
|
| 348 |
+
score: {
|
| 349 |
+
name: string; meaning: string; value: number | null; band: string | null;
|
| 350 |
+
confidence: "high" | "medium" | "low" | null; basis: string | null;
|
| 351 |
+
in_range: number; checked: number; reason: string | null;
|
| 352 |
+
breakdown: { metric_key: string; label: string; score: number; weight: number }[];
|
| 353 |
+
};
|
| 354 |
+
summary: string;
|
| 355 |
+
strengths: { metric_key: string; text: string }[];
|
| 356 |
+
focus: { problem_key: string; evidence: string[]; text: string }[];
|
| 357 |
+
drill: { name: string; how: string; cue: string | null } | null;
|
| 358 |
+
timing: {
|
| 359 |
+
summary: string;
|
| 360 |
+
observations: { metric_key: string; label: string; value_ms: number; swings: number; text: string }[];
|
| 361 |
+
unavailable: { metric_key: string; label: string; reason_codes: string[]; text: string }[];
|
| 362 |
+
data_quality: string[];
|
| 363 |
+
consistency: { practice_type: string; swings: number; notes: string[] } | null;
|
| 364 |
+
} | null;
|
| 365 |
+
arm_care: { lines: string[] } | null;
|
| 366 |
+
data_quality: string[];
|
| 367 |
+
meta: { source: "llm" | "rules"; fallback_reason: string | null };
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
export async function getCoach(session: unknown, level?: string): Promise<CoachResponse> {
|
| 371 |
+
const url = new URL("/v1/coach", process.env.COACH_BASE_URL);
|
| 372 |
+
if (level) url.searchParams.set("level", level);
|
| 373 |
+
const res = await fetch(url, {
|
| 374 |
+
method: "POST",
|
| 375 |
+
headers: { "X-API-Key": process.env.COACH_API_KEY!, "Content-Type": "application/json" },
|
| 376 |
+
body: JSON.stringify(session),
|
| 377 |
+
signal: AbortSignal.timeout(30_000),
|
| 378 |
+
});
|
| 379 |
+
if (!res.ok) throw new Error(`coach ${res.status}: ${(await res.json()).detail}`);
|
| 380 |
+
return res.json();
|
| 381 |
+
}
|
| 382 |
+
```
|
| 383 |
+
|
| 384 |
+
**React rendering sketch**
|
| 385 |
+
```tsx
|
| 386 |
+
function CoachView({ r }: { r: CoachResponse }) {
|
| 387 |
+
return (
|
| 388 |
+
<section>
|
| 389 |
+
<h2>{r.score.value ?? "No score"}{r.score.value !== null && <small> / 100 ({r.score.confidence})</small>}</h2>
|
| 390 |
+
{r.score.value === null && <p>{r.score.reason}</p>}
|
| 391 |
+
<h3>{r.summary}</h3>
|
| 392 |
+
{r.strengths.length > 0 && (<><h4>What looks good</h4><ul>{r.strengths.map(i => <li key={i.metric_key}>{i.text}</li>)}</ul></>)}
|
| 393 |
+
{r.focus.length > 0 && (<><h4>What to work on</h4><ol>{r.focus.map(i => <li key={i.problem_key}>{i.text}</li>)}</ol></>)}
|
| 394 |
+
{r.drill && <p><b>{r.drill.name}</b>: {r.drill.how} {r.drill.cue && <i>{r.drill.cue}</i>}</p>}
|
| 395 |
+
{r.timing && (<><h4>Timing</h4><p>{r.timing.summary}</p><ul>{r.timing.observations.map(o => <li key={o.metric_key}>{o.text}</li>)}</ul><small>{r.timing.data_quality.join(" ")}</small></>)}
|
| 396 |
+
{r.arm_care && <ul>{r.arm_care.lines.map(l => <li key={l}>{l}</li>)}</ul>}
|
| 397 |
+
{r.data_quality.length > 0 && (<><h4>Keep in mind</h4><ul>{r.data_quality.map(c => <li key={c}>{c}</li>)}</ul></>)}
|
| 398 |
+
</section>
|
| 399 |
+
);
|
| 400 |
+
}
|
| 401 |
+
```
|
| 402 |
+
|
| 403 |
+
## 7. Integration checklist
|
| 404 |
+
|
| 405 |
+
- [ ] Decide option A or B in section 1. For A, only the backend holds `COACH_API_KEY`; for B, the key is never in the app build and the API sits behind per-user login and a rate limit.
|
| 406 |
+
- [ ] Client timeout 30 s; one retry on timeout or 500.
|
| 407 |
+
- [ ] Store `request_id` with every result shown to a player.
|
| 408 |
+
- [ ] Show `score.reason` instead of a number when `score.value` is `null`; never show 0.
|
| 409 |
+
- [ ] Show the score with its `name`, `basis` and `confidence`, and keep `meaning` one tap away.
|
| 410 |
+
- [ ] Render every `data_quality` entry (response and timing), and the "record again" case as its own screen.
|
| 411 |
+
- [ ] Every block can be missing without breaking the layout.
|
| 412 |
+
- [ ] Pitching: send `arm_care` from the app's own pitch-count data (ISO dates).
|
| 413 |
+
- [ ] Send `timing` (3.1) for hitting when the engine has it, with `capture.time_source` and `context.practice_type` filled in.
|
| 414 |
+
- [ ] Do not build logic on `meta.source` or `problem_key` values beyond logging and analytics.
|
| 415 |
+
- [ ] Run `python -m ai_coach.validate` on a sample from the real pipeline before go-live.
|
AI-coach-agent/docs/FRONTEND_UI_GUIDE.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Frontend guide: showing the coaching result
|
| 2 |
+
|
| 3 |
+
**For:** the frontend / mobile engineer who builds the result screen.
|
| 4 |
+
**Related:** [FRONTEND_INTEGRATION.md](FRONTEND_INTEGRATION.md) (the API contract: request, errors, keys, backend call). This guide is about
|
| 5 |
+
**what to put on the screen**. Build against the sample responses in [`examples/responses/`](examples/responses/) before the live API is ready.
|
| 6 |
+
|
| 7 |
+
## 1. What you are building
|
| 8 |
+
|
| 9 |
+
One screen (or scroll) per analysed session. The API answers with one JSON object (`response_version: "2.0"`) that already contains
|
| 10 |
+
everything the screen shows. **Your job is to render it. Do not calculate, grade, colour-code, reword or translate anything.**
|
| 11 |
+
|
| 12 |
+
```
|
| 13 |
+
┌─────────────────────────────────────────┐
|
| 14 |
+
│ Mechanics score 77 / 100 │ score (always shown; value may be null)
|
| 15 |
+
│ Mostly close to typical · medium conf. │ band + confidence
|
| 16 |
+
│ Based on 2 of 9 measurements, 6 swings │ basis
|
| 17 |
+
├─────────────────────────────────────────┤
|
| 18 |
+
│ Here is the one thing to work on … │ summary (always shown)
|
| 19 |
+
├─────────────────────────────────────────┤
|
| 20 |
+
│ What looks good (0-3 items) │ strengths
|
| 21 |
+
│ What to work on 1. … 2. … (0-2) │ focus (first = priority fix)
|
| 22 |
+
│ Try this drill: Name – how · "cue" │ drill (may be null)
|
| 23 |
+
├─────────────────────────────────────────┤
|
| 24 |
+
│ Timing (may be null)│ timing
|
| 25 |
+
│ Arm care (pitching) │ arm_care
|
| 26 |
+
│ Keep in mind (0-3 notes) │ data_quality
|
| 27 |
+
└─────────────────────────────────────────┘
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
The app never talks to this API with the secret key in the build; see FRONTEND_INTEGRATION.md section 1 (call it through your backend).
|
| 31 |
+
|
| 32 |
+
## 2. Field → component
|
| 33 |
+
|
| 34 |
+
| JSON | Component | Rules |
|
| 35 |
+
|---|---|---|
|
| 36 |
+
| `score.value` | Big number, "x / 100" | If `null`, **show `score.reason` in its place. Never show 0, "N/A" or an empty ring.** |
|
| 37 |
+
| `score.name` | Label above the number | Use as given (currently "Mechanics score"). |
|
| 38 |
+
| `score.band` | Caption under the number | Words only. Do not turn it into a grade, star rating or red/amber/green. |
|
| 39 |
+
| `score.confidence` | Small tag: High / Medium / Low | Show it. `low` is common for high school levels. Use a neutral style. |
|
| 40 |
+
| `score.basis` | Small text near the number | Show it ("2 of 9 measurements, 6 swings"). |
|
| 41 |
+
| `score.meaning` | Info icon → sheet/tooltip | Say what the score is and is not. Keep it one tap away. |
|
| 42 |
+
| `score.breakdown[]` | Optional "What makes up the score" list | `label`, `score` (0-100) and `weight` (share, adds to 1). Optional for the first release. |
|
| 43 |
+
| `summary` | Title | Always present. |
|
| 44 |
+
| `strengths[]` | "What looks good" list | Show `text`. Hide the whole block when empty. |
|
| 45 |
+
| `focus[]` | "What to work on" numbered list | **Order matters: item 1 is the priority fix.** Show `text`. Hide when empty. |
|
| 46 |
+
| `drill` | "Try this drill" card | `name` bold, `how` as body, `cue` as a highlighted quote. Hide when `null`. |
|
| 47 |
+
| `timing` | "Timing" card (section 4) | Hide when `null`. |
|
| 48 |
+
| `arm_care.lines[]` | "Arm care" list (pitching) | Show the lines exactly as given. Hide when `null`. |
|
| 49 |
+
| `data_quality[]` | "Keep in mind" list | **Always show when present.** It is part of the message, not fine print. |
|
| 50 |
+
| `request_id` | Hidden; in "Report a problem" and logs | Attach it to support tickets. |
|
| 51 |
+
| `meta.*`, `focus[].problem_key`, `strengths[].metric_key`, `evidence` | Not for display | Analytics and logging only. |
|
| 52 |
+
|
| 53 |
+
Text is plain, short and player-ready. **Render as plain text** (no HTML/Markdown parsing). Do not round, reformat or re-word numbers inside it.
|
| 54 |
+
Any block except `summary` and `score` can be empty; design every block so it disappears cleanly with no leftover heading.
|
| 55 |
+
|
| 56 |
+
## 3. The score
|
| 57 |
+
|
| 58 |
+
- It is a **0-100 mechanics score**: how close the measured mechanics are to the typical range for the player's level. It is calculated by
|
| 59 |
+
the server from numbers. It is **not** a rating of the player, and typical is not the same as ideal.
|
| 60 |
+
- `value` is `null` when the video could not be read (`reason_code: "capture_not_ok"`) or too little could be judged
|
| 61 |
+
(`"not_enough_measurements"`). Show the `reason` text. Do not hide the score card, or the player wonders what happened.
|
| 62 |
+
- `confidence`: `high`, `medium` or `low`. Hitting scores currently rest on at most two measurements, so expect `medium` or `low`.
|
| 63 |
+
- Use a **neutral colour** for the number. Do not colour by value (no green/red). The scale is not a pass/fail test.
|
| 64 |
+
- Do not compare scores across sessions with arrows or "you improved" unless product asks for it later; the score depends on the
|
| 65 |
+
measurements available in that session (`basis` can differ).
|
| 66 |
+
|
| 67 |
+
## 4. The timing card
|
| 68 |
+
|
| 69 |
+
`timing` describes **when** movements happened (preparation, front foot down, swing). It is descriptive only.
|
| 70 |
+
|
| 71 |
+
| Field | Show as |
|
| 72 |
+
|---|---|
|
| 73 |
+
| `summary` | Card subtitle. |
|
| 74 |
+
| `observations[]` | One row each: show `text`. Optionally `value_ms` as a number next to `label` (already rounded to 10 ms). `swings` and `range_ms` are optional detail. |
|
| 75 |
+
| `unavailable[]` | A muted row: `label` + `text` ("Actual contact or closest approach was not established."). Do not draw an empty chart for these. |
|
| 76 |
+
| `consistency` | Optional line: "Across {swings} {practice_type} swings:" then `notes[]`. Only present with 5+ swings of the same practice type. |
|
| 77 |
+
| `data_quality[]` | Small text under the card. **Always show it.** It says what the numbers cannot show. |
|
| 78 |
+
|
| 79 |
+
Rules:
|
| 80 |
+
- **No good/bad styling and no early/late/rushed wording of your own.** Every number is an estimate; the response never says a player was early or late.
|
| 81 |
+
- `value_ms` is for display and simple charts only. Do not threshold it.
|
| 82 |
+
- A missing measurement is `unavailable`, never 0.
|
| 83 |
+
- When a timing-only request was sent, `score.value` is `null`, `focus`/`strengths`/`drill` are empty and `meta.fallback_reason` is `"timing_only"`. Show the timing card as the main content and skip the empty blocks.
|
| 84 |
+
|
| 85 |
+
## 5. Screen states (sample file for each)
|
| 86 |
+
|
| 87 |
+
Build and test every state with the file in [`examples/responses/`](examples/responses/). They are real outputs of the API code.
|
| 88 |
+
|
| 89 |
+
| State | How to recognise it | Sample file | Show |
|
| 90 |
+
|---|---|---|---|
|
| 91 |
+
| Normal, with problems | `focus` not empty | `hitting_with_timing.json` | Everything above. |
|
| 92 |
+
| Nothing to work on | `focus` empty, `strengths` not, score high | `hitting_clean.json` | Positive result; no "work on" block. |
|
| 93 |
+
| Pitching | `arm_care` not null | `pitching_arm_care.json` | Arm-care list; keep the lines verbatim. |
|
| 94 |
+
| **Record again** | `score.reason_code == "capture_not_ok"` | `record_again.json` | A dedicated screen: `summary` + the first `data_quality` line + a "Record again" button. No score number, no drill. |
|
| 95 |
+
| Score withheld, video fine | `score.value == null` and reason `not_enough_measurements` | `score_withheld_low_fps.json` | Score card with the reason text, the rest as normal. |
|
| 96 |
+
| Timing only | `meta.fallback_reason == "timing_only"` | `timing_only.json` | Timing card as the main content. |
|
| 97 |
+
|
| 98 |
+
Also handle: the first request taking up to ~3 s (show a progress state, timeout at 30 s), and the error cases below.
|
| 99 |
+
|
| 100 |
+
## 6. Loading, errors and retries
|
| 101 |
+
|
| 102 |
+
| Situation | What the screen does |
|
| 103 |
+
|---|---|
|
| 104 |
+
| Waiting | Progress indicator; keep the video/session context visible. Typical 1.5-3 s, cached repeats are instant. Client timeout 30 s. |
|
| 105 |
+
| `200` | Render. `meta.source` can be `llm` or `rules`; both are valid and safe, **do not label or hide either**. |
|
| 106 |
+
| `401` / `413` / `422` | A bug on your side or the backend's. Show a generic "Something went wrong" and log `detail`. Do not retry. |
|
| 107 |
+
| `500` / timeout / no network | Retry once after 1 s, then "Try again" button. Repeating is safe and free (identical sessions are cached). |
|
| 108 |
+
|
| 109 |
+
## 7. TypeScript types
|
| 110 |
+
|
| 111 |
+
Field names are `snake_case` in the JSON. Keep them as is, or map them in one place.
|
| 112 |
+
|
| 113 |
+
```ts
|
| 114 |
+
export interface CoachResponse {
|
| 115 |
+
response_version: "2.0";
|
| 116 |
+
request_id: string;
|
| 117 |
+
session_id: string | null;
|
| 118 |
+
discipline: "hitting" | "pitching";
|
| 119 |
+
level: string | null;
|
| 120 |
+
level_assumed: boolean;
|
| 121 |
+
score: Score;
|
| 122 |
+
summary: string;
|
| 123 |
+
strengths: { metric_key: string; text: string }[];
|
| 124 |
+
focus: { problem_key: string; evidence: string[]; text: string }[];
|
| 125 |
+
drill: { name: string; how: string; cue: string | null } | null;
|
| 126 |
+
timing: Timing | null;
|
| 127 |
+
data_quality: string[];
|
| 128 |
+
arm_care: ArmCare | null;
|
| 129 |
+
meta: { source: "llm" | "rules"; model: string | null; prompt_version: string; cache_hit: boolean;
|
| 130 |
+
fallback_reason: string | null; latency_ms: number | null };
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
export interface Score {
|
| 134 |
+
name: string;
|
| 135 |
+
meaning: string;
|
| 136 |
+
value: number | null; // 0-100, or null
|
| 137 |
+
band: string | null;
|
| 138 |
+
confidence: "high" | "medium" | "low" | null;
|
| 139 |
+
basis: string | null;
|
| 140 |
+
in_range: number;
|
| 141 |
+
checked: number;
|
| 142 |
+
breakdown: { metric_key: string; label: string; score: number; weight: number; zone: string }[];
|
| 143 |
+
reason_code: "capture_not_ok" | "not_enough_measurements" | null;
|
| 144 |
+
reason: string | null;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
export interface Timing {
|
| 148 |
+
summary: string;
|
| 149 |
+
observations: { metric_key: string; label: string; value_ms: number; swings: number;
|
| 150 |
+
range_ms: [number, number] | null; status: "estimated"; text: string }[];
|
| 151 |
+
unavailable: { metric_key: string; label: string; reason_codes: string[]; text: string }[];
|
| 152 |
+
data_quality: string[];
|
| 153 |
+
consistency: { practice_type: string; swings: number; notes: string[] } | null;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
export interface ArmCare {
|
| 157 |
+
pitch_count_today: number | null; daily_max: number | null; next_eligible_date: string | null;
|
| 158 |
+
alerts: string[]; mechanics_drift: string | null;
|
| 159 |
+
lines: string[]; // show these
|
| 160 |
+
}
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
Treat unknown extra fields as ignorable: the API may add fields without changing `response_version`. A different `response_version` means the contract changed; show a generic error and log it.
|
| 164 |
+
|
| 165 |
+
## 8. Rendering skeleton (framework-neutral)
|
| 166 |
+
|
| 167 |
+
```tsx
|
| 168 |
+
function ResultScreen({ r }: { r: CoachResponse }) {
|
| 169 |
+
if (r.score.reason_code === "capture_not_ok") return <RecordAgain text={r.summary} note={r.data_quality[0]} />;
|
| 170 |
+
return (
|
| 171 |
+
<Screen>
|
| 172 |
+
<ScoreCard score={r.score} /> {/* value null -> shows score.reason */}
|
| 173 |
+
<Title>{r.summary}</Title>
|
| 174 |
+
{r.strengths.length > 0 && <List title="What looks good" items={r.strengths.map(s => s.text)} />}
|
| 175 |
+
{r.focus.length > 0 && <NumberedList title="What to work on" items={r.focus.map(f => f.text)} />}
|
| 176 |
+
{r.drill && <DrillCard drill={r.drill} />}
|
| 177 |
+
{r.timing && <TimingCard timing={r.timing} />}
|
| 178 |
+
{r.arm_care && r.arm_care.lines.length > 0 && <List title="Arm care" items={r.arm_care.lines} />}
|
| 179 |
+
{r.data_quality.length > 0 && <List title="Keep in mind" items={r.data_quality} />}
|
| 180 |
+
<ReportProblem requestId={r.request_id} />
|
| 181 |
+
</Screen>
|
| 182 |
+
);
|
| 183 |
+
}
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
## 9. Accessibility and copy
|
| 187 |
+
|
| 188 |
+
- Reading level is about grade 9; keep the font size comfortable. Don't truncate `text`; let it wrap.
|
| 189 |
+
- Don't convey the score by colour alone; the number and `band` words carry the meaning.
|
| 190 |
+
- Support dynamic type / large fonts without clipping the score card.
|
| 191 |
+
- All text comes from the server in English. Don't machine-translate numbers or coaching text on the client.
|
| 192 |
+
|
| 193 |
+
## 10. Checklist before release
|
| 194 |
+
|
| 195 |
+
- [ ] Every sample in `examples/responses/` renders without layout breaks or empty headings.
|
| 196 |
+
- [ ] `score.value == null` shows `score.reason`, never 0 or a blank ring.
|
| 197 |
+
- [ ] `data_quality` (response and timing) is always visible when present.
|
| 198 |
+
- [ ] "Record again" is its own screen with a button back to the camera.
|
| 199 |
+
- [ ] No colour grading, no pass/fail wording, no client-side re-wording of coaching text or numbers.
|
| 200 |
+
- [ ] `focus` order is preserved (priority fix first).
|
| 201 |
+
- [ ] Pitching shows `arm_care.lines` exactly as sent.
|
| 202 |
+
- [ ] 30 s timeout, one retry on timeout/500, no retry on 401/413/422.
|
| 203 |
+
- [ ] `request_id` is attached to "Report a problem" and logs.
|
| 204 |
+
- [ ] The secret API key is not in the app build (call through your backend; see FRONTEND_INTEGRATION.md).
|
| 205 |
+
|
| 206 |
+
If the samples ever drift from the live API, regenerate them with `python tools/build_response_examples.py` (a test fails when they are stale).
|
AI-coach-agent/docs/ML_PIPELINE_RESPONSE.md
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# What we need back from the ML pipeline: one response, one structure
|
| 2 |
+
|
| 3 |
+
**For:** the ML / pose-pipeline engineer. **Written from our side** (the AI coach and the measurement layer), independent of how the
|
| 4 |
+
pipeline is built today. If something here conflicts with an older document, **this one wins**. The detailed field-by-field specs it
|
| 5 |
+
points to are `POSE_DATA_SPEC.md` (points, objects, timestamps, events) and `AGENT_INPUT_SPEC.md` (measurements).
|
| 6 |
+
|
| 7 |
+
> Your stage ends at **points, events and numbers**. It never decides what is wrong with the player, what to improve, or which drill to give.
|
| 8 |
+
> The AI coach agent decides all of that from your measurements.
|
| 9 |
+
|
| 10 |
+
## 1. In one screen
|
| 11 |
+
|
| 12 |
+
Per clip, send **one JSON response** with two parts:
|
| 13 |
+
|
| 14 |
+
| Part | What it holds | Required |
|
| 15 |
+
|---|---|---|
|
| 16 |
+
| `pose_track` | video facts, **2D body points for every frame**, athlete box and quality per frame, **events per rep**; optional 3D points and bat/ball | **yes** (2D points, boxes, timestamps) |
|
| 17 |
+
| `measurements` | per rep: the measurement numbers, each with a unit and an honest `high` / `medium` / `est` label; capture quality; real capture fps | **yes** (if your stage computes them; otherwise we compute them from `pose_track`) |
|
| 18 |
+
|
| 19 |
+
| Question | Answer |
|
| 20 |
+
|---|---|
|
| 21 |
+
| 2D or 3D points? | **2D is required. 3D is recommended only if validated** (section 2) |
|
| 22 |
+
| Which objects? | The **athlete** (box + id + people count). Bat and ball are optional and unused for now |
|
| 23 |
+
| Which points? | **COCO-17** body points + **6 foot points** (recommended); nothing else (section 4) |
|
| 24 |
+
| Time | **Real capture time** per frame, never playback time |
|
| 25 |
+
| Events | Per rep, with precise definitions, including **two** foot events (section 5) |
|
| 26 |
+
| Numbers | The list in section 6, with **updated definitions** |
|
| 27 |
+
| What not to send | video, frames, names, ids, faults, a priority fix, drills, ranges or advice |
|
| 28 |
+
|
| 29 |
+
## 2. 2D or 3D: what the real lab data showed
|
| 30 |
+
|
| 31 |
+
We checked our metric definitions on **public lab motion-capture data (Driveline's OpenBiomechanics Project: 100 pitchers, 98 hitters)** by
|
| 32 |
+
projecting the lab's 3D joint positions onto an ideal side-view or face-on phone camera. Result:
|
| 33 |
+
|
| 34 |
+
**2D works for these (the agent judges them):**
|
| 35 |
+
pitching stride (ankle to ankle at foot plant), front-knee bend at foot plant and at release, knee "block", trunk forward lean at release,
|
| 36 |
+
leg-lift-to-foot-plant time, foot-plant-to-release time, head vertical range; hitting stride (foot to foot at foot plant),
|
| 37 |
+
foot-plant-to-contact time, body position relative to the front foot at contact.
|
| 38 |
+
|
| 39 |
+
**2D does NOT work for these (checked against the lab truth), so they are reference-only today:**
|
| 40 |
+
|
| 41 |
+
| Quantity | Why 2D fails | Evidence |
|
| 42 |
+
|---|---|---|
|
| 43 |
+
| Hip-shoulder separation (the "X-factor") | it is a rotation about the vertical axis, invisible in the image plane | correlation with the true value: r = 0.38 (hitting), r = -0.08 (pitching) |
|
| 44 |
+
| Hitting front-knee angle at contact (face-on) | the knee bends toward or away from the camera | 2D reads about 28 degrees too straight, r = 0.01 with the true knee |
|
| 45 |
+
| Hitting trunk tilt at contact (face-on) | the shoulder line is nearly edge-on to a chest-facing camera | 4 cm horizontal extent; not a trunk measurement |
|
| 46 |
+
| Pitching trunk side lean, arm slot (side view) | frontal-plane quantities; camera angle changes them a lot | arm slot shifts 8 to 20 degrees with a 10 to 20 degree camera error |
|
| 47 |
+
|
| 48 |
+
These are exactly the rotations coaches care about, so **a validated 3D estimate would let the agent judge them**, using the 3D reference
|
| 49 |
+
values that the same lab dataset provides (trunk tilt, lead-knee flexion, hip-shoulder separation, arm slot).
|
| 50 |
+
|
| 51 |
+
**What we ask:**
|
| 52 |
+
* **Always send 2D** (required).
|
| 53 |
+
* **Send 3D only if you have a monocular 3D estimate you have validated** against marker-based data (section 8 describes a ready-made test).
|
| 54 |
+
Use the optional `pose_track.kp3d` block: the same 17 joints, in **meters**, in the **camera frame** (x right, y down, z away from the camera)
|
| 55 |
+
or pelvis-relative (declare which), with a confidence per joint. Also tell us the model name and how you validated it.
|
| 56 |
+
* Until 3D is validated we treat it as **experimental**: it is shown to the coach, never used as the player's priority fix. Do not send an
|
| 57 |
+
unvalidated 3D estimate and call it accurate.
|
| 58 |
+
|
| 59 |
+
## 3. The full response structure
|
| 60 |
+
|
| 61 |
+
```json
|
| 62 |
+
{
|
| 63 |
+
"schema_version": "1.0",
|
| 64 |
+
"pose_track": {
|
| 65 |
+
"schema_version": "1.0",
|
| 66 |
+
"discipline": "hitting", // or "pitching"
|
| 67 |
+
"view": "face_on", // hitting: face_on; pitching: open_side
|
| 68 |
+
"video": {"width": 1080, "height": 1920, "frame_count": 2400, "capture_fps": 240.0, "playback_fps": 30.0,
|
| 69 |
+
"rotation_degrees_applied": 90, "time_source": "slowmo_rescaled"},
|
| 70 |
+
"model": {"name": "...", "version": "...", "processing": [], "people_rule": "...", "blur_definition": "..."},
|
| 71 |
+
"keypoint_order": ["nose", "left_eye", "right_eye", "left_ear", "right_ear", "left_shoulder", "right_shoulder", "left_elbow",
|
| 72 |
+
"right_elbow", "left_wrist", "right_wrist", "left_hip", "right_hip", "left_knee", "right_knee",
|
| 73 |
+
"left_ankle", "right_ankle"],
|
| 74 |
+
"extra_keypoint_order": ["left_big_toe", "left_small_toe", "left_heel", "right_big_toe", "right_small_toe", "right_heel"],
|
| 75 |
+
"frames": { // columnar: one array per field, one entry per frame (all the same length)
|
| 76 |
+
"t_s": [0.0, 0.00417, "..."], // REAL capture seconds, strictly increasing
|
| 77 |
+
"kp": [[[x, y] or null, "... 17 points ..."], "... one row per frame ..."], // upright pixels; unknown = null
|
| 78 |
+
"conf": [[0.93, 0.0, "... 17 values, 0 exactly where the point is null ..."], "..."],
|
| 79 |
+
"kp_extra": [[[x, y] or null, "... 6 foot points ..."], "..."], // recommended
|
| 80 |
+
"conf_extra": [[0.9, "... 6 values ..."], "..."],
|
| 81 |
+
"box": [[x1, y1, x2, y2] or null, "..."], // the athlete
|
| 82 |
+
"track_id": [1, 1, "..."],
|
| 83 |
+
"people_count": [1, 1, "..."],
|
| 84 |
+
"blur": [0.05, "..."], // 0 sharp .. 1 very blurry
|
| 85 |
+
"brightness": [128.0, "..."] // 0 .. 255
|
| 86 |
+
},
|
| 87 |
+
"reps": [ // swings or pitches; only events you actually found
|
| 88 |
+
{"rep": 1, "start_frame": 0, "end_frame": 1100,
|
| 89 |
+
"events": {"stance_set": {"frame": 6, "t_s": 0.025, "confidence": 0.8, "estimated": false, "method": "..."},
|
| 90 |
+
"foot_contact": {"frame": 520, "confidence": 0.7, "estimated": false, "method": "..."},
|
| 91 |
+
"foot_plant": {"frame": 540, "confidence": 0.75, "estimated": false, "method": "..."},
|
| 92 |
+
"contact": {"frame": 690, "confidence": 0.5, "estimated": true, "method": "..."}},
|
| 93 |
+
"missing_events": {"load_start": "hands never move back"}}
|
| 94 |
+
],
|
| 95 |
+
"kp3d": {"frame_of_reference": "camera", "unit": "m", "points": [[[x, y, z] or null, "... 17 ..."], "..."], "conf": [[0.8, "..."], "..."]}, // optional, validated only
|
| 96 |
+
"objects": {"bat": ["..."], "ball": ["..."]} // optional, unused for now
|
| 97 |
+
},
|
| 98 |
+
"measurements": {
|
| 99 |
+
"schema_version": "2.0",
|
| 100 |
+
"discipline": "hitting",
|
| 101 |
+
"view": "face_on",
|
| 102 |
+
"fps": 240.0, // the REAL capture frame rate
|
| 103 |
+
"capture": {"ok": true, "reasons": []}, // from your capture check (known reason keys: see AGENT_INPUT_SPEC section 5.3)
|
| 104 |
+
"reps": [
|
| 105 |
+
{"rep": 1,
|
| 106 |
+
"events_ms": {"stance_set": 0, "foot_plant": 2150, "contact": 2760}, // ms from the start of the rep
|
| 107 |
+
"metrics": [
|
| 108 |
+
{"key": "stride_pct_height", "value": 49.2, "unit": "%", "confidence": "high"},
|
| 109 |
+
{"key": "foot_plant_to_contact_ms", "value": 128.0, "unit": "ms", "confidence": "medium"},
|
| 110 |
+
{"key": "load_tempo_s", "value": null, "unit": "s", "confidence": "est", "note": "not computed: event 'load_start' not found"}
|
| 111 |
+
],
|
| 112 |
+
"quality": {"pose_conf": 0.84, "blur": 0.12}}
|
| 113 |
+
]
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Both parts follow the existing, checkable formats: `pose_track` validates with `python tools/check_pose_json.py` (schema
|
| 119 |
+
`pose_track.schema.json`), and `measurements` with `python -m ai_coach.validate`. Player context (level, age, bats/throws, height, state)
|
| 120 |
+
and pitch counts come from the app, not from you.
|
| 121 |
+
|
| 122 |
+
## 4. Points and objects
|
| 123 |
+
|
| 124 |
+
| What | Required | Notes |
|
| 125 |
+
|---|---|---|
|
| 126 |
+
| 2D body points, COCO-17, every frame, upright pixels, confidence each, `null` + 0 when unknown | **yes** | nose, eyes, ears, shoulders, elbows, wrists, hips, knees, ankles. "Left" is the athlete's own left |
|
| 127 |
+
| 6 foot points (heel, big toe, small toe, each foot) | recommended | makes the two foot events much more reliable |
|
| 128 |
+
| Athlete box, `track_id`, `people_count` per frame | **yes** | one athlete; `people_count` drives the "two people in view" check |
|
| 129 |
+
| `blur` (0 to 1) and `brightness` (0 to 255) per frame | **yes** | for the capture check |
|
| 130 |
+
| 3D points (`kp3d`) | optional, validated only | section 2 |
|
| 131 |
+
| Bat knob/barrel, ball centre | optional | not used yet; contact stays an estimate |
|
| 132 |
+
| Hands, face, fingers, the 133-point whole-body set | no | not used |
|
| 133 |
+
| Raw points | **send raw** | we smooth and fill gaps of up to 3 frames; list any processing you apply in `model.processing` |
|
| 134 |
+
|
| 135 |
+
## 5. Events: precise meanings (send only events you actually found)
|
| 136 |
+
|
| 137 |
+
**The two foot events matter.** In the lab data the foot reaches full body weight about **19 ms** (pitching) to **50 ms** (hitting) after it first
|
| 138 |
+
touches the ground. Timing metrics (foot plant to contact, foot plant to release, leg lift to foot plant) hang on this, and a mismatch moves
|
| 139 |
+
them by 15 to 40 percent. So send both, defined exactly like this:
|
| 140 |
+
|
| 141 |
+
| Event | Meaning |
|
| 142 |
+
|---|---|
|
| 143 |
+
| `foot_contact` | **first** frame the lead foot touches the ground |
|
| 144 |
+
| `foot_plant` | first frame the lead foot is **fully planted**: its weight is on the ground and the ankle has stopped moving (the lab's "100% of body weight") |
|
| 145 |
+
|
| 146 |
+
**Hitting (face-on):** `stance_set`, `load_start`, `stride` (lead foot leaves the ground or starts toward the pitcher), `foot_contact`, `foot_plant`,
|
| 147 |
+
`swing_start` (sustained forward hand acceleration), `contact` (**estimated**: maximum lead-arm extension with the hands in front; always
|
| 148 |
+
`estimated: true` unless a ball or sensor supports it), `finish`.
|
| 149 |
+
|
| 150 |
+
**Pitching (open side):** `first_move`, `leg_lift` (peak lead-knee height), `hand_break`, `foot_contact`, `foot_plant`, `release` (the throwing wrist's
|
| 151 |
+
peak forward speed), `finish`.
|
| 152 |
+
|
| 153 |
+
Order is the order listed. Events must lie inside their rep. Details and examples: `POSE_DATA_SPEC.md` section 7.
|
| 154 |
+
|
| 155 |
+
## 6. Measurements: the numbers, with updated definitions
|
| 156 |
+
|
| 157 |
+
All distances are a percentage of the athlete's body height. Send every rep's own numbers, not only an average. Unreliable? Label it `est` or send
|
| 158 |
+
`null` with a `note`. Never send a confident wrong number.
|
| 159 |
+
|
| 160 |
+
**The agent judges these today:**
|
| 161 |
+
|
| 162 |
+
| Key | Unit | Definition |
|
| 163 |
+
|---|---|---|
|
| 164 |
+
| `stride_pct_height` (**hitting, redefined**) | % | **foot to foot**: horizontal distance between the lead and back ankle at `foot_plant` (the old "lead-ankle travel from load start" measures about 15 percent and does not match any reference) |
|
| 165 |
+
| `stride_pct_height` (pitching) | % | horizontal distance between back ankle and lead ankle at `foot_plant` (real pitchers measure about 74 percent this way, not the published 83) |
|
| 166 |
+
| `foot_plant_to_contact_ms` | ms | `foot_plant` to estimated `contact` |
|
| 167 |
+
| `com_drift_pct_height` | % | hip-midpoint horizontal position relative to the lead ankle at contact (negative = behind the front foot) |
|
| 168 |
+
| `lead_knee_flexion_fp_deg`, `lead_knee_flexion_release_deg` | deg | 180 minus the interior hip-knee-ankle angle of the lead leg at `foot_plant` / `release` (0 = straight) |
|
| 169 |
+
| `lead_knee_block_deg` | deg | flexion at `foot_plant` minus flexion at `release` |
|
| 170 |
+
| `trunk_forward_tilt_release_deg` | deg | mid-hip to mid-shoulder line from vertical, toward the plate, at `release` |
|
| 171 |
+
| `leg_lift_to_fp_ms`, `fp_to_release_ms` | ms | `leg_lift` to `foot_plant`; `foot_plant` to `release` |
|
| 172 |
+
| `head_stability_pct_height` (**redefined**) | % | **vertical range** of the head (max minus min height) from `leg_lift` to `release`; total path length is dominated by the whole body moving forward and is meaningless |
|
| 173 |
+
|
| 174 |
+
**Send them too, but the agent only shows them as reference (not judged) until a valid view or 3D exists:**
|
| 175 |
+
`hip_shoulder_separation_foot_plant_deg`, `hip_shoulder_sep_fp`, hitting `lead_knee_angle_contact_deg`, `lateral_trunk_tilt_contact_deg`,
|
| 176 |
+
`trunk_lateral_tilt_release_deg`, `arm_slot_deg` (still used to measure pitch-to-pitch consistency), hitting `head_movement_pct_height`
|
| 177 |
+
(path of the nose from `stance_set` to `contact`; not judged until calibrated on the app's own nose tracking), `load_tempo_s`,
|
| 178 |
+
`load_launch_ratio` (depend on the load-start rule).
|
| 179 |
+
|
| 180 |
+
Not measured in v1: bat speed, exit velocity, pitch velocity, spin, arm speed, max external rotation, kinematic sequence.
|
| 181 |
+
|
| 182 |
+
## 7. Accuracy targets (our proposal, not yet measured)
|
| 183 |
+
|
| 184 |
+
* 2D points on non-blurred frames: median error **<= 2% of body height**; **<= 1.5%** for ankles, hips, shoulders and nose.
|
| 185 |
+
* Confidence must mean something: of points with `conf >= 0.5`, at least 90% within about 3% of body height of the true position.
|
| 186 |
+
* Events: `foot_contact`, `foot_plant` and `release` within **+-2 frames** of the truth for at least 90% of events; `contact` is an estimate, report its error.
|
| 187 |
+
* Why these numbers: a typical healthy stride band is about 15 points wide and a knee band about 25 to 30 degrees wide, so 1 to 2% positional error does not move a
|
| 188 |
+
player in or out of range, but 5% would.
|
| 189 |
+
|
| 190 |
+
## 8. Test it against lab truth before sending anything (new, strongly recommended)
|
| 191 |
+
|
| 192 |
+
The same public dataset ships **synchronised video** (`cv_media.zip`, about 277 MB, GitHub release `cv-media-v1` of
|
| 193 |
+
`drivelineresearch/openbiomechanics`) next to the lab's joint positions. Run your pipeline on those videos and compare with the lab:
|
| 194 |
+
|
| 195 |
+
1. 2D points: median error per joint as a percentage of body height (target in section 7).
|
| 196 |
+
2. 3D points, if you send them: per-joint error in cm after the same camera alignment.
|
| 197 |
+
3. Events: frame difference for `foot_contact`, `foot_plant`, `release` and `contact` against the lab's event times.
|
| 198 |
+
4. Measurements: correlation and mean difference for each judged metric against the same metric computed from the lab's joint positions.
|
| 199 |
+
|
| 200 |
+
Please send us the numbers. This is the only way to replace our simulated phone noise with real noise, and it decides whether a metric may be judged, or
|
| 201 |
+
stays reference-only. Licence note: the dataset is CC BY-NC-SA 4.0 from Driveline Baseball; the product owner is arranging the commercial licence.
|
| 202 |
+
|
| 203 |
+
## 9. Questions we need answered
|
| 204 |
+
|
| 205 |
+
1. Which keypoint model do you use, and which of the 17 + 6 points does it really provide?
|
| 206 |
+
2. Do you have a 3D estimate? Which model, and how was it validated?
|
| 207 |
+
3. Can you detect both `foot_contact` and `foot_plant` as defined above?
|
| 208 |
+
4. How do you get real capture time for slow-motion files?
|
| 209 |
+
5. Are the points raw or processed (and how)? How is `conf` computed?
|
| 210 |
+
6. Which events and which measurements from sections 5 and 6 will you deliver, for hitting and for pitching?
|
| 211 |
+
7. Can you run the section 8 test, and when?
|
AI-coach-agent/docs/MODEL_CHOICE.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model choice, cost and caching
|
| 2 |
+
|
| 3 |
+
Researched **2026-10-10** from Google's model and pricing pages (summarised by a tool) and third-party price trackers. Model ids
|
| 4 |
+
and prices are **re-verified on the first live run** (`pytest -m live -s` and `python evals/run_eval.py --mode live`), because the
|
| 5 |
+
page text was not read directly.
|
| 6 |
+
|
| 7 |
+
## Decision
|
| 8 |
+
|
| 9 |
+
| Role | Model id | Why |
|
| 10 |
+
|---|---|---|
|
| 11 |
+
| **Default** | `gemini-3.1-flash-lite` (stable) | Cheapest stable 3.x text model ($0.25 in / $1.50 out per 1M tokens). The task is small and structured (about 3k tokens in, 350 out), so a frontier model adds cost, not quality. |
|
| 12 |
+
| **Escalation** (after the default breaks a guardrail twice) | `gemini-3.8-flash` (stable) | Stronger and 3x the price, used only for the rare hard case. Introductory price ends 2026-12-31. |
|
| 13 |
+
| Alternative cheap | `gemini-3.5-flash-lite` | Slightly newer than 3.1 flash-lite at a slightly higher price ($0.30 / $2.50). Switch by setting `COACH_MODEL`. |
|
| 14 |
+
|
| 15 |
+
Not used: `gemini-3.1-pro-preview` (preview, $2 / $12, overkill), the 2.5 series (access limited to existing users), `gemini-2.0-*`
|
| 16 |
+
(shut down). All ids are configuration (`COACH_MODEL`, `COACH_ESCALATION_MODEL`), never hard-coded in logic.
|
| 17 |
+
|
| 18 |
+
## Prices (paid tier, USD per 1M tokens, standard)
|
| 19 |
+
|
| 20 |
+
| Model | Input | Output | Cached input | Notes |
|
| 21 |
+
|---|---|---|---|---|
|
| 22 |
+
| `gemini-3.1-flash-lite` | 0.25 | 1.50 | 0.025 | cache storage 1.00 per 1M tokens per hour |
|
| 23 |
+
| `gemini-3.5-flash-lite` | 0.30 | 2.50 | 0.03 | |
|
| 24 |
+
| `gemini-3.8-flash` | 0.75 | 3.75 | 0.075 | **1.50 / 7.50 / 0.15 from 2027-01-01** |
|
| 25 |
+
| `gemini-3.1-pro-preview` | 2.00 | 12.00 | 0.20 | doubles above 200k-token prompts |
|
| 26 |
+
|
| 27 |
+
Batch mode is 50% cheaper on all of these (not used in v1; fits non-interactive monthly report cards).
|
| 28 |
+
The price table lives in `src/ai_coach/config.py::DEFAULT_PRICES` and drives `cost.py`.
|
| 29 |
+
|
| 30 |
+
## Expected cost per session (estimate, verify live)
|
| 31 |
+
|
| 32 |
+
* Static prompt prefix about 3,300 tokens (system prompt + 3 worked examples) + session data about 300 to 1,000 tokens = **about 4,000 input tokens**.
|
| 33 |
+
* Output about 350 to 500 tokens (the note now cites evidence).
|
| 34 |
+
* Default model: 4,000 x $0.25/M + 450 x $1.50/M = **about $0.0017 per note** (about **$1.70 per 1,000 sessions**).
|
| 35 |
+
* Repeated identical sessions: **$0** (response cache). Failed-capture or nothing-to-judge sessions: **$0** (never sent to the model).
|
| 36 |
+
* Retry on a guardrail failure adds one more call; escalation adds a `gemini-3.8-flash` call (about $0.0035). Both are rare.
|
| 37 |
+
* Thinking tokens, if the model uses them, are billed as output. If the live run shows a large thinking share, set
|
| 38 |
+
`COACH_THINKING_BUDGET` (only if the model accepts it) and re-measure.
|
| 39 |
+
|
| 40 |
+
## Caching: what actually saves money here
|
| 41 |
+
|
| 42 |
+
1. **Response cache (sqlite, `cache.py`)**: key = sha256(prompt version + model + canonical input). Identical input means no API call.
|
| 43 |
+
The prompt version contains a content hash, so editing a prompt invalidates old answers automatically. Default TTL 30 days.
|
| 44 |
+
2. **Skip the model when there is nothing to say**: failed capture or no measurable metric goes straight to the rule-based note.
|
| 45 |
+
3. **Small input**: the pipeline JSON (about 15 to 25 KB) is compacted to about 2 to 3 KB (`input_builder.py`). Numbers rounded, nulls dropped.
|
| 46 |
+
4. **Prompt layout for provider caching**: static content first (system prompt + examples), session JSON last. Gemini applies
|
| 47 |
+
*implicit* caching automatically, but only above a minimum prefix size. The docs list **4,096 tokens** for the 3.x Flash
|
| 48 |
+
models; the minimum for the flash-lite models was not listed. Our static prefix (about 3,300 tokens) is now **close to** it, but still
|
| 49 |
+
probably below, so expect `cached_tokens = 0` until measured (cached input is billed at one tenth). We deliberately do **not** pad the prompt to reach the threshold; if the live run shows the prefix just misses it, trimming one worked example would be worth testing.
|
| 50 |
+
5. **No explicit cache objects**: they charge storage per hour and only pay off with sustained high volume. Revisit at scale.
|
| 51 |
+
6. **Budget guard (`cost.py`)**: daily spend cap (`COACH_DAILY_BUDGET_USD`); over budget means rule-based notes only.
|
| 52 |
+
|
| 53 |
+
To check implicit caching live: run `python evals/run_eval.py --mode live --repeat 2` and read the `cached_tok` column.
|
| 54 |
+
|
| 55 |
+
## Sources
|
| 56 |
+
|
| 57 |
+
* Gemini models: https://ai.google.dev/gemini-api/docs/models
|
| 58 |
+
* Gemini pricing: https://ai.google.dev/gemini-api/docs/pricing
|
| 59 |
+
* Gemini caching (implicit minimums): https://ai.google.dev/gemini-api/docs/caching
|
| 60 |
+
* LangChain Gemini integration: https://reference.langchain.com/python/langchain-google-genai/langchain_google_genai
|
AI-coach-agent/docs/OBSERVABILITY.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Usage, cost and logs
|
| 2 |
+
|
| 3 |
+
Three views of the same activity, linked by one `request_id`:
|
| 4 |
+
|
| 5 |
+
| Where | What it shows | Needs |
|
| 6 |
+
|---|---|---|
|
| 7 |
+
| **LangSmith** (dashboard) | Every Gemini call as a trace: prompt, output, tokens, latency, errors, plus our `cost_usd` and filters | LangSmith account (free Developer plan) |
|
| 8 |
+
| **Local ledger** (`ai-coach-report`) | Totals per day/model, cache hit rate, fallback reasons, escalation share, spend vs budget. Includes requests that never reach the model | nothing (sqlite file) |
|
| 9 |
+
| **JSON logs** (`.coach_cache/logs/coach.jsonl`) | One line per model call and one per request, for grep/`jq`/shipping to any log tool | nothing |
|
| 10 |
+
|
| 11 |
+
LangSmith cannot see cache hits or rule-based notes (no model call, no trace). The ledger and logs can. Use LangSmith to debug
|
| 12 |
+
*why a note looks the way it does*, and the report to answer *how much are we spending*.
|
| 13 |
+
|
| 14 |
+
## Set up LangSmith (one time)
|
| 15 |
+
|
| 16 |
+
1. In LangSmith: Settings, API keys, create a key (it starts with `lsv2_`). The free Developer plan has 1 seat and 5,000 base traces
|
| 17 |
+
per month (14-day retention). Use the EU endpoint if you need EU data residency.
|
| 18 |
+
2. Put this in `AI-coach-agent/.env` (git-ignored):
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
COACH_TRACING=true
|
| 22 |
+
LANGSMITH_API_KEY=lsv2_...
|
| 23 |
+
LANGSMITH_PROJECT=ai-coach # any name; created on first trace
|
| 24 |
+
# LANGSMITH_ENDPOINT=https://eu.api.smith.langchain.com # EU region only
|
| 25 |
+
COACH_ENV=dev # tag: dev | staging | prod
|
| 26 |
+
```
|
| 27 |
+
3. Verify: `python -m ai_coach.tracing check` (sends one tiny trace and reads it back).
|
| 28 |
+
4. Run real notes, for example `python evals/run_eval.py --mode live --repeat 2`, and open the project in LangSmith.
|
| 29 |
+
|
| 30 |
+
The app builds the LangSmith client from these settings itself (`.env` is read by the app, it is not exported to the process
|
| 31 |
+
environment), so you do not need LangSmith's own tracing switch or any exported variables.
|
| 32 |
+
|
| 33 |
+
## What appears in LangSmith
|
| 34 |
+
|
| 35 |
+
One **`coach_request`** trace per request that actually calls Gemini, with a child **`gemini_coach_note`** LLM run per attempt
|
| 36 |
+
(repair and escalation attempts are separate children, so you can see exactly what was retried and why).
|
| 37 |
+
|
| 38 |
+
* Inputs: the compact, numbers-only `CoachInput`. Outputs: the note and its source.
|
| 39 |
+
* LLM child run: prompt messages, structured output, token usage (input, output, cached, reasoning) and latency, recorded by LangSmith.
|
| 40 |
+
* **Tags:** `ai-coach`, `env:<COACH_ENV>`, `prompt:<version>`, `hitting` or `pitching`, and on child runs `model:<id>`.
|
| 41 |
+
* **Metadata on the root run (filterable):** `request_id`, `prompt_version`, `discipline`, `level`, `fps_class`, `environment`,
|
| 42 |
+
`source` (`llm`/`rules`), `model`, `attempts`, `cache_hit`, `fallback_reason`, `cost_usd`, `input_tokens`, `output_tokens`,
|
| 43 |
+
`cached_tokens`, `reasoning_tokens`, `violation_codes`, `latency_ms`, and the judgement signals `chosen_problem`, `baseline_problem`, `agrees_with_baseline`.
|
| 44 |
+
|
| 45 |
+
Useful filters: `fallback_reason is not null` (why the model was not used), `attempts > 1` (guardrail failures), tag `prompt:<version>`
|
| 46 |
+
(compare prompt versions), metadata `cost_usd > 0.003` (expensive requests).
|
| 47 |
+
|
| 48 |
+
**Cost in LangSmith:** LangSmith computes dollar cost from token counts using its model price table. If a new Gemini model is missing
|
| 49 |
+
there, its cost column shows empty or zero: add the model's prices in LangSmith's model-pricing settings, or rely on our `cost_usd`
|
| 50 |
+
metadata (computed from the price table in `src/ai_coach/config.py`). Check once that the two agree.
|
| 51 |
+
|
| 52 |
+
## Free-plan math
|
| 53 |
+
|
| 54 |
+
Only requests that call the model are traced, so traces per month are about the number of *generated* notes (cache hits and
|
| 55 |
+
rule-based notes are skipped). Set `COACH_TRACE_SAMPLE_RATE=0.2` to trace one in five, or `COACH_TRACE_ALL=true` to trace everything.
|
| 56 |
+
At about $0.0012 per generated note, 5,000 traces corresponds to roughly $6 of Gemini spend a month.
|
| 57 |
+
|
| 58 |
+
## Privacy
|
| 59 |
+
|
| 60 |
+
Traces leave your machine for LangSmith's cloud. What is sent: the compact numbers-only session (metrics, faults, drill name), the
|
| 61 |
+
prompt and the note. Never video, frames, keypoints, names or ids (the input builder is the privacy boundary). For stricter needs:
|
| 62 |
+
`COACH_TRACE_HIDE_INPUTS=true` and/or `COACH_TRACE_HIDE_OUTPUTS=true` (traces then keep timings, tokens and metadata only), the EU
|
| 63 |
+
endpoint, and a retention decision for data about minors. API keys are never written to logs, traces or error text (redaction on).
|
| 64 |
+
|
| 65 |
+
## Local report
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
python -m ai_coach.report --days 7 # human readable
|
| 69 |
+
python -m ai_coach.report --json # for dashboards or scripts
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Shows requests, share generated vs cached vs rule-based, billed model calls (and how many were escalated), total cost, cost per
|
| 73 |
+
request and per generated note, p50/p95 latency, tokens and cost per model, call outcomes (`ok`, `guardrail_failed`,
|
| 74 |
+
`transport_error`, `unparsable_error`...), fallback reasons, per-day totals and spend against the daily budget.
|
| 75 |
+
|
| 76 |
+
The ledger is `spend.sqlite3` next to the cache (`COACH_CACHE_PATH`), tables `calls` and `notes`.
|
| 77 |
+
|
| 78 |
+
## Logs
|
| 79 |
+
|
| 80 |
+
`configure_logging` is called by the CLIs. In your own app call it once at startup:
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from ai_coach.config import Settings
|
| 84 |
+
from ai_coach.observability import configure_logging
|
| 85 |
+
|
| 86 |
+
configure_logging(Settings())
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
JSON lines, rotated at 5 MB (3 backups). Two events:
|
| 90 |
+
|
| 91 |
+
* `llm_call`: `request_id, model, attempt, escalated, outcome, input_tokens, output_tokens, cached_tokens, reasoning_tokens, cost_usd, latency_ms, environment`
|
| 92 |
+
* `coach_note`: `request_id, discipline, player_level, fps_class, source, model, cache_hit, fallback_reason, attempts, token counts, cost_usd, latency_ms, prompt_version, violation_codes, chosen_problem, baseline_problem, agrees_with_baseline, environment`
|
| 93 |
+
|
| 94 |
+
```bash
|
| 95 |
+
tail -f .coach_cache/logs/coach.jsonl | jq -c '{event, request_id, model, outcome, cost_usd}'
|
| 96 |
+
jq -s 'map(select(.event=="coach_note")) | group_by(.fallback_reason) | map({reason: .[0].fallback_reason, n: length})' .coach_cache/logs/coach.jsonl
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
Logs contain **no session content and no note text**, only ids, counts, tokens, cost, outcomes and violation codes.
|
| 100 |
+
`COACH_LOG_LEVEL`, `COACH_LOG_DIR`, `COACH_LOG_TO_CONSOLE=true` adjust output.
|
| 101 |
+
|
| 102 |
+
## What to watch
|
| 103 |
+
|
| 104 |
+
| Signal | Healthy | If it moves |
|
| 105 |
+
|---|---|---|
|
| 106 |
+
| Fallback rate (`rules` with a model-related reason) | under 5% | prompt or model drift: read `violation_codes` and the failing traces |
|
| 107 |
+
| `attempts > 1` share | under 15% | prompt too loose, or a guardrail too strict (check LangSmith traces of the retries) |
|
| 108 |
+
| Cost per generated note | about $0.001 to $0.002 | large `reasoning_tokens`: set `COACH_THINKING_LEVEL=low` (or `minimal`) and re-measure |
|
| 109 |
+
| Cache hit rate | rises with repeat views | falls to zero right after a prompt edit (expected: the version is in the key) |
|
| 110 |
+
| `escalated_calls` | near zero | the cheap model struggles with a prompt change |
|
| 111 |
+
| Spend today vs budget | well under | raise `COACH_DAILY_BUDGET_USD` deliberately, never silently |
|
| 112 |
+
| Priority fix = baseline (`agreement_with_baseline`) | not a target: disagreement is allowed | very low or very high are both worth a look: read the traces where Gemini chose a different first problem and ask a coach who was right |
|
| 113 |
+
|
| 114 |
+
## Troubleshooting
|
| 115 |
+
|
| 116 |
+
* **No traces in LangSmith:** `python -m ai_coach.tracing check`. Needs `COACH_TRACING=true` *and* `LANGSMITH_API_KEY`. Cache hits and rule-based
|
| 117 |
+
notes are not traced by default. Wrong region: set `LANGSMITH_ENDPOINT`. The project appears after the first trace.
|
| 118 |
+
* **Report empty:** the ledger path follows `COACH_CACHE_PATH`; run the report from the same environment that wrote it.
|
| 119 |
+
* **LangSmith cost is $0 or differs from the report:** model missing from LangSmith's price table (see above); the report is computed from
|
| 120 |
+
`config.py` prices, which are the source of truth for the budget guard.
|
| 121 |
+
* **Token counts look high:** thinking tokens are billed as output and shown as `reasoning_tokens`; limit them with `COACH_THINKING_LEVEL`.
|
| 122 |
+
|
| 123 |
+
## Failure cache
|
| 124 |
+
A rule-based outcome (model unavailable, guardrails failed, budget hit) is remembered for `COACH_FAILURE_CACHE_TTL_S` seconds
|
| 125 |
+
(default 300, 0 = off), so identical requests do not repeat the whole model chain. Such responses are not counted as judged
|
| 126 |
+
model notes in the eval counters.
|
AI-coach-agent/docs/POSE_DATA_SPEC.md
ADDED
|
@@ -0,0 +1,423 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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From:** the downstream side (measurements and the AI coach).
|
| 4 |
+
**Start with `ML_PIPELINE_RESPONSE.md` (the one-page response structure).**
|
| 5 |
+
**Reminder:** your stage never decides what is wrong with the player or what to improve; that is the AI coach agent's job. You provide points, events and measurements.
|
| 6 |
+
**Status:** a contract written from what the product needs, **independent of how your code is structured today**. Adapt your output to
|
| 7 |
+
it, or tell us what you cannot provide (section 12). Nothing here depends on any current module names.
|
| 8 |
+
|
| 9 |
+
How this fits with the other documents:
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
video --> [ this document: pose data ] --> events + reps --> measurements --> [AGENT_INPUT_SPEC.md] --> AI coach agent
|
| 13 |
+
points, boxes, timestamps (section 7) (numbers only) (v2: numbers only) decides what is wrong / right /
|
| 14 |
+
what to improve and which drill
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
Files that go with this document (all in `AI-coach-agent/`):
|
| 18 |
+
`docs/pose_track.schema.json` (machine-readable schema), `docs/examples/pose_track_example.json` (a valid example file) and
|
| 19 |
+
`tools/check_pose_json.py` (checker, section 11).
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## 1. One-screen summary
|
| 24 |
+
|
| 25 |
+
| Send | Details |
|
| 26 |
+
|---|---|
|
| 27 |
+
| **2D body keypoints, every frame** | 17 COCO points (section 3), pixel coordinates in the **upright** image, with a **confidence per point** |
|
| 28 |
+
| **Real timestamps** | seconds of **real capture time** per frame, never playback time (section 6) |
|
| 29 |
+
| **One athlete box + people count per frame** | to detect "two people in view" and track identity |
|
| 30 |
+
| **Quality per frame** | blur (0 sharp to 1 blurry) and brightness (0 to 255) |
|
| 31 |
+
| **Video facts** | width/height after rotation, capture fps, playback fps, rotation applied, how time was obtained |
|
| 32 |
+
| **Events per rep** (if you own that stage) | frame indices with confidence, only the events you actually found (section 7) |
|
| 33 |
+
|
| 34 |
+
| Recommended | Details |
|
| 35 |
+
|---|---|
|
| 36 |
+
| 6 foot points | heel, big toe and small toe of each foot: makes foot plant and stride more accurate |
|
| 37 |
+
| `track_id` per frame | makes athlete identity switches visible |
|
| 38 |
+
|
| 39 |
+
| Optional (accepted, **not used in v1**) | Details |
|
| 40 |
+
|---|---|
|
| 41 |
+
| 3D points | `kp3d` in meters. We do not need it for v1 (section 2) |
|
| 42 |
+
| Bat and ball | per-frame bat knob/barrel and ball centre (section 4) |
|
| 43 |
+
|
| 44 |
+
| Do NOT send | Why |
|
| 45 |
+
|---|---|
|
| 46 |
+
| video, frames, thumbnails | privacy and size; we never need pixels |
|
| 47 |
+
| names, ids, faces | the athlete is anonymous to this stage |
|
| 48 |
+
| the 133-point whole-body set, face and finger points, heatmaps | not used; just bigger files |
|
| 49 |
+
| smoothed, interpolated or guessed points | we smooth and fill short gaps ourselves; send what the model saw (section 9) |
|
| 50 |
+
| `(0, 0)` or "last known" positions for missing joints | send `null` with confidence `0` |
|
| 51 |
+
|
| 52 |
+
## 2. 2D or 3D?
|
| 53 |
+
|
| 54 |
+
**Send 2D. It is required.** **3D is recommended only if you have validated it** (updated after we checked our metrics on real lab data;
|
| 55 |
+
this replaces the earlier "3D is ignored" answer). Full explanation, with the evidence, is in `ML_PIPELINE_RESPONSE.md` section 2. In short:
|
| 56 |
+
|
| 57 |
+
* Every metric the agent judges today works from 2D geometry (checked on 100 pitchers and 98 hitters of public lab data, projected to an ideal side-view or
|
| 58 |
+
face-on camera).
|
| 59 |
+
* Four coaching-relevant quantities do **not** survive in 2D: hip-shoulder separation (r = 0.38 hitting, -0.08 pitching with the true value), the face-on
|
| 60 |
+
hitting front-knee angle (reads about 28 degrees too straight, r = 0.01), face-on hitting trunk tilt, and side-view arm slot / trunk side lean (move 8 to 20 degrees
|
| 61 |
+
with a 10 to 20 degree camera error). A **validated** monocular 3D estimate would let the agent judge them.
|
| 62 |
+
* If you send 3D, use the optional `kp3d` block: the same 17 joints, in meters, with the frame of reference declared and a confidence per joint, plus the model name
|
| 63 |
+
and how you validated it (`ML_PIPELINE_RESPONSE.md` section 8 gives a ready-made lab-truth test). Until validated, it is experimental: shown to the coach,
|
| 64 |
+
never the player's priority fix.
|
| 65 |
+
|
| 66 |
+
## 3. Which points
|
| 67 |
+
|
| 68 |
+
### 3.1 Required: COCO-17, in this exact order
|
| 69 |
+
|
| 70 |
+
"left" and "right" are the **athlete's own** left and right, not the image side (a face-on hitter's left side appears on the image's right).
|
| 71 |
+
|
| 72 |
+
| # | Name | Needed for | Accuracy matters |
|
| 73 |
+
|---|---|---|---|
|
| 74 |
+
| 0 | `nose` | head movement / head stability, body-height normalisation, which way the athlete faces | high |
|
| 75 |
+
| 1 | `left_eye` | facing direction (face-on vs side check) | medium |
|
| 76 |
+
| 2 | `right_eye` | facing direction | medium |
|
| 77 |
+
| 3 | `left_ear` | head orientation (optional use) | low |
|
| 78 |
+
| 4 | `right_ear` | head orientation (optional use) | low |
|
| 79 |
+
| 5 | `left_shoulder` | shoulder line (trunk tilt, hip-shoulder separation), arm slot origin, body height | high |
|
| 80 |
+
| 6 | `right_shoulder` | same | high |
|
| 81 |
+
| 7 | `left_elbow` | arm extension at contact (hitting contact estimate), arm slot refinement | medium |
|
| 82 |
+
| 8 | `right_elbow` | same | medium |
|
| 83 |
+
| 9 | `left_wrist` | hand path (load, swing start), pitching release (peak wrist speed), arm slot | high, but motion blur is expected |
|
| 84 |
+
| 10 | `right_wrist` | same | high, blur expected |
|
| 85 |
+
| 11 | `left_hip` | pelvis line, centre-of-mass drift, trunk tilt, knee angle, body height | high |
|
| 86 |
+
| 12 | `right_hip` | same | high |
|
| 87 |
+
| 13 | `left_knee` | knee angle / flexion (lead leg), leg lift (pitching) | high |
|
| 88 |
+
| 14 | `right_knee` | same | high |
|
| 89 |
+
| 15 | `left_ankle` | **stride length, foot lift, foot plant, stance** | **highest** |
|
| 90 |
+
| 16 | `right_ankle` | same | **highest** |
|
| 91 |
+
|
| 92 |
+
Required for the metrics to exist at all: nose, shoulders, hips, knees, ankles, wrists. Eyes and elbows are strongly wanted; ears are optional.
|
| 93 |
+
|
| 94 |
+
### 3.2 Recommended: 6 foot points (optional block `kp_extra`, order below)
|
| 95 |
+
|
| 96 |
+
`left_big_toe, left_small_toe, left_heel, right_big_toe, right_small_toe, right_heel`. They are not needed for any v1 metric, but heel and toe
|
| 97 |
+
make "foot has landed" much more reliable than an ankle point alone. Send them as `frames.kp_extra` / `frames.conf_extra` together with
|
| 98 |
+
`extra_keypoint_order`.
|
| 99 |
+
|
| 100 |
+
### 3.3 Not needed
|
| 101 |
+
|
| 102 |
+
Hands and fingers, face landmarks, hair, torso surface points, a pelvis or neck point (we derive mid-hip and mid-shoulder ourselves).
|
| 103 |
+
|
| 104 |
+
### 3.4 Conventions (please follow exactly)
|
| 105 |
+
|
| 106 |
+
* **Coordinates:** pixels in the **upright** image (rotation already applied), origin top-left, x to the right, y downward, at the video's full
|
| 107 |
+
resolution. One decimal is enough. Declare `video.width/height` (after rotation) and `rotation_degrees_applied`.
|
| 108 |
+
* **Missing point:** `null` in `kp` **and** `0` in `conf`. Never `(0,0)`, never NaN (invalid JSON), never the previous position.
|
| 109 |
+
* **Confidence:** 0 to 1, comparable across joints, and it must reflect real uncertainty (section 9). A constant confidence is a defect.
|
| 110 |
+
* **Every frame:** do not skip or down-sample frames; the array length must equal `video.frame_count`.
|
| 111 |
+
|
| 112 |
+
### 3.5 Mapping from common models (if you change models)
|
| 113 |
+
|
| 114 |
+
| Ours (COCO-17) | Apple Vision (19) | MediaPipe Pose (33) | RTMW / COCO-WholeBody (133) |
|
| 115 |
+
|---|---|---|---|
|
| 116 |
+
| nose, left/right eye, left/right ear | `nose`, `leftEye`, `rightEye`, `leftEar`, `rightEar` | 0, 2, 5, 7, 8 | 0 to 4 |
|
| 117 |
+
| shoulders, elbows, wrists | `leftShoulder`... `rightWrist` | 11/12, 13/14, 15/16 | 5 to 10 |
|
| 118 |
+
| hips, knees, ankles | `leftHip`... `rightAnkle` | 23/24, 25/26, 27/28 | 11 to 16 |
|
| 119 |
+
| foot points | not provided | heel 29/30, foot index 31/32 (no small toe: send the 4 you have as `null` for the missing ones) | 17 to 22 |
|
| 120 |
+
| (dropped) | `neck`, `root` | all others | 23 to 132 |
|
| 121 |
+
|
| 122 |
+
Apple Vision returns **normalised** coordinates with the origin at the **bottom-left**: convert with `x_px = x * width`, `y_px = (1 - y) * height`.
|
| 123 |
+
Check MediaPipe's visibility score is turned into `conf`, and that its coordinates are scaled to pixels (they are 0 to 1 by default).
|
| 124 |
+
|
| 125 |
+
## 4. Which objects
|
| 126 |
+
|
| 127 |
+
| Object | Required? | What to send |
|
| 128 |
+
|---|---|---|
|
| 129 |
+
| **The athlete (person)** | **Yes** | per frame: box `[x1, y1, x2, y2]` in pixels (or `null`), `people_count`, and ideally `track_id` |
|
| 130 |
+
| Other people | counted only | `people_count` = persons with detection score >= 0.5 and box height >= 15% of the frame height (state your rule in `model.people_rule`); used to block a recording with 2+ people |
|
| 131 |
+
| **Bat** | no (v1) | optional `objects.bat[i] = {knob:[x,y]|null, barrel:[x,y]|null, conf}` |
|
| 132 |
+
| **Ball** | no (v1) | optional `objects.ball[i] = {center:[x,y], radius_px, conf}` or `null` |
|
| 133 |
+
| Ground line, plate, rubber | no | comes from the app (a one-time tap), not from you |
|
| 134 |
+
|
| 135 |
+
Why bat and ball are not required: the v1 product is pose-only. Bat speed, exit velocity, pitch velocity and ball flight are explicit non-goals,
|
| 136 |
+
because a single phone cannot measure them credibly. Contact is therefore an **estimate** from lead-arm extension and hand position. If you
|
| 137 |
+
already detect the ball, say so: it could make the contact estimate better later.
|
| 138 |
+
|
| 139 |
+
One athlete only: if more than one person is detected, choose one athlete, keep the same `track_id` for them, and let `people_count` show the rest.
|
| 140 |
+
|
| 141 |
+
## 5. The file: full structure
|
| 142 |
+
|
| 143 |
+
One JSON file per clip (the schema also describes the same arrays if you prefer binary; keep the same names). Arrays under `frames` are
|
| 144 |
+
**columnar** (one array per field, one entry per frame, all the same length).
|
| 145 |
+
|
| 146 |
+
```json
|
| 147 |
+
{
|
| 148 |
+
"schema_version": "1.0",
|
| 149 |
+
"discipline": "hitting",
|
| 150 |
+
"view": "face_on",
|
| 151 |
+
"video": {
|
| 152 |
+
"width": 1080,
|
| 153 |
+
"height": 1920,
|
| 154 |
+
"frame_count": 120,
|
| 155 |
+
"capture_fps": 120.0,
|
| 156 |
+
"playback_fps": 30.0,
|
| 157 |
+
"rotation_degrees_applied": 90,
|
| 158 |
+
"time_source": "slowmo_rescaled"
|
| 159 |
+
},
|
| 160 |
+
"model": {
|
| 161 |
+
"name": "illustrative-example",
|
| 162 |
+
"version": "0",
|
| 163 |
+
"processing": [],
|
| 164 |
+
"people_rule": "score>=0.5 and box height>=15% of frame height",
|
| 165 |
+
"blur_definition": "1 - clip(log10(laplacian_var(person_crop_256px)/20)/log10(500/20), 0, 1)"
|
| 166 |
+
},
|
| 167 |
+
"keypoint_order": ["nose", "left_eye", "right_eye", "left_ear", "right_ear", "left_shoulder", "right_shoulder", "left_elbow", "right_elbow", "left_wrist", "right_wrist", "left_hip", "right_hip", "left_knee", "right_knee", "left_ankle", "right_ankle"],
|
| 168 |
+
"frames": {
|
| 169 |
+
"t_s": [0.0, 0.00833, 0.01667, "... one entry per frame ..."],
|
| 170 |
+
"kp": [
|
| 171 |
+
[[540, 760], [555, 745], [525, 745], [575, 755], [505, 755], [610, 880], [470, 880], [640, 1010], [440, 1010], [610, 1130], [470, 1130], [590, 1140], [490, 1140], [600, 1380], [480, 1380], [605, 1620], [475, 1620]],
|
| 172 |
+
[[545, 760], [560, 745], [530, 745], [580, 755], [510, 755], [615, 880], [475, 880], [645, 1010], [445, 1010], null, [475, 1130], [595, 1140], [495, 1140], [605, 1380], [485, 1380], [626, 1620], [480, 1620]],
|
| 173 |
+
"... one row of 17 points per frame ..."
|
| 174 |
+
],
|
| 175 |
+
"conf": [
|
| 176 |
+
[0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.86, 0.93, 0.93, 0.93, 0.93, 0.93, 0.9, 0.9],
|
| 177 |
+
[0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.93, 0.0, 0.93, 0.93, 0.93, 0.93, 0.93, 0.9, 0.9],
|
| 178 |
+
"..."
|
| 179 |
+
],
|
| 180 |
+
"box": [[380.0, 700.0, 740.0, 1700.0], "..."],
|
| 181 |
+
"track_id": [1, 1, 1, "..."],
|
| 182 |
+
"people_count": [1, 1, 1, "..."],
|
| 183 |
+
"blur": [0.05, 0.05, 0.05, "..."],
|
| 184 |
+
"brightness": [128.0, 128.0, 128.0, "..."]
|
| 185 |
+
},
|
| 186 |
+
"reps": [
|
| 187 |
+
{
|
| 188 |
+
"rep": 1,
|
| 189 |
+
"start_frame": 0,
|
| 190 |
+
"end_frame": 119,
|
| 191 |
+
"events": {
|
| 192 |
+
"stance_set": {
|
| 193 |
+
"frame": 6,
|
| 194 |
+
"t_s": 0.05,
|
| 195 |
+
"confidence": 0.8,
|
| 196 |
+
"estimated": false,
|
| 197 |
+
"method": "body speed below threshold for 100 ms"
|
| 198 |
+
},
|
| 199 |
+
"load_start": {
|
| 200 |
+
"frame": 26,
|
| 201 |
+
"t_s": 0.21667,
|
| 202 |
+
"confidence": 0.6,
|
| 203 |
+
"estimated": false,
|
| 204 |
+
"method": "hands move backward after stance"
|
| 205 |
+
},
|
| 206 |
+
"stride": {
|
| 207 |
+
"frame": 36,
|
| 208 |
+
"t_s": 0.3,
|
| 209 |
+
"confidence": 0.7,
|
| 210 |
+
"estimated": false,
|
| 211 |
+
"method": "lead ankle starts moving toward the pitcher"
|
| 212 |
+
},
|
| 213 |
+
"foot_plant": {
|
| 214 |
+
"frame": 66,
|
| 215 |
+
"t_s": 0.55,
|
| 216 |
+
"confidence": 0.75,
|
| 217 |
+
"estimated": false,
|
| 218 |
+
"method": "lead ankle velocity returns to ~0 after the stride"
|
| 219 |
+
},
|
| 220 |
+
"swing_start": {
|
| 221 |
+
"frame": 78,
|
| 222 |
+
"t_s": 0.65,
|
| 223 |
+
"confidence": 0.6,
|
| 224 |
+
"estimated": false,
|
| 225 |
+
"method": "sustained forward hand acceleration"
|
| 226 |
+
},
|
| 227 |
+
"contact": {
|
| 228 |
+
"frame": 90,
|
| 229 |
+
"t_s": 0.75,
|
| 230 |
+
"confidence": 0.5,
|
| 231 |
+
"estimated": true,
|
| 232 |
+
"method": "max lead-arm extension, hands in front"
|
| 233 |
+
},
|
| 234 |
+
"finish": {
|
| 235 |
+
"frame": 112,
|
| 236 |
+
"t_s": 0.93333,
|
| 237 |
+
"confidence": 0.6,
|
| 238 |
+
"estimated": false,
|
| 239 |
+
"method": "hands settled after follow-through"
|
| 240 |
+
}
|
| 241 |
+
},
|
| 242 |
+
"missing_events": {}
|
| 243 |
+
}
|
| 244 |
+
]
|
| 245 |
+
}
|
| 246 |
+
```
|
| 247 |
+
|
| 248 |
+
In the excerpt the two `kp`/`conf` rows shown are frame 0 and frame 41. In frame 41 the left wrist is briefly occluded, so it is `null` with
|
| 249 |
+
confidence `0`: this is how every unknown point must look.
|
| 250 |
+
|
| 251 |
+
Optional blocks (`extra_keypoint_order` + `frames.kp_extra/conf_extra`, `kp3d`, `objects`) are in `docs/pose_track.schema.json`.
|
| 252 |
+
|
| 253 |
+
### 5.1 Top level
|
| 254 |
+
|
| 255 |
+
| Field | Type | Meaning |
|
| 256 |
+
|---|---|---|
|
| 257 |
+
| `schema_version` | `"1.0"` | contract version |
|
| 258 |
+
| `discipline` | `hitting` or `pitching` | |
|
| 259 |
+
| `view` | `face_on` or `open_side` | the camera setup the user was asked for; hitting is face-on, pitching is open-side |
|
| 260 |
+
| `video` | object | section 5.2 |
|
| 261 |
+
| `model` | object | `name`, `version`, `processing` (list, empty when raw), `people_rule`, `blur_definition` |
|
| 262 |
+
| `keypoint_order` | list of 17 names | must equal the table in 3.1 |
|
| 263 |
+
| `frames` | object | section 5.3 |
|
| 264 |
+
| `reps` | list, optional | section 7 |
|
| 265 |
+
| `kp3d`, `objects` | optional | not used in v1 |
|
| 266 |
+
|
| 267 |
+
### 5.2 `video`
|
| 268 |
+
|
| 269 |
+
| Field | Meaning |
|
| 270 |
+
|---|---|
|
| 271 |
+
| `width`, `height` | upright image size in pixels (after rotation) |
|
| 272 |
+
| `frame_count` | number of frames; every per-frame array has exactly this length |
|
| 273 |
+
| `capture_fps` | **real** frames per second at capture (240 for iPhone slow motion) |
|
| 274 |
+
| `playback_fps` | frames per second in the file's own timeline (often 30 for a slow-motion export) |
|
| 275 |
+
| `rotation_degrees_applied` | 0, 90, 180 or 270 clockwise that you applied so the athlete is upright |
|
| 276 |
+
| `time_source` | `pts` (read from the file), `slowmo_rescaled` (file timeline converted to real time) or `assumed_constant` (avoid) |
|
| 277 |
+
| `sha256` | optional hash of the source video, to tie results to a file |
|
| 278 |
+
|
| 279 |
+
### 5.3 `frames` (one entry per frame)
|
| 280 |
+
|
| 281 |
+
| Array | Item | Notes |
|
| 282 |
+
|---|---|---|
|
| 283 |
+
| `t_s` | number | real capture time in seconds from the first frame, strictly increasing |
|
| 284 |
+
| `kp` | 17 x `[x, y]` or `null` | section 3 |
|
| 285 |
+
| `conf` | 17 x number 0..1 | `0` exactly when the point is `null` |
|
| 286 |
+
| `box` | `[x1,y1,x2,y2]` or `null` | the athlete's box |
|
| 287 |
+
| `track_id` | integer or `null` | stable id of the athlete; changes only on a real identity switch |
|
| 288 |
+
| `people_count` | integer | people in view (rule in `model.people_rule`) |
|
| 289 |
+
| `blur` | 0..1 | 0 sharp, 1 very blurry; define it in `model.blur_definition` and keep the direction |
|
| 290 |
+
| `brightness` | 0..255 | mean luma of the frame |
|
| 291 |
+
| `kp_extra`, `conf_extra` | 6 x ... | optional foot points |
|
| 292 |
+
|
| 293 |
+
## 6. Time: send real capture time (the slow-motion trap)
|
| 294 |
+
|
| 295 |
+
All timing metrics (foot plant to contact, load tempo, leg lift to foot plant, foot plant to release) are computed from `t_s`.
|
| 296 |
+
|
| 297 |
+
* An iPhone 240 fps slow-motion clip is often exported with a **30 fps playback timeline**. Reading presentation timestamps then gives
|
| 298 |
+
frames 33 ms apart, but the real gap was 4.2 ms: **every timing would be 8x too long**. Send `t_s` in real capture time (here 1/240 s steps)
|
| 299 |
+
and set `time_source: "slowmo_rescaled"`, `capture_fps: 240`, `playback_fps: 30`.
|
| 300 |
+
* If a file has variable frame timing, send the actual time of each frame; do not assume constant fps.
|
| 301 |
+
* The checker flags the common mistake (step matches playback fps but capture fps is much higher) as an error.
|
| 302 |
+
* Timing needs frame rate: **120 fps or more** for timing metrics, 60 to 119 downgraded, under 60 not shown. Your `capture_fps` decides this, so it must be true.
|
| 303 |
+
|
| 304 |
+
## 7. Events and reps (needed if you own that stage; see section 8)
|
| 305 |
+
|
| 306 |
+
A **rep** is one swing or one pitch. Send `start_frame` and `end_frame` (inclusive) for each, with a little padding before the first event and
|
| 307 |
+
after the finish. Reps are separated by at least 1.5 s; up to 25 per clip. Non-swing frames (walking, talking) are not reps.
|
| 308 |
+
|
| 309 |
+
Each event: `frame` (integer index into `frames`), optional `t_s` (sub-frame time), `confidence` (0..1), `estimated` (true when it is an estimate),
|
| 310 |
+
and `method` (one line). **Send only events you actually found.** Do not invent a missing one; list it in `missing_events` with a reason instead.
|
| 311 |
+
Events must be in the order below and lie inside the rep.
|
| 312 |
+
|
| 313 |
+
### Hitting (face-on): 8 events (`foot_contact` is optional)
|
| 314 |
+
|
| 315 |
+
| Event | Definition (what we need it to mean) |
|
| 316 |
+
|---|---|
|
| 317 |
+
| `stance_set` | first frame the athlete is set in the stance: body speed stays below a small threshold for about 100 ms before the load |
|
| 318 |
+
| `load_start` | first frame of the load: hands (or weight) start moving back before the stride |
|
| 319 |
+
| `stride` | first frame the lead foot leaves the ground or starts moving toward the pitcher |
|
| 320 |
+
| `foot_contact` | **first** frame the lead foot touches the ground after the stride (optional but strongly wanted) |
|
| 321 |
+
| `foot_plant` | first frame the lead foot is **fully planted** after the stride: its weight is on the ground and the ankle has stopped moving (the lab's "100% of body weight", typically about 50 ms after `foot_contact` when hitting) |
|
| 322 |
+
| `swing_start` | first frame of sustained forward hand acceleration toward the pitcher |
|
| 323 |
+
| `contact` | **estimated**: frame of maximum lead-arm extension with the hands in front of the body. Always `estimated: true` unless a ball or sensor really supports it |
|
| 324 |
+
| `finish` | first frame after contact where the hands have decelerated and the athlete has settled (follow-through) |
|
| 325 |
+
|
| 326 |
+
The lead side comes from the player profile (a right-handed hitter's lead leg is the left leg).
|
| 327 |
+
|
| 328 |
+
### Pitching (open side): 7 events (`foot_contact` is optional)
|
| 329 |
+
|
| 330 |
+
| Event | Definition |
|
| 331 |
+
|---|---|
|
| 332 |
+
| `first_move` | first frame of movement from the set position or windup start |
|
| 333 |
+
| `leg_lift` | frame of peak lead-knee height |
|
| 334 |
+
| `hand_break` | frame the hands separate |
|
| 335 |
+
| `foot_contact` | **first** frame the lead foot touches the ground (optional but strongly wanted) |
|
| 336 |
+
| `foot_plant` | first frame the lead foot is **fully planted**: its weight is on the ground and the ankle has stopped moving (the lab's "100% of body weight", typically about 19 ms after `foot_contact` when pitching) |
|
| 337 |
+
| `release` | frame of the throwing wrist's peak forward speed (ball release proxy) |
|
| 338 |
+
| `finish` | follow-through settled |
|
| 339 |
+
|
| 340 |
+
The throwing arm comes from the player profile. At release the arm moves so fast (about 7,500 degrees per second, around 31 degrees per frame
|
| 341 |
+
even at 240 fps) that the wrist and elbow are blurred: lower their confidence there instead of reporting a confident position.
|
| 342 |
+
|
| 343 |
+
## 8. Who computes what (please confirm which level you deliver)
|
| 344 |
+
|
| 345 |
+
| Level | Content | Needed from you |
|
| 346 |
+
|---|---|---|
|
| 347 |
+
| **1. Pose** | sections 3 to 6 | **always** |
|
| 348 |
+
| **2. Events and reps** | section 7 | if you already detect them, send them; otherwise we compute them from level 1 using our own definitions |
|
| 349 |
+
| **3. Measurements** | numbers only, as in `AGENT_INPUT_SPEC.md` (stride, angles, timings, each with a confidence) | only if your stage computes them; otherwise we do. **Never** faults, a priority fix or a drill: the AI coach agent decides those |
|
| 350 |
+
|
| 351 |
+
If you change definitions (an event, a metric formula, a joint convention), tell us in writing so every consumer changes together. We would
|
| 352 |
+
rather have a documented difference than a silent one.
|
| 353 |
+
|
| 354 |
+
## 9. Accuracy and quality requirements
|
| 355 |
+
|
| 356 |
+
These are **our proposed targets for discussion**. We have no validated real data yet, so none of them has been measured. They are set from
|
| 357 |
+
geometry: an error of `e` (as a percentage of the athlete's body height) in a point moves each metric by roughly this much.
|
| 358 |
+
|
| 359 |
+
| Metric (what it uses) | Rule of thumb | Proposed target |
|
| 360 |
+
|---|---|---|
|
| 361 |
+
| Stride length, % of height (ankles) | ankle error of 1% of height changes the stride by about 1 percentage point; the typical band is about 8 points wide | ankle error <= 1% of height |
|
| 362 |
+
| Head movement, % of height (nose path) | the path length **adds up jitter**: noisy points inflate head movement; band is 0 to about 5% | nose jitter <= 0.7% of height |
|
| 363 |
+
| Knee angle (hip, knee, ankle) | angle error is about error / segment length; a thigh or shin is about 0.25 of height, so 1% of height is about 2.3 degrees | each joint <= 1.5% of height (about +-5 degrees) |
|
| 364 |
+
| Trunk tilt, separation (shoulders, hips) | shoulder line is about 0.2 of height, so 1% of height is about 3 degrees | shoulders and hips <= 1% of height |
|
| 365 |
+
| Timing (events) | one frame is 4.2 ms at 240 fps, 8.3 ms at 120, 33 ms at 30; the typical timing band is about +-25 ms | foot plant and release within +-2 frames of a hand label for >= 90% of events; `contact` is estimated, report its error |
|
| 366 |
+
|
| 367 |
+
Quality rules:
|
| 368 |
+
|
| 369 |
+
1. **Raw points.** Send what the model produced. We apply a One-Euro smoother and fill gaps of up to 3 frames. If you already smooth or
|
| 370 |
+
interpolate, list it in `model.processing` so we do not do it twice (the checker warns).
|
| 371 |
+
2. **Honest confidence.** Of points with `conf >= 0.5`, at least 90% should be within about 3% of body height of a hand label. Confidence must drop
|
| 372 |
+
under motion blur and occlusion. A confidence that is always 0.9 tells us nothing, and the checker flags it.
|
| 373 |
+
3. **Missing means missing.** `null` and `0`. Never invent a position for an occluded joint. Briefly occluded points are fine; the downstream
|
| 374 |
+
code interpolates up to 3 frames and treats longer gaps as unknown.
|
| 375 |
+
4. **No frozen frames.** Repeated identical detections (for example a detector that only runs every few frames and copies the result) must be
|
| 376 |
+
re-estimated, not copied. The checker warns when more than 20% of frames repeat exactly.
|
| 377 |
+
5. **Coverage.** Each required joint should be confident (`conf >= 0.3`) in at least 60% of frames of a clean clip.
|
| 378 |
+
6. **One consistent athlete.** The same person in every frame; report switches through `track_id`.
|
| 379 |
+
7. **Blur and brightness are measured on the real frame**, and keep their direction (blur 1 is worst).
|
| 380 |
+
|
| 381 |
+
## 10. Capture assumptions we make
|
| 382 |
+
|
| 383 |
+
These come from the product spec (the client's document, which we treat as scope only, not technical truth). Tell us if your model cannot
|
| 384 |
+
meet them.
|
| 385 |
+
|
| 386 |
+
* **Hitting:** camera face-on to the hitter's chest, about 4 to 5 m away, lens at hip height, 1080p, **240 fps**, athlete at least one third of the frame height, whole body in view (feet included).
|
| 387 |
+
* **Pitching:** camera on the open (chest) side, about 5 to 6 m away, hip height, 240 fps, rubber to landing foot and the full arm path in view.
|
| 388 |
+
* One athlete in view. Good light. Phone on a stand.
|
| 389 |
+
* A clip may contain several reps (up to 25).
|
| 390 |
+
|
| 391 |
+
Known hard cases (from our own tests): clips at 30 fps, a low camera that cuts off the feet, long clothing, netting or fences in front of the athlete,
|
| 392 |
+
and motion blur on the arm at release.
|
| 393 |
+
|
| 394 |
+
## 11. Check your file before sending it
|
| 395 |
+
|
| 396 |
+
```bash
|
| 397 |
+
cd AI-coach-agent && source .venv/bin/activate
|
| 398 |
+
python tools/check_pose_json.py path/to/pose_track.json # errors = unusable, warnings = weaker results
|
| 399 |
+
python tools/check_pose_json.py path/to/pose_track.json --strict # warnings also fail
|
| 400 |
+
```
|
| 401 |
+
|
| 402 |
+
The checker validates `docs/pose_track.schema.json` and the rules a schema cannot express: equal array lengths, `t_s` strictly increasing and in
|
| 403 |
+
**capture** time, `null` points with confidence 0, points inside the image, no `(0,0)` placeholders, no frozen frames, a non-constant confidence,
|
| 404 |
+
per-joint coverage, athlete size, people count, track switches, and event order and range. `docs/examples/pose_track_example.json` is a valid
|
| 405 |
+
(synthetic, illustrative) file to compare against. Your file should produce **0 errors**.
|
| 406 |
+
|
| 407 |
+
## 12. Questions we need answered
|
| 408 |
+
|
| 409 |
+
1. Which keypoint model(s) do you use now, and which of the 17 (plus foot points) does it really provide?
|
| 410 |
+
2. Do you produce 3D? If yes: which model, and has it been validated against anything (marker data, a second camera)?
|
| 411 |
+
3. Which level (section 8) will you deliver: 1 only, 1+2, or 1+2+3? For pitching too?
|
| 412 |
+
4. What frame rate and resolution do your test clips have, and how do you obtain **capture** time for slow-motion files?
|
| 413 |
+
5. Are the points raw, or smoothed or interpolated (and how)?
|
| 414 |
+
6. How do you pick the athlete and keep identity? Is `people_count` available?
|
| 415 |
+
7. How is confidence computed, and has it been checked against hand labels?
|
| 416 |
+
8. Where do your event definitions differ from section 7?
|
| 417 |
+
9. Do you detect the bat or ball? If yes, how reliable is it (even roughly)?
|
| 418 |
+
|
| 419 |
+
## 13. Changing this contract
|
| 420 |
+
|
| 421 |
+
`schema_version` is `1.0`. Adding an optional field is safe. Renaming, removing or re-defining a field, or changing a unit or an event
|
| 422 |
+
definition, needs a version bump and a note to everyone who consumes the file. `tests/test_pose_spec.py` fails if the schema or the example
|
| 423 |
+
drift from `tools/build_pose_spec.py` (regenerate with `python tools/build_pose_spec.py`).
|
AI-coach-agent/docs/coach_input.schema.json
ADDED
|
@@ -0,0 +1,476 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$defs": {
|
| 3 |
+
"ArmCareInput": {
|
| 4 |
+
"additionalProperties": false,
|
| 5 |
+
"properties": {
|
| 6 |
+
"alerts": {
|
| 7 |
+
"items": {
|
| 8 |
+
"type": "string"
|
| 9 |
+
},
|
| 10 |
+
"title": "Alerts",
|
| 11 |
+
"type": "array"
|
| 12 |
+
},
|
| 13 |
+
"daily_max": {
|
| 14 |
+
"anyOf": [
|
| 15 |
+
{
|
| 16 |
+
"type": "integer"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"type": "null"
|
| 20 |
+
}
|
| 21 |
+
],
|
| 22 |
+
"default": null,
|
| 23 |
+
"title": "Daily Max"
|
| 24 |
+
},
|
| 25 |
+
"mechanics_drift": {
|
| 26 |
+
"anyOf": [
|
| 27 |
+
{
|
| 28 |
+
"type": "string"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"type": "null"
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"default": null,
|
| 35 |
+
"title": "Mechanics Drift"
|
| 36 |
+
},
|
| 37 |
+
"next_eligible_date": {
|
| 38 |
+
"anyOf": [
|
| 39 |
+
{
|
| 40 |
+
"type": "string"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"type": "null"
|
| 44 |
+
}
|
| 45 |
+
],
|
| 46 |
+
"default": null,
|
| 47 |
+
"title": "Next Eligible Date"
|
| 48 |
+
},
|
| 49 |
+
"pitch_count_today": {
|
| 50 |
+
"anyOf": [
|
| 51 |
+
{
|
| 52 |
+
"type": "integer"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"type": "null"
|
| 56 |
+
}
|
| 57 |
+
],
|
| 58 |
+
"default": null,
|
| 59 |
+
"title": "Pitch Count Today"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"title": "ArmCareInput",
|
| 63 |
+
"type": "object"
|
| 64 |
+
},
|
| 65 |
+
"CaptureInput": {
|
| 66 |
+
"additionalProperties": false,
|
| 67 |
+
"properties": {
|
| 68 |
+
"ok": {
|
| 69 |
+
"title": "Ok",
|
| 70 |
+
"type": "boolean"
|
| 71 |
+
},
|
| 72 |
+
"reasons": {
|
| 73 |
+
"items": {
|
| 74 |
+
"type": "string"
|
| 75 |
+
},
|
| 76 |
+
"title": "Reasons",
|
| 77 |
+
"type": "array"
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"required": [
|
| 81 |
+
"ok"
|
| 82 |
+
],
|
| 83 |
+
"title": "CaptureInput",
|
| 84 |
+
"type": "object"
|
| 85 |
+
},
|
| 86 |
+
"DrillInput": {
|
| 87 |
+
"additionalProperties": false,
|
| 88 |
+
"properties": {
|
| 89 |
+
"cue": {
|
| 90 |
+
"title": "Cue",
|
| 91 |
+
"type": "string"
|
| 92 |
+
},
|
| 93 |
+
"name": {
|
| 94 |
+
"title": "Name",
|
| 95 |
+
"type": "string"
|
| 96 |
+
},
|
| 97 |
+
"rep_scheme": {
|
| 98 |
+
"title": "Rep Scheme",
|
| 99 |
+
"type": "string"
|
| 100 |
+
}
|
| 101 |
+
},
|
| 102 |
+
"required": [
|
| 103 |
+
"name",
|
| 104 |
+
"rep_scheme",
|
| 105 |
+
"cue"
|
| 106 |
+
],
|
| 107 |
+
"title": "DrillInput",
|
| 108 |
+
"type": "object"
|
| 109 |
+
},
|
| 110 |
+
"MetricInput": {
|
| 111 |
+
"additionalProperties": false,
|
| 112 |
+
"properties": {
|
| 113 |
+
"band": {
|
| 114 |
+
"anyOf": [
|
| 115 |
+
{
|
| 116 |
+
"maxItems": 2,
|
| 117 |
+
"minItems": 2,
|
| 118 |
+
"prefixItems": [
|
| 119 |
+
{
|
| 120 |
+
"type": "number"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"type": "number"
|
| 124 |
+
}
|
| 125 |
+
],
|
| 126 |
+
"type": "array"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "null"
|
| 130 |
+
}
|
| 131 |
+
],
|
| 132 |
+
"default": null,
|
| 133 |
+
"description": "Typical range for the level (agent's own data)",
|
| 134 |
+
"title": "Band"
|
| 135 |
+
},
|
| 136 |
+
"confidence": {
|
| 137 |
+
"description": "Lowest confidence seen across reps",
|
| 138 |
+
"enum": [
|
| 139 |
+
"high",
|
| 140 |
+
"medium",
|
| 141 |
+
"est"
|
| 142 |
+
],
|
| 143 |
+
"title": "Confidence",
|
| 144 |
+
"type": "string"
|
| 145 |
+
},
|
| 146 |
+
"key": {
|
| 147 |
+
"description": "Metric id, e.g. stride_pct_height",
|
| 148 |
+
"title": "Key",
|
| 149 |
+
"type": "string"
|
| 150 |
+
},
|
| 151 |
+
"label": {
|
| 152 |
+
"description": "Plain-language name",
|
| 153 |
+
"title": "Label",
|
| 154 |
+
"type": "string"
|
| 155 |
+
},
|
| 156 |
+
"n_reps": {
|
| 157 |
+
"description": "Reps that produced a value",
|
| 158 |
+
"minimum": 0,
|
| 159 |
+
"title": "N Reps",
|
| 160 |
+
"type": "integer"
|
| 161 |
+
},
|
| 162 |
+
"note": {
|
| 163 |
+
"anyOf": [
|
| 164 |
+
{
|
| 165 |
+
"type": "string"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"type": "null"
|
| 169 |
+
}
|
| 170 |
+
],
|
| 171 |
+
"default": null,
|
| 172 |
+
"description": "Why the value is null or limited",
|
| 173 |
+
"title": "Note"
|
| 174 |
+
},
|
| 175 |
+
"per_rep": {
|
| 176 |
+
"description": "Value of each rep that measured it",
|
| 177 |
+
"items": {
|
| 178 |
+
"type": "number"
|
| 179 |
+
},
|
| 180 |
+
"title": "Per Rep",
|
| 181 |
+
"type": "array"
|
| 182 |
+
},
|
| 183 |
+
"range_confidence": {
|
| 184 |
+
"anyOf": [
|
| 185 |
+
{
|
| 186 |
+
"enum": [
|
| 187 |
+
"high",
|
| 188 |
+
"medium",
|
| 189 |
+
"low"
|
| 190 |
+
],
|
| 191 |
+
"type": "string"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "null"
|
| 195 |
+
}
|
| 196 |
+
],
|
| 197 |
+
"default": null,
|
| 198 |
+
"description": "How well established the range is",
|
| 199 |
+
"title": "Range Confidence"
|
| 200 |
+
},
|
| 201 |
+
"range_status": {
|
| 202 |
+
"anyOf": [
|
| 203 |
+
{
|
| 204 |
+
"enum": [
|
| 205 |
+
"calibrated",
|
| 206 |
+
"confirmed",
|
| 207 |
+
"adjusted",
|
| 208 |
+
"unverified"
|
| 209 |
+
],
|
| 210 |
+
"type": "string"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "null"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"default": null,
|
| 217 |
+
"description": "How the range was established",
|
| 218 |
+
"title": "Range Status"
|
| 219 |
+
},
|
| 220 |
+
"unit": {
|
| 221 |
+
"title": "Unit",
|
| 222 |
+
"type": "string"
|
| 223 |
+
},
|
| 224 |
+
"value": {
|
| 225 |
+
"anyOf": [
|
| 226 |
+
{
|
| 227 |
+
"type": "number"
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "null"
|
| 231 |
+
}
|
| 232 |
+
],
|
| 233 |
+
"default": null,
|
| 234 |
+
"description": "Median over the reps that measured it; null if not measured",
|
| 235 |
+
"title": "Value"
|
| 236 |
+
},
|
| 237 |
+
"zone": {
|
| 238 |
+
"description": "reference_only = a range exists but cannot be compared from this camera view",
|
| 239 |
+
"enum": [
|
| 240 |
+
"in_range",
|
| 241 |
+
"outside_typical_range",
|
| 242 |
+
"reference_only",
|
| 243 |
+
"unknown"
|
| 244 |
+
],
|
| 245 |
+
"title": "Zone",
|
| 246 |
+
"type": "string"
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
"required": [
|
| 250 |
+
"key",
|
| 251 |
+
"label",
|
| 252 |
+
"unit",
|
| 253 |
+
"confidence",
|
| 254 |
+
"zone",
|
| 255 |
+
"n_reps"
|
| 256 |
+
],
|
| 257 |
+
"title": "MetricInput",
|
| 258 |
+
"type": "object"
|
| 259 |
+
},
|
| 260 |
+
"ProblemInput": {
|
| 261 |
+
"additionalProperties": false,
|
| 262 |
+
"description": "A problem the measurements support (found by software from repeated evidence). The agent decides which matters.",
|
| 263 |
+
"properties": {
|
| 264 |
+
"baseline_rank": {
|
| 265 |
+
"description": "Software's suggested priority, 1 = first; the agent decides the order",
|
| 266 |
+
"minimum": 1,
|
| 267 |
+
"title": "Baseline Rank",
|
| 268 |
+
"type": "integer"
|
| 269 |
+
},
|
| 270 |
+
"cue": {
|
| 271 |
+
"description": "Coaching cue for fixing it",
|
| 272 |
+
"title": "Cue",
|
| 273 |
+
"type": "string"
|
| 274 |
+
},
|
| 275 |
+
"drills": {
|
| 276 |
+
"description": "The only drills the agent may recommend for this problem",
|
| 277 |
+
"items": {
|
| 278 |
+
"$ref": "#/$defs/DrillInput"
|
| 279 |
+
},
|
| 280 |
+
"title": "Drills",
|
| 281 |
+
"type": "array"
|
| 282 |
+
},
|
| 283 |
+
"evidence": {
|
| 284 |
+
"description": "Metric keys whose measurements show it",
|
| 285 |
+
"items": {
|
| 286 |
+
"type": "string"
|
| 287 |
+
},
|
| 288 |
+
"title": "Evidence",
|
| 289 |
+
"type": "array"
|
| 290 |
+
},
|
| 291 |
+
"frequency": {
|
| 292 |
+
"description": "Share of reps that show it",
|
| 293 |
+
"maximum": 1,
|
| 294 |
+
"minimum": 0,
|
| 295 |
+
"title": "Frequency",
|
| 296 |
+
"type": "number"
|
| 297 |
+
},
|
| 298 |
+
"key": {
|
| 299 |
+
"title": "Key",
|
| 300 |
+
"type": "string"
|
| 301 |
+
},
|
| 302 |
+
"label": {
|
| 303 |
+
"title": "Label",
|
| 304 |
+
"type": "string"
|
| 305 |
+
},
|
| 306 |
+
"median_excess": {
|
| 307 |
+
"description": "Typical miss in band widths (spread widths for consistency problems)",
|
| 308 |
+
"title": "Median Excess",
|
| 309 |
+
"type": "number"
|
| 310 |
+
},
|
| 311 |
+
"range_confidence": {
|
| 312 |
+
"default": "high",
|
| 313 |
+
"description": "low = the range behind this is rough: say so",
|
| 314 |
+
"enum": [
|
| 315 |
+
"high",
|
| 316 |
+
"medium",
|
| 317 |
+
"low"
|
| 318 |
+
],
|
| 319 |
+
"title": "Range Confidence",
|
| 320 |
+
"type": "string"
|
| 321 |
+
},
|
| 322 |
+
"reps_evaluated": {
|
| 323 |
+
"minimum": 0,
|
| 324 |
+
"title": "Reps Evaluated",
|
| 325 |
+
"type": "integer"
|
| 326 |
+
},
|
| 327 |
+
"reps_showing": {
|
| 328 |
+
"minimum": 0,
|
| 329 |
+
"title": "Reps Showing",
|
| 330 |
+
"type": "integer"
|
| 331 |
+
},
|
| 332 |
+
"severity": {
|
| 333 |
+
"enum": [
|
| 334 |
+
"minor",
|
| 335 |
+
"major"
|
| 336 |
+
],
|
| 337 |
+
"title": "Severity",
|
| 338 |
+
"type": "string"
|
| 339 |
+
},
|
| 340 |
+
"what": {
|
| 341 |
+
"description": "One-sentence plain description",
|
| 342 |
+
"title": "What",
|
| 343 |
+
"type": "string"
|
| 344 |
+
},
|
| 345 |
+
"why": {
|
| 346 |
+
"description": "Why it matters",
|
| 347 |
+
"title": "Why",
|
| 348 |
+
"type": "string"
|
| 349 |
+
}
|
| 350 |
+
},
|
| 351 |
+
"required": [
|
| 352 |
+
"key",
|
| 353 |
+
"label",
|
| 354 |
+
"what",
|
| 355 |
+
"why",
|
| 356 |
+
"cue",
|
| 357 |
+
"severity",
|
| 358 |
+
"frequency",
|
| 359 |
+
"reps_showing",
|
| 360 |
+
"reps_evaluated",
|
| 361 |
+
"median_excess",
|
| 362 |
+
"evidence",
|
| 363 |
+
"baseline_rank",
|
| 364 |
+
"drills"
|
| 365 |
+
],
|
| 366 |
+
"title": "ProblemInput",
|
| 367 |
+
"type": "object"
|
| 368 |
+
}
|
| 369 |
+
},
|
| 370 |
+
"additionalProperties": false,
|
| 371 |
+
"description": "Everything the coach may talk about. Anything absent here must not appear in the note.",
|
| 372 |
+
"properties": {
|
| 373 |
+
"arm_care": {
|
| 374 |
+
"anyOf": [
|
| 375 |
+
{
|
| 376 |
+
"$ref": "#/$defs/ArmCareInput"
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "null"
|
| 380 |
+
}
|
| 381 |
+
],
|
| 382 |
+
"default": null
|
| 383 |
+
},
|
| 384 |
+
"capture": {
|
| 385 |
+
"$ref": "#/$defs/CaptureInput"
|
| 386 |
+
},
|
| 387 |
+
"discipline": {
|
| 388 |
+
"enum": [
|
| 389 |
+
"hitting",
|
| 390 |
+
"pitching"
|
| 391 |
+
],
|
| 392 |
+
"title": "Discipline",
|
| 393 |
+
"type": "string"
|
| 394 |
+
},
|
| 395 |
+
"fps": {
|
| 396 |
+
"anyOf": [
|
| 397 |
+
{
|
| 398 |
+
"type": "number"
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "null"
|
| 402 |
+
}
|
| 403 |
+
],
|
| 404 |
+
"default": null,
|
| 405 |
+
"title": "Fps"
|
| 406 |
+
},
|
| 407 |
+
"fps_class": {
|
| 408 |
+
"default": "unknown",
|
| 409 |
+
"enum": [
|
| 410 |
+
"high_speed",
|
| 411 |
+
"ok",
|
| 412 |
+
"low",
|
| 413 |
+
"unknown"
|
| 414 |
+
],
|
| 415 |
+
"title": "Fps Class",
|
| 416 |
+
"type": "string"
|
| 417 |
+
},
|
| 418 |
+
"level": {
|
| 419 |
+
"anyOf": [
|
| 420 |
+
{
|
| 421 |
+
"type": "string"
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "null"
|
| 425 |
+
}
|
| 426 |
+
],
|
| 427 |
+
"default": null,
|
| 428 |
+
"description": "hs_jv | hs_varsity | college",
|
| 429 |
+
"title": "Level"
|
| 430 |
+
},
|
| 431 |
+
"level_assumed": {
|
| 432 |
+
"default": false,
|
| 433 |
+
"description": "The level was missing, so hs_varsity ranges were used",
|
| 434 |
+
"title": "Level Assumed",
|
| 435 |
+
"type": "boolean"
|
| 436 |
+
},
|
| 437 |
+
"metrics": {
|
| 438 |
+
"items": {
|
| 439 |
+
"$ref": "#/$defs/MetricInput"
|
| 440 |
+
},
|
| 441 |
+
"title": "Metrics",
|
| 442 |
+
"type": "array"
|
| 443 |
+
},
|
| 444 |
+
"problems": {
|
| 445 |
+
"description": "Supported problems, baseline order",
|
| 446 |
+
"items": {
|
| 447 |
+
"$ref": "#/$defs/ProblemInput"
|
| 448 |
+
},
|
| 449 |
+
"title": "Problems",
|
| 450 |
+
"type": "array"
|
| 451 |
+
},
|
| 452 |
+
"ranges_provisional": {
|
| 453 |
+
"default": true,
|
| 454 |
+
"description": "Some ranges used here are not coach-verified",
|
| 455 |
+
"title": "Ranges Provisional",
|
| 456 |
+
"type": "boolean"
|
| 457 |
+
},
|
| 458 |
+
"reps_analyzed": {
|
| 459 |
+
"minimum": 0,
|
| 460 |
+
"title": "Reps Analyzed",
|
| 461 |
+
"type": "integer"
|
| 462 |
+
},
|
| 463 |
+
"schema_version": {
|
| 464 |
+
"default": "2.0",
|
| 465 |
+
"title": "Schema Version",
|
| 466 |
+
"type": "string"
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
"required": [
|
| 470 |
+
"discipline",
|
| 471 |
+
"reps_analyzed",
|
| 472 |
+
"capture"
|
| 473 |
+
],
|
| 474 |
+
"title": "CoachInput",
|
| 475 |
+
"type": "object"
|
| 476 |
+
}
|
AI-coach-agent/docs/coach_note.schema.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$defs": {
|
| 3 |
+
"DrillNote": {
|
| 4 |
+
"properties": {
|
| 5 |
+
"how": {
|
| 6 |
+
"description": "One short sentence on how to do it, using the drill's rep scheme",
|
| 7 |
+
"title": "How",
|
| 8 |
+
"type": "string"
|
| 9 |
+
},
|
| 10 |
+
"name": {
|
| 11 |
+
"description": "Exact name of one drill offered for the priority fix",
|
| 12 |
+
"title": "Name",
|
| 13 |
+
"type": "string"
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"required": [
|
| 17 |
+
"name",
|
| 18 |
+
"how"
|
| 19 |
+
],
|
| 20 |
+
"title": "DrillNote",
|
| 21 |
+
"type": "object"
|
| 22 |
+
},
|
| 23 |
+
"SolidItem": {
|
| 24 |
+
"properties": {
|
| 25 |
+
"metric_key": {
|
| 26 |
+
"description": "Key of an in-range metric from the input with High or Medium confidence",
|
| 27 |
+
"title": "Metric Key",
|
| 28 |
+
"type": "string"
|
| 29 |
+
},
|
| 30 |
+
"text": {
|
| 31 |
+
"description": "One short friendly sentence on what looks solid. Max 25 words.",
|
| 32 |
+
"title": "Text",
|
| 33 |
+
"type": "string"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"required": [
|
| 37 |
+
"metric_key",
|
| 38 |
+
"text"
|
| 39 |
+
],
|
| 40 |
+
"title": "SolidItem",
|
| 41 |
+
"type": "object"
|
| 42 |
+
},
|
| 43 |
+
"WorkOnItem": {
|
| 44 |
+
"properties": {
|
| 45 |
+
"evidence": {
|
| 46 |
+
"description": "Metric keys from that problem's evidence list that show it",
|
| 47 |
+
"items": {
|
| 48 |
+
"type": "string"
|
| 49 |
+
},
|
| 50 |
+
"title": "Evidence",
|
| 51 |
+
"type": "array"
|
| 52 |
+
},
|
| 53 |
+
"fault_key": {
|
| 54 |
+
"description": "Key of one of the input's problems. Your priority fix comes first.",
|
| 55 |
+
"title": "Fault Key",
|
| 56 |
+
"type": "string"
|
| 57 |
+
},
|
| 58 |
+
"text": {
|
| 59 |
+
"description": "One or two short sentences: what to work on and why. Max 40 words.",
|
| 60 |
+
"title": "Text",
|
| 61 |
+
"type": "string"
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"required": [
|
| 65 |
+
"fault_key",
|
| 66 |
+
"evidence",
|
| 67 |
+
"text"
|
| 68 |
+
],
|
| 69 |
+
"title": "WorkOnItem",
|
| 70 |
+
"type": "object"
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"description": "The coaching note shown to the player. Use only facts present in the input.",
|
| 74 |
+
"properties": {
|
| 75 |
+
"caveats": {
|
| 76 |
+
"description": "0 to 3 short honesty notes about data quality",
|
| 77 |
+
"items": {
|
| 78 |
+
"type": "string"
|
| 79 |
+
},
|
| 80 |
+
"title": "Caveats",
|
| 81 |
+
"type": "array"
|
| 82 |
+
},
|
| 83 |
+
"cue": {
|
| 84 |
+
"anyOf": [
|
| 85 |
+
{
|
| 86 |
+
"type": "string"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"type": "null"
|
| 90 |
+
}
|
| 91 |
+
],
|
| 92 |
+
"default": null,
|
| 93 |
+
"description": "The priority fix's cue in one short phrase; null if no problems",
|
| 94 |
+
"title": "Cue"
|
| 95 |
+
},
|
| 96 |
+
"drill": {
|
| 97 |
+
"anyOf": [
|
| 98 |
+
{
|
| 99 |
+
"$ref": "#/$defs/DrillNote"
|
| 100 |
+
},
|
| 101 |
+
{
|
| 102 |
+
"type": "null"
|
| 103 |
+
}
|
| 104 |
+
],
|
| 105 |
+
"default": null,
|
| 106 |
+
"description": "One drill for the priority fix; null if no problems"
|
| 107 |
+
},
|
| 108 |
+
"headline": {
|
| 109 |
+
"description": "One encouraging sentence summarising the session. Max 18 words.",
|
| 110 |
+
"title": "Headline",
|
| 111 |
+
"type": "string"
|
| 112 |
+
},
|
| 113 |
+
"looks_solid": {
|
| 114 |
+
"description": "0 to 3 items",
|
| 115 |
+
"items": {
|
| 116 |
+
"$ref": "#/$defs/SolidItem"
|
| 117 |
+
},
|
| 118 |
+
"title": "Looks Solid",
|
| 119 |
+
"type": "array"
|
| 120 |
+
},
|
| 121 |
+
"work_on": {
|
| 122 |
+
"description": "0 to 2 items, priority fix first",
|
| 123 |
+
"items": {
|
| 124 |
+
"$ref": "#/$defs/WorkOnItem"
|
| 125 |
+
},
|
| 126 |
+
"title": "Work On",
|
| 127 |
+
"type": "array"
|
| 128 |
+
}
|
| 129 |
+
},
|
| 130 |
+
"required": [
|
| 131 |
+
"headline"
|
| 132 |
+
],
|
| 133 |
+
"title": "CoachNote",
|
| 134 |
+
"type": "object"
|
| 135 |
+
}
|
AI-coach-agent/docs/examples/pose_track_example.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema_version":"1.0","discipline":"hitting","view":"face_on","video":{"width":1080,"height":1920,"frame_count":120,"capture_fps":120.0,"playback_fps":30.0,"rotation_degrees_applied":90,"time_source":"slowmo_rescaled"},"model":{"name":"illustrative-example","version":"0","processing":[],"people_rule":"score>=0.5 and box height>=15% of frame height","blur_definition":"1 - clip(log10(laplacian_var(person_crop_256px)/20)/log10(500/20), 0, 1)"},"keypoint_order":["nose","left_eye","right_eye","left_ear","right_ear","left_shoulder","right_shoulder","left_elbow","right_elbow","left_wrist","right_wrist","left_hip","right_hip","left_knee","right_knee","left_ankle","right_ankle"],"frames":{"t_s":[0.0,0.00833,0.01667,0.025,0.03333,0.04167,0.05,0.05833,0.06667,0.075,0.08333,0.09167,0.1,0.10833,0.11667,0.125,0.13333,0.14167,0.15,0.15833,0.16667,0.175,0.18333,0.19167,0.2,0.20833,0.21667,0.225,0.23333,0.24167,0.25,0.25833,0.26667,0.275,0.28333,0.29167,0.3,0.30833,0.31667,0.325,0.33333,0.34167,0.35,0.35833,0.36667,0.375,0.38333,0.39167,0.4,0.40833,0.41667,0.425,0.43333,0.44167,0.45,0.45833,0.46667,0.475,0.48333,0.49167,0.5,0.50833,0.51667,0.525,0.53333,0.54167,0.55,0.55833,0.56667,0.575,0.58333,0.59167,0.6,0.60833,0.61667,0.625,0.63333,0.64167,0.65,0.65833,0.66667,0.675,0.68333,0.69167,0.7,0.70833,0.71667,0.725,0.73333,0.74167,0.75,0.75833,0.76667,0.775,0.78333,0.79167,0.8,0.80833,0.81667,0.825,0.83333,0.84167,0.85,0.85833,0.86667,0.875,0.88333,0.89167,0.9,0.90833,0.91667,0.925,0.93333,0.94167,0.95,0.95833,0.96667,0.975,0.98333,0.99167],"kp":[[[540.0,760],[555.0,745],[525.0,745],[575.0,755],[505.0,755],[610.0,880],[470.0,880],[640.0,1010],[440.0,1010],[610.0,1130],[470.0,1130],[590.0,1140],[490.0,1140],[600.0,1380],[480.0,1380],[605.0,1620],[475.0,1620]],[[540.3,760],[555.3,745],[525.3,745],[575.3,755],[505.3,755],[610.3,880],[470.3,880],[640.3,1010],[440.3,1010],[610.3,1130],[470.3,1130],[590.3,1140],[490.3,1140],[600.3,1380],[480.3,1380],[605.3,1620],[475.3,1620]],[[540.6,760],[555.6,745],[525.6,745],[575.6,755],[505.6,755],[610.6,880],[470.6,880],[640.6,1010],[440.6,1010],[610.6,1130],[470.6,1130],[590.6,1140],[490.6,1140],[600.6,1380],[480.6,1380],[605.6,1620],[475.6,1620]],[[540.9,760],[555.9,745],[525.9,745],[575.9,755],[505.9,755],[610.9,880],[470.9,880],[640.9,1010],[440.9,1010],[610.9,1130],[470.9,1130],[590.9,1140],[490.9,1140],[600.9,1380],[480.9,1380],[605.9,1620],[475.9,1620]],[[541.3,760],[556.3,745],[526.3,745],[576.3,755],[506.3,755],[611.3,880],[471.3,880],[641.3,1010],[441.3,1010],[611.3,1130],[471.3,1130],[591.3,1140],[491.3,1140],[601.3,1380],[481.3,1380],[606.3,1620],[476.3,1620]],[[541.6,760],[556.6,745],[526.6,745],[576.6,755],[506.6,755],[611.6,880],[471.6,880],[641.6,1010],[441.6,1010],[611.6,1130],[471.6,1130],[591.6,1140],[491.6,1140],[601.6,1380],[481.6,1380],[606.6,1620],[476.6,1620]],[[541.9,760],[556.9,745],[526.9,745],[576.9,755],[506.9,755],[611.9,880],[471.9,880],[641.9,1010],[441.9,1010],[611.9,1130],[471.9,1130],[591.9,1140],[491.9,1140],[601.9,1380],[481.9,1380],[606.9,1620],[476.9,1620]],[[542.2,760],[557.2,745],[527.2,745],[577.2,755],[507.2,755],[612.2,880],[472.2,880],[642.2,1010],[442.2,1010],[612.2,1130],[472.2,1130],[592.2,1140],[492.2,1140],[602.2,1380],[482.2,1380],[607.2,1620],[477.2,1620]],[[542.5,760],[557.5,745],[527.5,745],[577.5,755],[507.5,755],[612.5,880],[472.5,880],[642.5,1010],[442.5,1010],[612.5,1130],[472.5,1130],[592.5,1140],[492.5,1140],[602.5,1380],[482.5,1380],[607.5,1620],[477.5,1620]],[[542.7,760],[557.7,745],[527.7,745],[577.7,755],[507.7,755],[612.7,880],[472.7,880],[642.7,1010],[442.7,1010],[612.7,1130],[472.7,1130],[592.7,1140],[492.7,1140],[602.7,1380],[482.7,1380],[607.7,1620],[477.7,1620]],[[543.0,760],[558.0,745],[528.0,745],[578.0,755],[508.0,755],[613.0,880],[473.0,880],[643.0,1010],[443.0,1010],[613.0,1130],[473.0,1130],[593.0,1140],[493.0,1140],[603.0,1380],[483.0,1380],[608.0,1620],[478.0,1620]],[[543.3,760],[558.3,745],[528.3,745],[578.3,755],[508.3,755],[613.3,880],[473.3,880],[643.3,1010],[443.3,1010],[613.3,1130],[473.3,1130],[593.3,1140],[493.3,1140],[603.3,1380],[483.3,1380],[608.3,1620],[478.3,1620]],[[543.6,760],[558.6,745],[528.6,745],[578.6,755],[508.6,755],[613.6,880],[473.6,880],[643.6,1010],[443.6,1010],[613.6,1130],[473.6,1130],[593.6,1140],[493.6,1140],[603.6,1380],[483.6,1380],[608.6,1620],[478.6,1620]],[[543.8,760],[558.8,745],[528.8,745],[578.8,755],[508.8,755],[613.8,880],[473.8,880],[643.8,1010],[443.8,1010],[613.8,1130],[473.8,1130],[593.8,1140],[493.8,1140],[603.8,1380],[483.8,1380],[608.8,1620],[478.8,1620]],[[544.0,760],[559.0,745],[529.0,745],[579.0,755],[509.0,755],[614.0,880],[474.0,880],[644.0,1010],[444.0,1010],[614.0,1130],[474.0,1130],[594.0,1140],[494.0,1140],[604.0,1380],[484.0,1380],[609.0,1620],[479.0,1620]],[[544.3,760],[559.3,745],[529.3,745],[579.3,755],[509.3,755],[614.3,880],[474.3,880],[644.3,1010],[444.3,1010],[614.3,1130],[474.3,1130],[594.3,1140],[494.3,1140],[604.3,1380],[484.3,1380],[609.3,1620],[479.3,1620]],[[544.5,760],[559.5,745],[529.5,745],[579.5,755],[509.5,755],[614.5,880],[474.5,880],[644.5,1010],[444.5,1010],[614.5,1130],[474.5,1130],[594.5,1140],[494.5,1140],[604.5,1380],[484.5,1380],[609.5,1620],[479.5,1620]],[[544.7,760],[559.7,745],[529.7,745],[579.7,755],[509.7,755],[614.7,880],[474.7,880],[644.7,1010],[444.7,1010],[614.7,1130],[474.7,1130],[594.7,1140],[494.7,1140],[604.7,1380],[484.7,1380],[609.7,1620],[479.7,1620]],[[544.9,760],[559.9,745],[529.9,745],[579.9,755],[509.9,755],[614.9,880],[474.9,880],[644.9,1010],[444.9,1010],[614.9,1130],[474.9,1130],[594.9,1140],[494.9,1140],[604.9,1380],[484.9,1380],[609.9,1620],[479.9,1620]],[[545.1,760],[560.1,745],[530.1,745],[580.1,755],[510.1,755],[615.1,880],[475.1,880],[645.1,1010],[445.1,1010],[615.1,1130],[475.1,1130],[595.1,1140],[495.1,1140],[605.1,1380],[485.1,1380],[610.1,1620],[480.1,1620]],[[545.2,760],[560.2,745],[530.2,745],[580.2,755],[510.2,755],[615.2,880],[475.2,880],[645.2,1010],[445.2,1010],[615.2,1130],[475.2,1130],[595.2,1140],[495.2,1140],[605.2,1380],[485.2,1380],[610.2,1620],[480.2,1620]],[[545.4,760],[560.4,745],[530.4,745],[580.4,755],[510.4,755],[615.4,880],[475.4,880],[645.4,1010],[445.4,1010],[615.4,1130],[475.4,1130],[595.4,1140],[495.4,1140],[605.4,1380],[485.4,1380],[610.4,1620],[480.4,1620]],[[545.5,760],[560.5,745],[530.5,745],[580.5,755],[510.5,755],[615.5,880],[475.5,880],[645.5,1010],[445.5,1010],[615.5,1130],[475.5,1130],[595.5,1140],[495.5,1140],[605.5,1380],[485.5,1380],[610.5,1620],[480.5,1620]],[[545.6,760],[560.6,745],[530.6,745],[580.6,755],[510.6,755],[615.6,880],[475.6,880],[645.6,1010],[445.6,1010],[615.6,1130],[475.6,1130],[595.6,1140],[495.6,1140],[605.6,1380],[485.6,1380],[610.6,1620],[480.6,1620]],[[545.7,760],[560.7,745],[530.7,745],[580.7,755],[510.7,755],[615.7,880],[475.7,880],[645.7,1010],[445.7,1010],[615.7,1130],[475.7,1130],[595.7,1140],[495.7,1140],[605.7,1380],[485.7,1380],[610.7,1620],[480.7,1620]],[[545.8,760],[560.8,745],[530.8,745],[580.8,755],[510.8,755],[615.8,880],[475.8,880],[645.8,1010],[445.8,1010],[615.8,1130],[475.8,1130],[595.8,1140],[495.8,1140],[605.8,1380],[485.8,1380],[610.8,1620],[480.8,1620]],[[545.9,760],[560.9,745],[530.9,745],[580.9,755],[510.9,755],[615.9,880],[475.9,880],[645.9,1010],[445.9,1010],[615.9,1130],[475.9,1130],[595.9,1140],[495.9,1140],[605.9,1380],[485.9,1380],[610.9,1620],[480.9,1620]],[[545.9,760],[560.9,745],[530.9,745],[580.9,755],[510.9,755],[615.9,880],[475.9,880],[645.9,1010],[445.9,1010],[615.9,1130],[475.9,1130],[595.9,1140],[495.9,1140],[605.9,1380],[485.9,1380],[610.9,1620],[480.9,1620]],[[546.0,760],[561.0,745],[531.0,745],[581.0,755],[511.0,755],[616.0,880],[476.0,880],[646.0,1010],[446.0,1010],[616.0,1130],[476.0,1130],[596.0,1140],[496.0,1140],[606.0,1380],[486.0,1380],[611.0,1620],[481.0,1620]],[[546.0,760],[561.0,745],[531.0,745],[581.0,755],[511.0,755],[616.0,880],[476.0,880],[646.0,1010],[446.0,1010],[616.0,1130],[476.0,1130],[596.0,1140],[496.0,1140],[606.0,1380],[486.0,1380],[611.0,1620],[481.0,1620]],[[546.0,760],[561.0,745],[531.0,745],[581.0,755],[511.0,755],[616.0,880],[476.0,880],[646.0,1010],[446.0,1010],[616.0,1130],[476.0,1130],[596.0,1140],[496.0,1140],[606.0,1380],[486.0,1380],[611.0,1620],[481.0,1620]],[[546.0,760],[561.0,745],[531.0,745],[581.0,755],[511.0,755],[616.0,880],[476.0,880],[646.0,1010],[446.0,1010],[616.0,1130],[476.0,1130],[596.0,1140],[496.0,1140],[606.0,1380],[486.0,1380],[611.0,1620],[481.0,1620]],[[546.0,760],[561.0,745],[531.0,745],[581.0,755],[511.0,755],[616.0,880],[476.0,880],[646.0,1010],[446.0,1010],[616.0,1130],[476.0,1130],[596.0,1140],[496.0,1140],[606.0,1380],[486.0,1380],[611.0,1620],[481.0,1620]],[[545.9,760],[560.9,745],[530.9,745],[580.9,755],[510.9,755],[615.9,880],[475.9,880],[645.9,1010],[445.9,1010],[615.9,1130],[475.9,1130],[595.9,1140],[495.9,1140],[605.9,1380],[485.9,1380],[610.9,1620],[480.9,1620]],[[545.8,760],[560.8,745],[530.8,745],[580.8,755],[510.8,755],[615.8,880],[475.8,880],[645.8,1010],[445.8,1010],[615.8,1130],[475.8,1130],[595.8,1140],[495.8,1140],[605.8,1380],[485.8,1380],[610.8,1620],[480.8,1620]],[[545.8,760],[560.8,745],[530.8,745],[580.8,755],[510.8,755],[615.8,880],[475.8,880],[645.8,1010],[445.8,1010],[615.8,1130],[475.8,1130],[595.8,1140],[495.8,1140],[605.8,1380],[485.8,1380],[610.8,1620],[480.8,1620]],[[545.7,760],[560.7,745],[530.7,745],[580.7,755],[510.7,755],[615.7,880],[475.7,880],[645.7,1010],[445.7,1010],[615.7,1130],[475.7,1130],[595.7,1140],[495.7,1140],[605.7,1380],[485.7,1380],[611.6,1620],[480.7,1620]],[[545.6,760],[560.6,745],[530.6,745],[580.6,755],[510.6,755],[615.6,880],[475.6,880],[645.6,1010],[445.6,1010],[615.6,1130],[475.6,1130],[595.6,1140],[495.6,1140],[605.6,1380],[485.6,1380],[614.5,1620],[480.6,1620]],[[545.4,760],[560.4,745],[530.4,745],[580.4,755],[510.4,755],[615.4,880],[475.4,880],[645.4,1010],[445.4,1010],[615.4,1130],[475.4,1130],[595.4,1140],[495.4,1140],[605.4,1380],[485.4,1380],[617.4,1620],[480.4,1620]],[[545.3,760],[560.3,745],[530.3,745],[580.3,755],[510.3,755],[615.3,880],[475.3,880],[645.3,1010],[445.3,1010],[615.3,1130],[475.3,1130],[595.3,1140],[495.3,1140],[605.3,1380],[485.3,1380],[620.3,1620],[480.3,1620]],[[545.1,760],[560.1,745],[530.1,745],[580.1,755],[510.1,755],[615.1,880],[475.1,880],[645.1,1010],[445.1,1010],null,[475.1,1130],[595.1,1140],[495.1,1140],[605.1,1380],[485.1,1380],[623.2,1620],[480.1,1620]],[[545.0,760],[560.0,745],[530.0,745],[580.0,755],[510.0,755],[615.0,880],[475.0,880],[645.0,1010],[445.0,1010],null,[475.0,1130],[595.0,1140],[495.0,1140],[605.0,1380],[485.0,1380],[626.0,1620],[480.0,1620]],[[544.8,760],[559.8,745],[529.8,745],[579.8,755],[509.8,755],[614.8,880],[474.8,880],[644.8,1010],[444.8,1010],null,[474.8,1130],[594.8,1140],[494.8,1140],[604.8,1380],[484.8,1380],[628.8,1620],[479.8,1620]],[[544.6,760],[559.6,745],[529.6,745],[579.6,755],[509.6,755],[614.6,880],[474.6,880],[644.6,1010],[444.6,1010],[614.6,1130],[474.6,1130],[594.6,1140],[494.6,1140],[604.6,1380],[484.6,1380],[631.7,1620],[479.6,1620]],[[544.4,760],[559.4,745],[529.4,745],[579.4,755],[509.4,755],[614.4,880],[474.4,880],[644.4,1010],[444.4,1010],[614.4,1130],[474.4,1130],[594.4,1140],[494.4,1140],[604.4,1380],[484.4,1380],[634.5,1620],[479.4,1620]],[[544.2,760],[559.2,745],[529.2,745],[579.2,755],[509.2,755],[614.2,880],[474.2,880],[644.2,1010],[444.2,1010],[614.2,1130],[474.2,1130],[594.2,1140],[494.2,1140],[604.2,1380],[484.2,1380],[637.3,1620],[479.2,1620]],[[543.9,760],[558.9,745],[528.9,745],[578.9,755],[508.9,755],[613.9,880],[473.9,880],[643.9,1010],[443.9,1010],[613.9,1130],[473.9,1130],[593.9,1140],[493.9,1140],[603.9,1380],[483.9,1380],[640.1,1620],[478.9,1620]],[[543.7,760],[558.7,745],[528.7,745],[578.7,755],[508.7,755],[613.7,880],[473.7,880],[643.7,1010],[443.7,1010],[613.7,1130],[473.7,1130],[593.7,1140],[493.7,1140],[603.7,1380],[483.7,1380],[642.9,1620],[478.7,1620]],[[543.4,760],[558.4,745],[528.4,745],[578.4,755],[508.4,755],[613.4,880],[473.4,880],[643.4,1010],[443.4,1010],[613.4,1130],[473.4,1130],[593.4,1140],[493.4,1140],[603.4,1380],[483.4,1380],[645.6,1620],[478.4,1620]],[[543.2,760],[558.2,745],[528.2,745],[578.2,755],[508.2,755],[613.2,880],[473.2,880],[643.2,1010],[443.2,1010],[613.2,1130],[473.2,1130],[593.2,1140],[493.2,1140],[603.2,1380],[483.2,1380],[648.4,1620],[478.2,1620]],[[542.9,760],[557.9,745],[527.9,745],[577.9,755],[507.9,755],[612.9,880],[472.9,880],[642.9,1010],[442.9,1010],[612.9,1130],[472.9,1130],[592.9,1140],[492.9,1140],[602.9,1380],[482.9,1380],[651.1,1620],[477.9,1620]],[[542.6,760],[557.6,745],[527.6,745],[577.6,755],[507.6,755],[612.6,880],[472.6,880],[642.6,1010],[442.6,1010],[612.6,1130],[472.6,1130],[592.6,1140],[492.6,1140],[602.6,1380],[482.6,1380],[653.9,1620],[477.6,1620]],[[542.3,760],[557.3,745],[527.3,745],[577.3,755],[507.3,755],[612.3,880],[472.3,880],[642.3,1010],[442.3,1010],[612.3,1130],[472.3,1130],[592.3,1140],[492.3,1140],[602.3,1380],[482.3,1380],[656.6,1620],[477.3,1620]],[[542.0,760],[557.0,745],[527.0,745],[577.0,755],[507.0,755],[612.0,880],[472.0,880],[642.0,1010],[442.0,1010],[612.0,1130],[472.0,1130],[592.0,1140],[492.0,1140],[602.0,1380],[482.0,1380],[659.4,1620],[477.0,1620]],[[541.7,760],[556.7,745],[526.7,745],[576.7,755],[506.7,755],[611.7,880],[471.7,880],[641.7,1010],[441.7,1010],[611.7,1130],[471.7,1130],[591.7,1140],[491.7,1140],[601.7,1380],[481.7,1380],[662.1,1620],[476.7,1620]],[[541.4,760],[556.4,745],[526.4,745],[576.4,755],[506.4,755],[611.4,880],[471.4,880],[641.4,1010],[441.4,1010],[611.4,1130],[471.4,1130],[591.4,1140],[491.4,1140],[601.4,1380],[481.4,1380],[664.8,1620],[476.4,1620]],[[541.1,760],[556.1,745],[526.1,745],[576.1,755],[506.1,755],[611.1,880],[471.1,880],[641.1,1010],[441.1,1010],[611.1,1130],[471.1,1130],[591.1,1140],[491.1,1140],[601.1,1380],[481.1,1380],[667.5,1620],[476.1,1620]],[[540.8,760],[555.8,745],[525.8,745],[575.8,755],[505.8,755],[610.8,880],[470.8,880],[640.8,1010],[440.8,1010],[610.8,1130],[470.8,1130],[590.8,1140],[490.8,1140],[600.8,1380],[480.8,1380],[670.2,1620],[475.8,1620]],[[540.5,760],[555.5,745],[525.5,745],[575.5,755],[505.5,755],[610.5,880],[470.5,880],[640.5,1010],[440.5,1010],[610.5,1130],[470.5,1130],[590.5,1140],[490.5,1140],[600.5,1380],[480.5,1380],[672.9,1620],[475.5,1620]],[[540.2,760],[555.2,745],[525.2,745],[575.2,755],[505.2,755],[610.2,880],[470.2,880],[640.2,1010],[440.2,1010],[610.2,1130],[470.2,1130],[590.2,1140],[490.2,1140],[600.2,1380],[480.2,1380],[675.6,1620],[475.2,1620]],[[539.8,760],[554.8,745],[524.8,745],[574.8,755],[504.8,755],[609.8,880],[469.8,880],[639.8,1010],[439.8,1010],[609.8,1130],[469.8,1130],[589.8,1140],[489.8,1140],[599.8,1380],[479.8,1380],[678.4,1620],[474.8,1620]],[[539.5,760],[554.5,745],[524.5,745],[574.5,755],[504.5,755],[609.5,880],[469.5,880],[639.5,1010],[439.5,1010],[609.5,1130],[469.5,1130],[589.5,1140],[489.5,1140],[599.5,1380],[479.5,1380],[681.1,1620],[474.5,1620]],[[539.2,760],[554.2,745],[524.2,745],[574.2,755],[504.2,755],[609.2,880],[469.2,880],[639.2,1010],[439.2,1010],[609.2,1130],[469.2,1130],[589.2,1140],[489.2,1140],[599.2,1380],[479.2,1380],[683.8,1620],[474.2,1620]],[[538.9,760],[553.9,745],[523.9,745],[573.9,755],[503.9,755],[608.9,880],[468.9,880],[638.9,1010],[438.9,1010],[608.9,1130],[468.9,1130],[588.9,1140],[488.9,1140],[598.9,1380],[478.9,1380],[686.5,1620],[473.9,1620]],[[538.6,760],[553.6,745],[523.6,745],[573.6,755],[503.6,755],[608.6,880],[468.6,880],[638.6,1010],[438.6,1010],[608.6,1130],[468.6,1130],[588.6,1140],[488.6,1140],[598.6,1380],[478.6,1380],[689.2,1620],[473.6,1620]],[[538.3,760],[553.3,745],[523.3,745],[573.3,755],[503.3,755],[608.3,880],[468.3,880],[638.3,1010],[438.3,1010],[608.3,1130],[468.3,1130],[588.3,1140],[488.3,1140],[598.3,1380],[478.3,1380],[691.9,1620],[473.3,1620]],[[538.0,760],[553.0,745],[523.0,745],[573.0,755],[503.0,755],[608.0,880],[468.0,880],[638.0,1010],[438.0,1010],[608.0,1130],[468.0,1130],[588.0,1140],[488.0,1140],[598.0,1380],[478.0,1380],[693.0,1620],[473.0,1620]],[[537.7,760],[552.7,745],[522.7,745],[572.7,755],[502.7,755],[607.7,880],[467.7,880],[637.7,1010],[437.7,1010],[607.7,1130],[467.7,1130],[587.7,1140],[487.7,1140],[597.7,1380],[477.7,1380],[692.7,1620],[472.7,1620]],[[537.4,760],[552.4,745],[522.4,745],[572.4,755],[502.4,755],[607.4,880],[467.4,880],[637.4,1010],[437.4,1010],[607.4,1130],[467.4,1130],[587.4,1140],[487.4,1140],[597.4,1380],[477.4,1380],[692.4,1620],[472.4,1620]],[[537.1,760],[552.1,745],[522.1,745],[572.1,755],[502.1,755],[607.1,880],[467.1,880],[637.1,1010],[437.1,1010],[607.1,1130],[467.1,1130],[587.1,1140],[487.1,1140],[597.1,1380],[477.1,1380],[692.1,1620],[472.1,1620]],[[536.8,760],[551.8,745],[521.8,745],[571.8,755],[501.8,755],[606.8,880],[466.8,880],[636.8,1010],[436.8,1010],[606.8,1130],[466.8,1130],[586.8,1140],[486.8,1140],[596.8,1380],[476.8,1380],[691.8,1620],[471.8,1620]],[[536.6,760],[551.6,745],[521.6,745],[571.6,755],[501.6,755],[606.6,880],[466.6,880],[636.6,1010],[436.6,1010],[606.6,1130],[466.6,1130],[586.6,1140],[486.6,1140],[596.6,1380],[476.6,1380],[691.6,1620],[471.6,1620]],[[536.3,760],[551.3,745],[521.3,745],[571.3,755],[501.3,755],[606.3,880],[466.3,880],[636.3,1010],[436.3,1010],[606.3,1130],[466.3,1130],[586.3,1140],[486.3,1140],[596.3,1380],[476.3,1380],[691.3,1620],[471.3,1620]],[[536.1,760],[551.1,745],[521.1,745],[571.1,755],[501.1,755],[606.1,880],[466.1,880],[636.1,1010],[436.1,1010],[606.1,1130],[466.1,1130],[586.1,1140],[486.1,1140],[596.1,1380],[476.1,1380],[691.1,1620],[471.1,1620]],[[535.8,760],[550.8,745],[520.8,745],[570.8,755],[500.8,755],[605.8,880],[465.8,880],[635.8,1010],[435.8,1010],[605.8,1130],[465.8,1130],[585.8,1140],[485.8,1140],[595.8,1380],[475.8,1380],[690.8,1620],[470.8,1620]],[[535.6,760],[550.6,745],[520.6,745],[570.6,755],[500.6,755],[605.6,880],[465.6,880],[635.6,1010],[435.6,1010],[605.6,1130],[465.6,1130],[585.6,1140],[485.6,1140],[595.6,1380],[475.6,1380],[690.6,1620],[470.6,1620]],[[535.4,760],[550.4,745],[520.4,745],[570.4,755],[500.4,755],[605.4,880],[465.4,880],[635.4,1010],[435.4,1010],[605.4,1130],[465.4,1130],[585.4,1140],[485.4,1140],[595.4,1380],[475.4,1380],[690.4,1620],[470.4,1620]],[[535.2,760],[550.2,745],[520.2,745],[570.2,755],[500.2,755],[605.2,880],[465.2,880],[635.2,1010],[435.2,1010],[605.2,1130],[465.2,1130],[585.2,1140],[485.2,1140],[595.2,1380],[475.2,1380],[690.2,1620],[470.2,1620]],[[535.0,760],[550.0,745],[520.0,745],[570.0,755],[500.0,755],[605.0,880],[465.0,880],[635.0,1010],[435.0,1010],[605.0,1130],[465.0,1130],[585.0,1140],[485.0,1140],[595.0,1380],[475.0,1380],[690.0,1620],[470.0,1620]],[[534.9,760],[549.9,745],[519.9,745],[569.9,755],[499.9,755],[604.9,880],[464.9,880],[634.9,1010],[434.9,1010],[604.9,1130],[464.9,1130],[584.9,1140],[484.9,1140],[594.9,1380],[474.9,1380],[689.9,1620],[469.9,1620]],[[534.7,760],[549.7,745],[519.7,745],[569.7,755],[499.7,755],[604.7,880],[464.7,880],[634.7,1010],[434.7,1010],[604.7,1130],[464.7,1130],[584.7,1140],[484.7,1140],[594.7,1380],[474.7,1380],[689.7,1620],[469.7,1620]],[[534.6,760],[549.6,745],[519.6,745],[569.6,755],[499.6,755],[604.6,880],[464.6,880],[634.6,1010],[434.6,1010],[604.6,1130],[464.6,1130],[584.6,1140],[484.6,1140],[594.6,1380],[474.6,1380],[689.6,1620],[469.6,1620]],[[534.4,760],[549.4,745],[519.4,745],[569.4,755],[499.4,755],[604.4,880],[464.4,880],[634.4,1010],[434.4,1010],[604.4,1130],[464.4,1130],[584.4,1140],[484.4,1140],[594.4,1380],[474.4,1380],[689.4,1620],[469.4,1620]],[[534.3,760],[549.3,745],[519.3,745],[569.3,755],[499.3,755],[604.3,880],[464.3,880],[634.3,1010],[434.3,1010],[604.3,1130],[464.3,1130],[584.3,1140],[484.3,1140],[594.3,1380],[474.3,1380],[689.3,1620],[469.3,1620]],[[534.2,760],[549.2,745],[519.2,745],[569.2,755],[499.2,755],[604.2,880],[464.2,880],[634.2,1010],[434.2,1010],[604.2,1130],[464.2,1130],[584.2,1140],[484.2,1140],[594.2,1380],[474.2,1380],[689.2,1620],[469.2,1620]],[[534.2,760],[549.2,745],[519.2,745],[569.2,755],[499.2,755],[604.2,880],[464.2,880],[634.2,1010],[434.2,1010],[604.2,1130],[464.2,1130],[584.2,1140],[484.2,1140],[594.2,1380],[474.2,1380],[689.2,1620],[469.2,1620]],[[534.1,760],[549.1,745],[519.1,745],[569.1,755],[499.1,755],[604.1,880],[464.1,880],[634.1,1010],[434.1,1010],[604.1,1130],[464.1,1130],[584.1,1140],[484.1,1140],[594.1,1380],[474.1,1380],[689.1,1620],[469.1,1620]],[[534.0,760],[549.0,745],[519.0,745],[569.0,755],[499.0,755],[604.0,880],[464.0,880],[634.0,1010],[434.0,1010],[604.0,1130],[464.0,1130],[584.0,1140],[484.0,1140],[594.0,1380],[474.0,1380],[689.0,1620],[469.0,1620]],[[534.0,760],[549.0,745],[519.0,745],[569.0,755],[499.0,755],[604.0,880],[464.0,880],[634.0,1010],[434.0,1010],[604.0,1130],[464.0,1130],[584.0,1140],[484.0,1140],[594.0,1380],[474.0,1380],[689.0,1620],[469.0,1620]],[[534.0,760],[549.0,745],[519.0,745],[569.0,755],[499.0,755],[604.0,880],[464.0,880],[634.0,1010],[434.0,1010],[604.0,1130],[464.0,1130],[584.0,1140],[484.0,1140],[594.0,1380],[474.0,1380],[689.0,1620],[469.0,1620]],[[534.0,760],[549.0,745],[519.0,745],[569.0,755],[499.0,755],[604.0,880],[464.0,880],[634.0,1010],[434.0,1010],[604.0,1130],[464.0,1130],[584.0,1140],[484.0,1140],[594.0,1380],[474.0,1380],[689.0,1620],[469.0,1620]],[[534.0,760],[549.0,745],[519.0,745],[569.0,755],[499.0,755],[604.0,880],[464.0,880],[634.0,1010],[434.0,1010],[604.0,1130],[464.0,1130],[584.0,1140],[484.0,1140],[594.0,1380],[474.0,1380],[689.0,1620],[469.0,1620]],[[534.1,760],[549.1,745],[519.1,745],[569.1,755],[499.1,755],[604.1,880],[464.1,880],[634.1,1010],[434.1,1010],[604.1,1130],[464.1,1130],[584.1,1140],[484.1,1140],[594.1,1380],[474.1,1380],[689.1,1620],[469.1,1620]],[[534.1,760],[549.1,745],[519.1,745],[569.1,755],[499.1,755],[604.1,880],[464.1,880],[634.1,1010],[434.1,1010],[604.1,1130],[464.1,1130],[584.1,1140],[484.1,1140],[594.1,1380],[474.1,1380],[689.1,1620],[469.1,1620]],[[534.2,760],[549.2,745],[519.2,745],[569.2,755],[499.2,755],[604.2,880],[464.2,880],[634.2,1010],[434.2,1010],[604.2,1130],[464.2,1130],[584.2,1140],[484.2,1140],[594.2,1380],[474.2,1380],[689.2,1620],[469.2,1620]],[[534.3,760],[549.3,745],[519.3,745],[569.3,755],[499.3,755],[604.3,880],[464.3,880],[634.3,1010],[434.3,1010],[604.3,1130],[464.3,1130],[584.3,1140],[484.3,1140],[594.3,1380],[474.3,1380],[689.3,1620],[469.3,1620]],[[534.4,760],[549.4,745],[519.4,745],[569.4,755],[499.4,755],[604.4,880],[464.4,880],[634.4,1010],[434.4,1010],[604.4,1130],[464.4,1130],[584.4,1140],[484.4,1140],[594.4,1380],[474.4,1380],[689.4,1620],[469.4,1620]],[[534.5,760],[549.5,745],[519.5,745],[569.5,755],[499.5,755],[604.5,880],[464.5,880],[634.5,1010],[434.5,1010],[604.5,1130],[464.5,1130],[584.5,1140],[484.5,1140],[594.5,1380],[474.5,1380],[689.5,1620],[469.5,1620]],[[534.6,760],[549.6,745],[519.6,745],[569.6,755],[499.6,755],[604.6,880],[464.6,880],[634.6,1010],[434.6,1010],[604.6,1130],[464.6,1130],[584.6,1140],[484.6,1140],[594.6,1380],[474.6,1380],[689.6,1620],[469.6,1620]],[[534.8,760],[549.8,745],[519.8,745],[569.8,755],[499.8,755],[604.8,880],[464.8,880],[634.8,1010],[434.8,1010],[604.8,1130],[464.8,1130],[584.8,1140],[484.8,1140],[594.8,1380],[474.8,1380],[689.8,1620],[469.8,1620]],[[534.9,760],[549.9,745],[519.9,745],[569.9,755],[499.9,755],[604.9,880],[464.9,880],[634.9,1010],[434.9,1010],[604.9,1130],[464.9,1130],[584.9,1140],[484.9,1140],[594.9,1380],[474.9,1380],[689.9,1620],[469.9,1620]],[[535.1,760],[550.1,745],[520.1,745],[570.1,755],[500.1,755],[605.1,880],[465.1,880],[635.1,1010],[435.1,1010],[605.1,1130],[465.1,1130],[585.1,1140],[485.1,1140],[595.1,1380],[475.1,1380],[690.1,1620],[470.1,1620]],[[535.3,760],[550.3,745],[520.3,745],[570.3,755],[500.3,755],[605.3,880],[465.3,880],[635.3,1010],[435.3,1010],[605.3,1130],[465.3,1130],[585.3,1140],[485.3,1140],[595.3,1380],[475.3,1380],[690.3,1620],[470.3,1620]],[[535.5,760],[550.5,745],[520.5,745],[570.5,755],[500.5,755],[605.5,880],[465.5,880],[635.5,1010],[435.5,1010],[605.5,1130],[465.5,1130],[585.5,1140],[485.5,1140],[595.5,1380],[475.5,1380],[690.5,1620],[470.5,1620]],[[535.7,760],[550.7,745],[520.7,745],[570.7,755],[500.7,755],[605.7,880],[465.7,880],[635.7,1010],[435.7,1010],[605.7,1130],[465.7,1130],[585.7,1140],[485.7,1140],[595.7,1380],[475.7,1380],[690.7,1620],[470.7,1620]],[[536.0,760],[551.0,745],[521.0,745],[571.0,755],[501.0,755],[606.0,880],[466.0,880],[636.0,1010],[436.0,1010],[606.0,1130],[466.0,1130],[586.0,1140],[486.0,1140],[596.0,1380],[476.0,1380],[691.0,1620],[471.0,1620]],[[536.2,760],[551.2,745],[521.2,745],[571.2,755],[501.2,755],[606.2,880],[466.2,880],[636.2,1010],[436.2,1010],[606.2,1130],[466.2,1130],[586.2,1140],[486.2,1140],[596.2,1380],[476.2,1380],[691.2,1620],[471.2,1620]],[[536.4,760],[551.4,745],[521.4,745],[571.4,755],[501.4,755],[606.4,880],[466.4,880],[636.4,1010],[436.4,1010],[606.4,1130],[466.4,1130],[586.4,1140],[486.4,1140],[596.4,1380],[476.4,1380],[691.4,1620],[471.4,1620]],[[536.7,760],[551.7,745],[521.7,745],[571.7,755],[501.7,755],[606.7,880],[466.7,880],[636.7,1010],[436.7,1010],[606.7,1130],[466.7,1130],[586.7,1140],[486.7,1140],[596.7,1380],[476.7,1380],[691.7,1620],[471.7,1620]],[[537.0,760],[552.0,745],[522.0,745],[572.0,755],[502.0,755],[607.0,880],[467.0,880],[637.0,1010],[437.0,1010],[607.0,1130],[467.0,1130],[587.0,1140],[487.0,1140],[597.0,1380],[477.0,1380],[692.0,1620],[472.0,1620]],[[537.3,760],[552.3,745],[522.3,745],[572.3,755],[502.3,755],[607.3,880],[467.3,880],[637.3,1010],[437.3,1010],[607.3,1130],[467.3,1130],[587.3,1140],[487.3,1140],[597.3,1380],[477.3,1380],[692.3,1620],[472.3,1620]],[[537.5,760],[552.5,745],[522.5,745],[572.5,755],[502.5,755],[607.5,880],[467.5,880],[637.5,1010],[437.5,1010],[607.5,1130],[467.5,1130],[587.5,1140],[487.5,1140],[597.5,1380],[477.5,1380],[692.5,1620],[472.5,1620]],[[537.8,760],[552.8,745],[522.8,745],[572.8,755],[502.8,755],[607.8,880],[467.8,880],[637.8,1010],[437.8,1010],[607.8,1130],[467.8,1130],[587.8,1140],[487.8,1140],[597.8,1380],[477.8,1380],[692.8,1620],[472.8,1620]],[[538.1,760],[553.1,745],[523.1,745],[573.1,755],[503.1,755],[608.1,880],[468.1,880],[638.1,1010],[438.1,1010],[608.1,1130],[468.1,1130],[588.1,1140],[488.1,1140],[598.1,1380],[478.1,1380],[693.1,1620],[473.1,1620]],[[538.4,760],[553.4,745],[523.4,745],[573.4,755],[503.4,755],[608.4,880],[468.4,880],[638.4,1010],[438.4,1010],[608.4,1130],[468.4,1130],[588.4,1140],[488.4,1140],[598.4,1380],[478.4,1380],[693.4,1620],[473.4,1620]],[[538.7,760],[553.7,745],[523.7,745],[573.7,755],[503.7,755],[608.7,880],[468.7,880],[638.7,1010],[438.7,1010],[608.7,1130],[468.7,1130],[588.7,1140],[488.7,1140],[598.7,1380],[478.7,1380],[693.7,1620],[473.7,1620]],[[539.1,760],[554.1,745],[524.1,745],[574.1,755],[504.1,755],[609.1,880],[469.1,880],[639.1,1010],[439.1,1010],[609.1,1130],[469.1,1130],[589.1,1140],[489.1,1140],[599.1,1380],[479.1,1380],[694.1,1620],[474.1,1620]],[[539.4,760],[554.4,745],[524.4,745],[574.4,755],[504.4,755],[609.4,880],[469.4,880],[639.4,1010],[439.4,1010],[609.4,1130],[469.4,1130],[589.4,1140],[489.4,1140],[599.4,1380],[479.4,1380],[694.4,1620],[474.4,1620]],[[539.7,760],[554.7,745],[524.7,745],[574.7,755],[504.7,755],[609.7,880],[469.7,880],[639.7,1010],[439.7,1010],[609.7,1130],[469.7,1130],[589.7,1140],[489.7,1140],[599.7,1380],[479.7,1380],[694.7,1620],[474.7,1620]],[[540.0,760],[555.0,745],[525.0,745],[575.0,755],[505.0,755],[610.0,880],[470.0,880],[640.0,1010],[440.0,1010],[610.0,1130],[470.0,1130],[590.0,1140],[490.0,1140],[600.0,1380],[480.0,1380],[695.0,1620],[475.0,1620]]],"conf":[[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.0,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.0,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.0,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9],[0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.93,0.86,0.93,0.93,0.93,0.93,0.93,0.9,0.9]],"box":[[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0],[380.0,700.0,740.0,1700.0]],"track_id":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],"people_count":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],"blur":[0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05,0.05],"brightness":[128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0,128.0]},"reps":[{"rep":1,"start_frame":0,"end_frame":119,"events":{"stance_set":{"frame":6,"t_s":0.05,"confidence":0.8,"estimated":false,"method":"body speed below threshold for 100 ms"},"load_start":{"frame":26,"t_s":0.21667,"confidence":0.6,"estimated":false,"method":"hands move backward after stance"},"stride":{"frame":36,"t_s":0.3,"confidence":0.7,"estimated":false,"method":"lead ankle starts moving toward the pitcher"},"foot_contact":{"frame":62,"t_s":0.51667,"confidence":0.7,"estimated":false,"method":"lead foot first touches the ground"},"foot_plant":{"frame":66,"t_s":0.55,"confidence":0.75,"estimated":false,"method":"lead ankle velocity returns to ~0 after the stride"},"swing_start":{"frame":78,"t_s":0.65,"confidence":0.6,"estimated":false,"method":"sustained forward hand acceleration"},"contact":{"frame":90,"t_s":0.75,"confidence":0.5,"estimated":true,"method":"max lead-arm extension, hands in front"},"finish":{"frame":112,"t_s":0.93333,"confidence":0.6,"estimated":false,"method":"hands settled after follow-through"}},"missing_events":{}}]}
|
AI-coach-agent/docs/examples/responses/hitting_clean.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": null,
|
| 5 |
+
"discipline": "hitting",
|
| 6 |
+
"level": "college",
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": 100,
|
| 12 |
+
"band": "Very close to typical",
|
| 13 |
+
"confidence": "medium",
|
| 14 |
+
"basis": "2 of 9 measurements, 6 swings",
|
| 15 |
+
"in_range": 2,
|
| 16 |
+
"checked": 2,
|
| 17 |
+
"breakdown": [
|
| 18 |
+
{
|
| 19 |
+
"metric_key": "stride_pct_height",
|
| 20 |
+
"label": "Stride length",
|
| 21 |
+
"score": 100,
|
| 22 |
+
"weight": 0.588,
|
| 23 |
+
"zone": "in_range"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"metric_key": "com_drift_pct_height",
|
| 27 |
+
"label": "Body drift past front foot",
|
| 28 |
+
"score": 100,
|
| 29 |
+
"weight": 0.412,
|
| 30 |
+
"zone": "in_range"
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"reason_code": null,
|
| 34 |
+
"reason": null
|
| 35 |
+
},
|
| 36 |
+
"summary": "The parts of your swing we could measure look solid.",
|
| 37 |
+
"strengths": [
|
| 38 |
+
{
|
| 39 |
+
"metric_key": "stride_pct_height",
|
| 40 |
+
"text": "Your stride length is in the typical range for your level."
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"metric_key": "com_drift_pct_height",
|
| 44 |
+
"text": "Your body stays behind your front foot."
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"focus": [],
|
| 48 |
+
"drill": null,
|
| 49 |
+
"timing": null,
|
| 50 |
+
"data_quality": [
|
| 51 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 52 |
+
],
|
| 53 |
+
"arm_care": null,
|
| 54 |
+
"meta": {
|
| 55 |
+
"source": "rules",
|
| 56 |
+
"model": null,
|
| 57 |
+
"prompt_version": "example",
|
| 58 |
+
"cache_hit": false,
|
| 59 |
+
"fallback_reason": "llm_disabled",
|
| 60 |
+
"latency_ms": null
|
| 61 |
+
}
|
| 62 |
+
}
|
AI-coach-agent/docs/examples/responses/hitting_with_timing.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": "sess_001",
|
| 5 |
+
"discipline": "hitting",
|
| 6 |
+
"level": "college",
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": 77,
|
| 12 |
+
"band": "Mostly close to typical",
|
| 13 |
+
"confidence": "medium",
|
| 14 |
+
"basis": "2 of 9 measurements, 6 swings",
|
| 15 |
+
"in_range": 0,
|
| 16 |
+
"checked": 2,
|
| 17 |
+
"breakdown": [
|
| 18 |
+
{
|
| 19 |
+
"metric_key": "stride_pct_height",
|
| 20 |
+
"label": "Stride length",
|
| 21 |
+
"score": 84,
|
| 22 |
+
"weight": 0.588,
|
| 23 |
+
"zone": "outside_typical_range"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"metric_key": "com_drift_pct_height",
|
| 27 |
+
"label": "Body drift past front foot",
|
| 28 |
+
"score": 67,
|
| 29 |
+
"weight": 0.412,
|
| 30 |
+
"zone": "outside_typical_range"
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"reason_code": null,
|
| 34 |
+
"reason": null
|
| 35 |
+
},
|
| 36 |
+
"summary": "Here is the one thing to work on in your swing.",
|
| 37 |
+
"strengths": [],
|
| 38 |
+
"focus": [
|
| 39 |
+
{
|
| 40 |
+
"problem_key": "lunging",
|
| 41 |
+
"evidence": [
|
| 42 |
+
"com_drift_pct_height"
|
| 43 |
+
],
|
| 44 |
+
"text": "Your body slides forward past your front foot. Your weight gets ahead of your hands, and you lose power from the ground. This showed up in 100% of your reps."
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"problem_key": "over_stride",
|
| 48 |
+
"evidence": [
|
| 49 |
+
"stride_pct_height"
|
| 50 |
+
],
|
| 51 |
+
"text": "Your front foot lands too far out."
|
| 52 |
+
}
|
| 53 |
+
],
|
| 54 |
+
"drill": {
|
| 55 |
+
"name": "Balance Hold Tee",
|
| 56 |
+
"how": "Do 3x8. Turn, don't slide.",
|
| 57 |
+
"cue": "Stay behind your front knee. Turn, don't slide."
|
| 58 |
+
},
|
| 59 |
+
"timing": {
|
| 60 |
+
"summary": "Timing: Preparation to swing and Front foot down to swing were estimated. Swing duration and Early or late adjustment are unavailable.",
|
| 61 |
+
"observations": [
|
| 62 |
+
{
|
| 63 |
+
"metric_key": "load_to_swing_ms",
|
| 64 |
+
"label": "Preparation to swing",
|
| 65 |
+
"value_ms": 320,
|
| 66 |
+
"swings": 6,
|
| 67 |
+
"range_ms": [
|
| 68 |
+
300,
|
| 69 |
+
340
|
| 70 |
+
],
|
| 71 |
+
"status": "estimated",
|
| 72 |
+
"text": "Your preparation to the start of the forward swing took about 320 ms. Across 6 swings it ranged from 300 to 340 ms."
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"metric_key": "foot_down_to_swing_ms",
|
| 76 |
+
"label": "Front foot down to swing",
|
| 77 |
+
"value_ms": 70,
|
| 78 |
+
"swings": 6,
|
| 79 |
+
"range_ms": [
|
| 80 |
+
60,
|
| 81 |
+
80
|
| 82 |
+
],
|
| 83 |
+
"status": "estimated",
|
| 84 |
+
"text": "Your swing started about 70 ms after your front foot first touched down. Across 6 swings it ranged from 60 to 80 ms."
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"unavailable": [
|
| 88 |
+
{
|
| 89 |
+
"metric_key": "swing_duration_ms",
|
| 90 |
+
"label": "Swing duration",
|
| 91 |
+
"reason_codes": [
|
| 92 |
+
"actual_end_unavailable"
|
| 93 |
+
],
|
| 94 |
+
"text": "Actual contact or closest approach was not established."
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"metric_key": "early_late_shift_ms",
|
| 98 |
+
"label": "Early or late adjustment",
|
| 99 |
+
"reason_codes": [
|
| 100 |
+
"outcome_unknown"
|
| 101 |
+
],
|
| 102 |
+
"text": "Whether the bat met the ball is not known."
|
| 103 |
+
}
|
| 104 |
+
],
|
| 105 |
+
"data_quality": [
|
| 106 |
+
"These timing numbers are estimates. On their own they cannot show a timing fault.",
|
| 107 |
+
"Whether the bat met the ball was not established, so hits and misses were not compared."
|
| 108 |
+
],
|
| 109 |
+
"consistency": {
|
| 110 |
+
"practice_type": "tee",
|
| 111 |
+
"swings": 6,
|
| 112 |
+
"notes": [
|
| 113 |
+
"Your preparation to swing varied by about 40 ms from the lowest to the highest swing.",
|
| 114 |
+
"Your front foot down to swing varied by about 20 ms from the lowest to the highest swing."
|
| 115 |
+
]
|
| 116 |
+
}
|
| 117 |
+
},
|
| 118 |
+
"data_quality": [
|
| 119 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 120 |
+
],
|
| 121 |
+
"arm_care": null,
|
| 122 |
+
"meta": {
|
| 123 |
+
"source": "rules",
|
| 124 |
+
"model": null,
|
| 125 |
+
"prompt_version": "example",
|
| 126 |
+
"cache_hit": false,
|
| 127 |
+
"fallback_reason": "llm_disabled",
|
| 128 |
+
"latency_ms": null
|
| 129 |
+
}
|
| 130 |
+
}
|
AI-coach-agent/docs/examples/responses/pitching_arm_care.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": null,
|
| 5 |
+
"discipline": "pitching",
|
| 6 |
+
"level": "hs_varsity",
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": 97,
|
| 12 |
+
"band": "Very close to typical",
|
| 13 |
+
"confidence": "low",
|
| 14 |
+
"basis": "8 of 11 measurements, 8 pitches",
|
| 15 |
+
"in_range": 7,
|
| 16 |
+
"checked": 8,
|
| 17 |
+
"breakdown": [
|
| 18 |
+
{
|
| 19 |
+
"metric_key": "leg_lift_to_fp_ms",
|
| 20 |
+
"label": "Leg lift to foot plant time",
|
| 21 |
+
"score": 100,
|
| 22 |
+
"weight": 0.163,
|
| 23 |
+
"zone": "in_range"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"metric_key": "stride_pct_height",
|
| 27 |
+
"label": "Stride length",
|
| 28 |
+
"score": 79,
|
| 29 |
+
"weight": 0.163,
|
| 30 |
+
"zone": "outside_typical_range"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"metric_key": "fp_to_release_ms",
|
| 34 |
+
"label": "Foot plant to release time",
|
| 35 |
+
"score": 100,
|
| 36 |
+
"weight": 0.131,
|
| 37 |
+
"zone": "in_range"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"metric_key": "lead_knee_block_deg",
|
| 41 |
+
"label": "Front knee block",
|
| 42 |
+
"score": 100,
|
| 43 |
+
"weight": 0.114,
|
| 44 |
+
"zone": "in_range"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"metric_key": "lead_knee_flexion_fp_deg",
|
| 48 |
+
"label": "Front knee at foot plant",
|
| 49 |
+
"score": 100,
|
| 50 |
+
"weight": 0.114,
|
| 51 |
+
"zone": "in_range"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"metric_key": "lead_knee_flexion_release_deg",
|
| 55 |
+
"label": "Front knee at release",
|
| 56 |
+
"score": 100,
|
| 57 |
+
"weight": 0.114,
|
| 58 |
+
"zone": "in_range"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"metric_key": "head_stability_pct_height",
|
| 62 |
+
"label": "Head stability",
|
| 63 |
+
"score": 100,
|
| 64 |
+
"weight": 0.109,
|
| 65 |
+
"zone": "in_range"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"metric_key": "trunk_forward_tilt_release_deg",
|
| 69 |
+
"label": "Trunk forward tilt at release",
|
| 70 |
+
"score": 100,
|
| 71 |
+
"weight": 0.091,
|
| 72 |
+
"zone": "in_range"
|
| 73 |
+
}
|
| 74 |
+
],
|
| 75 |
+
"reason_code": null,
|
| 76 |
+
"reason": null
|
| 77 |
+
},
|
| 78 |
+
"summary": "Parts of your delivery look solid. One change can help the most.",
|
| 79 |
+
"strengths": [
|
| 80 |
+
{
|
| 81 |
+
"metric_key": "leg_lift_to_fp_ms",
|
| 82 |
+
"text": "Your leg lift to foot plant timing matches your target."
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"metric_key": "fp_to_release_ms",
|
| 86 |
+
"text": "Your foot plant to release timing matches your target."
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"metric_key": "head_stability_pct_height",
|
| 90 |
+
"text": "Your head stays steady through your delivery."
|
| 91 |
+
}
|
| 92 |
+
],
|
| 93 |
+
"focus": [
|
| 94 |
+
{
|
| 95 |
+
"problem_key": "short_stride",
|
| 96 |
+
"evidence": [
|
| 97 |
+
"stride_pct_height"
|
| 98 |
+
],
|
| 99 |
+
"text": "Your stride is shorter than the typical range for your level. A short stride makes it harder to use your legs to drive toward the plate. This showed up in 100% of your reps."
|
| 100 |
+
}
|
| 101 |
+
],
|
| 102 |
+
"drill": {
|
| 103 |
+
"name": "Stride Line Flat Ground",
|
| 104 |
+
"how": "Do 3x8. Reach to the line.",
|
| 105 |
+
"cue": "Push off the rubber and reach toward the plate."
|
| 106 |
+
},
|
| 107 |
+
"timing": null,
|
| 108 |
+
"data_quality": [
|
| 109 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 110 |
+
],
|
| 111 |
+
"arm_care": {
|
| 112 |
+
"pitch_count_today": 42,
|
| 113 |
+
"daily_max": 95,
|
| 114 |
+
"next_eligible_date": "2026-10-13",
|
| 115 |
+
"alerts": [],
|
| 116 |
+
"mechanics_drift": null,
|
| 117 |
+
"lines": [
|
| 118 |
+
"You threw 42 of 95 pitches today.",
|
| 119 |
+
"You can pitch again on 2026-10-13."
|
| 120 |
+
]
|
| 121 |
+
},
|
| 122 |
+
"meta": {
|
| 123 |
+
"source": "rules",
|
| 124 |
+
"model": null,
|
| 125 |
+
"prompt_version": "example",
|
| 126 |
+
"cache_hit": false,
|
| 127 |
+
"fallback_reason": "llm_disabled",
|
| 128 |
+
"latency_ms": null
|
| 129 |
+
}
|
| 130 |
+
}
|
AI-coach-agent/docs/examples/responses/record_again.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": null,
|
| 5 |
+
"discipline": "hitting",
|
| 6 |
+
"level": "college",
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": null,
|
| 12 |
+
"band": null,
|
| 13 |
+
"confidence": null,
|
| 14 |
+
"basis": null,
|
| 15 |
+
"in_range": 0,
|
| 16 |
+
"checked": 0,
|
| 17 |
+
"breakdown": [],
|
| 18 |
+
"reason_code": "capture_not_ok",
|
| 19 |
+
"reason": "The video could not be read well enough to score. Please record again."
|
| 20 |
+
},
|
| 21 |
+
"summary": "We could not read this video well enough to coach your swing yet.",
|
| 22 |
+
"strengths": [],
|
| 23 |
+
"focus": [],
|
| 24 |
+
"drill": null,
|
| 25 |
+
"timing": null,
|
| 26 |
+
"data_quality": [
|
| 27 |
+
"The video was too dark. Please record again with more light.",
|
| 28 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 29 |
+
],
|
| 30 |
+
"arm_care": null,
|
| 31 |
+
"meta": {
|
| 32 |
+
"source": "rules",
|
| 33 |
+
"model": null,
|
| 34 |
+
"prompt_version": "example",
|
| 35 |
+
"cache_hit": false,
|
| 36 |
+
"fallback_reason": "nothing_to_judge",
|
| 37 |
+
"latency_ms": null
|
| 38 |
+
}
|
| 39 |
+
}
|
AI-coach-agent/docs/examples/responses/score_withheld_low_fps.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": null,
|
| 5 |
+
"discipline": "hitting",
|
| 6 |
+
"level": "college",
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": null,
|
| 12 |
+
"band": null,
|
| 13 |
+
"confidence": null,
|
| 14 |
+
"basis": null,
|
| 15 |
+
"in_range": 0,
|
| 16 |
+
"checked": 1,
|
| 17 |
+
"breakdown": [],
|
| 18 |
+
"reason_code": "not_enough_measurements",
|
| 19 |
+
"reason": "Too few measurements could be checked against a typical range to give a score."
|
| 20 |
+
},
|
| 21 |
+
"summary": "The parts of your swing we could measure look solid.",
|
| 22 |
+
"strengths": [
|
| 23 |
+
{
|
| 24 |
+
"metric_key": "stride_pct_height",
|
| 25 |
+
"text": "Your stride length is in the typical range for your level."
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"focus": [],
|
| 29 |
+
"drill": null,
|
| 30 |
+
"timing": null,
|
| 31 |
+
"data_quality": [
|
| 32 |
+
"The video was too slow to time your movement. Please use 240 frames per second slow motion.",
|
| 33 |
+
"Some numbers are only estimates from one camera, so we are not judging them."
|
| 34 |
+
],
|
| 35 |
+
"arm_care": null,
|
| 36 |
+
"meta": {
|
| 37 |
+
"source": "rules",
|
| 38 |
+
"model": null,
|
| 39 |
+
"prompt_version": "example",
|
| 40 |
+
"cache_hit": false,
|
| 41 |
+
"fallback_reason": "llm_disabled",
|
| 42 |
+
"latency_ms": null
|
| 43 |
+
}
|
| 44 |
+
}
|
AI-coach-agent/docs/examples/responses/timing_only.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"response_version": "2.0",
|
| 3 |
+
"request_id": "req_example",
|
| 4 |
+
"session_id": null,
|
| 5 |
+
"discipline": "hitting",
|
| 6 |
+
"level": null,
|
| 7 |
+
"level_assumed": false,
|
| 8 |
+
"score": {
|
| 9 |
+
"name": "Mechanics score",
|
| 10 |
+
"meaning": "How close your measured mechanics are to the typical range for your level. Typical is not the same as ideal, and this is not a rating of how good a player you are.",
|
| 11 |
+
"value": null,
|
| 12 |
+
"band": null,
|
| 13 |
+
"confidence": null,
|
| 14 |
+
"basis": null,
|
| 15 |
+
"in_range": 0,
|
| 16 |
+
"checked": 0,
|
| 17 |
+
"breakdown": [],
|
| 18 |
+
"reason_code": "not_enough_measurements",
|
| 19 |
+
"reason": "Too few measurements could be checked against a typical range to give a score."
|
| 20 |
+
},
|
| 21 |
+
"summary": "Timing: Preparation to swing and Front foot down to swing were estimated. Swing duration and Early or late adjustment are unavailable.",
|
| 22 |
+
"strengths": [],
|
| 23 |
+
"focus": [],
|
| 24 |
+
"drill": null,
|
| 25 |
+
"timing": {
|
| 26 |
+
"summary": "Timing: Preparation to swing and Front foot down to swing were estimated. Swing duration and Early or late adjustment are unavailable.",
|
| 27 |
+
"observations": [
|
| 28 |
+
{
|
| 29 |
+
"metric_key": "load_to_swing_ms",
|
| 30 |
+
"label": "Preparation to swing",
|
| 31 |
+
"value_ms": 310,
|
| 32 |
+
"swings": 1,
|
| 33 |
+
"range_ms": null,
|
| 34 |
+
"status": "estimated",
|
| 35 |
+
"text": "Your preparation to the start of the forward swing took about 310 ms."
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"metric_key": "foot_down_to_swing_ms",
|
| 39 |
+
"label": "Front foot down to swing",
|
| 40 |
+
"value_ms": 60,
|
| 41 |
+
"swings": 1,
|
| 42 |
+
"range_ms": null,
|
| 43 |
+
"status": "estimated",
|
| 44 |
+
"text": "Your swing started about 60 ms after your front foot first touched down."
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"unavailable": [
|
| 48 |
+
{
|
| 49 |
+
"metric_key": "swing_duration_ms",
|
| 50 |
+
"label": "Swing duration",
|
| 51 |
+
"reason_codes": [
|
| 52 |
+
"actual_end_unavailable"
|
| 53 |
+
],
|
| 54 |
+
"text": "Actual contact or closest approach was not established."
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"metric_key": "early_late_shift_ms",
|
| 58 |
+
"label": "Early or late adjustment",
|
| 59 |
+
"reason_codes": [
|
| 60 |
+
"outcome_unknown"
|
| 61 |
+
],
|
| 62 |
+
"text": "Whether the bat met the ball is not known."
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"data_quality": [
|
| 66 |
+
"These timing numbers are estimates. On their own they cannot show a timing fault.",
|
| 67 |
+
"Whether the bat met the ball was not established, so hits and misses were not compared.",
|
| 68 |
+
"Only one swing was timed, so there is nothing to compare it with."
|
| 69 |
+
],
|
| 70 |
+
"consistency": null
|
| 71 |
+
},
|
| 72 |
+
"data_quality": [],
|
| 73 |
+
"arm_care": null,
|
| 74 |
+
"meta": {
|
| 75 |
+
"source": "rules",
|
| 76 |
+
"model": null,
|
| 77 |
+
"prompt_version": "example",
|
| 78 |
+
"cache_hit": false,
|
| 79 |
+
"fallback_reason": "timing_only",
|
| 80 |
+
"latency_ms": null
|
| 81 |
+
}
|
| 82 |
+
}
|
AI-coach-agent/docs/pose_track.schema.json
ADDED
|
@@ -0,0 +1,537 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 6 |
+
"enum": [
|
| 7 |
+
"hitting",
|
| 8 |
+
"pitching"
|
| 9 |
+
]
|
| 10 |
+
},
|
| 11 |
+
"extra_keypoint_order": {
|
| 12 |
+
"const": [
|
| 13 |
+
"left_big_toe",
|
| 14 |
+
"left_small_toe",
|
| 15 |
+
"left_heel",
|
| 16 |
+
"right_big_toe",
|
| 17 |
+
"right_small_toe",
|
| 18 |
+
"right_heel"
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"frames": {
|
| 22 |
+
"additionalProperties": false,
|
| 23 |
+
"properties": {
|
| 24 |
+
"blur": {
|
| 25 |
+
"items": {
|
| 26 |
+
"maximum": 1,
|
| 27 |
+
"minimum": 0,
|
| 28 |
+
"type": "number"
|
| 29 |
+
},
|
| 30 |
+
"minItems": 1,
|
| 31 |
+
"type": "array"
|
| 32 |
+
},
|
| 33 |
+
"box": {
|
| 34 |
+
"items": {
|
| 35 |
+
"anyOf": [
|
| 36 |
+
{
|
| 37 |
+
"items": {
|
| 38 |
+
"type": "number"
|
| 39 |
+
},
|
| 40 |
+
"maxItems": 4,
|
| 41 |
+
"minItems": 4,
|
| 42 |
+
"type": "array"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"type": "null"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"minItems": 1,
|
| 50 |
+
"type": "array"
|
| 51 |
+
},
|
| 52 |
+
"brightness": {
|
| 53 |
+
"items": {
|
| 54 |
+
"maximum": 255,
|
| 55 |
+
"minimum": 0,
|
| 56 |
+
"type": "number"
|
| 57 |
+
},
|
| 58 |
+
"minItems": 1,
|
| 59 |
+
"type": "array"
|
| 60 |
+
},
|
| 61 |
+
"conf": {
|
| 62 |
+
"items": {
|
| 63 |
+
"items": {
|
| 64 |
+
"maximum": 1,
|
| 65 |
+
"minimum": 0,
|
| 66 |
+
"type": "number"
|
| 67 |
+
},
|
| 68 |
+
"maxItems": 17,
|
| 69 |
+
"minItems": 17,
|
| 70 |
+
"type": "array"
|
| 71 |
+
},
|
| 72 |
+
"minItems": 1,
|
| 73 |
+
"type": "array"
|
| 74 |
+
},
|
| 75 |
+
"conf_extra": {
|
| 76 |
+
"items": {
|
| 77 |
+
"items": {
|
| 78 |
+
"maximum": 1,
|
| 79 |
+
"minimum": 0,
|
| 80 |
+
"type": "number"
|
| 81 |
+
},
|
| 82 |
+
"maxItems": 6,
|
| 83 |
+
"minItems": 6,
|
| 84 |
+
"type": "array"
|
| 85 |
+
},
|
| 86 |
+
"type": "array"
|
| 87 |
+
},
|
| 88 |
+
"kp": {
|
| 89 |
+
"items": {
|
| 90 |
+
"items": {
|
| 91 |
+
"anyOf": [
|
| 92 |
+
{
|
| 93 |
+
"items": {
|
| 94 |
+
"type": "number"
|
| 95 |
+
},
|
| 96 |
+
"maxItems": 2,
|
| 97 |
+
"minItems": 2,
|
| 98 |
+
"type": "array"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"type": "null"
|
| 102 |
+
}
|
| 103 |
+
]
|
| 104 |
+
},
|
| 105 |
+
"maxItems": 17,
|
| 106 |
+
"minItems": 17,
|
| 107 |
+
"type": "array"
|
| 108 |
+
},
|
| 109 |
+
"minItems": 1,
|
| 110 |
+
"type": "array"
|
| 111 |
+
},
|
| 112 |
+
"kp_extra": {
|
| 113 |
+
"items": {
|
| 114 |
+
"items": {
|
| 115 |
+
"anyOf": [
|
| 116 |
+
{
|
| 117 |
+
"items": {
|
| 118 |
+
"type": "number"
|
| 119 |
+
},
|
| 120 |
+
"maxItems": 2,
|
| 121 |
+
"minItems": 2,
|
| 122 |
+
"type": "array"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"type": "null"
|
| 126 |
+
}
|
| 127 |
+
]
|
| 128 |
+
},
|
| 129 |
+
"maxItems": 6,
|
| 130 |
+
"minItems": 6,
|
| 131 |
+
"type": "array"
|
| 132 |
+
},
|
| 133 |
+
"type": "array"
|
| 134 |
+
},
|
| 135 |
+
"people_count": {
|
| 136 |
+
"items": {
|
| 137 |
+
"minimum": 0,
|
| 138 |
+
"type": "integer"
|
| 139 |
+
},
|
| 140 |
+
"minItems": 1,
|
| 141 |
+
"type": "array"
|
| 142 |
+
},
|
| 143 |
+
"t_s": {
|
| 144 |
+
"items": {
|
| 145 |
+
"type": "number"
|
| 146 |
+
},
|
| 147 |
+
"minItems": 1,
|
| 148 |
+
"type": "array"
|
| 149 |
+
},
|
| 150 |
+
"track_id": {
|
| 151 |
+
"items": {
|
| 152 |
+
"anyOf": [
|
| 153 |
+
{
|
| 154 |
+
"type": "integer"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"type": "null"
|
| 158 |
+
}
|
| 159 |
+
]
|
| 160 |
+
},
|
| 161 |
+
"type": "array"
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
"required": [
|
| 165 |
+
"t_s",
|
| 166 |
+
"kp",
|
| 167 |
+
"conf",
|
| 168 |
+
"box",
|
| 169 |
+
"people_count",
|
| 170 |
+
"blur",
|
| 171 |
+
"brightness"
|
| 172 |
+
],
|
| 173 |
+
"type": "object"
|
| 174 |
+
},
|
| 175 |
+
"keypoint_order": {
|
| 176 |
+
"const": [
|
| 177 |
+
"nose",
|
| 178 |
+
"left_eye",
|
| 179 |
+
"right_eye",
|
| 180 |
+
"left_ear",
|
| 181 |
+
"right_ear",
|
| 182 |
+
"left_shoulder",
|
| 183 |
+
"right_shoulder",
|
| 184 |
+
"left_elbow",
|
| 185 |
+
"right_elbow",
|
| 186 |
+
"left_wrist",
|
| 187 |
+
"right_wrist",
|
| 188 |
+
"left_hip",
|
| 189 |
+
"right_hip",
|
| 190 |
+
"left_knee",
|
| 191 |
+
"right_knee",
|
| 192 |
+
"left_ankle",
|
| 193 |
+
"right_ankle"
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
"kp3d": {
|
| 197 |
+
"additionalProperties": false,
|
| 198 |
+
"description": "OPTIONAL, not used in v1. Per-frame 3D points for the same 17 joints.",
|
| 199 |
+
"properties": {
|
| 200 |
+
"conf": {
|
| 201 |
+
"items": {
|
| 202 |
+
"items": {
|
| 203 |
+
"maximum": 1,
|
| 204 |
+
"minimum": 0,
|
| 205 |
+
"type": "number"
|
| 206 |
+
},
|
| 207 |
+
"maxItems": 17,
|
| 208 |
+
"minItems": 17,
|
| 209 |
+
"type": "array"
|
| 210 |
+
},
|
| 211 |
+
"type": "array"
|
| 212 |
+
},
|
| 213 |
+
"frame_of_reference": {
|
| 214 |
+
"enum": [
|
| 215 |
+
"camera",
|
| 216 |
+
"pelvis_relative"
|
| 217 |
+
]
|
| 218 |
+
},
|
| 219 |
+
"points": {
|
| 220 |
+
"items": {
|
| 221 |
+
"items": {
|
| 222 |
+
"anyOf": [
|
| 223 |
+
{
|
| 224 |
+
"items": {
|
| 225 |
+
"type": "number"
|
| 226 |
+
},
|
| 227 |
+
"maxItems": 3,
|
| 228 |
+
"minItems": 3,
|
| 229 |
+
"type": "array"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "null"
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
"maxItems": 17,
|
| 237 |
+
"minItems": 17,
|
| 238 |
+
"type": "array"
|
| 239 |
+
},
|
| 240 |
+
"type": "array"
|
| 241 |
+
},
|
| 242 |
+
"unit": {
|
| 243 |
+
"const": "m"
|
| 244 |
+
}
|
| 245 |
+
},
|
| 246 |
+
"required": [
|
| 247 |
+
"frame_of_reference",
|
| 248 |
+
"unit",
|
| 249 |
+
"points",
|
| 250 |
+
"conf"
|
| 251 |
+
],
|
| 252 |
+
"type": "object"
|
| 253 |
+
},
|
| 254 |
+
"model": {
|
| 255 |
+
"additionalProperties": true,
|
| 256 |
+
"properties": {
|
| 257 |
+
"blur_definition": {
|
| 258 |
+
"type": "string"
|
| 259 |
+
},
|
| 260 |
+
"name": {
|
| 261 |
+
"type": "string"
|
| 262 |
+
},
|
| 263 |
+
"people_rule": {
|
| 264 |
+
"type": "string"
|
| 265 |
+
},
|
| 266 |
+
"processing": {
|
| 267 |
+
"description": "Applied after the model, e.g. one_euro or interpolation. Empty = raw.",
|
| 268 |
+
"items": {
|
| 269 |
+
"type": "string"
|
| 270 |
+
},
|
| 271 |
+
"type": "array"
|
| 272 |
+
},
|
| 273 |
+
"version": {
|
| 274 |
+
"type": "string"
|
| 275 |
+
}
|
| 276 |
+
},
|
| 277 |
+
"required": [
|
| 278 |
+
"name",
|
| 279 |
+
"processing"
|
| 280 |
+
],
|
| 281 |
+
"type": "object"
|
| 282 |
+
},
|
| 283 |
+
"objects": {
|
| 284 |
+
"additionalProperties": false,
|
| 285 |
+
"description": "OPTIONAL, not used in v1. Bat and ball per frame (pixels, upright image).",
|
| 286 |
+
"properties": {
|
| 287 |
+
"ball": {
|
| 288 |
+
"items": {
|
| 289 |
+
"anyOf": [
|
| 290 |
+
{
|
| 291 |
+
"additionalProperties": false,
|
| 292 |
+
"properties": {
|
| 293 |
+
"center": {
|
| 294 |
+
"items": {
|
| 295 |
+
"type": "number"
|
| 296 |
+
},
|
| 297 |
+
"maxItems": 2,
|
| 298 |
+
"minItems": 2,
|
| 299 |
+
"type": "array"
|
| 300 |
+
},
|
| 301 |
+
"conf": {
|
| 302 |
+
"maximum": 1,
|
| 303 |
+
"minimum": 0,
|
| 304 |
+
"type": "number"
|
| 305 |
+
},
|
| 306 |
+
"radius_px": {
|
| 307 |
+
"minimum": 0,
|
| 308 |
+
"type": "number"
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
"required": [
|
| 312 |
+
"center",
|
| 313 |
+
"conf"
|
| 314 |
+
],
|
| 315 |
+
"type": "object"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "null"
|
| 319 |
+
}
|
| 320 |
+
]
|
| 321 |
+
},
|
| 322 |
+
"type": "array"
|
| 323 |
+
},
|
| 324 |
+
"bat": {
|
| 325 |
+
"items": {
|
| 326 |
+
"anyOf": [
|
| 327 |
+
{
|
| 328 |
+
"additionalProperties": false,
|
| 329 |
+
"properties": {
|
| 330 |
+
"barrel": {
|
| 331 |
+
"anyOf": [
|
| 332 |
+
{
|
| 333 |
+
"items": {
|
| 334 |
+
"type": "number"
|
| 335 |
+
},
|
| 336 |
+
"maxItems": 2,
|
| 337 |
+
"minItems": 2,
|
| 338 |
+
"type": "array"
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "null"
|
| 342 |
+
}
|
| 343 |
+
]
|
| 344 |
+
},
|
| 345 |
+
"conf": {
|
| 346 |
+
"maximum": 1,
|
| 347 |
+
"minimum": 0,
|
| 348 |
+
"type": "number"
|
| 349 |
+
},
|
| 350 |
+
"knob": {
|
| 351 |
+
"anyOf": [
|
| 352 |
+
{
|
| 353 |
+
"items": {
|
| 354 |
+
"type": "number"
|
| 355 |
+
},
|
| 356 |
+
"maxItems": 2,
|
| 357 |
+
"minItems": 2,
|
| 358 |
+
"type": "array"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "null"
|
| 362 |
+
}
|
| 363 |
+
]
|
| 364 |
+
}
|
| 365 |
+
},
|
| 366 |
+
"required": [
|
| 367 |
+
"knob",
|
| 368 |
+
"barrel",
|
| 369 |
+
"conf"
|
| 370 |
+
],
|
| 371 |
+
"type": "object"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "null"
|
| 375 |
+
}
|
| 376 |
+
]
|
| 377 |
+
},
|
| 378 |
+
"type": "array"
|
| 379 |
+
}
|
| 380 |
+
},
|
| 381 |
+
"type": "object"
|
| 382 |
+
},
|
| 383 |
+
"reps": {
|
| 384 |
+
"items": {
|
| 385 |
+
"additionalProperties": false,
|
| 386 |
+
"properties": {
|
| 387 |
+
"end_frame": {
|
| 388 |
+
"minimum": 0,
|
| 389 |
+
"type": "integer"
|
| 390 |
+
},
|
| 391 |
+
"events": {
|
| 392 |
+
"additionalProperties": {
|
| 393 |
+
"additionalProperties": false,
|
| 394 |
+
"properties": {
|
| 395 |
+
"confidence": {
|
| 396 |
+
"maximum": 1,
|
| 397 |
+
"minimum": 0,
|
| 398 |
+
"type": "number"
|
| 399 |
+
},
|
| 400 |
+
"estimated": {
|
| 401 |
+
"type": "boolean"
|
| 402 |
+
},
|
| 403 |
+
"frame": {
|
| 404 |
+
"minimum": 0,
|
| 405 |
+
"type": "integer"
|
| 406 |
+
},
|
| 407 |
+
"method": {
|
| 408 |
+
"type": "string"
|
| 409 |
+
},
|
| 410 |
+
"t_s": {
|
| 411 |
+
"type": "number"
|
| 412 |
+
}
|
| 413 |
+
},
|
| 414 |
+
"required": [
|
| 415 |
+
"frame",
|
| 416 |
+
"confidence"
|
| 417 |
+
],
|
| 418 |
+
"type": "object"
|
| 419 |
+
},
|
| 420 |
+
"propertyNames": {
|
| 421 |
+
"enum": [
|
| 422 |
+
"contact",
|
| 423 |
+
"finish",
|
| 424 |
+
"first_move",
|
| 425 |
+
"foot_contact",
|
| 426 |
+
"foot_plant",
|
| 427 |
+
"hand_break",
|
| 428 |
+
"leg_lift",
|
| 429 |
+
"load_start",
|
| 430 |
+
"release",
|
| 431 |
+
"stance_set",
|
| 432 |
+
"stride",
|
| 433 |
+
"swing_start"
|
| 434 |
+
]
|
| 435 |
+
},
|
| 436 |
+
"type": "object"
|
| 437 |
+
},
|
| 438 |
+
"missing_events": {
|
| 439 |
+
"additionalProperties": {
|
| 440 |
+
"type": "string"
|
| 441 |
+
},
|
| 442 |
+
"type": "object"
|
| 443 |
+
},
|
| 444 |
+
"rep": {
|
| 445 |
+
"minimum": 1,
|
| 446 |
+
"type": "integer"
|
| 447 |
+
},
|
| 448 |
+
"start_frame": {
|
| 449 |
+
"minimum": 0,
|
| 450 |
+
"type": "integer"
|
| 451 |
+
}
|
| 452 |
+
},
|
| 453 |
+
"required": [
|
| 454 |
+
"rep",
|
| 455 |
+
"start_frame",
|
| 456 |
+
"end_frame",
|
| 457 |
+
"events"
|
| 458 |
+
],
|
| 459 |
+
"type": "object"
|
| 460 |
+
},
|
| 461 |
+
"type": "array"
|
| 462 |
+
},
|
| 463 |
+
"schema_version": {
|
| 464 |
+
"const": "1.0"
|
| 465 |
+
},
|
| 466 |
+
"video": {
|
| 467 |
+
"additionalProperties": false,
|
| 468 |
+
"properties": {
|
| 469 |
+
"capture_fps": {
|
| 470 |
+
"exclusiveMinimum": 0,
|
| 471 |
+
"type": "number"
|
| 472 |
+
},
|
| 473 |
+
"frame_count": {
|
| 474 |
+
"minimum": 1,
|
| 475 |
+
"type": "integer"
|
| 476 |
+
},
|
| 477 |
+
"height": {
|
| 478 |
+
"minimum": 1,
|
| 479 |
+
"type": "integer"
|
| 480 |
+
},
|
| 481 |
+
"playback_fps": {
|
| 482 |
+
"exclusiveMinimum": 0,
|
| 483 |
+
"type": "number"
|
| 484 |
+
},
|
| 485 |
+
"rotation_degrees_applied": {
|
| 486 |
+
"enum": [
|
| 487 |
+
0,
|
| 488 |
+
90,
|
| 489 |
+
180,
|
| 490 |
+
270
|
| 491 |
+
]
|
| 492 |
+
},
|
| 493 |
+
"sha256": {
|
| 494 |
+
"type": "string"
|
| 495 |
+
},
|
| 496 |
+
"time_source": {
|
| 497 |
+
"enum": [
|
| 498 |
+
"pts",
|
| 499 |
+
"assumed_constant",
|
| 500 |
+
"slowmo_rescaled"
|
| 501 |
+
]
|
| 502 |
+
},
|
| 503 |
+
"width": {
|
| 504 |
+
"minimum": 1,
|
| 505 |
+
"type": "integer"
|
| 506 |
+
}
|
| 507 |
+
},
|
| 508 |
+
"required": [
|
| 509 |
+
"width",
|
| 510 |
+
"height",
|
| 511 |
+
"frame_count",
|
| 512 |
+
"capture_fps",
|
| 513 |
+
"playback_fps",
|
| 514 |
+
"rotation_degrees_applied",
|
| 515 |
+
"time_source"
|
| 516 |
+
],
|
| 517 |
+
"type": "object"
|
| 518 |
+
},
|
| 519 |
+
"view": {
|
| 520 |
+
"enum": [
|
| 521 |
+
"face_on",
|
| 522 |
+
"open_side"
|
| 523 |
+
]
|
| 524 |
+
}
|
| 525 |
+
},
|
| 526 |
+
"required": [
|
| 527 |
+
"schema_version",
|
| 528 |
+
"discipline",
|
| 529 |
+
"view",
|
| 530 |
+
"video",
|
| 531 |
+
"model",
|
| 532 |
+
"keypoint_order",
|
| 533 |
+
"frames"
|
| 534 |
+
],
|
| 535 |
+
"title": "Pose track (what the pose pipeline sends downstream)",
|
| 536 |
+
"type": "object"
|
| 537 |
+
}
|
AI-coach-agent/evals/run_eval.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Run the coach over a folder of session JSONs and report quality, cost and cache behaviour.
|
| 2 |
+
|
| 3 |
+
python evals/run_eval.py --mode rules # offline, rule-based notes only (always works)
|
| 4 |
+
python evals/run_eval.py --mode live # real Gemini calls (needs GOOGLE_API_KEY), fresh cache
|
| 5 |
+
python evals/run_eval.py --mode live --repeat 2 # second pass shows response-cache hits
|
| 6 |
+
|
| 7 |
+
Exit code 1 if any final note breaks a guardrail (it never should: the service falls back to rules).
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
from __future__ import annotations
|
| 11 |
+
|
| 12 |
+
import argparse
|
| 13 |
+
import json
|
| 14 |
+
import sys
|
| 15 |
+
import tempfile
|
| 16 |
+
import time
|
| 17 |
+
from pathlib import Path
|
| 18 |
+
|
| 19 |
+
from ai_coach.config import Settings
|
| 20 |
+
from ai_coach.guardrails import check_note
|
| 21 |
+
from ai_coach.input_builder import build_coach_input
|
| 22 |
+
from ai_coach.service import CoachService, render_note
|
| 23 |
+
|
| 24 |
+
DEFAULT_DIR = Path(__file__).resolve().parents[1] / "examples" / "inputs"
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def main(argv: list[str] | None = None) -> int:
|
| 28 |
+
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 29 |
+
parser.add_argument("--mode", choices=("rules", "live"), default="rules")
|
| 30 |
+
parser.add_argument("--dir", type=Path, default=DEFAULT_DIR)
|
| 31 |
+
parser.add_argument("--repeat", type=int, default=1, help="passes over the inputs (2+ shows cache hits)")
|
| 32 |
+
parser.add_argument("--show", action="store_true", help="print every note")
|
| 33 |
+
args = parser.parse_args(argv)
|
| 34 |
+
|
| 35 |
+
cache_dir = Path(tempfile.mkdtemp(prefix="coach-eval-"))
|
| 36 |
+
overrides = {"cache_path": cache_dir / "responses.sqlite3"}
|
| 37 |
+
settings = Settings(**overrides)
|
| 38 |
+
if args.mode == "rules":
|
| 39 |
+
settings = settings.model_copy(update={"google_api_key": None})
|
| 40 |
+
elif not settings.llm_enabled:
|
| 41 |
+
print("live mode needs GOOGLE_API_KEY (env or .env)", file=sys.stderr)
|
| 42 |
+
return 2
|
| 43 |
+
service = CoachService(settings)
|
| 44 |
+
|
| 45 |
+
rows, failures = [], 0
|
| 46 |
+
for _ in range(args.repeat):
|
| 47 |
+
for path in sorted(args.dir.glob("*.json")):
|
| 48 |
+
session = json.loads(path.read_text(encoding="utf-8"))
|
| 49 |
+
started = time.perf_counter()
|
| 50 |
+
result = service.coach(session)
|
| 51 |
+
elapsed = time.perf_counter() - started
|
| 52 |
+
problems = check_note(result.note, build_coach_input(session))
|
| 53 |
+
failures += bool(problems)
|
| 54 |
+
rows.append((path.stem, result, elapsed, problems))
|
| 55 |
+
if args.show:
|
| 56 |
+
print(f"\n=== {path.stem}\n{render_note(result.note)}")
|
| 57 |
+
|
| 58 |
+
print(f"\n{'example':42} {'source':6} {'model':24} {'try':>3} {'cache':>5} {'cached_tok':>10} {'$':>9} {'sec':>5} notes")
|
| 59 |
+
for name, r, secs, problems in rows:
|
| 60 |
+
notes = r.fallback_reason or ""
|
| 61 |
+
if r.violations:
|
| 62 |
+
notes += f" first-try violations={len(r.violations)}"
|
| 63 |
+
if problems:
|
| 64 |
+
notes += f" FINAL VIOLATIONS: {[str(p) for p in problems]}"
|
| 65 |
+
print(
|
| 66 |
+
f"{name:42} {r.source:6} {r.model!s:24} {r.attempts:>3} {'hit' if r.cache_hit else '-':>5} "
|
| 67 |
+
f"{r.usage.cached_tokens:>10} {r.usage.cost_usd:>9.5f} {secs:>5.1f} {notes}"
|
| 68 |
+
)
|
| 69 |
+
llm_rows = [r for _, r, _, _ in rows if r.source == "llm" and not r.cache_hit]
|
| 70 |
+
first_try = [r for r in llm_rows if r.attempts == 1]
|
| 71 |
+
total_cost = sum(r.usage.cost_usd for _, r, _, _ in rows)
|
| 72 |
+
print(
|
| 73 |
+
f"\nnotes={len(rows)} llm_calls={len(llm_rows)} first_try_pass="
|
| 74 |
+
f"{len(first_try)}/{len(llm_rows) if llm_rows else 0} total_cost=${total_cost:.5f} "
|
| 75 |
+
f"avg_cost_per_llm_note=${(total_cost / len(llm_rows)) if llm_rows else 0:.5f} "
|
| 76 |
+
f"final_guardrail_failures={failures}"
|
| 77 |
+
)
|
| 78 |
+
return 1 if failures else 0
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
if __name__ == "__main__":
|
| 82 |
+
raise SystemExit(main())
|
AI-coach-agent/examples/inputs/hitting_30fps_geometry_only.json
AD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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "hitting",
|
| 4 |
+
"view": "face_on",
|
| 5 |
+
"fps": 30.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": [
|
| 10 |
+
"very_low_fps"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
"reps": [
|
| 14 |
+
{
|
| 15 |
+
"rep": 1,
|
| 16 |
+
"events_ms": {
|
| 17 |
+
"stance_set": 0,
|
| 18 |
+
"load_start": 130,
|
| 19 |
+
"stride": 300,
|
| 20 |
+
"foot_plant": 560,
|
| 21 |
+
"swing_start": 610,
|
| 22 |
+
"contact": 770,
|
| 23 |
+
"finish": 1250
|
| 24 |
+
},
|
| 25 |
+
"metrics": [
|
| 26 |
+
{
|
| 27 |
+
"key": "stride_pct_height",
|
| 28 |
+
"value": 48.7,
|
| 29 |
+
"unit": "%",
|
| 30 |
+
"confidence": "medium"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"key": "foot_plant_to_contact_ms",
|
| 34 |
+
"value": null,
|
| 35 |
+
"unit": "ms",
|
| 36 |
+
"confidence": "est",
|
| 37 |
+
"note": "timing needs >= 60 fps"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"key": "load_tempo_s",
|
| 41 |
+
"value": null,
|
| 42 |
+
"unit": "s",
|
| 43 |
+
"confidence": "est",
|
| 44 |
+
"note": "timing needs >= 60 fps"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"key": "load_launch_ratio",
|
| 48 |
+
"value": null,
|
| 49 |
+
"unit": "ratio",
|
| 50 |
+
"confidence": "est",
|
| 51 |
+
"note": "timing needs >= 60 fps"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "head_movement_pct_height",
|
| 55 |
+
"value": 2.4,
|
| 56 |
+
"unit": "%",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "lead_knee_angle_contact_deg",
|
| 61 |
+
"value": 167.5,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "est"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 67 |
+
"value": 13.4,
|
| 68 |
+
"unit": "deg",
|
| 69 |
+
"confidence": "est"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 73 |
+
"value": 39.1,
|
| 74 |
+
"unit": "deg",
|
| 75 |
+
"confidence": "est"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "com_drift_pct_height",
|
| 79 |
+
"value": -24.8,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "est"
|
| 82 |
+
}
|
| 83 |
+
],
|
| 84 |
+
"quality": {
|
| 85 |
+
"pose_conf": 0.79,
|
| 86 |
+
"blur": 0.14
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"rep": 2,
|
| 91 |
+
"events_ms": {
|
| 92 |
+
"stance_set": 0,
|
| 93 |
+
"load_start": 130,
|
| 94 |
+
"stride": 300,
|
| 95 |
+
"foot_plant": 560,
|
| 96 |
+
"swing_start": 610,
|
| 97 |
+
"contact": 770,
|
| 98 |
+
"finish": 1250
|
| 99 |
+
},
|
| 100 |
+
"metrics": [
|
| 101 |
+
{
|
| 102 |
+
"key": "stride_pct_height",
|
| 103 |
+
"value": 50.2,
|
| 104 |
+
"unit": "%",
|
| 105 |
+
"confidence": "medium"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"key": "foot_plant_to_contact_ms",
|
| 109 |
+
"value": null,
|
| 110 |
+
"unit": "ms",
|
| 111 |
+
"confidence": "est",
|
| 112 |
+
"note": "timing needs >= 60 fps"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_tempo_s",
|
| 116 |
+
"value": null,
|
| 117 |
+
"unit": "s",
|
| 118 |
+
"confidence": "est",
|
| 119 |
+
"note": "timing needs >= 60 fps"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"key": "load_launch_ratio",
|
| 123 |
+
"value": null,
|
| 124 |
+
"unit": "ratio",
|
| 125 |
+
"confidence": "est",
|
| 126 |
+
"note": "timing needs >= 60 fps"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"key": "head_movement_pct_height",
|
| 130 |
+
"value": 2.3,
|
| 131 |
+
"unit": "%",
|
| 132 |
+
"confidence": "medium"
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"key": "lead_knee_angle_contact_deg",
|
| 136 |
+
"value": 168.8,
|
| 137 |
+
"unit": "deg",
|
| 138 |
+
"confidence": "est"
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 142 |
+
"value": 14.4,
|
| 143 |
+
"unit": "deg",
|
| 144 |
+
"confidence": "est"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 148 |
+
"value": 37.7,
|
| 149 |
+
"unit": "deg",
|
| 150 |
+
"confidence": "est"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"key": "com_drift_pct_height",
|
| 154 |
+
"value": -23.2,
|
| 155 |
+
"unit": "%",
|
| 156 |
+
"confidence": "est"
|
| 157 |
+
}
|
| 158 |
+
],
|
| 159 |
+
"quality": {
|
| 160 |
+
"pose_conf": 0.79,
|
| 161 |
+
"blur": 0.11
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"rep": 3,
|
| 166 |
+
"events_ms": {
|
| 167 |
+
"stance_set": 0,
|
| 168 |
+
"load_start": 130,
|
| 169 |
+
"stride": 300,
|
| 170 |
+
"foot_plant": 560,
|
| 171 |
+
"swing_start": 610,
|
| 172 |
+
"contact": 770,
|
| 173 |
+
"finish": 1250
|
| 174 |
+
},
|
| 175 |
+
"metrics": [
|
| 176 |
+
{
|
| 177 |
+
"key": "stride_pct_height",
|
| 178 |
+
"value": 47.0,
|
| 179 |
+
"unit": "%",
|
| 180 |
+
"confidence": "medium"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"key": "foot_plant_to_contact_ms",
|
| 184 |
+
"value": null,
|
| 185 |
+
"unit": "ms",
|
| 186 |
+
"confidence": "est",
|
| 187 |
+
"note": "timing needs >= 60 fps"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"key": "load_tempo_s",
|
| 191 |
+
"value": null,
|
| 192 |
+
"unit": "s",
|
| 193 |
+
"confidence": "est",
|
| 194 |
+
"note": "timing needs >= 60 fps"
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"key": "load_launch_ratio",
|
| 198 |
+
"value": null,
|
| 199 |
+
"unit": "ratio",
|
| 200 |
+
"confidence": "est",
|
| 201 |
+
"note": "timing needs >= 60 fps"
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"key": "head_movement_pct_height",
|
| 205 |
+
"value": 1.5,
|
| 206 |
+
"unit": "%",
|
| 207 |
+
"confidence": "medium"
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"key": "lead_knee_angle_contact_deg",
|
| 211 |
+
"value": 166.2,
|
| 212 |
+
"unit": "deg",
|
| 213 |
+
"confidence": "est"
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 217 |
+
"value": 13.1,
|
| 218 |
+
"unit": "deg",
|
| 219 |
+
"confidence": "est"
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 223 |
+
"value": 41.6,
|
| 224 |
+
"unit": "deg",
|
| 225 |
+
"confidence": "est"
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"key": "com_drift_pct_height",
|
| 229 |
+
"value": -24.6,
|
| 230 |
+
"unit": "%",
|
| 231 |
+
"confidence": "est"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"quality": {
|
| 235 |
+
"pose_conf": 0.88,
|
| 236 |
+
"blur": 0.11
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"rep": 4,
|
| 241 |
+
"events_ms": {
|
| 242 |
+
"stance_set": 0,
|
| 243 |
+
"load_start": 130,
|
| 244 |
+
"stride": 300,
|
| 245 |
+
"foot_plant": 560,
|
| 246 |
+
"swing_start": 610,
|
| 247 |
+
"contact": 770,
|
| 248 |
+
"finish": 1250
|
| 249 |
+
},
|
| 250 |
+
"metrics": [
|
| 251 |
+
{
|
| 252 |
+
"key": "stride_pct_height",
|
| 253 |
+
"value": 49.4,
|
| 254 |
+
"unit": "%",
|
| 255 |
+
"confidence": "medium"
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"key": "foot_plant_to_contact_ms",
|
| 259 |
+
"value": null,
|
| 260 |
+
"unit": "ms",
|
| 261 |
+
"confidence": "est",
|
| 262 |
+
"note": "timing needs >= 60 fps"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "load_tempo_s",
|
| 266 |
+
"value": null,
|
| 267 |
+
"unit": "s",
|
| 268 |
+
"confidence": "est",
|
| 269 |
+
"note": "timing needs >= 60 fps"
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"key": "load_launch_ratio",
|
| 273 |
+
"value": null,
|
| 274 |
+
"unit": "ratio",
|
| 275 |
+
"confidence": "est",
|
| 276 |
+
"note": "timing needs >= 60 fps"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "head_movement_pct_height",
|
| 280 |
+
"value": 2.4,
|
| 281 |
+
"unit": "%",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_angle_contact_deg",
|
| 286 |
+
"value": 166.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "est"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 292 |
+
"value": 17.4,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "est"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 298 |
+
"value": 42.1,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "est"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "com_drift_pct_height",
|
| 304 |
+
"value": -22.7,
|
| 305 |
+
"unit": "%",
|
| 306 |
+
"confidence": "est"
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"quality": {
|
| 310 |
+
"pose_conf": 0.86,
|
| 311 |
+
"blur": 0.12
|
| 312 |
+
}
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"rep": 5,
|
| 316 |
+
"events_ms": {
|
| 317 |
+
"stance_set": 0,
|
| 318 |
+
"load_start": 130,
|
| 319 |
+
"stride": 300,
|
| 320 |
+
"foot_plant": 560,
|
| 321 |
+
"swing_start": 610,
|
| 322 |
+
"contact": 770,
|
| 323 |
+
"finish": 1250
|
| 324 |
+
},
|
| 325 |
+
"metrics": [
|
| 326 |
+
{
|
| 327 |
+
"key": "stride_pct_height",
|
| 328 |
+
"value": 48.6,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "medium"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "foot_plant_to_contact_ms",
|
| 334 |
+
"value": null,
|
| 335 |
+
"unit": "ms",
|
| 336 |
+
"confidence": "est",
|
| 337 |
+
"note": "timing needs >= 60 fps"
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"key": "load_tempo_s",
|
| 341 |
+
"value": null,
|
| 342 |
+
"unit": "s",
|
| 343 |
+
"confidence": "est",
|
| 344 |
+
"note": "timing needs >= 60 fps"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"key": "load_launch_ratio",
|
| 348 |
+
"value": null,
|
| 349 |
+
"unit": "ratio",
|
| 350 |
+
"confidence": "est",
|
| 351 |
+
"note": "timing needs >= 60 fps"
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"key": "head_movement_pct_height",
|
| 355 |
+
"value": 2.2,
|
| 356 |
+
"unit": "%",
|
| 357 |
+
"confidence": "medium"
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"key": "lead_knee_angle_contact_deg",
|
| 361 |
+
"value": 169.3,
|
| 362 |
+
"unit": "deg",
|
| 363 |
+
"confidence": "est"
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 367 |
+
"value": 14.5,
|
| 368 |
+
"unit": "deg",
|
| 369 |
+
"confidence": "est"
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 373 |
+
"value": 40.1,
|
| 374 |
+
"unit": "deg",
|
| 375 |
+
"confidence": "est"
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"key": "com_drift_pct_height",
|
| 379 |
+
"value": -25.9,
|
| 380 |
+
"un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11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 48.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 86.1,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 7.8,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 1.8,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.6,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 16.2,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.8,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -22.9,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.79,
|
| 81 |
+
"blur": 0.09
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 49.3,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 73.0,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 8.3,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.4,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 164.6,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 10.5,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 39.2,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -25.2,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.9,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 49.6,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 79.1,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.2,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 1.9,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 171.4,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 15.1,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 43.4,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -25.4,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.85,
|
| 225 |
+
"blur": 0.09
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 48.1,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 86.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 7.8,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 1.8,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 167.0,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 16.4,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 39.4,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -24.1,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.88,
|
| 297 |
+
"blur": 0.16
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 49.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 90.8,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 0.9,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 7.8,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 2.2,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 166.4,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 15.0,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 40.9,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -26.7,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.8,
|
| 369 |
+
"blur": 0.14
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 50.0,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 91.6,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 1.0,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.1,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.7,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 169.2,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.8,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 40.1,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -26.4,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"quality": {
|
| 440 |
+
"pose_conf": 0.85,
|
| 441 |
+
"blur": 0.13
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
}
|
AI-coach-agent/examples/inputs/hitting_lunging_120fps.json
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "hitting",
|
| 4 |
+
"view": "face_on",
|
| 5 |
+
"fps": 120.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 48.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 131.1,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 7.8,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 1.8,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.6,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 16.2,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.8,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -12.9,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.79,
|
| 81 |
+
"blur": 0.09
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 49.3,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 118.0,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 8.3,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.4,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 164.6,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 10.5,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 39.2,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -15.2,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.9,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 49.6,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 124.1,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.2,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 1.9,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 171.4,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 15.1,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 43.4,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -15.4,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.85,
|
| 225 |
+
"blur": 0.09
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 48.1,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 131.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 7.8,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 1.8,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 167.0,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 16.4,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 39.4,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -14.1,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.88,
|
| 297 |
+
"blur": 0.16
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 49.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 135.8,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 0.9,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 7.8,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 2.2,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 166.4,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 15.0,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 40.9,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -16.7,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.8,
|
| 369 |
+
"blur": 0.14
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 50.0,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 136.6,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 1.0,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.1,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.7,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 169.2,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.8,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 40.1,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -16.4,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"quality": {
|
| 440 |
+
"pose_conf": 0.85,
|
| 441 |
+
"blur": 0.13
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
}
|
AI-coach-agent/examples/inputs/hitting_ok_240fps.json
ADDED
|
@@ -0,0 +1,445 @@
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "hitting",
|
| 4 |
+
"view": "face_on",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 48.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 131.1,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 7.8,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 1.8,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.6,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 16.2,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.8,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -22.9,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.79,
|
| 81 |
+
"blur": 0.09
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 49.3,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 118.0,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 8.3,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.4,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 164.6,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 10.5,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 39.2,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -25.2,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.9,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 49.6,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 124.1,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.2,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 1.9,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 171.4,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 15.1,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 43.4,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -25.4,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.85,
|
| 225 |
+
"blur": 0.09
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 48.1,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 131.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 7.8,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 1.8,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 167.0,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 16.4,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 39.4,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -24.1,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.88,
|
| 297 |
+
"blur": 0.16
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 49.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 135.8,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 0.9,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 7.8,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 2.2,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 166.4,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 15.0,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 40.9,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -26.7,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.8,
|
| 369 |
+
"blur": 0.14
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 50.0,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 136.6,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 1.0,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.1,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.7,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 169.2,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.8,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 40.1,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -26.4,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"quality": {
|
| 440 |
+
"pose_conf": 0.85,
|
| 441 |
+
"blur": 0.13
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
}
|
AI-coach-agent/examples/inputs/hitting_one_bad_rep_240fps.json
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "hitting",
|
| 4 |
+
"view": "face_on",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 49.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 135.5,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 8.5,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 2.1,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.5,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 17.8,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.3,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -24.6,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.9,
|
| 81 |
+
"blur": 0.14
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 54.1,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 131.5,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 7.8,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.0,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 165.3,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 11.0,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 37.7,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -24.9,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.86,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 49.5,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 120.0,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.1,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 2.5,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 166.3,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 13.2,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 37.0,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -25.3,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.83,
|
| 225 |
+
"blur": 0.18
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 33.6,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 114.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 8.2,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 2.1,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 168.9,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 15.1,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 43.1,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -24.8,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.86,
|
| 297 |
+
"blur": 0.12
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 42.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 127.7,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 1.0,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 8.5,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 1.5,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 165.8,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 12.1,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 36.8,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -21.6,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.86,
|
| 369 |
+
"blur": 0.1
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 32.1,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 137.9,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 0.9,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.5,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.9,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 167.7,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.7,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 42.3,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -26.2,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"quality": {
|
| 440 |
+
"pose_conf": 0.81,
|
| 441 |
+
"blur": 0.09
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
}
|
AI-coach-agent/examples/inputs/hitting_overstride_240fps.json
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "hitting",
|
| 4 |
+
"view": "face_on",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 64.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 131.1,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 7.8,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 1.8,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.6,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 16.2,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.8,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -22.9,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.79,
|
| 81 |
+
"blur": 0.09
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 65.3,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 118.0,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 8.3,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.4,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 164.6,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 10.5,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 39.2,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -25.2,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.9,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 65.6,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 124.1,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.2,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 1.9,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 171.4,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 15.1,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 43.4,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -25.4,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.85,
|
| 225 |
+
"blur": 0.09
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 64.1,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 131.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 7.8,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 1.8,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 167.0,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 16.4,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 39.4,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -24.1,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.88,
|
| 297 |
+
"blur": 0.16
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 65.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 135.8,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 0.9,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 7.8,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 2.2,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 166.4,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 15.0,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 40.9,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -26.7,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.8,
|
| 369 |
+
"blur": 0.14
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 66.0,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 136.6,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 1.0,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.1,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.7,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 169.2,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.8,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 40.1,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -26.4,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|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|
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"stance_set": 0,
|
| 16 |
+
"load_start": 130,
|
| 17 |
+
"stride": 300,
|
| 18 |
+
"foot_plant": 560,
|
| 19 |
+
"swing_start": 610,
|
| 20 |
+
"contact": 770,
|
| 21 |
+
"finish": 1250
|
| 22 |
+
},
|
| 23 |
+
"metrics": [
|
| 24 |
+
{
|
| 25 |
+
"key": "stride_pct_height",
|
| 26 |
+
"value": 59.7,
|
| 27 |
+
"unit": "%",
|
| 28 |
+
"confidence": "high"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"key": "foot_plant_to_contact_ms",
|
| 32 |
+
"value": 131.1,
|
| 33 |
+
"unit": "ms",
|
| 34 |
+
"confidence": "medium"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"key": "load_tempo_s",
|
| 38 |
+
"value": 1.0,
|
| 39 |
+
"unit": "s",
|
| 40 |
+
"confidence": "high"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"key": "load_launch_ratio",
|
| 44 |
+
"value": 7.8,
|
| 45 |
+
"unit": "ratio",
|
| 46 |
+
"confidence": "medium"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"key": "head_movement_pct_height",
|
| 50 |
+
"value": 1.8,
|
| 51 |
+
"unit": "%",
|
| 52 |
+
"confidence": "high"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "lead_knee_angle_contact_deg",
|
| 56 |
+
"value": 167.6,
|
| 57 |
+
"unit": "deg",
|
| 58 |
+
"confidence": "medium"
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 62 |
+
"value": 16.2,
|
| 63 |
+
"unit": "deg",
|
| 64 |
+
"confidence": "medium"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 68 |
+
"value": 41.8,
|
| 69 |
+
"unit": "deg",
|
| 70 |
+
"confidence": "est"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"key": "com_drift_pct_height",
|
| 74 |
+
"value": -9.9,
|
| 75 |
+
"unit": "%",
|
| 76 |
+
"confidence": "medium"
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"quality": {
|
| 80 |
+
"pose_conf": 0.79,
|
| 81 |
+
"blur": 0.09
|
| 82 |
+
}
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"rep": 2,
|
| 86 |
+
"events_ms": {
|
| 87 |
+
"stance_set": 0,
|
| 88 |
+
"load_start": 130,
|
| 89 |
+
"stride": 300,
|
| 90 |
+
"foot_plant": 560,
|
| 91 |
+
"swing_start": 610,
|
| 92 |
+
"contact": 770,
|
| 93 |
+
"finish": 1250
|
| 94 |
+
},
|
| 95 |
+
"metrics": [
|
| 96 |
+
{
|
| 97 |
+
"key": "stride_pct_height",
|
| 98 |
+
"value": 60.3,
|
| 99 |
+
"unit": "%",
|
| 100 |
+
"confidence": "high"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"key": "foot_plant_to_contact_ms",
|
| 104 |
+
"value": 118.0,
|
| 105 |
+
"unit": "ms",
|
| 106 |
+
"confidence": "medium"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"key": "load_tempo_s",
|
| 110 |
+
"value": 1.0,
|
| 111 |
+
"unit": "s",
|
| 112 |
+
"confidence": "high"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"key": "load_launch_ratio",
|
| 116 |
+
"value": 8.3,
|
| 117 |
+
"unit": "ratio",
|
| 118 |
+
"confidence": "medium"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"key": "head_movement_pct_height",
|
| 122 |
+
"value": 2.4,
|
| 123 |
+
"unit": "%",
|
| 124 |
+
"confidence": "high"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"key": "lead_knee_angle_contact_deg",
|
| 128 |
+
"value": 164.6,
|
| 129 |
+
"unit": "deg",
|
| 130 |
+
"confidence": "medium"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 134 |
+
"value": 10.5,
|
| 135 |
+
"unit": "deg",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 140 |
+
"value": 39.2,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "com_drift_pct_height",
|
| 146 |
+
"value": -12.2,
|
| 147 |
+
"unit": "%",
|
| 148 |
+
"confidence": "medium"
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"quality": {
|
| 152 |
+
"pose_conf": 0.9,
|
| 153 |
+
"blur": 0.09
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"rep": 3,
|
| 158 |
+
"events_ms": {
|
| 159 |
+
"stance_set": 0,
|
| 160 |
+
"load_start": 130,
|
| 161 |
+
"stride": 300,
|
| 162 |
+
"foot_plant": 560,
|
| 163 |
+
"swing_start": 610,
|
| 164 |
+
"contact": 770,
|
| 165 |
+
"finish": 1250
|
| 166 |
+
},
|
| 167 |
+
"metrics": [
|
| 168 |
+
{
|
| 169 |
+
"key": "stride_pct_height",
|
| 170 |
+
"value": 60.6,
|
| 171 |
+
"unit": "%",
|
| 172 |
+
"confidence": "high"
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"key": "foot_plant_to_contact_ms",
|
| 176 |
+
"value": 124.1,
|
| 177 |
+
"unit": "ms",
|
| 178 |
+
"confidence": "medium"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"key": "load_tempo_s",
|
| 182 |
+
"value": 1.0,
|
| 183 |
+
"unit": "s",
|
| 184 |
+
"confidence": "high"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"key": "load_launch_ratio",
|
| 188 |
+
"value": 8.2,
|
| 189 |
+
"unit": "ratio",
|
| 190 |
+
"confidence": "medium"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"key": "head_movement_pct_height",
|
| 194 |
+
"value": 1.9,
|
| 195 |
+
"unit": "%",
|
| 196 |
+
"confidence": "high"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"key": "lead_knee_angle_contact_deg",
|
| 200 |
+
"value": 171.4,
|
| 201 |
+
"unit": "deg",
|
| 202 |
+
"confidence": "medium"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 206 |
+
"value": 15.1,
|
| 207 |
+
"unit": "deg",
|
| 208 |
+
"confidence": "medium"
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 212 |
+
"value": 43.4,
|
| 213 |
+
"unit": "deg",
|
| 214 |
+
"confidence": "est"
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"key": "com_drift_pct_height",
|
| 218 |
+
"value": -12.4,
|
| 219 |
+
"unit": "%",
|
| 220 |
+
"confidence": "medium"
|
| 221 |
+
}
|
| 222 |
+
],
|
| 223 |
+
"quality": {
|
| 224 |
+
"pose_conf": 0.85,
|
| 225 |
+
"blur": 0.09
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"rep": 4,
|
| 230 |
+
"events_ms": {
|
| 231 |
+
"stance_set": 0,
|
| 232 |
+
"load_start": 130,
|
| 233 |
+
"stride": 300,
|
| 234 |
+
"foot_plant": 560,
|
| 235 |
+
"swing_start": 610,
|
| 236 |
+
"contact": 770,
|
| 237 |
+
"finish": 1250
|
| 238 |
+
},
|
| 239 |
+
"metrics": [
|
| 240 |
+
{
|
| 241 |
+
"key": "stride_pct_height",
|
| 242 |
+
"value": 59.1,
|
| 243 |
+
"unit": "%",
|
| 244 |
+
"confidence": "high"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"key": "foot_plant_to_contact_ms",
|
| 248 |
+
"value": 131.8,
|
| 249 |
+
"unit": "ms",
|
| 250 |
+
"confidence": "medium"
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"key": "load_tempo_s",
|
| 254 |
+
"value": 1.0,
|
| 255 |
+
"unit": "s",
|
| 256 |
+
"confidence": "high"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"key": "load_launch_ratio",
|
| 260 |
+
"value": 7.8,
|
| 261 |
+
"unit": "ratio",
|
| 262 |
+
"confidence": "medium"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"key": "head_movement_pct_height",
|
| 266 |
+
"value": 1.8,
|
| 267 |
+
"unit": "%",
|
| 268 |
+
"confidence": "high"
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"key": "lead_knee_angle_contact_deg",
|
| 272 |
+
"value": 167.0,
|
| 273 |
+
"unit": "deg",
|
| 274 |
+
"confidence": "medium"
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 278 |
+
"value": 16.4,
|
| 279 |
+
"unit": "deg",
|
| 280 |
+
"confidence": "medium"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 284 |
+
"value": 39.4,
|
| 285 |
+
"unit": "deg",
|
| 286 |
+
"confidence": "est"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"key": "com_drift_pct_height",
|
| 290 |
+
"value": -11.1,
|
| 291 |
+
"unit": "%",
|
| 292 |
+
"confidence": "medium"
|
| 293 |
+
}
|
| 294 |
+
],
|
| 295 |
+
"quality": {
|
| 296 |
+
"pose_conf": 0.88,
|
| 297 |
+
"blur": 0.16
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"rep": 5,
|
| 302 |
+
"events_ms": {
|
| 303 |
+
"stance_set": 0,
|
| 304 |
+
"load_start": 130,
|
| 305 |
+
"stride": 300,
|
| 306 |
+
"foot_plant": 560,
|
| 307 |
+
"swing_start": 610,
|
| 308 |
+
"contact": 770,
|
| 309 |
+
"finish": 1250
|
| 310 |
+
},
|
| 311 |
+
"metrics": [
|
| 312 |
+
{
|
| 313 |
+
"key": "stride_pct_height",
|
| 314 |
+
"value": 60.1,
|
| 315 |
+
"unit": "%",
|
| 316 |
+
"confidence": "high"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"key": "foot_plant_to_contact_ms",
|
| 320 |
+
"value": 135.8,
|
| 321 |
+
"unit": "ms",
|
| 322 |
+
"confidence": "medium"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"key": "load_tempo_s",
|
| 326 |
+
"value": 0.9,
|
| 327 |
+
"unit": "s",
|
| 328 |
+
"confidence": "high"
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"key": "load_launch_ratio",
|
| 332 |
+
"value": 7.8,
|
| 333 |
+
"unit": "ratio",
|
| 334 |
+
"confidence": "medium"
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"key": "head_movement_pct_height",
|
| 338 |
+
"value": 2.2,
|
| 339 |
+
"unit": "%",
|
| 340 |
+
"confidence": "high"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"key": "lead_knee_angle_contact_deg",
|
| 344 |
+
"value": 166.4,
|
| 345 |
+
"unit": "deg",
|
| 346 |
+
"confidence": "medium"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 350 |
+
"value": 15.0,
|
| 351 |
+
"unit": "deg",
|
| 352 |
+
"confidence": "medium"
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 356 |
+
"value": 40.9,
|
| 357 |
+
"unit": "deg",
|
| 358 |
+
"confidence": "est"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"key": "com_drift_pct_height",
|
| 362 |
+
"value": -13.7,
|
| 363 |
+
"unit": "%",
|
| 364 |
+
"confidence": "medium"
|
| 365 |
+
}
|
| 366 |
+
],
|
| 367 |
+
"quality": {
|
| 368 |
+
"pose_conf": 0.8,
|
| 369 |
+
"blur": 0.14
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"rep": 6,
|
| 374 |
+
"events_ms": {
|
| 375 |
+
"stance_set": 0,
|
| 376 |
+
"load_start": 130,
|
| 377 |
+
"stride": 300,
|
| 378 |
+
"foot_plant": 560,
|
| 379 |
+
"swing_start": 610,
|
| 380 |
+
"contact": 770,
|
| 381 |
+
"finish": 1250
|
| 382 |
+
},
|
| 383 |
+
"metrics": [
|
| 384 |
+
{
|
| 385 |
+
"key": "stride_pct_height",
|
| 386 |
+
"value": 61.0,
|
| 387 |
+
"unit": "%",
|
| 388 |
+
"confidence": "high"
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"key": "foot_plant_to_contact_ms",
|
| 392 |
+
"value": 136.6,
|
| 393 |
+
"unit": "ms",
|
| 394 |
+
"confidence": "medium"
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"key": "load_tempo_s",
|
| 398 |
+
"value": 1.0,
|
| 399 |
+
"unit": "s",
|
| 400 |
+
"confidence": "high"
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"key": "load_launch_ratio",
|
| 404 |
+
"value": 8.1,
|
| 405 |
+
"unit": "ratio",
|
| 406 |
+
"confidence": "medium"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"key": "head_movement_pct_height",
|
| 410 |
+
"value": 1.7,
|
| 411 |
+
"unit": "%",
|
| 412 |
+
"confidence": "high"
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"key": "lead_knee_angle_contact_deg",
|
| 416 |
+
"value": 169.2,
|
| 417 |
+
"unit": "deg",
|
| 418 |
+
"confidence": "medium"
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 422 |
+
"value": 12.8,
|
| 423 |
+
"unit": "deg",
|
| 424 |
+
"confidence": "medium"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 428 |
+
"value": 40.1,
|
| 429 |
+
"unit": "deg",
|
| 430 |
+
"confidence": "est"
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"key": "com_drift_pct_height",
|
| 434 |
+
"value": -13.4,
|
| 435 |
+
"unit": "%",
|
| 436 |
+
"confidence": "medium"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"quality": {
|
| 440 |
+
"pose_conf": 0.85,
|
| 441 |
+
"blur": 0.13
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
]
|
| 445 |
+
}
|
AI-coach-agent/examples/inputs/pitching_ok_240fps.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "pitching",
|
| 4 |
+
"view": "open_side",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"first_move": 0,
|
| 16 |
+
"leg_lift": 640,
|
| 17 |
+
"hand_break": 790,
|
| 18 |
+
"foot_plant": 1240,
|
| 19 |
+
"release": 1390,
|
| 20 |
+
"finish": 1800
|
| 21 |
+
},
|
| 22 |
+
"metrics": [
|
| 23 |
+
{
|
| 24 |
+
"key": "stride_pct_height",
|
| 25 |
+
"value": 73.6,
|
| 26 |
+
"unit": "%",
|
| 27 |
+
"confidence": "high"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 31 |
+
"value": 47.3,
|
| 32 |
+
"unit": "deg",
|
| 33 |
+
"confidence": "medium"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"key": "lead_knee_flexion_release_deg",
|
| 37 |
+
"value": 40.3,
|
| 38 |
+
"unit": "deg",
|
| 39 |
+
"confidence": "medium"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"key": "lead_knee_block_deg",
|
| 43 |
+
"value": 4.4,
|
| 44 |
+
"unit": "deg",
|
| 45 |
+
"confidence": "medium"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 49 |
+
"value": 29.6,
|
| 50 |
+
"unit": "deg",
|
| 51 |
+
"confidence": "medium"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 55 |
+
"value": 26.6,
|
| 56 |
+
"unit": "deg",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "arm_slot_deg",
|
| 61 |
+
"value": 61.2,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "medium"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "leg_lift_to_fp_ms",
|
| 67 |
+
"value": 650.6,
|
| 68 |
+
"unit": "ms",
|
| 69 |
+
"confidence": "high"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "fp_to_release_ms",
|
| 73 |
+
"value": 140.2,
|
| 74 |
+
"unit": "ms",
|
| 75 |
+
"confidence": "high"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "head_stability_pct_height",
|
| 79 |
+
"value": 22.4,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "high"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"key": "hip_shoulder_sep_fp",
|
| 85 |
+
"value": 46.2,
|
| 86 |
+
"unit": "deg",
|
| 87 |
+
"confidence": "est"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"quality": {
|
| 91 |
+
"pose_conf": 0.83,
|
| 92 |
+
"blur": 0.18
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"rep": 2,
|
| 97 |
+
"events_ms": {
|
| 98 |
+
"first_move": 0,
|
| 99 |
+
"leg_lift": 640,
|
| 100 |
+
"hand_break": 790,
|
| 101 |
+
"foot_plant": 1240,
|
| 102 |
+
"release": 1390,
|
| 103 |
+
"finish": 1800
|
| 104 |
+
},
|
| 105 |
+
"metrics": [
|
| 106 |
+
{
|
| 107 |
+
"key": "stride_pct_height",
|
| 108 |
+
"value": 74.3,
|
| 109 |
+
"unit": "%",
|
| 110 |
+
"confidence": "high"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 114 |
+
"value": 47.3,
|
| 115 |
+
"unit": "deg",
|
| 116 |
+
"confidence": "medium"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "lead_knee_flexion_release_deg",
|
| 120 |
+
"value": 42.5,
|
| 121 |
+
"unit": "deg",
|
| 122 |
+
"confidence": "medium"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"key": "lead_knee_block_deg",
|
| 126 |
+
"value": 1.6,
|
| 127 |
+
"unit": "deg",
|
| 128 |
+
"confidence": "medium"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 132 |
+
"value": 28.4,
|
| 133 |
+
"unit": "deg",
|
| 134 |
+
"confidence": "medium"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 138 |
+
"value": 25.2,
|
| 139 |
+
"unit": "deg",
|
| 140 |
+
"confidence": "medium"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"key": "arm_slot_deg",
|
| 144 |
+
"value": 58.1,
|
| 145 |
+
"unit": "deg",
|
| 146 |
+
"confidence": "medium"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"key": "leg_lift_to_fp_ms",
|
| 150 |
+
"value": 647.6,
|
| 151 |
+
"unit": "ms",
|
| 152 |
+
"confidence": "high"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"key": "fp_to_release_ms",
|
| 156 |
+
"value": 133.7,
|
| 157 |
+
"unit": "ms",
|
| 158 |
+
"confidence": "high"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"key": "head_stability_pct_height",
|
| 162 |
+
"value": 22.8,
|
| 163 |
+
"unit": "%",
|
| 164 |
+
"confidence": "high"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"key": "hip_shoulder_sep_fp",
|
| 168 |
+
"value": 43.1,
|
| 169 |
+
"unit": "deg",
|
| 170 |
+
"confidence": "est"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"quality": {
|
| 174 |
+
"pose_conf": 0.8,
|
| 175 |
+
"blur": 0.09
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"rep": 3,
|
| 180 |
+
"events_ms": {
|
| 181 |
+
"first_move": 0,
|
| 182 |
+
"leg_lift": 640,
|
| 183 |
+
"hand_break": 790,
|
| 184 |
+
"foot_plant": 1240,
|
| 185 |
+
"release": 1390,
|
| 186 |
+
"finish": 1800
|
| 187 |
+
},
|
| 188 |
+
"metrics": [
|
| 189 |
+
{
|
| 190 |
+
"key": "stride_pct_height",
|
| 191 |
+
"value": 73.0,
|
| 192 |
+
"unit": "%",
|
| 193 |
+
"confidence": "high"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 197 |
+
"value": 50.3,
|
| 198 |
+
"unit": "deg",
|
| 199 |
+
"confidence": "medium"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"key": "lead_knee_flexion_release_deg",
|
| 203 |
+
"value": 42.7,
|
| 204 |
+
"unit": "deg",
|
| 205 |
+
"confidence": "medium"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"key": "lead_knee_block_deg",
|
| 209 |
+
"value": 7.4,
|
| 210 |
+
"unit": "deg",
|
| 211 |
+
"confidence": "medium"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 215 |
+
"value": 30.1,
|
| 216 |
+
"unit": "deg",
|
| 217 |
+
"confidence": "medium"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 221 |
+
"value": 25.5,
|
| 222 |
+
"unit": "deg",
|
| 223 |
+
"confidence": "medium"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"key": "arm_slot_deg",
|
| 227 |
+
"value": 58.3,
|
| 228 |
+
"unit": "deg",
|
| 229 |
+
"confidence": "medium"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"key": "leg_lift_to_fp_ms",
|
| 233 |
+
"value": 637.3,
|
| 234 |
+
"unit": "ms",
|
| 235 |
+
"confidence": "high"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"key": "fp_to_release_ms",
|
| 239 |
+
"value": 137.8,
|
| 240 |
+
"unit": "ms",
|
| 241 |
+
"confidence": "high"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"key": "head_stability_pct_height",
|
| 245 |
+
"value": 22.4,
|
| 246 |
+
"unit": "%",
|
| 247 |
+
"confidence": "high"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"key": "hip_shoulder_sep_fp",
|
| 251 |
+
"value": 43.7,
|
| 252 |
+
"unit": "deg",
|
| 253 |
+
"confidence": "est"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
"quality": {
|
| 257 |
+
"pose_conf": 0.82,
|
| 258 |
+
"blur": 0.15
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"rep": 4,
|
| 263 |
+
"events_ms": {
|
| 264 |
+
"first_move": 0,
|
| 265 |
+
"leg_lift": 640,
|
| 266 |
+
"hand_break": 790,
|
| 267 |
+
"foot_plant": 1240,
|
| 268 |
+
"release": 1390,
|
| 269 |
+
"finish": 1800
|
| 270 |
+
},
|
| 271 |
+
"metrics": [
|
| 272 |
+
{
|
| 273 |
+
"key": "stride_pct_height",
|
| 274 |
+
"value": 72.6,
|
| 275 |
+
"unit": "%",
|
| 276 |
+
"confidence": "high"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 280 |
+
"value": 44.0,
|
| 281 |
+
"unit": "deg",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_flexion_release_deg",
|
| 286 |
+
"value": 41.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "medium"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lead_knee_block_deg",
|
| 292 |
+
"value": 5.9,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "medium"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 298 |
+
"value": 28.8,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "medium"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 304 |
+
"value": 27.1,
|
| 305 |
+
"unit": "deg",
|
| 306 |
+
"confidence": "medium"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"key": "arm_slot_deg",
|
| 310 |
+
"value": 61.6,
|
| 311 |
+
"unit": "deg",
|
| 312 |
+
"confidence": "medium"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"key": "leg_lift_to_fp_ms",
|
| 316 |
+
"value": 589.6,
|
| 317 |
+
"unit": "ms",
|
| 318 |
+
"confidence": "high"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"key": "fp_to_release_ms",
|
| 322 |
+
"value": 132.1,
|
| 323 |
+
"unit": "ms",
|
| 324 |
+
"confidence": "high"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"key": "head_stability_pct_height",
|
| 328 |
+
"value": 21.8,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "high"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "hip_shoulder_sep_fp",
|
| 334 |
+
"value": 42.5,
|
| 335 |
+
"unit": "deg",
|
| 336 |
+
"confidence": "est"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"quality": {
|
| 340 |
+
"pose_conf": 0.9,
|
| 341 |
+
"blur": 0.09
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"rep": 5,
|
| 346 |
+
"events_ms": {
|
| 347 |
+
"first_move": 0,
|
| 348 |
+
"leg_lift": 640,
|
| 349 |
+
"hand_break": 790,
|
| 350 |
+
"foot_plant": 1240,
|
| 351 |
+
"release": 1390,
|
| 352 |
+
"finish": 1800
|
| 353 |
+
},
|
| 354 |
+
"metrics": [
|
| 355 |
+
{
|
| 356 |
+
"key": "stride_pct_height",
|
| 357 |
+
"value": 71.8,
|
| 358 |
+
"unit": "%",
|
| 359 |
+
"confidence": "high"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 363 |
+
"value": 48.1,
|
| 364 |
+
"unit": "deg",
|
| 365 |
+
"confidence": "medium"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"key": "lead_knee_flexion_release_deg",
|
| 369 |
+
"value": 43.0,
|
| 370 |
+
"unit": "deg",
|
| 371 |
+
"confidence": "medium"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"key": "lead_knee_block_deg",
|
| 375 |
+
"value": 6.9,
|
| 376 |
+
"unit": "deg",
|
| 377 |
+
"confidence": "medium"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 381 |
+
"value": 33.2,
|
| 382 |
+
"unit": "deg",
|
| 383 |
+
"confidence": "medium"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 387 |
+
"value": 27.7,
|
| 388 |
+
"unit": "deg",
|
| 389 |
+
"confidence": "medium"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"key": "arm_slot_deg",
|
| 393 |
+
"value": 59.2,
|
| 394 |
+
"unit": "deg",
|
| 395 |
+
"confidence": "medium"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"key": "leg_lift_to_fp_ms",
|
| 399 |
+
"value": 607.5,
|
| 400 |
+
"unit": "ms",
|
| 401 |
+
"confidence": "high"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"key": "fp_to_release_ms",
|
| 405 |
+
"value": 137.7,
|
| 406 |
+
"unit": "ms",
|
| 407 |
+
"confidence": "high"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"key": "head_stability_pct_height",
|
| 411 |
+
"value": 21.1,
|
| 412 |
+
"unit": "%",
|
| 413 |
+
"confidence": "high"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"key": "hip_shoulder_sep_fp",
|
| 417 |
+
"value": 43.6,
|
| 418 |
+
"unit": "deg",
|
| 419 |
+
"confidence": "est"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"quality": {
|
| 423 |
+
"pose_conf": 0.85,
|
| 424 |
+
"blur": 0.13
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"rep": 6,
|
| 429 |
+
"events_ms": {
|
| 430 |
+
"first_move": 0,
|
| 431 |
+
"leg_lift": 640,
|
| 432 |
+
"hand_break": 790,
|
| 433 |
+
"foot_plant": 1240,
|
| 434 |
+
"release": 1390,
|
| 435 |
+
"finish": 1800
|
| 436 |
+
},
|
| 437 |
+
"metrics": [
|
| 438 |
+
{
|
| 439 |
+
"key": "stride_pct_height",
|
| 440 |
+
"value": 72.1,
|
| 441 |
+
"unit": "%",
|
| 442 |
+
"confidence": "high"
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 446 |
+
"value": 49.2,
|
| 447 |
+
"unit": "deg",
|
| 448 |
+
"confidence": "medium"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"key": "lead_knee_flexion_release_deg",
|
| 452 |
+
"value": 34.9,
|
| 453 |
+
"unit": "deg",
|
| 454 |
+
"confidence": "medium"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"key": "lead_knee_block_deg",
|
| 458 |
+
"value": 2.1,
|
| 459 |
+
"unit": "deg",
|
| 460 |
+
"confidence": "medium"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 464 |
+
"value": 31.4,
|
| 465 |
+
"unit": "deg",
|
| 466 |
+
"confidence": "medium"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 470 |
+
"value": 29.9,
|
| 471 |
+
"unit": "deg",
|
| 472 |
+
"confidence": "medium"
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"key": "arm_slot_deg",
|
| 476 |
+
"value": 60.2,
|
| 477 |
+
"unit": "deg",
|
| 478 |
+
"confidence": "medium"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"key": "leg_lift_to_fp_ms",
|
| 482 |
+
"value": 592.5,
|
| 483 |
+
"unit": "ms",
|
| 484 |
+
"confidence": "high"
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"key": "fp_to_release_ms",
|
| 488 |
+
"value": 118.9,
|
| 489 |
+
"unit": "ms",
|
| 490 |
+
"confidence": "high"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"key": "head_stability_pct_height",
|
| 494 |
+
"value": 22.5,
|
| 495 |
+
"unit": "%",
|
| 496 |
+
"confidence": "high"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"key": "hip_shoulder_sep_fp",
|
| 500 |
+
"value": 42.8,
|
| 501 |
+
"unit": "deg",
|
| 502 |
+
"confidence": "est"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"quality": {
|
| 506 |
+
"pose_conf": 0.83,
|
| 507 |
+
"blur": 0.16
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"rep": 7,
|
| 512 |
+
"events_ms": {
|
| 513 |
+
"first_move": 0,
|
| 514 |
+
"leg_lift": 640,
|
| 515 |
+
"hand_break": 790,
|
| 516 |
+
"foot_plant": 1240,
|
| 517 |
+
"release": 1390,
|
| 518 |
+
"finish": 1800
|
| 519 |
+
},
|
| 520 |
+
"metrics": [
|
| 521 |
+
{
|
| 522 |
+
"key": "stride_pct_height",
|
| 523 |
+
"value": 75.7,
|
| 524 |
+
"unit": "%",
|
| 525 |
+
"confidence": "high"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 529 |
+
"value": 46.4,
|
| 530 |
+
"unit": "deg",
|
| 531 |
+
"confidence": "medium"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"key": "lead_knee_flexion_release_deg",
|
| 535 |
+
"value": 41.7,
|
| 536 |
+
"unit": "deg",
|
| 537 |
+
"confidence": "medium"
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"key": "lead_knee_block_deg",
|
| 541 |
+
"value": 5.9,
|
| 542 |
+
"unit": "deg",
|
| 543 |
+
"confidence": "medium"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 547 |
+
"value": 33.4,
|
| 548 |
+
"unit": "deg",
|
| 549 |
+
"confidence": "medium"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 553 |
+
"value": 28.2,
|
| 554 |
+
"unit": "deg",
|
| 555 |
+
"confidence": "medium"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"key": "arm_slot_deg",
|
| 559 |
+
"value": 60.0,
|
| 560 |
+
"unit": "deg",
|
| 561 |
+
"confidence": "medium"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"key": "leg_lift_to_fp_ms",
|
| 565 |
+
"value": 653.7,
|
| 566 |
+
"unit": "ms",
|
| 567 |
+
"confidence": "high"
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"key": "fp_to_release_ms",
|
| 571 |
+
"value": 124.6,
|
| 572 |
+
"unit": "ms",
|
| 573 |
+
"confidence": "high"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"key": "head_stability_pct_height",
|
| 577 |
+
"value": 23.9,
|
| 578 |
+
"unit": "%",
|
| 579 |
+
"confidence": "high"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"key": "hip_shoulder_sep_fp",
|
| 583 |
+
"value": 47.9,
|
| 584 |
+
"unit": "deg",
|
| 585 |
+
"confidence": "est"
|
| 586 |
+
}
|
| 587 |
+
],
|
| 588 |
+
"quality": {
|
| 589 |
+
"pose_conf": 0.85,
|
| 590 |
+
"blur": 0.19
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"rep": 8,
|
| 595 |
+
"events_ms": {
|
| 596 |
+
"first_move": 0,
|
| 597 |
+
"leg_lift": 640,
|
| 598 |
+
"hand_break": 790,
|
| 599 |
+
"foot_plant": 1240,
|
| 600 |
+
"release": 1390,
|
| 601 |
+
"finish": 1800
|
| 602 |
+
},
|
| 603 |
+
"metrics": [
|
| 604 |
+
{
|
| 605 |
+
"key": "stride_pct_height",
|
| 606 |
+
"value": 74.8,
|
| 607 |
+
"unit": "%",
|
| 608 |
+
"confidence": "high"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 612 |
+
"value": 48.1,
|
| 613 |
+
"unit": "deg",
|
| 614 |
+
"confidence": "medium"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"key": "lead_knee_flexion_release_deg",
|
| 618 |
+
"value": 35.6,
|
| 619 |
+
"unit": "deg",
|
| 620 |
+
"confidence": "medium"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"key": "lead_knee_block_deg",
|
| 624 |
+
"value": 4.6,
|
| 625 |
+
"unit": "deg",
|
| 626 |
+
"confidence": "medium"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 630 |
+
"value": 32.5,
|
| 631 |
+
"unit": "deg",
|
| 632 |
+
"confidence": "medium"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 636 |
+
"value": 24.4,
|
| 637 |
+
"unit": "deg",
|
| 638 |
+
"confidence": "medium"
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"key": "arm_slot_deg",
|
| 642 |
+
"value": 62.2,
|
| 643 |
+
"unit": "deg",
|
| 644 |
+
"confidence": "medium"
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"key": "leg_lift_to_fp_ms",
|
| 648 |
+
"value": 653.8,
|
| 649 |
+
"unit": "ms",
|
| 650 |
+
"confidence": "high"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"key": "fp_to_release_ms",
|
| 654 |
+
"value": 133.1,
|
| 655 |
+
"unit": "ms",
|
| 656 |
+
"confidence": "high"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"key": "head_stability_pct_height",
|
| 660 |
+
"value": 22.5,
|
| 661 |
+
"unit": "%",
|
| 662 |
+
"confidence": "high"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"key": "hip_shoulder_sep_fp",
|
| 666 |
+
"value": 46.9,
|
| 667 |
+
"unit": "deg",
|
| 668 |
+
"confidence": "est"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"quality": {
|
| 672 |
+
"pose_conf": 0.81,
|
| 673 |
+
"blur": 0.14
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"arm_care": {
|
| 678 |
+
"known": true,
|
| 679 |
+
"pitch_count_today": 8,
|
| 680 |
+
"daily_max": 95,
|
| 681 |
+
"next_eligible_date": "2026-10-11",
|
| 682 |
+
"alerts": []
|
| 683 |
+
}
|
| 684 |
+
}
|
AI-coach-agent/examples/inputs/pitching_short_stride_240fps.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "pitching",
|
| 4 |
+
"view": "open_side",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"first_move": 0,
|
| 16 |
+
"leg_lift": 640,
|
| 17 |
+
"hand_break": 790,
|
| 18 |
+
"foot_plant": 1240,
|
| 19 |
+
"release": 1390,
|
| 20 |
+
"finish": 1800
|
| 21 |
+
},
|
| 22 |
+
"metrics": [
|
| 23 |
+
{
|
| 24 |
+
"key": "stride_pct_height",
|
| 25 |
+
"value": 55.6,
|
| 26 |
+
"unit": "%",
|
| 27 |
+
"confidence": "high"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 31 |
+
"value": 47.3,
|
| 32 |
+
"unit": "deg",
|
| 33 |
+
"confidence": "medium"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"key": "lead_knee_flexion_release_deg",
|
| 37 |
+
"value": 40.3,
|
| 38 |
+
"unit": "deg",
|
| 39 |
+
"confidence": "medium"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"key": "lead_knee_block_deg",
|
| 43 |
+
"value": 4.4,
|
| 44 |
+
"unit": "deg",
|
| 45 |
+
"confidence": "medium"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 49 |
+
"value": 29.6,
|
| 50 |
+
"unit": "deg",
|
| 51 |
+
"confidence": "medium"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 55 |
+
"value": 26.6,
|
| 56 |
+
"unit": "deg",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "arm_slot_deg",
|
| 61 |
+
"value": 61.2,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "medium"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "leg_lift_to_fp_ms",
|
| 67 |
+
"value": 650.6,
|
| 68 |
+
"unit": "ms",
|
| 69 |
+
"confidence": "high"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "fp_to_release_ms",
|
| 73 |
+
"value": 140.2,
|
| 74 |
+
"unit": "ms",
|
| 75 |
+
"confidence": "high"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "head_stability_pct_height",
|
| 79 |
+
"value": 22.4,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "high"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"key": "hip_shoulder_sep_fp",
|
| 85 |
+
"value": 46.2,
|
| 86 |
+
"unit": "deg",
|
| 87 |
+
"confidence": "est"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"quality": {
|
| 91 |
+
"pose_conf": 0.83,
|
| 92 |
+
"blur": 0.18
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"rep": 2,
|
| 97 |
+
"events_ms": {
|
| 98 |
+
"first_move": 0,
|
| 99 |
+
"leg_lift": 640,
|
| 100 |
+
"hand_break": 790,
|
| 101 |
+
"foot_plant": 1240,
|
| 102 |
+
"release": 1390,
|
| 103 |
+
"finish": 1800
|
| 104 |
+
},
|
| 105 |
+
"metrics": [
|
| 106 |
+
{
|
| 107 |
+
"key": "stride_pct_height",
|
| 108 |
+
"value": 56.3,
|
| 109 |
+
"unit": "%",
|
| 110 |
+
"confidence": "high"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 114 |
+
"value": 47.3,
|
| 115 |
+
"unit": "deg",
|
| 116 |
+
"confidence": "medium"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "lead_knee_flexion_release_deg",
|
| 120 |
+
"value": 42.5,
|
| 121 |
+
"unit": "deg",
|
| 122 |
+
"confidence": "medium"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"key": "lead_knee_block_deg",
|
| 126 |
+
"value": 1.6,
|
| 127 |
+
"unit": "deg",
|
| 128 |
+
"confidence": "medium"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 132 |
+
"value": 28.4,
|
| 133 |
+
"unit": "deg",
|
| 134 |
+
"confidence": "medium"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 138 |
+
"value": 25.2,
|
| 139 |
+
"unit": "deg",
|
| 140 |
+
"confidence": "medium"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"key": "arm_slot_deg",
|
| 144 |
+
"value": 58.1,
|
| 145 |
+
"unit": "deg",
|
| 146 |
+
"confidence": "medium"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"key": "leg_lift_to_fp_ms",
|
| 150 |
+
"value": 647.6,
|
| 151 |
+
"unit": "ms",
|
| 152 |
+
"confidence": "high"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"key": "fp_to_release_ms",
|
| 156 |
+
"value": 133.7,
|
| 157 |
+
"unit": "ms",
|
| 158 |
+
"confidence": "high"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"key": "head_stability_pct_height",
|
| 162 |
+
"value": 22.8,
|
| 163 |
+
"unit": "%",
|
| 164 |
+
"confidence": "high"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"key": "hip_shoulder_sep_fp",
|
| 168 |
+
"value": 43.1,
|
| 169 |
+
"unit": "deg",
|
| 170 |
+
"confidence": "est"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"quality": {
|
| 174 |
+
"pose_conf": 0.8,
|
| 175 |
+
"blur": 0.09
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"rep": 3,
|
| 180 |
+
"events_ms": {
|
| 181 |
+
"first_move": 0,
|
| 182 |
+
"leg_lift": 640,
|
| 183 |
+
"hand_break": 790,
|
| 184 |
+
"foot_plant": 1240,
|
| 185 |
+
"release": 1390,
|
| 186 |
+
"finish": 1800
|
| 187 |
+
},
|
| 188 |
+
"metrics": [
|
| 189 |
+
{
|
| 190 |
+
"key": "stride_pct_height",
|
| 191 |
+
"value": 55.0,
|
| 192 |
+
"unit": "%",
|
| 193 |
+
"confidence": "high"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 197 |
+
"value": 50.3,
|
| 198 |
+
"unit": "deg",
|
| 199 |
+
"confidence": "medium"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"key": "lead_knee_flexion_release_deg",
|
| 203 |
+
"value": 42.7,
|
| 204 |
+
"unit": "deg",
|
| 205 |
+
"confidence": "medium"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"key": "lead_knee_block_deg",
|
| 209 |
+
"value": 7.4,
|
| 210 |
+
"unit": "deg",
|
| 211 |
+
"confidence": "medium"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 215 |
+
"value": 30.1,
|
| 216 |
+
"unit": "deg",
|
| 217 |
+
"confidence": "medium"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 221 |
+
"value": 25.5,
|
| 222 |
+
"unit": "deg",
|
| 223 |
+
"confidence": "medium"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"key": "arm_slot_deg",
|
| 227 |
+
"value": 58.3,
|
| 228 |
+
"unit": "deg",
|
| 229 |
+
"confidence": "medium"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"key": "leg_lift_to_fp_ms",
|
| 233 |
+
"value": 637.3,
|
| 234 |
+
"unit": "ms",
|
| 235 |
+
"confidence": "high"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"key": "fp_to_release_ms",
|
| 239 |
+
"value": 137.8,
|
| 240 |
+
"unit": "ms",
|
| 241 |
+
"confidence": "high"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"key": "head_stability_pct_height",
|
| 245 |
+
"value": 22.4,
|
| 246 |
+
"unit": "%",
|
| 247 |
+
"confidence": "high"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"key": "hip_shoulder_sep_fp",
|
| 251 |
+
"value": 43.7,
|
| 252 |
+
"unit": "deg",
|
| 253 |
+
"confidence": "est"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
"quality": {
|
| 257 |
+
"pose_conf": 0.82,
|
| 258 |
+
"blur": 0.15
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"rep": 4,
|
| 263 |
+
"events_ms": {
|
| 264 |
+
"first_move": 0,
|
| 265 |
+
"leg_lift": 640,
|
| 266 |
+
"hand_break": 790,
|
| 267 |
+
"foot_plant": 1240,
|
| 268 |
+
"release": 1390,
|
| 269 |
+
"finish": 1800
|
| 270 |
+
},
|
| 271 |
+
"metrics": [
|
| 272 |
+
{
|
| 273 |
+
"key": "stride_pct_height",
|
| 274 |
+
"value": 54.6,
|
| 275 |
+
"unit": "%",
|
| 276 |
+
"confidence": "high"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 280 |
+
"value": 44.0,
|
| 281 |
+
"unit": "deg",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_flexion_release_deg",
|
| 286 |
+
"value": 41.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "medium"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lead_knee_block_deg",
|
| 292 |
+
"value": 5.9,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "medium"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 298 |
+
"value": 28.8,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "medium"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 304 |
+
"value": 27.1,
|
| 305 |
+
"unit": "deg",
|
| 306 |
+
"confidence": "medium"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"key": "arm_slot_deg",
|
| 310 |
+
"value": 61.6,
|
| 311 |
+
"unit": "deg",
|
| 312 |
+
"confidence": "medium"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"key": "leg_lift_to_fp_ms",
|
| 316 |
+
"value": 589.6,
|
| 317 |
+
"unit": "ms",
|
| 318 |
+
"confidence": "high"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"key": "fp_to_release_ms",
|
| 322 |
+
"value": 132.1,
|
| 323 |
+
"unit": "ms",
|
| 324 |
+
"confidence": "high"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"key": "head_stability_pct_height",
|
| 328 |
+
"value": 21.8,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "high"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "hip_shoulder_sep_fp",
|
| 334 |
+
"value": 42.5,
|
| 335 |
+
"unit": "deg",
|
| 336 |
+
"confidence": "est"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"quality": {
|
| 340 |
+
"pose_conf": 0.9,
|
| 341 |
+
"blur": 0.09
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"rep": 5,
|
| 346 |
+
"events_ms": {
|
| 347 |
+
"first_move": 0,
|
| 348 |
+
"leg_lift": 640,
|
| 349 |
+
"hand_break": 790,
|
| 350 |
+
"foot_plant": 1240,
|
| 351 |
+
"release": 1390,
|
| 352 |
+
"finish": 1800
|
| 353 |
+
},
|
| 354 |
+
"metrics": [
|
| 355 |
+
{
|
| 356 |
+
"key": "stride_pct_height",
|
| 357 |
+
"value": 53.8,
|
| 358 |
+
"unit": "%",
|
| 359 |
+
"confidence": "high"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 363 |
+
"value": 48.1,
|
| 364 |
+
"unit": "deg",
|
| 365 |
+
"confidence": "medium"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"key": "lead_knee_flexion_release_deg",
|
| 369 |
+
"value": 43.0,
|
| 370 |
+
"unit": "deg",
|
| 371 |
+
"confidence": "medium"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"key": "lead_knee_block_deg",
|
| 375 |
+
"value": 6.9,
|
| 376 |
+
"unit": "deg",
|
| 377 |
+
"confidence": "medium"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 381 |
+
"value": 33.2,
|
| 382 |
+
"unit": "deg",
|
| 383 |
+
"confidence": "medium"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 387 |
+
"value": 27.7,
|
| 388 |
+
"unit": "deg",
|
| 389 |
+
"confidence": "medium"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"key": "arm_slot_deg",
|
| 393 |
+
"value": 59.2,
|
| 394 |
+
"unit": "deg",
|
| 395 |
+
"confidence": "medium"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"key": "leg_lift_to_fp_ms",
|
| 399 |
+
"value": 607.5,
|
| 400 |
+
"unit": "ms",
|
| 401 |
+
"confidence": "high"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"key": "fp_to_release_ms",
|
| 405 |
+
"value": 137.7,
|
| 406 |
+
"unit": "ms",
|
| 407 |
+
"confidence": "high"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"key": "head_stability_pct_height",
|
| 411 |
+
"value": 21.1,
|
| 412 |
+
"unit": "%",
|
| 413 |
+
"confidence": "high"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"key": "hip_shoulder_sep_fp",
|
| 417 |
+
"value": 43.6,
|
| 418 |
+
"unit": "deg",
|
| 419 |
+
"confidence": "est"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"quality": {
|
| 423 |
+
"pose_conf": 0.85,
|
| 424 |
+
"blur": 0.13
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"rep": 6,
|
| 429 |
+
"events_ms": {
|
| 430 |
+
"first_move": 0,
|
| 431 |
+
"leg_lift": 640,
|
| 432 |
+
"hand_break": 790,
|
| 433 |
+
"foot_plant": 1240,
|
| 434 |
+
"release": 1390,
|
| 435 |
+
"finish": 1800
|
| 436 |
+
},
|
| 437 |
+
"metrics": [
|
| 438 |
+
{
|
| 439 |
+
"key": "stride_pct_height",
|
| 440 |
+
"value": 54.1,
|
| 441 |
+
"unit": "%",
|
| 442 |
+
"confidence": "high"
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 446 |
+
"value": 49.2,
|
| 447 |
+
"unit": "deg",
|
| 448 |
+
"confidence": "medium"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"key": "lead_knee_flexion_release_deg",
|
| 452 |
+
"value": 34.9,
|
| 453 |
+
"unit": "deg",
|
| 454 |
+
"confidence": "medium"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"key": "lead_knee_block_deg",
|
| 458 |
+
"value": 2.1,
|
| 459 |
+
"unit": "deg",
|
| 460 |
+
"confidence": "medium"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 464 |
+
"value": 31.4,
|
| 465 |
+
"unit": "deg",
|
| 466 |
+
"confidence": "medium"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 470 |
+
"value": 29.9,
|
| 471 |
+
"unit": "deg",
|
| 472 |
+
"confidence": "medium"
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"key": "arm_slot_deg",
|
| 476 |
+
"value": 60.2,
|
| 477 |
+
"unit": "deg",
|
| 478 |
+
"confidence": "medium"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"key": "leg_lift_to_fp_ms",
|
| 482 |
+
"value": 592.5,
|
| 483 |
+
"unit": "ms",
|
| 484 |
+
"confidence": "high"
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"key": "fp_to_release_ms",
|
| 488 |
+
"value": 118.9,
|
| 489 |
+
"unit": "ms",
|
| 490 |
+
"confidence": "high"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"key": "head_stability_pct_height",
|
| 494 |
+
"value": 22.5,
|
| 495 |
+
"unit": "%",
|
| 496 |
+
"confidence": "high"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"key": "hip_shoulder_sep_fp",
|
| 500 |
+
"value": 42.8,
|
| 501 |
+
"unit": "deg",
|
| 502 |
+
"confidence": "est"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"quality": {
|
| 506 |
+
"pose_conf": 0.83,
|
| 507 |
+
"blur": 0.16
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"rep": 7,
|
| 512 |
+
"events_ms": {
|
| 513 |
+
"first_move": 0,
|
| 514 |
+
"leg_lift": 640,
|
| 515 |
+
"hand_break": 790,
|
| 516 |
+
"foot_plant": 1240,
|
| 517 |
+
"release": 1390,
|
| 518 |
+
"finish": 1800
|
| 519 |
+
},
|
| 520 |
+
"metrics": [
|
| 521 |
+
{
|
| 522 |
+
"key": "stride_pct_height",
|
| 523 |
+
"value": 57.7,
|
| 524 |
+
"unit": "%",
|
| 525 |
+
"confidence": "high"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 529 |
+
"value": 46.4,
|
| 530 |
+
"unit": "deg",
|
| 531 |
+
"confidence": "medium"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"key": "lead_knee_flexion_release_deg",
|
| 535 |
+
"value": 41.7,
|
| 536 |
+
"unit": "deg",
|
| 537 |
+
"confidence": "medium"
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"key": "lead_knee_block_deg",
|
| 541 |
+
"value": 5.9,
|
| 542 |
+
"unit": "deg",
|
| 543 |
+
"confidence": "medium"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 547 |
+
"value": 33.4,
|
| 548 |
+
"unit": "deg",
|
| 549 |
+
"confidence": "medium"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 553 |
+
"value": 28.2,
|
| 554 |
+
"unit": "deg",
|
| 555 |
+
"confidence": "medium"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"key": "arm_slot_deg",
|
| 559 |
+
"value": 60.0,
|
| 560 |
+
"unit": "deg",
|
| 561 |
+
"confidence": "medium"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"key": "leg_lift_to_fp_ms",
|
| 565 |
+
"value": 653.7,
|
| 566 |
+
"unit": "ms",
|
| 567 |
+
"confidence": "high"
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"key": "fp_to_release_ms",
|
| 571 |
+
"value": 124.6,
|
| 572 |
+
"unit": "ms",
|
| 573 |
+
"confidence": "high"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"key": "head_stability_pct_height",
|
| 577 |
+
"value": 23.9,
|
| 578 |
+
"unit": "%",
|
| 579 |
+
"confidence": "high"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"key": "hip_shoulder_sep_fp",
|
| 583 |
+
"value": 47.9,
|
| 584 |
+
"unit": "deg",
|
| 585 |
+
"confidence": "est"
|
| 586 |
+
}
|
| 587 |
+
],
|
| 588 |
+
"quality": {
|
| 589 |
+
"pose_conf": 0.85,
|
| 590 |
+
"blur": 0.19
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"rep": 8,
|
| 595 |
+
"events_ms": {
|
| 596 |
+
"first_move": 0,
|
| 597 |
+
"leg_lift": 640,
|
| 598 |
+
"hand_break": 790,
|
| 599 |
+
"foot_plant": 1240,
|
| 600 |
+
"release": 1390,
|
| 601 |
+
"finish": 1800
|
| 602 |
+
},
|
| 603 |
+
"metrics": [
|
| 604 |
+
{
|
| 605 |
+
"key": "stride_pct_height",
|
| 606 |
+
"value": 56.8,
|
| 607 |
+
"unit": "%",
|
| 608 |
+
"confidence": "high"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 612 |
+
"value": 48.1,
|
| 613 |
+
"unit": "deg",
|
| 614 |
+
"confidence": "medium"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"key": "lead_knee_flexion_release_deg",
|
| 618 |
+
"value": 35.6,
|
| 619 |
+
"unit": "deg",
|
| 620 |
+
"confidence": "medium"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"key": "lead_knee_block_deg",
|
| 624 |
+
"value": 4.6,
|
| 625 |
+
"unit": "deg",
|
| 626 |
+
"confidence": "medium"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 630 |
+
"value": 32.5,
|
| 631 |
+
"unit": "deg",
|
| 632 |
+
"confidence": "medium"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 636 |
+
"value": 24.4,
|
| 637 |
+
"unit": "deg",
|
| 638 |
+
"confidence": "medium"
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"key": "arm_slot_deg",
|
| 642 |
+
"value": 62.2,
|
| 643 |
+
"unit": "deg",
|
| 644 |
+
"confidence": "medium"
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"key": "leg_lift_to_fp_ms",
|
| 648 |
+
"value": 653.8,
|
| 649 |
+
"unit": "ms",
|
| 650 |
+
"confidence": "high"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"key": "fp_to_release_ms",
|
| 654 |
+
"value": 133.1,
|
| 655 |
+
"unit": "ms",
|
| 656 |
+
"confidence": "high"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"key": "head_stability_pct_height",
|
| 660 |
+
"value": 22.5,
|
| 661 |
+
"unit": "%",
|
| 662 |
+
"confidence": "high"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"key": "hip_shoulder_sep_fp",
|
| 666 |
+
"value": 46.9,
|
| 667 |
+
"unit": "deg",
|
| 668 |
+
"confidence": "est"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"quality": {
|
| 672 |
+
"pose_conf": 0.81,
|
| 673 |
+
"blur": 0.14
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"arm_care": {
|
| 678 |
+
"known": true,
|
| 679 |
+
"pitch_count_today": 8,
|
| 680 |
+
"daily_max": 95,
|
| 681 |
+
"next_eligible_date": "2026-10-11",
|
| 682 |
+
"alerts": []
|
| 683 |
+
}
|
| 684 |
+
}
|
AI-coach-agent/examples/inputs/pitching_short_stride_hs_rough_range_240fps.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "pitching",
|
| 4 |
+
"view": "open_side",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "hs_varsity",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"first_move": 0,
|
| 16 |
+
"leg_lift": 640,
|
| 17 |
+
"hand_break": 790,
|
| 18 |
+
"foot_plant": 1240,
|
| 19 |
+
"release": 1390,
|
| 20 |
+
"finish": 1800
|
| 21 |
+
},
|
| 22 |
+
"metrics": [
|
| 23 |
+
{
|
| 24 |
+
"key": "stride_pct_height",
|
| 25 |
+
"value": 59.6,
|
| 26 |
+
"unit": "%",
|
| 27 |
+
"confidence": "high"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 31 |
+
"value": 47.3,
|
| 32 |
+
"unit": "deg",
|
| 33 |
+
"confidence": "medium"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"key": "lead_knee_flexion_release_deg",
|
| 37 |
+
"value": 40.3,
|
| 38 |
+
"unit": "deg",
|
| 39 |
+
"confidence": "medium"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"key": "lead_knee_block_deg",
|
| 43 |
+
"value": 4.4,
|
| 44 |
+
"unit": "deg",
|
| 45 |
+
"confidence": "medium"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 49 |
+
"value": 29.6,
|
| 50 |
+
"unit": "deg",
|
| 51 |
+
"confidence": "medium"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 55 |
+
"value": 26.6,
|
| 56 |
+
"unit": "deg",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "arm_slot_deg",
|
| 61 |
+
"value": 61.2,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "medium"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "leg_lift_to_fp_ms",
|
| 67 |
+
"value": 650.6,
|
| 68 |
+
"unit": "ms",
|
| 69 |
+
"confidence": "high"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "fp_to_release_ms",
|
| 73 |
+
"value": 140.2,
|
| 74 |
+
"unit": "ms",
|
| 75 |
+
"confidence": "high"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "head_stability_pct_height",
|
| 79 |
+
"value": 22.4,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "high"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"key": "hip_shoulder_sep_fp",
|
| 85 |
+
"value": 46.2,
|
| 86 |
+
"unit": "deg",
|
| 87 |
+
"confidence": "est"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"quality": {
|
| 91 |
+
"pose_conf": 0.83,
|
| 92 |
+
"blur": 0.18
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"rep": 2,
|
| 97 |
+
"events_ms": {
|
| 98 |
+
"first_move": 0,
|
| 99 |
+
"leg_lift": 640,
|
| 100 |
+
"hand_break": 790,
|
| 101 |
+
"foot_plant": 1240,
|
| 102 |
+
"release": 1390,
|
| 103 |
+
"finish": 1800
|
| 104 |
+
},
|
| 105 |
+
"metrics": [
|
| 106 |
+
{
|
| 107 |
+
"key": "stride_pct_height",
|
| 108 |
+
"value": 60.3,
|
| 109 |
+
"unit": "%",
|
| 110 |
+
"confidence": "high"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 114 |
+
"value": 47.3,
|
| 115 |
+
"unit": "deg",
|
| 116 |
+
"confidence": "medium"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "lead_knee_flexion_release_deg",
|
| 120 |
+
"value": 42.5,
|
| 121 |
+
"unit": "deg",
|
| 122 |
+
"confidence": "medium"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"key": "lead_knee_block_deg",
|
| 126 |
+
"value": 1.6,
|
| 127 |
+
"unit": "deg",
|
| 128 |
+
"confidence": "medium"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 132 |
+
"value": 28.4,
|
| 133 |
+
"unit": "deg",
|
| 134 |
+
"confidence": "medium"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 138 |
+
"value": 25.2,
|
| 139 |
+
"unit": "deg",
|
| 140 |
+
"confidence": "medium"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"key": "arm_slot_deg",
|
| 144 |
+
"value": 58.1,
|
| 145 |
+
"unit": "deg",
|
| 146 |
+
"confidence": "medium"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"key": "leg_lift_to_fp_ms",
|
| 150 |
+
"value": 647.6,
|
| 151 |
+
"unit": "ms",
|
| 152 |
+
"confidence": "high"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"key": "fp_to_release_ms",
|
| 156 |
+
"value": 133.7,
|
| 157 |
+
"unit": "ms",
|
| 158 |
+
"confidence": "high"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"key": "head_stability_pct_height",
|
| 162 |
+
"value": 22.8,
|
| 163 |
+
"unit": "%",
|
| 164 |
+
"confidence": "high"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"key": "hip_shoulder_sep_fp",
|
| 168 |
+
"value": 43.1,
|
| 169 |
+
"unit": "deg",
|
| 170 |
+
"confidence": "est"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"quality": {
|
| 174 |
+
"pose_conf": 0.8,
|
| 175 |
+
"blur": 0.09
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"rep": 3,
|
| 180 |
+
"events_ms": {
|
| 181 |
+
"first_move": 0,
|
| 182 |
+
"leg_lift": 640,
|
| 183 |
+
"hand_break": 790,
|
| 184 |
+
"foot_plant": 1240,
|
| 185 |
+
"release": 1390,
|
| 186 |
+
"finish": 1800
|
| 187 |
+
},
|
| 188 |
+
"metrics": [
|
| 189 |
+
{
|
| 190 |
+
"key": "stride_pct_height",
|
| 191 |
+
"value": 59.0,
|
| 192 |
+
"unit": "%",
|
| 193 |
+
"confidence": "high"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 197 |
+
"value": 50.3,
|
| 198 |
+
"unit": "deg",
|
| 199 |
+
"confidence": "medium"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"key": "lead_knee_flexion_release_deg",
|
| 203 |
+
"value": 42.7,
|
| 204 |
+
"unit": "deg",
|
| 205 |
+
"confidence": "medium"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"key": "lead_knee_block_deg",
|
| 209 |
+
"value": 7.4,
|
| 210 |
+
"unit": "deg",
|
| 211 |
+
"confidence": "medium"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 215 |
+
"value": 30.1,
|
| 216 |
+
"unit": "deg",
|
| 217 |
+
"confidence": "medium"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 221 |
+
"value": 25.5,
|
| 222 |
+
"unit": "deg",
|
| 223 |
+
"confidence": "medium"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"key": "arm_slot_deg",
|
| 227 |
+
"value": 58.3,
|
| 228 |
+
"unit": "deg",
|
| 229 |
+
"confidence": "medium"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"key": "leg_lift_to_fp_ms",
|
| 233 |
+
"value": 637.3,
|
| 234 |
+
"unit": "ms",
|
| 235 |
+
"confidence": "high"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"key": "fp_to_release_ms",
|
| 239 |
+
"value": 137.8,
|
| 240 |
+
"unit": "ms",
|
| 241 |
+
"confidence": "high"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"key": "head_stability_pct_height",
|
| 245 |
+
"value": 22.4,
|
| 246 |
+
"unit": "%",
|
| 247 |
+
"confidence": "high"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"key": "hip_shoulder_sep_fp",
|
| 251 |
+
"value": 43.7,
|
| 252 |
+
"unit": "deg",
|
| 253 |
+
"confidence": "est"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
"quality": {
|
| 257 |
+
"pose_conf": 0.82,
|
| 258 |
+
"blur": 0.15
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"rep": 4,
|
| 263 |
+
"events_ms": {
|
| 264 |
+
"first_move": 0,
|
| 265 |
+
"leg_lift": 640,
|
| 266 |
+
"hand_break": 790,
|
| 267 |
+
"foot_plant": 1240,
|
| 268 |
+
"release": 1390,
|
| 269 |
+
"finish": 1800
|
| 270 |
+
},
|
| 271 |
+
"metrics": [
|
| 272 |
+
{
|
| 273 |
+
"key": "stride_pct_height",
|
| 274 |
+
"value": 58.6,
|
| 275 |
+
"unit": "%",
|
| 276 |
+
"confidence": "high"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 280 |
+
"value": 44.0,
|
| 281 |
+
"unit": "deg",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_flexion_release_deg",
|
| 286 |
+
"value": 41.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "medium"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lead_knee_block_deg",
|
| 292 |
+
"value": 5.9,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "medium"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 298 |
+
"value": 28.8,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "medium"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 304 |
+
"value": 27.1,
|
| 305 |
+
"unit": "deg",
|
| 306 |
+
"confidence": "medium"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"key": "arm_slot_deg",
|
| 310 |
+
"value": 61.6,
|
| 311 |
+
"unit": "deg",
|
| 312 |
+
"confidence": "medium"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"key": "leg_lift_to_fp_ms",
|
| 316 |
+
"value": 589.6,
|
| 317 |
+
"unit": "ms",
|
| 318 |
+
"confidence": "high"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"key": "fp_to_release_ms",
|
| 322 |
+
"value": 132.1,
|
| 323 |
+
"unit": "ms",
|
| 324 |
+
"confidence": "high"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"key": "head_stability_pct_height",
|
| 328 |
+
"value": 21.8,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "high"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "hip_shoulder_sep_fp",
|
| 334 |
+
"value": 42.5,
|
| 335 |
+
"unit": "deg",
|
| 336 |
+
"confidence": "est"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"quality": {
|
| 340 |
+
"pose_conf": 0.9,
|
| 341 |
+
"blur": 0.09
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"rep": 5,
|
| 346 |
+
"events_ms": {
|
| 347 |
+
"first_move": 0,
|
| 348 |
+
"leg_lift": 640,
|
| 349 |
+
"hand_break": 790,
|
| 350 |
+
"foot_plant": 1240,
|
| 351 |
+
"release": 1390,
|
| 352 |
+
"finish": 1800
|
| 353 |
+
},
|
| 354 |
+
"metrics": [
|
| 355 |
+
{
|
| 356 |
+
"key": "stride_pct_height",
|
| 357 |
+
"value": 57.8,
|
| 358 |
+
"unit": "%",
|
| 359 |
+
"confidence": "high"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 363 |
+
"value": 48.1,
|
| 364 |
+
"unit": "deg",
|
| 365 |
+
"confidence": "medium"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"key": "lead_knee_flexion_release_deg",
|
| 369 |
+
"value": 43.0,
|
| 370 |
+
"unit": "deg",
|
| 371 |
+
"confidence": "medium"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"key": "lead_knee_block_deg",
|
| 375 |
+
"value": 6.9,
|
| 376 |
+
"unit": "deg",
|
| 377 |
+
"confidence": "medium"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 381 |
+
"value": 33.2,
|
| 382 |
+
"unit": "deg",
|
| 383 |
+
"confidence": "medium"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 387 |
+
"value": 27.7,
|
| 388 |
+
"unit": "deg",
|
| 389 |
+
"confidence": "medium"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"key": "arm_slot_deg",
|
| 393 |
+
"value": 59.2,
|
| 394 |
+
"unit": "deg",
|
| 395 |
+
"confidence": "medium"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"key": "leg_lift_to_fp_ms",
|
| 399 |
+
"value": 607.5,
|
| 400 |
+
"unit": "ms",
|
| 401 |
+
"confidence": "high"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"key": "fp_to_release_ms",
|
| 405 |
+
"value": 137.7,
|
| 406 |
+
"unit": "ms",
|
| 407 |
+
"confidence": "high"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"key": "head_stability_pct_height",
|
| 411 |
+
"value": 21.1,
|
| 412 |
+
"unit": "%",
|
| 413 |
+
"confidence": "high"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"key": "hip_shoulder_sep_fp",
|
| 417 |
+
"value": 43.6,
|
| 418 |
+
"unit": "deg",
|
| 419 |
+
"confidence": "est"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"quality": {
|
| 423 |
+
"pose_conf": 0.85,
|
| 424 |
+
"blur": 0.13
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"rep": 6,
|
| 429 |
+
"events_ms": {
|
| 430 |
+
"first_move": 0,
|
| 431 |
+
"leg_lift": 640,
|
| 432 |
+
"hand_break": 790,
|
| 433 |
+
"foot_plant": 1240,
|
| 434 |
+
"release": 1390,
|
| 435 |
+
"finish": 1800
|
| 436 |
+
},
|
| 437 |
+
"metrics": [
|
| 438 |
+
{
|
| 439 |
+
"key": "stride_pct_height",
|
| 440 |
+
"value": 58.1,
|
| 441 |
+
"unit": "%",
|
| 442 |
+
"confidence": "high"
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 446 |
+
"value": 49.2,
|
| 447 |
+
"unit": "deg",
|
| 448 |
+
"confidence": "medium"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"key": "lead_knee_flexion_release_deg",
|
| 452 |
+
"value": 34.9,
|
| 453 |
+
"unit": "deg",
|
| 454 |
+
"confidence": "medium"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"key": "lead_knee_block_deg",
|
| 458 |
+
"value": 2.1,
|
| 459 |
+
"unit": "deg",
|
| 460 |
+
"confidence": "medium"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 464 |
+
"value": 31.4,
|
| 465 |
+
"unit": "deg",
|
| 466 |
+
"confidence": "medium"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 470 |
+
"value": 29.9,
|
| 471 |
+
"unit": "deg",
|
| 472 |
+
"confidence": "medium"
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"key": "arm_slot_deg",
|
| 476 |
+
"value": 60.2,
|
| 477 |
+
"unit": "deg",
|
| 478 |
+
"confidence": "medium"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"key": "leg_lift_to_fp_ms",
|
| 482 |
+
"value": 592.5,
|
| 483 |
+
"unit": "ms",
|
| 484 |
+
"confidence": "high"
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"key": "fp_to_release_ms",
|
| 488 |
+
"value": 118.9,
|
| 489 |
+
"unit": "ms",
|
| 490 |
+
"confidence": "high"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"key": "head_stability_pct_height",
|
| 494 |
+
"value": 22.5,
|
| 495 |
+
"unit": "%",
|
| 496 |
+
"confidence": "high"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"key": "hip_shoulder_sep_fp",
|
| 500 |
+
"value": 42.8,
|
| 501 |
+
"unit": "deg",
|
| 502 |
+
"confidence": "est"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"quality": {
|
| 506 |
+
"pose_conf": 0.83,
|
| 507 |
+
"blur": 0.16
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"rep": 7,
|
| 512 |
+
"events_ms": {
|
| 513 |
+
"first_move": 0,
|
| 514 |
+
"leg_lift": 640,
|
| 515 |
+
"hand_break": 790,
|
| 516 |
+
"foot_plant": 1240,
|
| 517 |
+
"release": 1390,
|
| 518 |
+
"finish": 1800
|
| 519 |
+
},
|
| 520 |
+
"metrics": [
|
| 521 |
+
{
|
| 522 |
+
"key": "stride_pct_height",
|
| 523 |
+
"value": 61.7,
|
| 524 |
+
"unit": "%",
|
| 525 |
+
"confidence": "high"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 529 |
+
"value": 46.4,
|
| 530 |
+
"unit": "deg",
|
| 531 |
+
"confidence": "medium"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"key": "lead_knee_flexion_release_deg",
|
| 535 |
+
"value": 41.7,
|
| 536 |
+
"unit": "deg",
|
| 537 |
+
"confidence": "medium"
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"key": "lead_knee_block_deg",
|
| 541 |
+
"value": 5.9,
|
| 542 |
+
"unit": "deg",
|
| 543 |
+
"confidence": "medium"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 547 |
+
"value": 33.4,
|
| 548 |
+
"unit": "deg",
|
| 549 |
+
"confidence": "medium"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 553 |
+
"value": 28.2,
|
| 554 |
+
"unit": "deg",
|
| 555 |
+
"confidence": "medium"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"key": "arm_slot_deg",
|
| 559 |
+
"value": 60.0,
|
| 560 |
+
"unit": "deg",
|
| 561 |
+
"confidence": "medium"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"key": "leg_lift_to_fp_ms",
|
| 565 |
+
"value": 653.7,
|
| 566 |
+
"unit": "ms",
|
| 567 |
+
"confidence": "high"
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"key": "fp_to_release_ms",
|
| 571 |
+
"value": 124.6,
|
| 572 |
+
"unit": "ms",
|
| 573 |
+
"confidence": "high"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"key": "head_stability_pct_height",
|
| 577 |
+
"value": 23.9,
|
| 578 |
+
"unit": "%",
|
| 579 |
+
"confidence": "high"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"key": "hip_shoulder_sep_fp",
|
| 583 |
+
"value": 47.9,
|
| 584 |
+
"unit": "deg",
|
| 585 |
+
"confidence": "est"
|
| 586 |
+
}
|
| 587 |
+
],
|
| 588 |
+
"quality": {
|
| 589 |
+
"pose_conf": 0.85,
|
| 590 |
+
"blur": 0.19
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"rep": 8,
|
| 595 |
+
"events_ms": {
|
| 596 |
+
"first_move": 0,
|
| 597 |
+
"leg_lift": 640,
|
| 598 |
+
"hand_break": 790,
|
| 599 |
+
"foot_plant": 1240,
|
| 600 |
+
"release": 1390,
|
| 601 |
+
"finish": 1800
|
| 602 |
+
},
|
| 603 |
+
"metrics": [
|
| 604 |
+
{
|
| 605 |
+
"key": "stride_pct_height",
|
| 606 |
+
"value": 60.8,
|
| 607 |
+
"unit": "%",
|
| 608 |
+
"confidence": "high"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 612 |
+
"value": 48.1,
|
| 613 |
+
"unit": "deg",
|
| 614 |
+
"confidence": "medium"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"key": "lead_knee_flexion_release_deg",
|
| 618 |
+
"value": 35.6,
|
| 619 |
+
"unit": "deg",
|
| 620 |
+
"confidence": "medium"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"key": "lead_knee_block_deg",
|
| 624 |
+
"value": 4.6,
|
| 625 |
+
"unit": "deg",
|
| 626 |
+
"confidence": "medium"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 630 |
+
"value": 32.5,
|
| 631 |
+
"unit": "deg",
|
| 632 |
+
"confidence": "medium"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 636 |
+
"value": 24.4,
|
| 637 |
+
"unit": "deg",
|
| 638 |
+
"confidence": "medium"
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"key": "arm_slot_deg",
|
| 642 |
+
"value": 62.2,
|
| 643 |
+
"unit": "deg",
|
| 644 |
+
"confidence": "medium"
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"key": "leg_lift_to_fp_ms",
|
| 648 |
+
"value": 653.8,
|
| 649 |
+
"unit": "ms",
|
| 650 |
+
"confidence": "high"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"key": "fp_to_release_ms",
|
| 654 |
+
"value": 133.1,
|
| 655 |
+
"unit": "ms",
|
| 656 |
+
"confidence": "high"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"key": "head_stability_pct_height",
|
| 660 |
+
"value": 22.5,
|
| 661 |
+
"unit": "%",
|
| 662 |
+
"confidence": "high"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"key": "hip_shoulder_sep_fp",
|
| 666 |
+
"value": 46.9,
|
| 667 |
+
"unit": "deg",
|
| 668 |
+
"confidence": "est"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"quality": {
|
| 672 |
+
"pose_conf": 0.81,
|
| 673 |
+
"blur": 0.14
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"arm_care": {
|
| 678 |
+
"known": true,
|
| 679 |
+
"pitch_count_today": 8,
|
| 680 |
+
"daily_max": 95,
|
| 681 |
+
"next_eligible_date": "2026-10-11",
|
| 682 |
+
"alerts": []
|
| 683 |
+
}
|
| 684 |
+
}
|
AI-coach-agent/examples/inputs/pitching_short_stride_soft_knee_240fps.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2.0",
|
| 3 |
+
"discipline": "pitching",
|
| 4 |
+
"view": "open_side",
|
| 5 |
+
"fps": 240.0,
|
| 6 |
+
"level": "college",
|
| 7 |
+
"capture": {
|
| 8 |
+
"ok": true,
|
| 9 |
+
"reasons": []
|
| 10 |
+
},
|
| 11 |
+
"reps": [
|
| 12 |
+
{
|
| 13 |
+
"rep": 1,
|
| 14 |
+
"events_ms": {
|
| 15 |
+
"first_move": 0,
|
| 16 |
+
"leg_lift": 640,
|
| 17 |
+
"hand_break": 790,
|
| 18 |
+
"foot_plant": 1240,
|
| 19 |
+
"release": 1390,
|
| 20 |
+
"finish": 1800
|
| 21 |
+
},
|
| 22 |
+
"metrics": [
|
| 23 |
+
{
|
| 24 |
+
"key": "stride_pct_height",
|
| 25 |
+
"value": 60.6,
|
| 26 |
+
"unit": "%",
|
| 27 |
+
"confidence": "high"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 31 |
+
"value": 47.3,
|
| 32 |
+
"unit": "deg",
|
| 33 |
+
"confidence": "medium"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"key": "lead_knee_flexion_release_deg",
|
| 37 |
+
"value": 65.3,
|
| 38 |
+
"unit": "deg",
|
| 39 |
+
"confidence": "medium"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"key": "lead_knee_block_deg",
|
| 43 |
+
"value": 4.4,
|
| 44 |
+
"unit": "deg",
|
| 45 |
+
"confidence": "medium"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 49 |
+
"value": 29.6,
|
| 50 |
+
"unit": "deg",
|
| 51 |
+
"confidence": "medium"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 55 |
+
"value": 26.6,
|
| 56 |
+
"unit": "deg",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "arm_slot_deg",
|
| 61 |
+
"value": 61.2,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "medium"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "leg_lift_to_fp_ms",
|
| 67 |
+
"value": 650.6,
|
| 68 |
+
"unit": "ms",
|
| 69 |
+
"confidence": "high"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "fp_to_release_ms",
|
| 73 |
+
"value": 140.2,
|
| 74 |
+
"unit": "ms",
|
| 75 |
+
"confidence": "high"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "head_stability_pct_height",
|
| 79 |
+
"value": 22.4,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "high"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"key": "hip_shoulder_sep_fp",
|
| 85 |
+
"value": 46.2,
|
| 86 |
+
"unit": "deg",
|
| 87 |
+
"confidence": "est"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"quality": {
|
| 91 |
+
"pose_conf": 0.83,
|
| 92 |
+
"blur": 0.18
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"rep": 2,
|
| 97 |
+
"events_ms": {
|
| 98 |
+
"first_move": 0,
|
| 99 |
+
"leg_lift": 640,
|
| 100 |
+
"hand_break": 790,
|
| 101 |
+
"foot_plant": 1240,
|
| 102 |
+
"release": 1390,
|
| 103 |
+
"finish": 1800
|
| 104 |
+
},
|
| 105 |
+
"metrics": [
|
| 106 |
+
{
|
| 107 |
+
"key": "stride_pct_height",
|
| 108 |
+
"value": 61.3,
|
| 109 |
+
"unit": "%",
|
| 110 |
+
"confidence": "high"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 114 |
+
"value": 47.3,
|
| 115 |
+
"unit": "deg",
|
| 116 |
+
"confidence": "medium"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "lead_knee_flexion_release_deg",
|
| 120 |
+
"value": 67.5,
|
| 121 |
+
"unit": "deg",
|
| 122 |
+
"confidence": "medium"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"key": "lead_knee_block_deg",
|
| 126 |
+
"value": 1.6,
|
| 127 |
+
"unit": "deg",
|
| 128 |
+
"confidence": "medium"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 132 |
+
"value": 28.4,
|
| 133 |
+
"unit": "deg",
|
| 134 |
+
"confidence": "medium"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 138 |
+
"value": 25.2,
|
| 139 |
+
"unit": "deg",
|
| 140 |
+
"confidence": "medium"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"key": "arm_slot_deg",
|
| 144 |
+
"value": 58.1,
|
| 145 |
+
"unit": "deg",
|
| 146 |
+
"confidence": "medium"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"key": "leg_lift_to_fp_ms",
|
| 150 |
+
"value": 647.6,
|
| 151 |
+
"unit": "ms",
|
| 152 |
+
"confidence": "high"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"key": "fp_to_release_ms",
|
| 156 |
+
"value": 133.7,
|
| 157 |
+
"unit": "ms",
|
| 158 |
+
"confidence": "high"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"key": "head_stability_pct_height",
|
| 162 |
+
"value": 22.8,
|
| 163 |
+
"unit": "%",
|
| 164 |
+
"confidence": "high"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"key": "hip_shoulder_sep_fp",
|
| 168 |
+
"value": 43.1,
|
| 169 |
+
"unit": "deg",
|
| 170 |
+
"confidence": "est"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"quality": {
|
| 174 |
+
"pose_conf": 0.8,
|
| 175 |
+
"blur": 0.09
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"rep": 3,
|
| 180 |
+
"events_ms": {
|
| 181 |
+
"first_move": 0,
|
| 182 |
+
"leg_lift": 640,
|
| 183 |
+
"hand_break": 790,
|
| 184 |
+
"foot_plant": 1240,
|
| 185 |
+
"release": 1390,
|
| 186 |
+
"finish": 1800
|
| 187 |
+
},
|
| 188 |
+
"metrics": [
|
| 189 |
+
{
|
| 190 |
+
"key": "stride_pct_height",
|
| 191 |
+
"value": 60.0,
|
| 192 |
+
"unit": "%",
|
| 193 |
+
"confidence": "high"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 197 |
+
"value": 50.3,
|
| 198 |
+
"unit": "deg",
|
| 199 |
+
"confidence": "medium"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"key": "lead_knee_flexion_release_deg",
|
| 203 |
+
"value": 67.7,
|
| 204 |
+
"unit": "deg",
|
| 205 |
+
"confidence": "medium"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"key": "lead_knee_block_deg",
|
| 209 |
+
"value": 7.4,
|
| 210 |
+
"unit": "deg",
|
| 211 |
+
"confidence": "medium"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 215 |
+
"value": 30.1,
|
| 216 |
+
"unit": "deg",
|
| 217 |
+
"confidence": "medium"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 221 |
+
"value": 25.5,
|
| 222 |
+
"unit": "deg",
|
| 223 |
+
"confidence": "medium"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"key": "arm_slot_deg",
|
| 227 |
+
"value": 58.3,
|
| 228 |
+
"unit": "deg",
|
| 229 |
+
"confidence": "medium"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"key": "leg_lift_to_fp_ms",
|
| 233 |
+
"value": 637.3,
|
| 234 |
+
"unit": "ms",
|
| 235 |
+
"confidence": "high"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"key": "fp_to_release_ms",
|
| 239 |
+
"value": 137.8,
|
| 240 |
+
"unit": "ms",
|
| 241 |
+
"confidence": "high"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"key": "head_stability_pct_height",
|
| 245 |
+
"value": 22.4,
|
| 246 |
+
"unit": "%",
|
| 247 |
+
"confidence": "high"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"key": "hip_shoulder_sep_fp",
|
| 251 |
+
"value": 43.7,
|
| 252 |
+
"unit": "deg",
|
| 253 |
+
"confidence": "est"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
"quality": {
|
| 257 |
+
"pose_conf": 0.82,
|
| 258 |
+
"blur": 0.15
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"rep": 4,
|
| 263 |
+
"events_ms": {
|
| 264 |
+
"first_move": 0,
|
| 265 |
+
"leg_lift": 640,
|
| 266 |
+
"hand_break": 790,
|
| 267 |
+
"foot_plant": 1240,
|
| 268 |
+
"release": 1390,
|
| 269 |
+
"finish": 1800
|
| 270 |
+
},
|
| 271 |
+
"metrics": [
|
| 272 |
+
{
|
| 273 |
+
"key": "stride_pct_height",
|
| 274 |
+
"value": 59.6,
|
| 275 |
+
"unit": "%",
|
| 276 |
+
"confidence": "high"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 280 |
+
"value": 44.0,
|
| 281 |
+
"unit": "deg",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_flexion_release_deg",
|
| 286 |
+
"value": 66.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "medium"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lead_knee_block_deg",
|
| 292 |
+
"value": 5.9,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "medium"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 298 |
+
"value": 28.8,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "medium"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 304 |
+
"value": 27.1,
|
| 305 |
+
"unit": "deg",
|
| 306 |
+
"confidence": "medium"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"key": "arm_slot_deg",
|
| 310 |
+
"value": 61.6,
|
| 311 |
+
"unit": "deg",
|
| 312 |
+
"confidence": "medium"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"key": "leg_lift_to_fp_ms",
|
| 316 |
+
"value": 589.6,
|
| 317 |
+
"unit": "ms",
|
| 318 |
+
"confidence": "high"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"key": "fp_to_release_ms",
|
| 322 |
+
"value": 132.1,
|
| 323 |
+
"unit": "ms",
|
| 324 |
+
"confidence": "high"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"key": "head_stability_pct_height",
|
| 328 |
+
"value": 21.8,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "high"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "hip_shoulder_sep_fp",
|
| 334 |
+
"value": 42.5,
|
| 335 |
+
"unit": "deg",
|
| 336 |
+
"confidence": "est"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"quality": {
|
| 340 |
+
"pose_conf": 0.9,
|
| 341 |
+
"blur": 0.09
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"rep": 5,
|
| 346 |
+
"events_ms": {
|
| 347 |
+
"first_move": 0,
|
| 348 |
+
"leg_lift": 640,
|
| 349 |
+
"hand_break": 790,
|
| 350 |
+
"foot_plant": 1240,
|
| 351 |
+
"release": 1390,
|
| 352 |
+
"finish": 1800
|
| 353 |
+
},
|
| 354 |
+
"metrics": [
|
| 355 |
+
{
|
| 356 |
+
"key": "stride_pct_height",
|
| 357 |
+
"value": 58.8,
|
| 358 |
+
"unit": "%",
|
| 359 |
+
"confidence": "high"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 363 |
+
"value": 48.1,
|
| 364 |
+
"unit": "deg",
|
| 365 |
+
"confidence": "medium"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"key": "lead_knee_flexion_release_deg",
|
| 369 |
+
"value": 68.0,
|
| 370 |
+
"unit": "deg",
|
| 371 |
+
"confidence": "medium"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"key": "lead_knee_block_deg",
|
| 375 |
+
"value": 6.9,
|
| 376 |
+
"unit": "deg",
|
| 377 |
+
"confidence": "medium"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 381 |
+
"value": 33.2,
|
| 382 |
+
"unit": "deg",
|
| 383 |
+
"confidence": "medium"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 387 |
+
"value": 27.7,
|
| 388 |
+
"unit": "deg",
|
| 389 |
+
"confidence": "medium"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"key": "arm_slot_deg",
|
| 393 |
+
"value": 59.2,
|
| 394 |
+
"unit": "deg",
|
| 395 |
+
"confidence": "medium"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"key": "leg_lift_to_fp_ms",
|
| 399 |
+
"value": 607.5,
|
| 400 |
+
"unit": "ms",
|
| 401 |
+
"confidence": "high"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"key": "fp_to_release_ms",
|
| 405 |
+
"value": 137.7,
|
| 406 |
+
"unit": "ms",
|
| 407 |
+
"confidence": "high"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"key": "head_stability_pct_height",
|
| 411 |
+
"value": 21.1,
|
| 412 |
+
"unit": "%",
|
| 413 |
+
"confidence": "high"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"key": "hip_shoulder_sep_fp",
|
| 417 |
+
"value": 43.6,
|
| 418 |
+
"unit": "deg",
|
| 419 |
+
"confidence": "est"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"quality": {
|
| 423 |
+
"pose_conf": 0.85,
|
| 424 |
+
"blur": 0.13
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"rep": 6,
|
| 429 |
+
"events_ms": {
|
| 430 |
+
"first_move": 0,
|
| 431 |
+
"leg_lift": 640,
|
| 432 |
+
"hand_break": 790,
|
| 433 |
+
"foot_plant": 1240,
|
| 434 |
+
"release": 1390,
|
| 435 |
+
"finish": 1800
|
| 436 |
+
},
|
| 437 |
+
"metrics": [
|
| 438 |
+
{
|
| 439 |
+
"key": "stride_pct_height",
|
| 440 |
+
"value": 59.1,
|
| 441 |
+
"unit": "%",
|
| 442 |
+
"confidence": "high"
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 446 |
+
"value": 49.2,
|
| 447 |
+
"unit": "deg",
|
| 448 |
+
"confidence": "medium"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"key": "lead_knee_flexion_release_deg",
|
| 452 |
+
"value": 59.9,
|
| 453 |
+
"unit": "deg",
|
| 454 |
+
"confidence": "medium"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"key": "lead_knee_block_deg",
|
| 458 |
+
"value": 2.1,
|
| 459 |
+
"unit": "deg",
|
| 460 |
+
"confidence": "medium"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 464 |
+
"value": 31.4,
|
| 465 |
+
"unit": "deg",
|
| 466 |
+
"confidence": "medium"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 470 |
+
"value": 29.9,
|
| 471 |
+
"unit": "deg",
|
| 472 |
+
"confidence": "medium"
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"key": "arm_slot_deg",
|
| 476 |
+
"value": 60.2,
|
| 477 |
+
"unit": "deg",
|
| 478 |
+
"confidence": "medium"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"key": "leg_lift_to_fp_ms",
|
| 482 |
+
"value": 592.5,
|
| 483 |
+
"unit": "ms",
|
| 484 |
+
"confidence": "high"
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"key": "fp_to_release_ms",
|
| 488 |
+
"value": 118.9,
|
| 489 |
+
"unit": "ms",
|
| 490 |
+
"confidence": "high"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"key": "head_stability_pct_height",
|
| 494 |
+
"value": 22.5,
|
| 495 |
+
"unit": "%",
|
| 496 |
+
"confidence": "high"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"key": "hip_shoulder_sep_fp",
|
| 500 |
+
"value": 42.8,
|
| 501 |
+
"unit": "deg",
|
| 502 |
+
"confidence": "est"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"quality": {
|
| 506 |
+
"pose_conf": 0.83,
|
| 507 |
+
"blur": 0.16
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"rep": 7,
|
| 512 |
+
"events_ms": {
|
| 513 |
+
"first_move": 0,
|
| 514 |
+
"leg_lift": 640,
|
| 515 |
+
"hand_break": 790,
|
| 516 |
+
"foot_plant": 1240,
|
| 517 |
+
"release": 1390,
|
| 518 |
+
"finish": 1800
|
| 519 |
+
},
|
| 520 |
+
"metrics": [
|
| 521 |
+
{
|
| 522 |
+
"key": "stride_pct_height",
|
| 523 |
+
"value": 62.7,
|
| 524 |
+
"unit": "%",
|
| 525 |
+
"confidence": "high"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 529 |
+
"value": 46.4,
|
| 530 |
+
"unit": "deg",
|
| 531 |
+
"confidence": "medium"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"key": "lead_knee_flexion_release_deg",
|
| 535 |
+
"value": 66.7,
|
| 536 |
+
"unit": "deg",
|
| 537 |
+
"confidence": "medium"
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"key": "lead_knee_block_deg",
|
| 541 |
+
"value": 5.9,
|
| 542 |
+
"unit": "deg",
|
| 543 |
+
"confidence": "medium"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 547 |
+
"value": 33.4,
|
| 548 |
+
"unit": "deg",
|
| 549 |
+
"confidence": "medium"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 553 |
+
"value": 28.2,
|
| 554 |
+
"unit": "deg",
|
| 555 |
+
"confidence": "medium"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"key": "arm_slot_deg",
|
| 559 |
+
"value": 60.0,
|
| 560 |
+
"unit": "deg",
|
| 561 |
+
"confidence": "medium"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"key": "leg_lift_to_fp_ms",
|
| 565 |
+
"value": 653.7,
|
| 566 |
+
"unit": "ms",
|
| 567 |
+
"confidence": "high"
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"key": "fp_to_release_ms",
|
| 571 |
+
"value": 124.6,
|
| 572 |
+
"unit": "ms",
|
| 573 |
+
"confidence": "high"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"key": "head_stability_pct_height",
|
| 577 |
+
"value": 23.9,
|
| 578 |
+
"unit": "%",
|
| 579 |
+
"confidence": "high"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"key": "hip_shoulder_sep_fp",
|
| 583 |
+
"value": 47.9,
|
| 584 |
+
"unit": "deg",
|
| 585 |
+
"confidence": "est"
|
| 586 |
+
}
|
| 587 |
+
],
|
| 588 |
+
"quality": {
|
| 589 |
+
"pose_conf": 0.85,
|
| 590 |
+
"blur": 0.19
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"rep": 8,
|
| 595 |
+
"events_ms": {
|
| 596 |
+
"first_move": 0,
|
| 597 |
+
"leg_lift": 640,
|
| 598 |
+
"hand_break": 790,
|
| 599 |
+
"foot_plant": 1240,
|
| 600 |
+
"release": 1390,
|
| 601 |
+
"finish": 1800
|
| 602 |
+
},
|
| 603 |
+
"metrics": [
|
| 604 |
+
{
|
| 605 |
+
"key": "stride_pct_height",
|
| 606 |
+
"value": 61.8,
|
| 607 |
+
"unit": "%",
|
| 608 |
+
"confidence": "high"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 612 |
+
"value": 48.1,
|
| 613 |
+
"unit": "deg",
|
| 614 |
+
"confidence": "medium"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"key": "lead_knee_flexion_release_deg",
|
| 618 |
+
"value": 60.6,
|
| 619 |
+
"unit": "deg",
|
| 620 |
+
"confidence": "medium"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"key": "lead_knee_block_deg",
|
| 624 |
+
"value": 4.6,
|
| 625 |
+
"unit": "deg",
|
| 626 |
+
"confidence": "medium"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 630 |
+
"value": 32.5,
|
| 631 |
+
"unit": "deg",
|
| 632 |
+
"confidence": "medium"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 636 |
+
"value": 24.4,
|
| 637 |
+
"unit": "deg",
|
| 638 |
+
"confidence": "medium"
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"key": "arm_slot_deg",
|
| 642 |
+
"value": 62.2,
|
| 643 |
+
"unit": "deg",
|
| 644 |
+
"confidence": "medium"
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"key": "leg_lift_to_fp_ms",
|
| 648 |
+
"value": 653.8,
|
| 649 |
+
"unit": "ms",
|
| 650 |
+
"confidence": "high"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"key": "fp_to_release_ms",
|
| 654 |
+
"value": 133.1,
|
| 655 |
+
"unit": "ms",
|
| 656 |
+
"confidence": "high"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"key": "head_stability_pct_height",
|
| 660 |
+
"value": 22.5,
|
| 661 |
+
"unit": "%",
|
| 662 |
+
"confidence": "high"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"key": "hip_shoulder_sep_fp",
|
| 666 |
+
"value": 46.9,
|
| 667 |
+
"unit": "deg",
|
| 668 |
+
"confidence": "est"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"quality": {
|
| 672 |
+
"pose_conf": 0.81,
|
| 673 |
+
"blur": 0.14
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"arm_care": {
|
| 678 |
+
"known": true,
|
| 679 |
+
"pitch_count_today": 8,
|
| 680 |
+
"daily_max": 95,
|
| 681 |
+
"next_eligible_date": "2026-10-11",
|
| 682 |
+
"alerts": []
|
| 683 |
+
}
|
| 684 |
+
}
|
AI-coach-agent/examples/inputs/pitching_slot_inconsistent_240fps.json
ADDED
|
@@ -0,0 +1,684 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ms": {
|
| 15 |
+
"first_move": 0,
|
| 16 |
+
"leg_lift": 640,
|
| 17 |
+
"hand_break": 790,
|
| 18 |
+
"foot_plant": 1240,
|
| 19 |
+
"release": 1390,
|
| 20 |
+
"finish": 1800
|
| 21 |
+
},
|
| 22 |
+
"metrics": [
|
| 23 |
+
{
|
| 24 |
+
"key": "stride_pct_height",
|
| 25 |
+
"value": 73.6,
|
| 26 |
+
"unit": "%",
|
| 27 |
+
"confidence": "high"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 31 |
+
"value": 47.3,
|
| 32 |
+
"unit": "deg",
|
| 33 |
+
"confidence": "medium"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"key": "lead_knee_flexion_release_deg",
|
| 37 |
+
"value": 40.3,
|
| 38 |
+
"unit": "deg",
|
| 39 |
+
"confidence": "medium"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"key": "lead_knee_block_deg",
|
| 43 |
+
"value": 4.4,
|
| 44 |
+
"unit": "deg",
|
| 45 |
+
"confidence": "medium"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 49 |
+
"value": 29.6,
|
| 50 |
+
"unit": "deg",
|
| 51 |
+
"confidence": "medium"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 55 |
+
"value": 26.6,
|
| 56 |
+
"unit": "deg",
|
| 57 |
+
"confidence": "medium"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"key": "arm_slot_deg",
|
| 61 |
+
"value": 74.6,
|
| 62 |
+
"unit": "deg",
|
| 63 |
+
"confidence": "medium"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"key": "leg_lift_to_fp_ms",
|
| 67 |
+
"value": 650.6,
|
| 68 |
+
"unit": "ms",
|
| 69 |
+
"confidence": "high"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"key": "fp_to_release_ms",
|
| 73 |
+
"value": 140.2,
|
| 74 |
+
"unit": "ms",
|
| 75 |
+
"confidence": "high"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"key": "head_stability_pct_height",
|
| 79 |
+
"value": 22.4,
|
| 80 |
+
"unit": "%",
|
| 81 |
+
"confidence": "high"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"key": "hip_shoulder_sep_fp",
|
| 85 |
+
"value": 46.2,
|
| 86 |
+
"unit": "deg",
|
| 87 |
+
"confidence": "est"
|
| 88 |
+
}
|
| 89 |
+
],
|
| 90 |
+
"quality": {
|
| 91 |
+
"pose_conf": 0.83,
|
| 92 |
+
"blur": 0.18
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"rep": 2,
|
| 97 |
+
"events_ms": {
|
| 98 |
+
"first_move": 0,
|
| 99 |
+
"leg_lift": 640,
|
| 100 |
+
"hand_break": 790,
|
| 101 |
+
"foot_plant": 1240,
|
| 102 |
+
"release": 1390,
|
| 103 |
+
"finish": 1800
|
| 104 |
+
},
|
| 105 |
+
"metrics": [
|
| 106 |
+
{
|
| 107 |
+
"key": "stride_pct_height",
|
| 108 |
+
"value": 74.3,
|
| 109 |
+
"unit": "%",
|
| 110 |
+
"confidence": "high"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 114 |
+
"value": 47.3,
|
| 115 |
+
"unit": "deg",
|
| 116 |
+
"confidence": "medium"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "lead_knee_flexion_release_deg",
|
| 120 |
+
"value": 42.5,
|
| 121 |
+
"unit": "deg",
|
| 122 |
+
"confidence": "medium"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"key": "lead_knee_block_deg",
|
| 126 |
+
"value": 1.6,
|
| 127 |
+
"unit": "deg",
|
| 128 |
+
"confidence": "medium"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 132 |
+
"value": 28.4,
|
| 133 |
+
"unit": "deg",
|
| 134 |
+
"confidence": "medium"
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 138 |
+
"value": 25.2,
|
| 139 |
+
"unit": "deg",
|
| 140 |
+
"confidence": "medium"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"key": "arm_slot_deg",
|
| 144 |
+
"value": 52.4,
|
| 145 |
+
"unit": "deg",
|
| 146 |
+
"confidence": "medium"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"key": "leg_lift_to_fp_ms",
|
| 150 |
+
"value": 647.6,
|
| 151 |
+
"unit": "ms",
|
| 152 |
+
"confidence": "high"
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"key": "fp_to_release_ms",
|
| 156 |
+
"value": 133.7,
|
| 157 |
+
"unit": "ms",
|
| 158 |
+
"confidence": "high"
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"key": "head_stability_pct_height",
|
| 162 |
+
"value": 22.8,
|
| 163 |
+
"unit": "%",
|
| 164 |
+
"confidence": "high"
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"key": "hip_shoulder_sep_fp",
|
| 168 |
+
"value": 43.1,
|
| 169 |
+
"unit": "deg",
|
| 170 |
+
"confidence": "est"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"quality": {
|
| 174 |
+
"pose_conf": 0.8,
|
| 175 |
+
"blur": 0.09
|
| 176 |
+
}
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"rep": 3,
|
| 180 |
+
"events_ms": {
|
| 181 |
+
"first_move": 0,
|
| 182 |
+
"leg_lift": 640,
|
| 183 |
+
"hand_break": 790,
|
| 184 |
+
"foot_plant": 1240,
|
| 185 |
+
"release": 1390,
|
| 186 |
+
"finish": 1800
|
| 187 |
+
},
|
| 188 |
+
"metrics": [
|
| 189 |
+
{
|
| 190 |
+
"key": "stride_pct_height",
|
| 191 |
+
"value": 73.0,
|
| 192 |
+
"unit": "%",
|
| 193 |
+
"confidence": "high"
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 197 |
+
"value": 50.3,
|
| 198 |
+
"unit": "deg",
|
| 199 |
+
"confidence": "medium"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"key": "lead_knee_flexion_release_deg",
|
| 203 |
+
"value": 42.7,
|
| 204 |
+
"unit": "deg",
|
| 205 |
+
"confidence": "medium"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"key": "lead_knee_block_deg",
|
| 209 |
+
"value": 7.4,
|
| 210 |
+
"unit": "deg",
|
| 211 |
+
"confidence": "medium"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 215 |
+
"value": 30.1,
|
| 216 |
+
"unit": "deg",
|
| 217 |
+
"confidence": "medium"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 221 |
+
"value": 25.5,
|
| 222 |
+
"unit": "deg",
|
| 223 |
+
"confidence": "medium"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"key": "arm_slot_deg",
|
| 227 |
+
"value": 54.2,
|
| 228 |
+
"unit": "deg",
|
| 229 |
+
"confidence": "medium"
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"key": "leg_lift_to_fp_ms",
|
| 233 |
+
"value": 637.3,
|
| 234 |
+
"unit": "ms",
|
| 235 |
+
"confidence": "high"
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"key": "fp_to_release_ms",
|
| 239 |
+
"value": 137.8,
|
| 240 |
+
"unit": "ms",
|
| 241 |
+
"confidence": "high"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"key": "head_stability_pct_height",
|
| 245 |
+
"value": 22.4,
|
| 246 |
+
"unit": "%",
|
| 247 |
+
"confidence": "high"
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"key": "hip_shoulder_sep_fp",
|
| 251 |
+
"value": 43.7,
|
| 252 |
+
"unit": "deg",
|
| 253 |
+
"confidence": "est"
|
| 254 |
+
}
|
| 255 |
+
],
|
| 256 |
+
"quality": {
|
| 257 |
+
"pose_conf": 0.82,
|
| 258 |
+
"blur": 0.15
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"rep": 4,
|
| 263 |
+
"events_ms": {
|
| 264 |
+
"first_move": 0,
|
| 265 |
+
"leg_lift": 640,
|
| 266 |
+
"hand_break": 790,
|
| 267 |
+
"foot_plant": 1240,
|
| 268 |
+
"release": 1390,
|
| 269 |
+
"finish": 1800
|
| 270 |
+
},
|
| 271 |
+
"metrics": [
|
| 272 |
+
{
|
| 273 |
+
"key": "stride_pct_height",
|
| 274 |
+
"value": 72.6,
|
| 275 |
+
"unit": "%",
|
| 276 |
+
"confidence": "high"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 280 |
+
"value": 44.0,
|
| 281 |
+
"unit": "deg",
|
| 282 |
+
"confidence": "medium"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"key": "lead_knee_flexion_release_deg",
|
| 286 |
+
"value": 41.7,
|
| 287 |
+
"unit": "deg",
|
| 288 |
+
"confidence": "medium"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"key": "lead_knee_block_deg",
|
| 292 |
+
"value": 5.9,
|
| 293 |
+
"unit": "deg",
|
| 294 |
+
"confidence": "medium"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 298 |
+
"value": 28.8,
|
| 299 |
+
"unit": "deg",
|
| 300 |
+
"confidence": "medium"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 304 |
+
"value": 27.1,
|
| 305 |
+
"unit": "deg",
|
| 306 |
+
"confidence": "medium"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"key": "arm_slot_deg",
|
| 310 |
+
"value": 77.3,
|
| 311 |
+
"unit": "deg",
|
| 312 |
+
"confidence": "medium"
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"key": "leg_lift_to_fp_ms",
|
| 316 |
+
"value": 589.6,
|
| 317 |
+
"unit": "ms",
|
| 318 |
+
"confidence": "high"
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"key": "fp_to_release_ms",
|
| 322 |
+
"value": 132.1,
|
| 323 |
+
"unit": "ms",
|
| 324 |
+
"confidence": "high"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"key": "head_stability_pct_height",
|
| 328 |
+
"value": 21.8,
|
| 329 |
+
"unit": "%",
|
| 330 |
+
"confidence": "high"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"key": "hip_shoulder_sep_fp",
|
| 334 |
+
"value": 42.5,
|
| 335 |
+
"unit": "deg",
|
| 336 |
+
"confidence": "est"
|
| 337 |
+
}
|
| 338 |
+
],
|
| 339 |
+
"quality": {
|
| 340 |
+
"pose_conf": 0.9,
|
| 341 |
+
"blur": 0.09
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"rep": 5,
|
| 346 |
+
"events_ms": {
|
| 347 |
+
"first_move": 0,
|
| 348 |
+
"leg_lift": 640,
|
| 349 |
+
"hand_break": 790,
|
| 350 |
+
"foot_plant": 1240,
|
| 351 |
+
"release": 1390,
|
| 352 |
+
"finish": 1800
|
| 353 |
+
},
|
| 354 |
+
"metrics": [
|
| 355 |
+
{
|
| 356 |
+
"key": "stride_pct_height",
|
| 357 |
+
"value": 71.8,
|
| 358 |
+
"unit": "%",
|
| 359 |
+
"confidence": "high"
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 363 |
+
"value": 48.1,
|
| 364 |
+
"unit": "deg",
|
| 365 |
+
"confidence": "medium"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"key": "lead_knee_flexion_release_deg",
|
| 369 |
+
"value": 43.0,
|
| 370 |
+
"unit": "deg",
|
| 371 |
+
"confidence": "medium"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"key": "lead_knee_block_deg",
|
| 375 |
+
"value": 6.9,
|
| 376 |
+
"unit": "deg",
|
| 377 |
+
"confidence": "medium"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 381 |
+
"value": 33.2,
|
| 382 |
+
"unit": "deg",
|
| 383 |
+
"confidence": "medium"
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 387 |
+
"value": 27.7,
|
| 388 |
+
"unit": "deg",
|
| 389 |
+
"confidence": "medium"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"key": "arm_slot_deg",
|
| 393 |
+
"value": 60.7,
|
| 394 |
+
"unit": "deg",
|
| 395 |
+
"confidence": "medium"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"key": "leg_lift_to_fp_ms",
|
| 399 |
+
"value": 607.5,
|
| 400 |
+
"unit": "ms",
|
| 401 |
+
"confidence": "high"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"key": "fp_to_release_ms",
|
| 405 |
+
"value": 137.7,
|
| 406 |
+
"unit": "ms",
|
| 407 |
+
"confidence": "high"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"key": "head_stability_pct_height",
|
| 411 |
+
"value": 21.1,
|
| 412 |
+
"unit": "%",
|
| 413 |
+
"confidence": "high"
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"key": "hip_shoulder_sep_fp",
|
| 417 |
+
"value": 43.6,
|
| 418 |
+
"unit": "deg",
|
| 419 |
+
"confidence": "est"
|
| 420 |
+
}
|
| 421 |
+
],
|
| 422 |
+
"quality": {
|
| 423 |
+
"pose_conf": 0.85,
|
| 424 |
+
"blur": 0.13
|
| 425 |
+
}
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"rep": 6,
|
| 429 |
+
"events_ms": {
|
| 430 |
+
"first_move": 0,
|
| 431 |
+
"leg_lift": 640,
|
| 432 |
+
"hand_break": 790,
|
| 433 |
+
"foot_plant": 1240,
|
| 434 |
+
"release": 1390,
|
| 435 |
+
"finish": 1800
|
| 436 |
+
},
|
| 437 |
+
"metrics": [
|
| 438 |
+
{
|
| 439 |
+
"key": "stride_pct_height",
|
| 440 |
+
"value": 72.1,
|
| 441 |
+
"unit": "%",
|
| 442 |
+
"confidence": "high"
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 446 |
+
"value": 49.2,
|
| 447 |
+
"unit": "deg",
|
| 448 |
+
"confidence": "medium"
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"key": "lead_knee_flexion_release_deg",
|
| 452 |
+
"value": 34.9,
|
| 453 |
+
"unit": "deg",
|
| 454 |
+
"confidence": "medium"
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"key": "lead_knee_block_deg",
|
| 458 |
+
"value": 2.1,
|
| 459 |
+
"unit": "deg",
|
| 460 |
+
"confidence": "medium"
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 464 |
+
"value": 31.4,
|
| 465 |
+
"unit": "deg",
|
| 466 |
+
"confidence": "medium"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 470 |
+
"value": 29.9,
|
| 471 |
+
"unit": "deg",
|
| 472 |
+
"confidence": "medium"
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"key": "arm_slot_deg",
|
| 476 |
+
"value": 67.1,
|
| 477 |
+
"unit": "deg",
|
| 478 |
+
"confidence": "medium"
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"key": "leg_lift_to_fp_ms",
|
| 482 |
+
"value": 592.5,
|
| 483 |
+
"unit": "ms",
|
| 484 |
+
"confidence": "high"
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"key": "fp_to_release_ms",
|
| 488 |
+
"value": 118.9,
|
| 489 |
+
"unit": "ms",
|
| 490 |
+
"confidence": "high"
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"key": "head_stability_pct_height",
|
| 494 |
+
"value": 22.5,
|
| 495 |
+
"unit": "%",
|
| 496 |
+
"confidence": "high"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"key": "hip_shoulder_sep_fp",
|
| 500 |
+
"value": 42.8,
|
| 501 |
+
"unit": "deg",
|
| 502 |
+
"confidence": "est"
|
| 503 |
+
}
|
| 504 |
+
],
|
| 505 |
+
"quality": {
|
| 506 |
+
"pose_conf": 0.83,
|
| 507 |
+
"blur": 0.16
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"rep": 7,
|
| 512 |
+
"events_ms": {
|
| 513 |
+
"first_move": 0,
|
| 514 |
+
"leg_lift": 640,
|
| 515 |
+
"hand_break": 790,
|
| 516 |
+
"foot_plant": 1240,
|
| 517 |
+
"release": 1390,
|
| 518 |
+
"finish": 1800
|
| 519 |
+
},
|
| 520 |
+
"metrics": [
|
| 521 |
+
{
|
| 522 |
+
"key": "stride_pct_height",
|
| 523 |
+
"value": 75.7,
|
| 524 |
+
"unit": "%",
|
| 525 |
+
"confidence": "high"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 529 |
+
"value": 46.4,
|
| 530 |
+
"unit": "deg",
|
| 531 |
+
"confidence": "medium"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"key": "lead_knee_flexion_release_deg",
|
| 535 |
+
"value": 41.7,
|
| 536 |
+
"unit": "deg",
|
| 537 |
+
"confidence": "medium"
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"key": "lead_knee_block_deg",
|
| 541 |
+
"value": 5.9,
|
| 542 |
+
"unit": "deg",
|
| 543 |
+
"confidence": "medium"
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 547 |
+
"value": 33.4,
|
| 548 |
+
"unit": "deg",
|
| 549 |
+
"confidence": "medium"
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 553 |
+
"value": 28.2,
|
| 554 |
+
"unit": "deg",
|
| 555 |
+
"confidence": "medium"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"key": "arm_slot_deg",
|
| 559 |
+
"value": 66.3,
|
| 560 |
+
"unit": "deg",
|
| 561 |
+
"confidence": "medium"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"key": "leg_lift_to_fp_ms",
|
| 565 |
+
"value": 653.7,
|
| 566 |
+
"unit": "ms",
|
| 567 |
+
"confidence": "high"
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"key": "fp_to_release_ms",
|
| 571 |
+
"value": 124.6,
|
| 572 |
+
"unit": "ms",
|
| 573 |
+
"confidence": "high"
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"key": "head_stability_pct_height",
|
| 577 |
+
"value": 23.9,
|
| 578 |
+
"unit": "%",
|
| 579 |
+
"confidence": "high"
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"key": "hip_shoulder_sep_fp",
|
| 583 |
+
"value": 47.9,
|
| 584 |
+
"unit": "deg",
|
| 585 |
+
"confidence": "est"
|
| 586 |
+
}
|
| 587 |
+
],
|
| 588 |
+
"quality": {
|
| 589 |
+
"pose_conf": 0.85,
|
| 590 |
+
"blur": 0.19
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"rep": 8,
|
| 595 |
+
"events_ms": {
|
| 596 |
+
"first_move": 0,
|
| 597 |
+
"leg_lift": 640,
|
| 598 |
+
"hand_break": 790,
|
| 599 |
+
"foot_plant": 1240,
|
| 600 |
+
"release": 1390,
|
| 601 |
+
"finish": 1800
|
| 602 |
+
},
|
| 603 |
+
"metrics": [
|
| 604 |
+
{
|
| 605 |
+
"key": "stride_pct_height",
|
| 606 |
+
"value": 74.8,
|
| 607 |
+
"unit": "%",
|
| 608 |
+
"confidence": "high"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"key": "lead_knee_flexion_fp_deg",
|
| 612 |
+
"value": 48.1,
|
| 613 |
+
"unit": "deg",
|
| 614 |
+
"confidence": "medium"
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"key": "lead_knee_flexion_release_deg",
|
| 618 |
+
"value": 35.6,
|
| 619 |
+
"unit": "deg",
|
| 620 |
+
"confidence": "medium"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"key": "lead_knee_block_deg",
|
| 624 |
+
"value": 4.6,
|
| 625 |
+
"unit": "deg",
|
| 626 |
+
"confidence": "medium"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"key": "trunk_forward_tilt_release_deg",
|
| 630 |
+
"value": 32.5,
|
| 631 |
+
"unit": "deg",
|
| 632 |
+
"confidence": "medium"
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"key": "trunk_lateral_tilt_release_deg",
|
| 636 |
+
"value": 24.4,
|
| 637 |
+
"unit": "deg",
|
| 638 |
+
"confidence": "medium"
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"key": "arm_slot_deg",
|
| 642 |
+
"value": 81.5,
|
| 643 |
+
"unit": "deg",
|
| 644 |
+
"confidence": "medium"
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"key": "leg_lift_to_fp_ms",
|
| 648 |
+
"value": 653.8,
|
| 649 |
+
"unit": "ms",
|
| 650 |
+
"confidence": "high"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"key": "fp_to_release_ms",
|
| 654 |
+
"value": 133.1,
|
| 655 |
+
"unit": "ms",
|
| 656 |
+
"confidence": "high"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"key": "head_stability_pct_height",
|
| 660 |
+
"value": 22.5,
|
| 661 |
+
"unit": "%",
|
| 662 |
+
"confidence": "high"
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"key": "hip_shoulder_sep_fp",
|
| 666 |
+
"value": 46.9,
|
| 667 |
+
"unit": "deg",
|
| 668 |
+
"confidence": "est"
|
| 669 |
+
}
|
| 670 |
+
],
|
| 671 |
+
"quality": {
|
| 672 |
+
"pose_conf": 0.81,
|
| 673 |
+
"blur": 0.14
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"arm_care": {
|
| 678 |
+
"known": true,
|
| 679 |
+
"pitch_count_today": 8,
|
| 680 |
+
"daily_max": 95,
|
| 681 |
+
"next_eligible_date": "2026-10-11",
|
| 682 |
+
"alerts": []
|
| 683 |
+
}
|
| 684 |
+
}
|
AI-coach-agent/examples/inputs/real_hitting_30fps_low_confidence.json
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
"very_low_fps",
|
| 12 |
+
"view_uncertain"
|
| 13 |
+
]
|
| 14 |
+
},
|
| 15 |
+
"reps": [
|
| 16 |
+
{
|
| 17 |
+
"rep": 0,
|
| 18 |
+
"events_ms": {
|
| 19 |
+
"stride": 100,
|
| 20 |
+
"foot_plant": 233,
|
| 21 |
+
"swing_start": 467,
|
| 22 |
+
"contact": 500,
|
| 23 |
+
"finish": 933
|
| 24 |
+
},
|
| 25 |
+
"metrics": [
|
| 26 |
+
{
|
| 27 |
+
"key": "stride_pct_height",
|
| 28 |
+
"value": null,
|
| 29 |
+
"unit": "%",
|
| 30 |
+
"confidence": "est",
|
| 31 |
+
"note": "not computed: event 'load_start' not found"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"key": "foot_plant_to_contact_ms",
|
| 35 |
+
"value": null,
|
| 36 |
+
"unit": "ms",
|
| 37 |
+
"confidence": "est",
|
| 38 |
+
"note": "hidden: timing needs >= 60 fps, got 30"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"key": "load_tempo_s",
|
| 42 |
+
"value": null,
|
| 43 |
+
"unit": "s",
|
| 44 |
+
"confidence": "est",
|
| 45 |
+
"note": "not computed: event 'load_start' not found"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"key": "load_launch_ratio",
|
| 49 |
+
"value": null,
|
| 50 |
+
"unit": "ratio",
|
| 51 |
+
"confidence": "est",
|
| 52 |
+
"note": "not computed: event 'load_start' not found"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"key": "head_movement_pct_height",
|
| 56 |
+
"value": null,
|
| 57 |
+
"unit": "%",
|
| 58 |
+
"confidence": "est",
|
| 59 |
+
"note": "not computed: event 'stance_set' not found"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"key": "lead_knee_angle_contact_deg",
|
| 63 |
+
"value": 163.3,
|
| 64 |
+
"unit": "deg",
|
| 65 |
+
"confidence": "est"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 69 |
+
"value": 36.1,
|
| 70 |
+
"unit": "deg",
|
| 71 |
+
"confidence": "est",
|
| 72 |
+
"note": "capped at est: event timing is est"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 76 |
+
"value": 40.9,
|
| 77 |
+
"unit": "deg",
|
| 78 |
+
"confidence": "est",
|
| 79 |
+
"note": "Estimate: 2D image-plane angle between shoulder and hip lines, not transverse-plane twist.; capped at est for this metric"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"key": "com_drift_pct_height",
|
| 83 |
+
"value": -3.6,
|
| 84 |
+
"unit": "%",
|
| 85 |
+
"confidence": "est"
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"quality": {
|
| 89 |
+
"pose_conf": 0.7528744754253649,
|
| 90 |
+
"blur": 0.3329298526313468
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"rep": 1,
|
| 95 |
+
"events_ms": {
|
| 96 |
+
"stride": 733,
|
| 97 |
+
"stance_set": 733,
|
| 98 |
+
"foot_plant": 933,
|
| 99 |
+
"swing_start": 1133,
|
| 100 |
+
"contact": 1167,
|
| 101 |
+
"finish": 1533
|
| 102 |
+
},
|
| 103 |
+
"metrics": [
|
| 104 |
+
{
|
| 105 |
+
"key": "stride_pct_height",
|
| 106 |
+
"value": null,
|
| 107 |
+
"unit": "%",
|
| 108 |
+
"confidence": "est",
|
| 109 |
+
"note": "not computed: event 'load_start' not found"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"key": "foot_plant_to_contact_ms",
|
| 113 |
+
"value": null,
|
| 114 |
+
"unit": "ms",
|
| 115 |
+
"confidence": "est",
|
| 116 |
+
"note": "hidden: timing needs >= 60 fps, got 30"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"key": "load_tempo_s",
|
| 120 |
+
"value": null,
|
| 121 |
+
"unit": "s",
|
| 122 |
+
"confidence": "est",
|
| 123 |
+
"note": "not computed: event 'load_start' not found"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"key": "load_launch_ratio",
|
| 127 |
+
"value": null,
|
| 128 |
+
"unit": "ratio",
|
| 129 |
+
"confidence": "est",
|
| 130 |
+
"note": "not computed: event 'load_start' not found"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"key": "head_movement_pct_height",
|
| 134 |
+
"value": 2.7,
|
| 135 |
+
"unit": "%",
|
| 136 |
+
"confidence": "medium"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"key": "lead_knee_angle_contact_deg",
|
| 140 |
+
"value": 166.9,
|
| 141 |
+
"unit": "deg",
|
| 142 |
+
"confidence": "est"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"key": "lateral_trunk_tilt_contact_deg",
|
| 146 |
+
"value": 32.3,
|
| 147 |
+
"unit": "deg",
|
| 148 |
+
"confidence": "est",
|
| 149 |
+
"note": "capped at est: event timing is est"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"key": "hip_shoulder_separation_foot_plant_deg",
|
| 153 |
+
"value": 43.6,
|
| 154 |
+
"unit": "deg",
|
| 155 |
+
"confidence": "est",
|
| 156 |
+
"note": "Estimate: 2D image-plane angle between shoulder and hip lines, not transverse-plane twist.; capped at est for this metric"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"key": "com_drift_pct_height",
|
| 160 |
+
"value": -6.3,
|
| 161 |
+
"unit": "%",
|
| 162 |
+
"confidence": "est"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"quality": {
|
| 166 |
+
"pose_conf": 0.7502580747152233,
|
| 167 |
+
"blur": 0.3136551584114121
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
]
|
| 171 |
+
}
|
AI-coach-agent/pyproject.toml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["setuptools>=75", "wheel"]
|
| 3 |
+
build-backend = "setuptools.build_meta"
|
| 4 |
+
|
| 5 |
+
[project]
|
| 6 |
+
name = "ai-coach-agent"
|
| 7 |
+
version = "0.1.0"
|
| 8 |
+
description = "Cost-efficient Gemini coaching-note agent for baseball mechanics sessions"
|
| 9 |
+
requires-python = ">=3.11"
|
| 10 |
+
dependencies = [
|
| 11 |
+
"langchain-core>=1.0",
|
| 12 |
+
"langchain-google-genai>=4.0",
|
| 13 |
+
"pydantic>=2.8",
|
| 14 |
+
"pydantic-settings>=2.4",
|
| 15 |
+
"pyyaml>=6.0",
|
| 16 |
+
"langsmith>=0.4",
|
| 17 |
+
]
|
| 18 |
+
|
| 19 |
+
[project.optional-dependencies]
|
| 20 |
+
api = ["fastapi>=0.115", "uvicorn[standard]>=0.30"]
|
| 21 |
+
dev = ["pytest>=8", "pytest-asyncio>=0.24", "ruff>=0.6", "jsonschema>=4", "httpx>=0.27", "fastapi>=0.115"]
|
| 22 |
+
|
| 23 |
+
[project.scripts]
|
| 24 |
+
ai-coach = "ai_coach.cli:main"
|
| 25 |
+
ai-coach-validate = "ai_coach.validate:main"
|
| 26 |
+
ai-coach-report = "ai_coach.report:main"
|
| 27 |
+
ai-coach-trace = "ai_coach.tracing:main"
|
| 28 |
+
|
| 29 |
+
[tool.setuptools.packages.find]
|
| 30 |
+
where = ["src"]
|
| 31 |
+
|
| 32 |
+
[tool.setuptools.package-data]
|
| 33 |
+
ai_coach = ["prompts/*.md", "knowledge/*.yaml"]
|
| 34 |
+
|
| 35 |
+
[tool.pytest.ini_options]
|
| 36 |
+
testpaths = ["tests"]
|
| 37 |
+
addopts = "-q"
|
| 38 |
+
asyncio_mode = "auto"
|
| 39 |
+
markers = ["live: calls the real Gemini API (needs GOOGLE_API_KEY); deselect with -m 'not live'"]
|
| 40 |
+
|
| 41 |
+
[tool.ruff]
|
| 42 |
+
line-length = 130
|
| 43 |
+
target-version = "py311"
|
| 44 |
+
|
| 45 |
+
[tool.ruff.lint]
|
| 46 |
+
select = ["E", "F", "I", "B", "UP", "SIM", "RUF"]
|
AI-coach-agent/src/ai_coach/__init__.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""AI coach agent: structured session result in, validated coaching note out."""
|
| 2 |
+
|
| 3 |
+
from .schemas import CoachInput, CoachNote, CoachResult
|
| 4 |
+
from .service import CoachService
|
| 5 |
+
|
| 6 |
+
__all__ = ["CoachInput", "CoachNote", "CoachResult", "CoachService"]
|
| 7 |
+
__version__ = "0.1.0"
|
AI-coach-agent/src/ai_coach/analysis.py
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Deterministic evidence from raw measurements: per-metric statistics and which problems the data supports.
|
| 2 |
+
|
| 3 |
+
This is NOT the coach. It never decides what to say. It answers "what do the numbers show?" so the agent can judge from
|
| 4 |
+
verified evidence, and so there is an independent baseline to measure the agent's judgement against (and to fall back on).
|
| 5 |
+
|
| 6 |
+
Inputs are per-rep measurements only. Typical ranges, problem definitions and thresholds come from the agent's own knowledge.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import math
|
| 12 |
+
import statistics
|
| 13 |
+
from collections.abc import Mapping, Sequence
|
| 14 |
+
from dataclasses import dataclass, field
|
| 15 |
+
from typing import Any
|
| 16 |
+
|
| 17 |
+
from . import knowledge as kb
|
| 18 |
+
|
| 19 |
+
CONFIDENCE_ORDER = {"est": 0, "medium": 1, "high": 2}
|
| 20 |
+
JUDGEABLE = ("high", "medium")
|
| 21 |
+
MAX_PER_REP = 25
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
@dataclass(frozen=True)
|
| 25 |
+
class MetricStat:
|
| 26 |
+
key: str
|
| 27 |
+
label: str
|
| 28 |
+
unit: str
|
| 29 |
+
value: float | None # median over reps that measured it
|
| 30 |
+
per_rep: list[float]
|
| 31 |
+
confidence: str # weakest confidence among the reps that count (High/Medium reps if any, else all measured)
|
| 32 |
+
n_reps: int # reps that count, same basis as value and per_rep
|
| 33 |
+
band: tuple[float, float] | None
|
| 34 |
+
zone: str # in_range | outside_typical_range | reference_only | unknown
|
| 35 |
+
range_status: str | None # calibrated | confirmed | adjusted | unverified | None when there is no band
|
| 36 |
+
range_confidence: str | None # high | medium | low | None when there is no band
|
| 37 |
+
note: str | None
|
| 38 |
+
|
| 39 |
+
@property
|
| 40 |
+
def judgeable(self) -> bool:
|
| 41 |
+
return self.value is not None and self.confidence in JUDGEABLE and self.zone in ("in_range", "outside_typical_range")
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
@dataclass
|
| 45 |
+
class ProblemEvidence:
|
| 46 |
+
key: str
|
| 47 |
+
label: str
|
| 48 |
+
tier: str
|
| 49 |
+
eligible: bool
|
| 50 |
+
reason: str # why it is (not) supported by the data
|
| 51 |
+
severity: str = "minor"
|
| 52 |
+
frequency: float = 0.0
|
| 53 |
+
reps_showing: int = 0
|
| 54 |
+
reps_evaluated: int = 0
|
| 55 |
+
median_excess: float = 0.0 # typical miss, in band widths (or in spread widths for consistency problems)
|
| 56 |
+
evidence: list[str] = field(default_factory=list) # metric keys that show it
|
| 57 |
+
confidence: str = "medium"
|
| 58 |
+
impact: float = 0.0
|
| 59 |
+
rank: int = 0 # 1 = the software baseline's suggested priority (eligible problems only)
|
| 60 |
+
range_confidence: str = "high" # weakest confidence of the ranges behind the evidence
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
@dataclass
|
| 64 |
+
class Analysis:
|
| 65 |
+
discipline: str
|
| 66 |
+
level: str
|
| 67 |
+
level_assumed: bool
|
| 68 |
+
reps: int
|
| 69 |
+
metrics: list[MetricStat]
|
| 70 |
+
problems: list[ProblemEvidence]
|
| 71 |
+
|
| 72 |
+
@property
|
| 73 |
+
def eligible(self) -> list[ProblemEvidence]:
|
| 74 |
+
return sorted((p for p in self.problems if p.eligible), key=lambda p: p.rank)
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def _weakest(confidences: Sequence[str]) -> str:
|
| 78 |
+
return min(confidences, key=lambda c: CONFIDENCE_ORDER[c]) if confidences else "est"
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
def collect(reps: Sequence[Mapping[str, Any]]) -> dict[str, list[tuple[int, float | None, str, str | None, str]]]:
|
| 82 |
+
"""metric key -> [(rep index, value, confidence, note, unit)] in rep order."""
|
| 83 |
+
out: dict[str, list[tuple[int, float | None, str, str | None, str]]] = {}
|
| 84 |
+
for i, rep in enumerate(reps):
|
| 85 |
+
for m in rep.get("metrics", []):
|
| 86 |
+
out.setdefault(m["key"], []).append((i, m.get("value"), m.get("confidence", "est"), m.get("note"), m.get("unit", "")))
|
| 87 |
+
return out
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
def metric_stats(
|
| 91 |
+
discipline: str, level: str, collected: dict, overrides: Mapping[str, tuple[float, float]] | None
|
| 92 |
+
) -> list[MetricStat]:
|
| 93 |
+
stats: list[MetricStat] = []
|
| 94 |
+
for key, rows in collected.items():
|
| 95 |
+
measured = [(v, c) for _, v, c, _, _ in rows if v is not None and math.isfinite(v)]
|
| 96 |
+
# Statistic rule: when any rep is High/Medium, only those reps count, so the confidence the model sees is the
|
| 97 |
+
# confidence of exactly the numbers it may judge (an estimate-only rep never makes a trusted metric look "est").
|
| 98 |
+
trusted = [(v, c) for v, c in measured if c in JUDGEABLE]
|
| 99 |
+
basis = trusted or measured
|
| 100 |
+
value = round(statistics.median(v for v, _ in basis), 1) if basis else None
|
| 101 |
+
rng = kb.metric_range(discipline, key, level, overrides)
|
| 102 |
+
if value is None or rng is None:
|
| 103 |
+
zone = "unknown"
|
| 104 |
+
elif not rng.comparable:
|
| 105 |
+
zone = "reference_only"
|
| 106 |
+
else:
|
| 107 |
+
zone = "in_range" if rng.low <= value <= rng.high else "outside_typical_range"
|
| 108 |
+
notes = [n for *_, n, _ in rows if n]
|
| 109 |
+
stats.append(
|
| 110 |
+
MetricStat(
|
| 111 |
+
key=key,
|
| 112 |
+
label=kb.metric_info(discipline, key)["label"],
|
| 113 |
+
unit=rows[0][4],
|
| 114 |
+
value=value,
|
| 115 |
+
per_rep=[round(v, 1) for v, _ in basis][:MAX_PER_REP],
|
| 116 |
+
confidence=_weakest([c for _, c in basis]) if basis else "est",
|
| 117 |
+
n_reps=len(basis),
|
| 118 |
+
band=(rng.low, rng.high) if rng else None,
|
| 119 |
+
zone=zone,
|
| 120 |
+
range_status=rng.status if rng else None,
|
| 121 |
+
range_confidence=rng.confidence if rng else None,
|
| 122 |
+
note=(notes[0][:120] if notes else None),
|
| 123 |
+
)
|
| 124 |
+
)
|
| 125 |
+
return stats
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def _rep_values(collected: dict, key: str) -> dict[int, tuple[float, str]]:
|
| 129 |
+
"""rep index -> (value, confidence) for reps where the metric is measured with judgeable confidence."""
|
| 130 |
+
return {i: (v, c) for i, v, c, _, _ in collected.get(key, []) if v is not None and math.isfinite(v) and c in JUDGEABLE}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def _band_rule(rule, discipline, level, collected, overrides, th):
|
| 134 |
+
"""(showing {rep: excess}, evaluated {rep}, confidences, ineligible reason or None) for a band rule."""
|
| 135 |
+
key = rule["metric"]
|
| 136 |
+
rng = kb.metric_range(discipline, key, level, overrides)
|
| 137 |
+
values = _rep_values(collected, key)
|
| 138 |
+
if key not in collected or not any(v is not None for _, v, *_ in collected[key]):
|
| 139 |
+
return {}, set(), [], "not measured"
|
| 140 |
+
if rng is None:
|
| 141 |
+
return {}, set(), [], "no typical range for this level yet (a coach target is needed)"
|
| 142 |
+
if not rng.comparable:
|
| 143 |
+
return {}, set(), [], "its range is reference-only from this camera view"
|
| 144 |
+
if not values:
|
| 145 |
+
return {}, set(), [], "only estimates or low-confidence values"
|
| 146 |
+
tolerance = th["rep_tolerance_band_fraction"] * kb.range_confidence_tolerance()[rng.confidence] * rng.width
|
| 147 |
+
showing: dict[int, float] = {}
|
| 148 |
+
for i, (v, _) in values.items():
|
| 149 |
+
miss = v - rng.high if rule["direction"] == "above" else rng.low - v
|
| 150 |
+
if miss > tolerance:
|
| 151 |
+
showing[i] = miss / rng.width if rng.width else 0.0
|
| 152 |
+
return showing, set(values), [c for _, c in values.values()], None
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
def _spread_rule(rule, collected, th):
|
| 156 |
+
values = _rep_values(collected, rule["metric"])
|
| 157 |
+
if len(values) < rule["min_reps"]:
|
| 158 |
+
return {}, set(), [], f"fewer than {rule['min_reps']} reps measured it"
|
| 159 |
+
centre = statistics.median(v for v, _ in values.values())
|
| 160 |
+
limit = rule["max_deviation"]
|
| 161 |
+
showing = {i: (abs(v - centre) - limit) / limit for i, (v, _) in values.items() if abs(v - centre) > limit}
|
| 162 |
+
return showing, set(values), [c for _, c in values.values()], None
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
def evaluate_problem(
|
| 166 |
+
discipline: str,
|
| 167 |
+
key: str,
|
| 168 |
+
spec: Mapping[str, Any],
|
| 169 |
+
level: str,
|
| 170 |
+
collected: dict,
|
| 171 |
+
n_reps: int,
|
| 172 |
+
overrides: Mapping[str, tuple[float, float]] | None,
|
| 173 |
+
) -> ProblemEvidence:
|
| 174 |
+
th = kb.thresholds()
|
| 175 |
+
base = ProblemEvidence(key=key, label=spec["label"], tier=spec["tier"], eligible=False, reason="")
|
| 176 |
+
never = [r for r in spec["rules"] if r["type"] == "never"]
|
| 177 |
+
if never:
|
| 178 |
+
base.reason = never[0]["reason"]
|
| 179 |
+
return base
|
| 180 |
+
showing_by_rep: dict[int, float] = {}
|
| 181 |
+
evaluated: set[int] = set()
|
| 182 |
+
confidences: list[str] = []
|
| 183 |
+
evidence: list[str] = []
|
| 184 |
+
reasons: list[str] = []
|
| 185 |
+
for rule in spec["rules"]:
|
| 186 |
+
if rule["type"] == "band":
|
| 187 |
+
showing, evald, confs, why = _band_rule(rule, discipline, level, collected, overrides, th)
|
| 188 |
+
else:
|
| 189 |
+
showing, evald, confs, why = _spread_rule(rule, collected, th)
|
| 190 |
+
if why:
|
| 191 |
+
reasons.append(f"{rule['metric']}: {why}")
|
| 192 |
+
evaluated |= evald
|
| 193 |
+
confidences += confs
|
| 194 |
+
for rep, excess in showing.items():
|
| 195 |
+
showing_by_rep[rep] = max(excess, showing_by_rep.get(rep, 0.0))
|
| 196 |
+
if showing:
|
| 197 |
+
evidence.append(rule["metric"])
|
| 198 |
+
if not evaluated:
|
| 199 |
+
base.reason = "; ".join(reasons) or "no usable measurements"
|
| 200 |
+
return base
|
| 201 |
+
base.reps_evaluated, base.reps_showing = len(evaluated), len(showing_by_rep)
|
| 202 |
+
base.frequency = round(len(showing_by_rep) / len(evaluated), 2)
|
| 203 |
+
if len(evaluated) < math.ceil(th["min_evaluated_share"] * n_reps):
|
| 204 |
+
base.reason = f"only {len(evaluated)} of {n_reps} reps measured it"
|
| 205 |
+
return base
|
| 206 |
+
if not showing_by_rep:
|
| 207 |
+
base.reason = "measurements are within the typical range"
|
| 208 |
+
return base
|
| 209 |
+
if len(showing_by_rep) < th["min_showing_reps"] or base.frequency < th["min_frequency"]:
|
| 210 |
+
base.reason = f"only {len(showing_by_rep)} of {len(evaluated)} reps show it, not a repeated pattern"
|
| 211 |
+
return base
|
| 212 |
+
raw_excess = statistics.median(showing_by_rep.values())
|
| 213 |
+
base.median_excess = round(raw_excess, 1) # display only: severity below uses the unrounded value
|
| 214 |
+
base.severity = (
|
| 215 |
+
"major"
|
| 216 |
+
if raw_excess >= th["major_median_excess"]
|
| 217 |
+
and base.frequency >= th["major_frequency"]
|
| 218 |
+
and len(evaluated) >= th["major_min_reps"]
|
| 219 |
+
else "minor"
|
| 220 |
+
)
|
| 221 |
+
base.confidence = _weakest(confidences)
|
| 222 |
+
base.evidence = evidence
|
| 223 |
+
range_conf = [
|
| 224 |
+
kb.metric_range(discipline, r["metric"], level, overrides).confidence
|
| 225 |
+
for r in spec["rules"]
|
| 226 |
+
if r["type"] == "band" and r["metric"] in evidence and kb.metric_range(discipline, r["metric"], level, overrides)
|
| 227 |
+
]
|
| 228 |
+
base.range_confidence = min(range_conf, key=lambda c: {"low": 0, "medium": 1, "high": 2}[c]) if range_conf else "high"
|
| 229 |
+
base.eligible = True
|
| 230 |
+
base.reason = "supported by repeated measurements"
|
| 231 |
+
base.impact = round(
|
| 232 |
+
(2.0 if base.severity == "major" else 1.0)
|
| 233 |
+
* kb.confidence_weights()[base.confidence]
|
| 234 |
+
* kb.range_confidence_weights()[base.range_confidence]
|
| 235 |
+
* base.frequency
|
| 236 |
+
* kb.tier_weights()[base.tier],
|
| 237 |
+
3,
|
| 238 |
+
)
|
| 239 |
+
return base
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
def analyze(
|
| 243 |
+
discipline: str,
|
| 244 |
+
level: str | None,
|
| 245 |
+
reps: Sequence[Mapping[str, Any]],
|
| 246 |
+
overrides: Mapping[str, tuple[float, float]] | None = None,
|
| 247 |
+
) -> Analysis:
|
| 248 |
+
"""Per-metric statistics and per-problem evidence for one session of measurements."""
|
| 249 |
+
used_level, assumed = kb.normalise_level(level)
|
| 250 |
+
collected = collect(reps)
|
| 251 |
+
problems = [
|
| 252 |
+
evaluate_problem(discipline, key, spec, used_level, collected, len(reps), overrides)
|
| 253 |
+
for key, spec in kb.problems(discipline).items()
|
| 254 |
+
]
|
| 255 |
+
for rank, p in enumerate(sorted((p for p in problems if p.eligible), key=lambda p: (-p.impact, p.key)), start=1):
|
| 256 |
+
p.rank = rank
|
| 257 |
+
return Analysis(
|
| 258 |
+
discipline, used_level, assumed, len(reps), metric_stats(discipline, used_level, collected, overrides), problems
|
| 259 |
+
)
|
AI-coach-agent/src/ai_coach/api.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""HTTP API: POST /v1/coach turns one session of measurements (and optional timing) into the coaching response (v2.0).
|
| 2 |
+
|
| 3 |
+
Run: uvicorn ai_coach.api:create_app --factory --host 0.0.0.0 --port 8000 (needs the `api` extra: pip install ".[api]")
|
| 4 |
+
|
| 5 |
+
The service never raises for model, network or storage trouble (it returns a rule-based note and says so in `source`), so the
|
| 6 |
+
only client errors are malformed input (422), a missing or wrong API key (401) and an oversized body (413).
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import hmac
|
| 12 |
+
import json
|
| 13 |
+
import logging
|
| 14 |
+
from contextlib import asynccontextmanager
|
| 15 |
+
from typing import Any
|
| 16 |
+
|
| 17 |
+
from fastapi import Depends, FastAPI, Header, HTTPException, Query, Request
|
| 18 |
+
from fastapi.responses import JSONResponse
|
| 19 |
+
|
| 20 |
+
from .config import Settings, get_settings
|
| 21 |
+
from .input_builder import InputError
|
| 22 |
+
from .observability import configure_logging
|
| 23 |
+
from .response import CoachResponse
|
| 24 |
+
from .service import CoachService
|
| 25 |
+
|
| 26 |
+
log = logging.getLogger(__name__)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def create_app(settings: Settings | None = None, service: CoachService | None = None) -> FastAPI:
|
| 30 |
+
settings = settings or get_settings()
|
| 31 |
+
if settings.environment == "prod" and settings.api_key is None:
|
| 32 |
+
raise RuntimeError("COACH_API_KEY must be set when COACH_ENV=prod")
|
| 33 |
+
|
| 34 |
+
@asynccontextmanager
|
| 35 |
+
async def lifespan(app: FastAPI):
|
| 36 |
+
configure_logging(settings)
|
| 37 |
+
app.state.service = service or CoachService(settings)
|
| 38 |
+
yield
|
| 39 |
+
|
| 40 |
+
app = FastAPI(
|
| 41 |
+
title="AI Coach Agent", version="2", lifespan=lifespan, docs_url="/docs" if settings.environment != "prod" else None
|
| 42 |
+
)
|
| 43 |
+
expected = settings.api_key.get_secret_value() if settings.api_key else None
|
| 44 |
+
|
| 45 |
+
def require_key(x_api_key: str | None = Header(default=None)) -> None:
|
| 46 |
+
if expected is not None and not (x_api_key and hmac.compare_digest(x_api_key.encode(), expected.encode())):
|
| 47 |
+
raise HTTPException(status_code=401, detail="missing or invalid X-API-Key")
|
| 48 |
+
|
| 49 |
+
@app.get("/healthz")
|
| 50 |
+
def healthz() -> dict[str, str]:
|
| 51 |
+
"""Liveness: the process is up."""
|
| 52 |
+
return {"status": "ok"}
|
| 53 |
+
|
| 54 |
+
@app.get("/readyz")
|
| 55 |
+
def readyz(request: Request) -> dict[str, Any]:
|
| 56 |
+
"""Readiness: the service is built. `llm` says whether notes can come from the model or only from rules."""
|
| 57 |
+
svc: CoachService = request.app.state.service
|
| 58 |
+
return {"status": "ready", "llm": svc.settings.llm_enabled, "model": svc.settings.model}
|
| 59 |
+
|
| 60 |
+
@app.post("/v1/coach", response_model=CoachResponse, dependencies=[Depends(require_key)])
|
| 61 |
+
async def coach(
|
| 62 |
+
request: Request,
|
| 63 |
+
level: str | None = Query(default=None, description="hs_jv | hs_varsity | college, if not in the session"),
|
| 64 |
+
) -> CoachResponse:
|
| 65 |
+
declared = request.headers.get("content-length")
|
| 66 |
+
if declared and declared.isdigit() and int(declared) > settings.max_body_bytes:
|
| 67 |
+
raise HTTPException(status_code=413, detail="session too large")
|
| 68 |
+
body = await request.body()
|
| 69 |
+
if len(body) > settings.max_body_bytes:
|
| 70 |
+
raise HTTPException(status_code=413, detail="session too large")
|
| 71 |
+
try:
|
| 72 |
+
session = json.loads(body)
|
| 73 |
+
except ValueError as exc:
|
| 74 |
+
raise HTTPException(status_code=422, detail=f"body is not valid JSON: {exc}") from exc
|
| 75 |
+
if not isinstance(session, dict):
|
| 76 |
+
raise HTTPException(status_code=422, detail="body must be a JSON object")
|
| 77 |
+
svc: CoachService = request.app.state.service
|
| 78 |
+
try:
|
| 79 |
+
return await svc.arespond(session, level=level)
|
| 80 |
+
except InputError as exc:
|
| 81 |
+
raise HTTPException(status_code=422, detail=str(exc)) from exc
|
| 82 |
+
|
| 83 |
+
@app.get("/v1/usage", dependencies=[Depends(require_key)])
|
| 84 |
+
def usage(request: Request, days: int = Query(default=7, ge=1, le=90)) -> dict[str, Any]:
|
| 85 |
+
"""Requests, tokens, cache hit rate and cost for the last `days` days (same numbers as ai-coach-report)."""
|
| 86 |
+
return request.app.state.service.ledger.summary(days)
|
| 87 |
+
|
| 88 |
+
@app.exception_handler(Exception)
|
| 89 |
+
async def unexpected(_: Request, exc: Exception) -> JSONResponse:
|
| 90 |
+
log.exception("unhandled error") # the redaction filter strips secrets; the client gets no internals
|
| 91 |
+
return JSONResponse(status_code=500, content={"detail": "internal error"})
|
| 92 |
+
|
| 93 |
+
return app
|
AI-coach-agent/src/ai_coach/cache.py
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Response cache: identical session + prompt version + model -> no API call.
|
| 2 |
+
|
| 3 |
+
Only LLM notes that passed the guardrails are cached. Entries expire after a TTL, and any prompt edit,
|
| 4 |
+
guardrail change or model change produces a different key, so stale wording is never served.
|
| 5 |
+
A damaged or unreadable cache is a miss, never an error: the app must keep working without it.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import contextlib
|
| 11 |
+
import hashlib
|
| 12 |
+
import logging
|
| 13 |
+
import sqlite3
|
| 14 |
+
import threading
|
| 15 |
+
import time
|
| 16 |
+
from collections.abc import Iterator
|
| 17 |
+
from pathlib import Path
|
| 18 |
+
|
| 19 |
+
from pydantic import ValidationError
|
| 20 |
+
|
| 21 |
+
from .schemas import CoachNote
|
| 22 |
+
|
| 23 |
+
log = logging.getLogger(__name__)
|
| 24 |
+
SECONDS_PER_DAY = 86_400
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def cache_key(version: str, model: str, canonical_input: str) -> str:
|
| 28 |
+
"""`version` should combine every behaviour-changing version (prompt hash, guardrails version)."""
|
| 29 |
+
return hashlib.sha256(f"{version}\x00{model}\x00{canonical_input}".encode()).hexdigest()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class ResponseCache:
|
| 33 |
+
def __init__(self, path: Path | str, ttl_days: float):
|
| 34 |
+
self.path = Path(path)
|
| 35 |
+
self.ttl_s = ttl_days * SECONDS_PER_DAY
|
| 36 |
+
self._lock = threading.Lock()
|
| 37 |
+
self._ready = False
|
| 38 |
+
self._init()
|
| 39 |
+
|
| 40 |
+
@contextlib.contextmanager
|
| 41 |
+
def _connect(self) -> Iterator[sqlite3.Connection]:
|
| 42 |
+
db = sqlite3.connect(self.path, timeout=5)
|
| 43 |
+
try:
|
| 44 |
+
with db:
|
| 45 |
+
yield db
|
| 46 |
+
finally:
|
| 47 |
+
db.close()
|
| 48 |
+
|
| 49 |
+
def _init(self) -> None:
|
| 50 |
+
try:
|
| 51 |
+
self.path.parent.mkdir(parents=True, exist_ok=True)
|
| 52 |
+
with self._lock, self._connect() as db:
|
| 53 |
+
db.execute("CREATE TABLE IF NOT EXISTS notes (key TEXT PRIMARY KEY, created REAL, note TEXT)")
|
| 54 |
+
db.execute("CREATE TABLE IF NOT EXISTS failures (key TEXT PRIMARY KEY, expires REAL, reason TEXT)")
|
| 55 |
+
self._ready = True
|
| 56 |
+
except (sqlite3.Error, OSError) as exc:
|
| 57 |
+
log.warning("response cache unavailable (%s); continuing without it", exc)
|
| 58 |
+
|
| 59 |
+
def get(self, key: str, now: float | None = None) -> CoachNote | None:
|
| 60 |
+
if not self._ready:
|
| 61 |
+
return None
|
| 62 |
+
now = time.time() if now is None else now
|
| 63 |
+
try:
|
| 64 |
+
with self._lock, self._connect() as db:
|
| 65 |
+
row = db.execute("SELECT created, note FROM notes WHERE key = ?", (key,)).fetchone()
|
| 66 |
+
except sqlite3.Error as exc:
|
| 67 |
+
log.warning("cache read failed: %s", exc)
|
| 68 |
+
return None
|
| 69 |
+
if row is None or now - row[0] > self.ttl_s:
|
| 70 |
+
return None
|
| 71 |
+
try:
|
| 72 |
+
return CoachNote.model_validate_json(row[1])
|
| 73 |
+
except ValidationError:
|
| 74 |
+
log.warning("cache row no longer matches the CoachNote schema; dropping it")
|
| 75 |
+
self.delete(key)
|
| 76 |
+
return None
|
| 77 |
+
|
| 78 |
+
def put(self, key: str, note: CoachNote, now: float | None = None) -> None:
|
| 79 |
+
if not self._ready:
|
| 80 |
+
return
|
| 81 |
+
now = time.time() if now is None else now
|
| 82 |
+
try:
|
| 83 |
+
with self._lock, self._connect() as db:
|
| 84 |
+
db.execute("INSERT OR REPLACE INTO notes VALUES (?, ?, ?)", (key, now, note.model_dump_json()))
|
| 85 |
+
except sqlite3.Error as exc:
|
| 86 |
+
log.warning("cache write failed: %s", exc)
|
| 87 |
+
|
| 88 |
+
def put_failure(self, key: str, reason: str, ttl_s: float, now: float | None = None) -> None:
|
| 89 |
+
"""Remember for a short time that this exact request ended in the rule-based note (negative cache)."""
|
| 90 |
+
if not self._ready or ttl_s <= 0:
|
| 91 |
+
return
|
| 92 |
+
now = time.time() if now is None else now
|
| 93 |
+
try:
|
| 94 |
+
with self._lock, self._connect() as db:
|
| 95 |
+
db.execute("INSERT OR REPLACE INTO failures VALUES (?, ?, ?)", (key, now + ttl_s, reason))
|
| 96 |
+
except sqlite3.Error as exc:
|
| 97 |
+
log.warning("cache failure write failed: %s", exc)
|
| 98 |
+
|
| 99 |
+
def get_failure(self, key: str, now: float | None = None) -> str | None:
|
| 100 |
+
"""The reason of a remembered failure that has not expired, else None."""
|
| 101 |
+
if not self._ready:
|
| 102 |
+
return None
|
| 103 |
+
now = time.time() if now is None else now
|
| 104 |
+
try:
|
| 105 |
+
with self._lock, self._connect() as db:
|
| 106 |
+
row = db.execute("SELECT expires, reason FROM failures WHERE key = ?", (key,)).fetchone()
|
| 107 |
+
except sqlite3.Error as exc:
|
| 108 |
+
log.warning("cache failure read failed: %s", exc)
|
| 109 |
+
return None
|
| 110 |
+
return row[1] if row and row[0] > now else None
|
| 111 |
+
|
| 112 |
+
def delete(self, key: str) -> None:
|
| 113 |
+
if not self._ready:
|
| 114 |
+
return
|
| 115 |
+
try:
|
| 116 |
+
with self._lock, self._connect() as db:
|
| 117 |
+
db.execute("DELETE FROM notes WHERE key = ?", (key,))
|
| 118 |
+
except sqlite3.Error as exc:
|
| 119 |
+
log.warning("cache delete failed: %s", exc)
|
| 120 |
+
|
| 121 |
+
def purge_expired(self, now: float | None = None) -> int:
|
| 122 |
+
if not self._ready:
|
| 123 |
+
return 0
|
| 124 |
+
now = time.time() if now is None else now
|
| 125 |
+
try:
|
| 126 |
+
with self._lock, self._connect() as db:
|
| 127 |
+
db.execute("DELETE FROM failures WHERE expires <= ?", (now,))
|
| 128 |
+
return db.execute("DELETE FROM notes WHERE ? - created > ?", (now, self.ttl_s)).rowcount
|
| 129 |
+
except sqlite3.Error as exc:
|
| 130 |
+
log.warning("cache purge failed: %s", exc)
|
| 131 |
+
return 0
|
AI-coach-agent/src/ai_coach/chain.py
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""LangChain integration: prompt | Gemini (structured output) -> CoachNote plus billed token usage.
|
| 2 |
+
|
| 3 |
+
The generator is a thin, injectable seam. `GeminiGenerator` builds the real chain; tests and offline evals pass a fake
|
| 4 |
+
with the same interface, so no test ever touches the network. Every call carries a run name, tags and metadata so it
|
| 5 |
+
is easy to find in LangSmith, and a usage callback so billed tokens are never lost, even when the output is unusable.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import logging
|
| 11 |
+
import time
|
| 12 |
+
from collections.abc import Mapping
|
| 13 |
+
from dataclasses import dataclass
|
| 14 |
+
from typing import Any, Literal, Protocol
|
| 15 |
+
|
| 16 |
+
from langchain_core.callbacks import UsageMetadataCallbackHandler
|
| 17 |
+
from langchain_core.messages import HumanMessage
|
| 18 |
+
from langchain_core.runnables import Runnable, RunnableConfig
|
| 19 |
+
|
| 20 |
+
from .config import Settings
|
| 21 |
+
from .observability import redact
|
| 22 |
+
from .prompt_loader import SESSION_VARIABLE, PromptBundle, load_prompts
|
| 23 |
+
from .schemas import CoachNote, Usage
|
| 24 |
+
|
| 25 |
+
log = logging.getLogger(__name__)
|
| 26 |
+
|
| 27 |
+
RUN_NAME = "gemini_coach_note"
|
| 28 |
+
# Substrings (upper-case) of provider errors that retrying or escalating cannot fix.
|
| 29 |
+
FATAL_MARKERS = ("API_KEY", "API KEY", "PERMISSION_DENIED", "UNAUTHENTICATED", "NOT_FOUND", "INVALID_ARGUMENT")
|
| 30 |
+
ErrorKind = Literal["transport", "unparsable", "fatal"]
|
| 31 |
+
REPAIR_TEMPLATE = (
|
| 32 |
+
"Your previous note broke these rules:\n{violations}\n"
|
| 33 |
+
"Write the coaching note again and fix every problem. Use only facts from the session data."
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class GenerationError(RuntimeError):
|
| 38 |
+
"""The model call failed or returned something unusable.
|
| 39 |
+
|
| 40 |
+
kind: "fatal" (do not retry anything), "transport" (timeout/429/5xx: do not repeat on the same model),
|
| 41 |
+
"unparsable" (a billed call whose output was not a valid note). `usage` and `latency_ms` describe what the
|
| 42 |
+
failed call cost, so the ledger stays accurate.
|
| 43 |
+
"""
|
| 44 |
+
|
| 45 |
+
def __init__(
|
| 46 |
+
self,
|
| 47 |
+
message: str,
|
| 48 |
+
*,
|
| 49 |
+
fatal: bool = False,
|
| 50 |
+
kind: ErrorKind | None = None,
|
| 51 |
+
usage: Usage | None = None,
|
| 52 |
+
latency_ms: int = 0,
|
| 53 |
+
):
|
| 54 |
+
super().__init__(message)
|
| 55 |
+
self.kind: ErrorKind = kind or ("fatal" if fatal else "transport")
|
| 56 |
+
self.usage = usage or Usage()
|
| 57 |
+
self.latency_ms = latency_ms
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def fatal(self) -> bool:
|
| 61 |
+
return self.kind == "fatal"
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
@dataclass(frozen=True)
|
| 65 |
+
class GenerationResult:
|
| 66 |
+
note: CoachNote
|
| 67 |
+
usage: Usage
|
| 68 |
+
latency_ms: int = 0
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class NoteGenerator(Protocol):
|
| 72 |
+
def generate(
|
| 73 |
+
self,
|
| 74 |
+
session_json: str,
|
| 75 |
+
*,
|
| 76 |
+
model: str,
|
| 77 |
+
repair_hint: str | None = None,
|
| 78 |
+
run_metadata: Mapping[str, Any] | None = None,
|
| 79 |
+
) -> GenerationResult: ...
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def _usage_from_meta(meta: Mapping[str, Any]) -> Usage:
|
| 83 |
+
in_details = meta.get("input_token_details") or {}
|
| 84 |
+
out_details = meta.get("output_token_details") or {}
|
| 85 |
+
return Usage(
|
| 86 |
+
input_tokens=int(meta.get("input_tokens", 0)),
|
| 87 |
+
output_tokens=int(meta.get("output_tokens", 0)),
|
| 88 |
+
cached_tokens=int(in_details.get("cache_read", 0)),
|
| 89 |
+
reasoning_tokens=int(out_details.get("reasoning", 0)),
|
| 90 |
+
)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def extract_usage(handler: UsageMetadataCallbackHandler, raw: Any = None) -> Usage:
|
| 94 |
+
"""Billed tokens for the call. LangChain's usage callback is the primary source; it silently drops usage when the
|
| 95 |
+
response has no model name, so fall back to the raw message's own usage_metadata."""
|
| 96 |
+
total = Usage()
|
| 97 |
+
for meta in handler.usage_metadata.values():
|
| 98 |
+
total = total + _usage_from_meta(meta)
|
| 99 |
+
if total.input_tokens or total.output_tokens:
|
| 100 |
+
return total
|
| 101 |
+
return _usage_from_meta(getattr(raw, "usage_metadata", None) or {})
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
class GeminiGenerator:
|
| 105 |
+
"""Real generator. `model_factory(model_name) -> Runnable` is injectable for tests."""
|
| 106 |
+
|
| 107 |
+
def __init__(self, settings: Settings, prompts: PromptBundle | None = None, model_factory=None):
|
| 108 |
+
self.settings = settings
|
| 109 |
+
self.prompts = prompts or load_prompts()
|
| 110 |
+
self._factory = model_factory or self._default_factory
|
| 111 |
+
self._runnables: dict[str, Runnable] = {}
|
| 112 |
+
|
| 113 |
+
def _default_factory(self, model: str) -> Runnable:
|
| 114 |
+
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 115 |
+
|
| 116 |
+
kwargs: dict[str, Any] = {
|
| 117 |
+
"model": model,
|
| 118 |
+
"google_api_key": self.settings.google_api_key,
|
| 119 |
+
"temperature": self.settings.temperature,
|
| 120 |
+
"max_output_tokens": self.settings.max_output_tokens,
|
| 121 |
+
"timeout": self.settings.timeout_s,
|
| 122 |
+
"max_retries": self.settings.max_retries,
|
| 123 |
+
}
|
| 124 |
+
if self.settings.thinking_level is not None:
|
| 125 |
+
kwargs["thinking_level"] = self.settings.thinking_level
|
| 126 |
+
elif self.settings.thinking_budget is not None:
|
| 127 |
+
kwargs["thinking_budget"] = self.settings.thinking_budget
|
| 128 |
+
return ChatGoogleGenerativeAI(**kwargs).with_structured_output(CoachNote, include_raw=True)
|
| 129 |
+
|
| 130 |
+
def _runnable(self, model: str) -> Runnable:
|
| 131 |
+
if model not in self._runnables:
|
| 132 |
+
self._runnables[model] = self._factory(model)
|
| 133 |
+
return self._runnables[model]
|
| 134 |
+
|
| 135 |
+
def build_messages(self, session_json: str, repair_hint: str | None = None) -> list:
|
| 136 |
+
"""System prompt (static prefix) + session data (dynamic) [+ repair request]."""
|
| 137 |
+
messages = self.prompts.template().invoke({SESSION_VARIABLE: session_json}).to_messages()
|
| 138 |
+
if repair_hint:
|
| 139 |
+
messages.append(HumanMessage(content=REPAIR_TEMPLATE.format(violations=repair_hint)))
|
| 140 |
+
return messages
|
| 141 |
+
|
| 142 |
+
def _redact(self, text: str) -> str:
|
| 143 |
+
return redact(text, self.settings.secrets)
|
| 144 |
+
|
| 145 |
+
def generate(
|
| 146 |
+
self,
|
| 147 |
+
session_json: str,
|
| 148 |
+
*,
|
| 149 |
+
model: str,
|
| 150 |
+
repair_hint: str | None = None,
|
| 151 |
+
run_metadata: Mapping[str, Any] | None = None,
|
| 152 |
+
) -> GenerationResult:
|
| 153 |
+
handler = UsageMetadataCallbackHandler()
|
| 154 |
+
config: RunnableConfig = {
|
| 155 |
+
"callbacks": [handler],
|
| 156 |
+
"run_name": RUN_NAME,
|
| 157 |
+
"tags": ["ai-coach", f"model:{model}", f"prompt:{self.prompts.version}"],
|
| 158 |
+
"metadata": {
|
| 159 |
+
**(run_metadata or {}),
|
| 160 |
+
"model": model,
|
| 161 |
+
"prompt_version": self.prompts.version,
|
| 162 |
+
"repair": bool(repair_hint),
|
| 163 |
+
},
|
| 164 |
+
}
|
| 165 |
+
started = time.perf_counter()
|
| 166 |
+
try:
|
| 167 |
+
out = self._runnable(model).invoke(self.build_messages(session_json, repair_hint), config=config)
|
| 168 |
+
except Exception as exc: # provider/network errors must never crash the app
|
| 169 |
+
text = self._redact(f"{type(exc).__name__}: {exc}")[:300]
|
| 170 |
+
log.warning("Gemini call failed (%s): %s", model, text)
|
| 171 |
+
kind: ErrorKind = (
|
| 172 |
+
"fatal" if any(m in self._redact(f"{type(exc).__name__}: {exc}").upper() for m in FATAL_MARKERS) else "transport"
|
| 173 |
+
)
|
| 174 |
+
raise GenerationError(
|
| 175 |
+
text, kind=kind, usage=extract_usage(handler), latency_ms=int((time.perf_counter() - started) * 1000)
|
| 176 |
+
) from exc
|
| 177 |
+
latency_ms = int((time.perf_counter() - started) * 1000)
|
| 178 |
+
parsed, raw = out.get("parsed"), out.get("raw")
|
| 179 |
+
usage = extract_usage(handler, raw)
|
| 180 |
+
if not isinstance(parsed, CoachNote):
|
| 181 |
+
error = self._redact(str(out.get("parsing_error") or "model returned no parsable note"))[:300]
|
| 182 |
+
raise GenerationError(f"unparsable output: {error}", kind="unparsable", usage=usage, latency_ms=latency_ms)
|
| 183 |
+
return GenerationResult(note=parsed, usage=usage, latency_ms=latency_ms)
|
AI-coach-agent/src/ai_coach/cli.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Command line: python -m ai_coach.cli session.json [--level hs_varsity] [--fallback-only] [--no-cache] [--json]"""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import json
|
| 7 |
+
import sys
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
|
| 10 |
+
from .config import Settings
|
| 11 |
+
from .input_builder import InputError
|
| 12 |
+
from .observability import configure_logging
|
| 13 |
+
from .response import render_response
|
| 14 |
+
from .service import CoachService
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def main(argv: list[str] | None = None) -> int:
|
| 18 |
+
parser = argparse.ArgumentParser(prog="ai-coach", description="Write a coaching note for a session JSON")
|
| 19 |
+
parser.add_argument("session", type=Path, help="pipeline session JSON (baseball_mvp output)")
|
| 20 |
+
parser.add_argument("--level", help="hs_jv | hs_varsity | college (if not in the session JSON)")
|
| 21 |
+
parser.add_argument("--fallback-only", action="store_true", help="never call the model")
|
| 22 |
+
parser.add_argument("--no-cache", action="store_true", help="neither read nor write the response cache")
|
| 23 |
+
parser.add_argument("--json", action="store_true", help="print the full response (v2.0) as JSON")
|
| 24 |
+
args = parser.parse_args(argv)
|
| 25 |
+
|
| 26 |
+
settings = Settings()
|
| 27 |
+
if args.fallback_only:
|
| 28 |
+
settings = settings.model_copy(update={"google_api_key": None})
|
| 29 |
+
if args.no_cache:
|
| 30 |
+
settings = settings.model_copy(update={"cache_enabled": False})
|
| 31 |
+
configure_logging(settings)
|
| 32 |
+
service = CoachService(settings)
|
| 33 |
+
try:
|
| 34 |
+
response = service.respond(json.loads(args.session.read_text(encoding="utf-8")), level=args.level)
|
| 35 |
+
except (InputError, OSError, ValueError) as exc:
|
| 36 |
+
print(f"error: {exc}", file=sys.stderr)
|
| 37 |
+
return 2
|
| 38 |
+
if args.json:
|
| 39 |
+
print(response.model_dump_json(indent=2))
|
| 40 |
+
else:
|
| 41 |
+
print(render_response(response))
|
| 42 |
+
meta = response.meta
|
| 43 |
+
print(
|
| 44 |
+
f"\n[source={meta.source} model={meta.model} cache_hit={meta.cache_hit} fallback_reason={meta.fallback_reason}]",
|
| 45 |
+
file=sys.stderr,
|
| 46 |
+
)
|
| 47 |
+
return 0
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
if __name__ == "__main__":
|
| 51 |
+
raise SystemExit(main())
|