baseball-engine / BUILD_STATUS.md
github-actions[bot]
Automated Deploy: f4f01388c7b26e818cffbd64414eac11381a7891
35e80ff
|
Raw History Blame Contribute Delete
33.9 kB

Build status

Unified engine and coach POC — 2026-10-13

Merged origin/feat/ai-agent-coach with the current measurement engine. The single-video /v1/swing-coach/analyses route now produces a product containing unchanged engine measurements, the existing coach app response, and optional experimental Gemini observations for load/timing, hip/shoulder turning order, and bat path/contact. The agent owns the practice priority and library drill. Visual observations remain separate from measured diagnoses and scores. The default uses 2D and bat/ball models without SAM. An upload/result screen is at /; legacy routes and the standalone coach service remain available.

Fixed integration mismatches for shared practice context (including front toss), reason codes, actual endpoint sources, foot-event ordering sensitivity, variable frame cadence and an explicitly unknown capture clock. Product/evidence downloads are authenticated and checksum verified; cancellation and retention remove them. Optional model metadata preflight reports provider availability separately from CUDA readiness. Provider failures preserve the measurement response. GitHub deployment runs both test suites before uploading to the Space.

The first Linux deployment gate exposed test-state leakage from the coach CLI's logging configuration. Tests now restore logger handlers, levels and propagation after each case, and CLI tests write logs into their temporary directories. The failure was reproduced with the deployment's pytest version and passed with this isolation; production logging and input safeguards are unchanged.

Executed locally: 316 engine tests passed, 4 skipped; 495 agent tests passed, 12 live tests excluded. Ruff checks passed for changed agent modules. Browser verification displayed the actual recording's estimated preparation time and missing-data explanations. A fresh CPU run of all 227 frames of IMG_16161.mp4 used the real RTMW/person and bat/ball ONNX models and produced the combined artifact; preparation remained an estimated 250 ms, and ambiguous/unobserved bat endpoints correctly withheld contact duration. Original-frame sampling was checked on that clip (72 frames), swing1 (1).mp4 (24), and IMG_1619.mp4 (24), including upright rotation and preservation of unknown capture time.

These checks verify execution and contracts, not biomechanical or coaching accuracy. No local Google key, NVIDIA GPU or running Docker daemon was available, so live visual generation and target-GPU inference require deployment checks. See SWING_COACH_PRODUCT.md for integration and limits.

Bat/ball load timing implementation — 2026-10-13

The dedicated POST /v1/load-timing/analyses route rejects missing recording settings and requires actual bat/ball CUDA preflight. It uses 2D body pose; SAM does not run. Separate pinned BaseballCV bat pose and baseball detector checkpoints are exported to ONNX in a Docker build stage. The bat adapter uses observed outer shaft landmarks rather than replacing an endpoint with a hand. Searches preserve full-image candidates and additional athlete/bat crops, with direct observations and missing frames retained in diagnostics.

Estimated visual hit intervals now feed swing_duration_ms when supported, including a separate stationary-tee departure branch. Projection overlap, disappearance, an unrelated ball bounce or the body-extension proxy do not establish contact. Optional synchronized calibrated second views support physical miss closest approach and a barrel timing-shift search on the same observed paths. The search propagates supplied position/synchronization bounds, preserves disconnected intervals and withholds ambiguous, unsupported or boundary-limited solutions. A finite scalar uses the closest-to-zero certified feasible shift under these assumptions. Tee misses do not receive moving-pitch timing corrections.

Existing 2.0 and default 3.0 payloads remain available. Opt-in ?include_evidence=true returns 3.1 with event intervals, metric reason codes, sensitivity and supplied practice/pitch context. New artifacts receive checksums through an additive database migration. Terminal cleanup includes the second recording. A trusted replacement checkpoint can be exported without changing calculation code.

Executed checks: 294 passed, 2 skipped in the complete regression suite, including replacement-checkpoint export and incoming-flight regressions. A final class-dominance adapter check also passed. A return from a net is withheld rather than treated as the incoming pitch. The existing Starlette/httpx deprecation warning remains. Constructed model observations passed actual decoding, worker storage, strict payload validation and HTTP retrieval for hit duration and a two-view miss with all four values. These tests do not establish neural-network measurement accuracy.

Real exported ONNX checks on selected frames of the supplied tee recording and IMG_1610 exposed detector misses, including blurred bats around impact and a ball on the tee. No per-video coordinates, hidden labels or fabricated endpoints were added to force outputs. Reliable contact measurement on these recordings remains unresolved. Models need further evaluation and likely fine-tuning for this footage; all values remain estimates. The local Docker daemon is unavailable and no NVIDIA GPU is present, so the rebuilt Linux image/CUDA deployment still needs verification. See tracking validation and API integration.

Four-field load and timing API — 2026-10-12

GET /v1/analyses/{job_id}/load-timing returns the discussed version 3.0 JSON with load_to_swing_ms, foot_down_to_swing_ms, swing_duration_ms and early_late_shift_ms per candidate. Upload/status responses now include load_timing_url; GET /v1/load-timing-schema exposes the separate contract. The existing nine-field coach endpoint remains version 2.0. Use measurement_backend: "2d" to run timing jobs without 3D. LOAD_TIMING_API.md documents API testing, the shape and limitations.

New workers calculate and validate timing output once, store load-timing.json and server-side diagnostic evidence, and record its checksum through an additive database migration. Downloads validate integrity and structure. Older jobs without this artifact return 409 and need resubmission. The Dockerfile and its build context include the new schema. The Python client supports a separate --load-timing option with the 2D backend.

Load and first-foot-contact intervals use actual capture timestamps and supported forward-hand movement. Signed foot timing preserves negative/zero estimates and explains unresolved ordering. A generic hand excursion does not establish forward swing start. The arm-extension contact proxy is never used as actual ball contact. Automatic contact/closest-approach duration and early/late correction remain null/unclear because reliable bat/ball evidence is unavailable. No ready/pause measurements or coaching decisions were added.

Executed evidence: 240 tests passed, 2 skipped across the local suite, with the existing Starlette/httpx deprecation warning. The sandbox blocked the existing temporary localhost Git-auth listener; that single test passed when rerun with local-listener permission. Checks cover contract/schema/OpenAPI agreement, signed timing, unknown/retimed/variable clocks, missing evidence, malformed reviews/payloads, new endpoint authentication and downloads, persistence/checksums, legacy-job migration, cancellation, and existing pipeline behavior. A constructed 120 FPS recording was decoded through the actual worker's measurement/storage path and fetched over HTTP with supported load/landing numbers, using fake vision rather than GPU inference. Contact-dependent values stayed null despite a body-extension event. Documentation JSON examples also passed the new schema.

Target-GPU execution, Docker image execution and real-video accuracy are still pending on the deployment. These local checks establish data flow and arithmetic, not event-detection accuracy.

Preparation events and measurement reliability — 2026-10-12

Method batting-2d-v6 and measurement-quality-v2 address the four investigated causes. The final lead-foot step uses a supported quiet reference, observed lift/return and ankle/sole settling at the new image position. Confirmation may extend shortly beyond hand onset while timestamping settling before or at onset and staying before contact. Earlier walking steps and held leg kicks do not replace the final ground reference. Hand loading and stride are no longer forced into a single order.

Stance now requires quiet hands, pelvis and ankles immediately before preparation; quiet hands while walking are insufficient. Head path is omitted with an explicit missing-stance reason for walk-throughs without a supported stance. The 3D quality layer explains named per-joint projection disagreements, verifies camera projection again, records body/segment geometry and preserves anatomical sides. Knee median filtering uses its own knee anchor, so an unsupported opposite hip cannot invalidate a supported lead knee. The provider's SAM landmark mapping was checked against its pinned official metadata; no mapping or unit correction justified shifting the disagreeing hip/shoulder predictions.

Timing checks retain documented nominal 30 FPS support and the existing ±1-frame resolution limits. Diagnostics now give contributing frame counts, event shift windows, relative sensitivity width and resolution status. Relabeling FPS or inventing intermediate frames does not make a five-frame launch sufficiently resolved. The compact nine-field coach schema, estimate labels, default 2D mode and HTTP endpoints are unchanged. Both notebooks were regenerated. Selected 3D projections appear in purple in inspection previews, with red disagreement connectors and downloadable contact/plant comparison PNGs.

Executed evidence:

  • 196 tests passed, 4 skipped, with one existing Starlette/httpx deprecation warning. The sandbox initially blocked the existing Git authentication test's temporary localhost listener; the complete suite passed with permission to bind that fixture. Added cases cover landing at different image depths, 30/60/120 FPS, settling confirmation after onset, absent/noisy foot evidence, hovering, continued travel, held leg kicks, multiple preparation steps, mirroring/anatomical sides, walking versus stance, raw support, opposite-hip independence, named disagreements, side-swap reporting, invalid model rows, projection consistency, timestamp sensitivity and comparison/ZIP export. Known constructed geometry and supplied numeric fixtures remain engineering checks, not real accuracy labels.
  • Replayed the latest walkthrough's archived GPU 2D/SAM outputs: final foot departure frame 51, sole return 62, settled-foot proxy 69, hand onset 70, contact proxy 75. Stride is now 43.891% of the estimated image stature; the previously supported hip position -18.218% and load duration 0.533 seconds remain. The walking drill has no supported stationary stance. Plant-to-contact spans six frame intervals and fails the timing sensitivity check; launch spans five and its ratio sensitivity still ranges approximately 2–6. SAM's contact predictions still disagree at the right hip (5.14%) and shoulder (7.28%), so affected angles remain withheld. Archived SAM frames cover only contact: its new plant window needs fresh GPU inference, and replay reports this as partial rather than fabricating points.
  • Real local CPU RTMW3D inference completed on 10 new walkthrough event frames in 4.607 seconds and 5 outdoor frames in 2.649 seconds, including initialization and decoding to those frames. The supplied GPU 2D tracks were reused. Walkthrough knee geometry passed the current engineering checks (164.772°, experimental); its trunk/plant separation were withheld for degenerate/changing predicted axes. Outdoor trunk remained -23.586°, while unstable knee geometry was withheld. These are execution/sensitivity results, not accuracy or GPU-performance claims.
  • Replayed outdoor SAM contact frames retain supported knee/trunk estimates and the primary onset/contact locations at 75/79. Both model choices on both recordings pass the full-result and compact coach schemas. A real 117-frame walkthrough preview passed its encoded frame-count/PTS checks; the SAM disagreement PNG was inspected visually. Raw 2D/3D points remain unchanged.

Fresh SAM inference for the new plant window, lightweight target-GPU execution and Docker deployment checks remain external execution tasks. Absolute point/event/measurement accuracy remains reference_validation_pending. Unsupported camera views, moving cameras, unknown clocks, no-stride/no-stance drills and uncertain predictions still yield explained nulls.

30 FPS timing support — 2026-10-12

Method batting-2d-v5 supports documented nominal 30 FPS capture, including 29.97 FPS and variable cadence with every interval <= 1.01/30 seconds. This replaces the earlier blanket 60 FPS timing cutoff. The existing per-metric ±1-frame sensitivity checks still withhold poorly resolved durations and ratios; unknown clocks, missing events and larger timestamp gaps remain unsupported. Full-result timing diagnostics now include actual frame intervals and the shifted-event range's unit. The coach schema and estimate labels are unchanged.

Executed evidence:

  • 159 tests passed, 4 skipped, one existing Starlette/httpx deprecation warning. Added coverage checks 30/29.97 FPS acceptance, documented variable cadence at 30–40 FPS, gap rejection, long versus short timing resolution and a replay of the walkthrough observations. Both notebooks were regenerated and their deterministic generation/schema checks passed.
  • Replaying the archived points from session-5645e3e671a5-sam3d-results.zip returns load_tempo_s: 0.533 with a ±1-frame sensitivity range of approximately 0.467–0.600 seconds. load_launch_ratio remains null because its shifted-event range spans approximately 2–6. Plant-to-contact timing remains unavailable without a plant event. Both full-result and coach-payload schemas pass. This replay reused the saved 2D/SAM outputs; it did not rerun GPU inference or independently verify the caller-declared original capture clock.
  • The supplied outdoor and walkthrough SAM archives both show completed five-frame sparse SAM inference, taking 37.842 and 34.783 seconds respectively within total analysis times of 73.65 and 57.81 seconds. These exclude setup/download costs. They provide SAM worker execution evidence for these clips, not accuracy qualification or Docker HTTP deployment validation. Lightweight GPU comparison and real measurement accuracy remain pending.

Nine measurements and optional 3D — 2026-10-11

The GPU API now accepts measurement_backend: "2d" | "rtmw3d" | "sam3d". batting_measurements_test.ipynb provides the same choice in step 3. The original 2D-only notebook remains separate. NINE_MEASUREMENTS.md specifies calculations, camera assumptions, rejection gates and model comparison.

All nine entries have conditional calculation paths: the existing six distance/timing/head fields plus 3D knee, trunk and horizontal hip/shoulder landmark angles. The existing 2D projected knee remains available in 2D mode. The coach payload keeps its nine keys and est labels; sparse unvalidated 3D points and per-metric sensitivity diagnostics stay in the full result. Unknown capture timing, missing events, moving-camera restrictions and insufficient geometry still cause nulls.

3D requests at most five frames per contact/plant event, at most 300 selected frames overall. SAM uses body-only inference in a separate interpreter, with a 600-second subprocess timeout and no OpenSim/temporal fitting. The lightweight model uses the same event windows. Model setup and initialization remain separate costs; target GPU performance is not yet established.

Executed evidence:

  • 154 tests passed, 4 skipped, one existing Starlette/httpx deprecation warning. This includes independent constructed 3D angles and a constructed swing returning all nine values, units/mapping, left/right sign, camera rotation, image resizing, score decoding, missing support/depth/length rejection, physical variable-cadence timing, budget selection, both JSON schemas, notebook generation, Docker COPY context checks, HTTP backend selection and failure without CPU substitution. Synthetic cases are not accuracy validation.
  • The pinned 369,330,857-byte RTMW3D ONNX artifact was downloaded and SHA-256 verified. Real CPU ONNX inference returned the expected 133 native joints with three SimCC distributions; the adapter exports COCO-17 in consistent camera metre coordinates. It matches the provider's XY confidence scoring and keeps depth response separate.
  • A local CPU replay of five event frames (77–81) from the supplied outdoor video completed in 3.353 seconds, including model initialization and sequential decoding to those frames. Saved GPU 2D observations were reused; GPU inference was not rerun locally. It produced an experimental trunk landmark estimate (-23.586°), with nearby-frame sensitivity 2.374° and camera-prior sensitivity 0.381°. The knee was withheld because nearby-frame sensitivity reached 39.451°. Other missing fields remain unsupported by this moving-camera, unknown-clock recording. This demonstrates execution and rejection behavior, not correctness of that angle or a target-GPU benchmark.
  • The base/SAM Compose overlay parses with the correct build context, asset mount and worker-record path. The local Docker daemon did not respond, so image builds were not executed.

Still to execute: the new notebook on Colab CUDA for both models, the optional SAM image on a target GPU with approved model assets, and independent real batting measurement/error validation. All methods continue to report reference_validation_pending. No high/medium confidence or accuracy guarantees are claimed.

Updated: 2026-10-11. The initial backend build has now been followed by investigation of two supplied Colab result archives. The user-edited plans remain unchanged. Implementation, runtime qualification and measurement/coaching validation are separate outcomes.

Initial 2D GPU API and Docker delivery

The API is prepared for the requested Linux NVIDIA GPU server with Docker. It directly runs the person detector and RTMW-x pose adapter, exports COCO-17 body points and six foot points, and disables all SAM/temporal/anatomical 3D and coaching stages. Its new 2D calculation layer produces estimated swing measurements; the friend's separate coach agent owns problems, priority, drills, explanations and progress. The Colab notebook remains a separate entry point.

The service includes authenticated uploads, asynchronous progress/status/results, a persistent single-GPU queue, cancellation and process timeouts, restart recovery, checksummed models/results/coach payloads, bounded decoding, local-only media protocols, upload cleanup and artifact retention. CUDA readiness requires actual operator execution; an unavailable GPU produces 503 responses for new jobs. Docker/Compose files, an optional HTTPS proxy, full-result and coach-payload schemas, and a Python client are provided. See deployment instructions and the friend-facing API guide.

The API now supplies heuristic swing candidates, estimated visible swing events and nine metric entries per rep. Conditional values include horizontal ankle-to-ankle stride, hip position relative to the lead ankle, eligible physical timing, reference-only nose path and projected knee angle. Anatomical hip-shoulder separation and lateral trunk tilt remain null. Every non-null value is labeled est; weak evidence produces nulls with notes. Foot plant does not establish full body-weight loading, and contact does not confirm a bat-ball collision. Unknown capture clocks stay null, and timing metrics require a known constant capture rate of at least 60 FPS. Caller-declared ranges remain supported. See measurement definitions.

GET /v1/analyses/{job_id}/coach-payload returns only the measurement body for the friend's POST /v1/coach; the engine does not call that external service. A constructed example contains one rep and seven non-null estimates. It is demonstration data, not an analysis of the player's video. The friend's supplied documents inform this contract, but their actual validator/service source was unavailable for exact compatibility testing. Their confidence policy may return nothing_to_judge for these unvalidated estimates.

Engineering evidence for this deployment:

  • 118 tests passed, 2 skipped across the current repository suite. In addition to the existing API lifecycle/security checks, tests cover coach-payload delivery and integrity, database migration, no-person capture results, constructed swing arithmetic, separate reps, mirrored/left-handed motion, timing gates, missing-point gaps, capture exclusion, both JSON schemas and the new Colab test/preview path.
  • A fresh Python 3.11 environment with the selected core/API versions passed all 34 API/measurement tests. Actual CPU inference on a 12-frame derivative diagnostic clip produced body points in 12/12 frames, 17 body points and six foot points per frame, and schema-valid full and coach-only results without PyTorch installed. Its undeclared view correctly produced a capture failure. This is integration evidence, not original-recording accuracy or GPU qualification.
  • Actual Uvicorn HTTP startup returned health 200, GPU readiness 503, unauthenticated requests 401 and authenticated uploads 503 on this CPU-only machine. Both Compose configurations parse successfully.
  • The Docker daemon was unavailable locally, so the Linux image build and API-specific GPU inference were not executed here. The target server still needs the image build, successful CUDA readiness and one original-video upload that completes. Previous Colab evidence confirms these 2D model adapters ran on a T4, but it does not substitute for that deployment check.

Colab test of 2D swing separation

notebooks/batting_2d_test.ipynb now exposes the same GPU 2D worker directly. Its eight numbered steps cover authenticated source checkout, isolated GPU dependencies, two verified model downloads and actual CUDA preflight, one multi-swing video upload, progress, range/metric tables, optional inspection clips and selective ZIP download. It does not initialize 3D models or call the coach API. The old full-pipeline notebook remains separate.

The inspection helper encodes each selected inclusive frame range into an MP4 with raw body points and estimated event labels. It preserves source playback presentation positions relative to the clip start, verifies encoded frame counts/timestamps, handles image rotation and records resizing/audio omissions. These previews do not modify measurement data or add clip export to the HTTP API. Missing/nonmonotonic playback timestamps withhold a preview. Downloads exclude the original video, credentials, models and stale previews.

All 7 Colab/preview checks passed in the local core and separate Python 3.11 environments. They validate the notebook schema/cell syntax and deterministic builder, real encoding of variable-cadence fixture frame ranges, pixel/frame identity, rotation, overlays, preview limits, timestamp abstention, empty/overlapping ranges and ZIP contents. Actual execution of this new notebook on Colab CUDA and split/event accuracy on original baseball footage remain pending. This notebook tests the direct worker, not the Docker HTTP server.

Supplied Colab report and runtime repair

The supplied session-001-results (1).zip was produced from commit 04515c0. Its final run contained 338 frames, zero usable observations, and all three ONNX branches marked failed_preflight: "Requested CUDA session did not initialize on CUDA". Body reconstruction was disabled. The archive did not contain the original recording or native CUDA loader logs, so the precise driver/library failure is not established by that archive alone.

The updated GPU installer explicitly includes ONNX CUDA/cuDNN extras and installs ONNX locally in the chosen worker, checks GPU availability, and requires actual vision preflight before automatic analysis. Full-worker observations and their preflight use the full environment. Reports distinguish empty/failed observations from usable coverage, show setup issues, and save the actual observation environment. Failed observation chunks are retried after repair. No silent CPU substitution was introduced.

The archive's exported annotated video was decoded and rerun as a diagnostic on the local CPU using the same three artifact hashes. That derivative recording produced body observations in 338/338 frames, five projected metrics and 282 bat proposals across 244 frames. It produced no measured bat endpoints or ball observations. Bat identity requires a reviewed endpoint seed or a qualified trained endpoint checkpoint. This diagnostic is not an original-recording, physical-clock, GPU or measurement-accuracy validation.

The newer session-001-results (3).zip, from commit 0eb70ee, records a Tesla T4 / Python 3.11 full worker with all three ONNX branches ready. Its 1,898-frame recording produced supported core-body observations in 1,859 frames, including all 19 core landmarks in 1,609 frames. There were 433 bat proposals across 431 frames, zero supported bat endpoint frames, seven ball candidate frames, and five available projected metrics out of 27. All five reported swing events remained unknown. Visual inspection shows multiple practice swings and setup/walking footage within the 64.275-second clip, so whole-clip medians do not describe a single swing. The 60 active observation artifacts passed their archived SHA256 checks.

These coverage counts describe score-qualified model outputs, not verified visible joints. Sampled setup frame 17 includes inferred leg positions despite the legs being outside the view; its projected left-knee value is 170.91 degrees. The sampled ball candidate at frame 1886 falls on a toe. Automatic visibility/quality exclusion and ball identity qualification remain gaps, alongside per-swing splitting and a qualified automatic endpoint model.

SAM initialization stopped before model inference because the isolated worker inherited MPLBACKEND=module://matplotlib_inline.backend_inline from Colab. Temporal fitting and anatomy were consequently unavailable. Worker subprocesses now explicitly use MPLBACKEND=Agg, leaving the notebook's own environment unchanged. Real local stage launches with the poisoned parent backend passed, as did eight relevant runtime/recovery/anatomy tests (one OpenSim test skipped in the core environment). Full SAM inference on the supplied T4 runtime still requires a rerun; this fix does not qualify 3D measurements or add automatic bat endpoints, contact confirmation, or repetition splitting.

Area Implementation delivered Remaining execution/validation
Contracts/resources Capture/observation/motion/event/metric/finding records; versions, provenance and pinned resource/configuration definitions Provider-dependent readiness is established by actual preflight, not package names.
Ingestion/runtime Source PTS, separate physical clock, orientation/quality, isolated workers, candidate Python 3.11 full-worker installer and durable/exportable caches Supplied T4 archive confirms successful 2D GPU execution. Full SAM/temporal/anatomy clip execution remains pending after the plotting-backend repair.
Body/bat/ball observations Explicit RTMW/YOLOX adapters, stable identity, review, seeded contour/flow, variable-time ball association, qualified endpoint CNN inference Generic models are available; baseball accuracy and learned endpoint generalization require reviewed footage.
Events/reporting Directional load/onset, grounded foot candidates, closest projected approach, interaction/outgoing-ball candidate, synchronized reviewed audio corroboration, follow-through settling, reviewed outcomes and qualified trained candidates Automatic candidates never force a confirmed contact. Real event accuracy remains unmeasured.
Temporal body fitting Exact loaded MHR regressor, shared clip shape/scales, batched differentiable forward, Adam/L-BFGS, robust reprojection, priors/limits, real-time penalties, gaps, residuals and sensitivity Synthetic optimizer checks pass. Actual bundled MHR/SAM GPU/full-clip differentiation and memory qualification need accessible assets/CUDA.
Anatomy Generated project-owned 35-DOF .osim, explicit frames/markers, per-subject neutral proportions, weighted OpenSim IK, sparse refinement and rollback Local OpenSim/FK/IK/refinement checks pass. Real-video anatomical accuracy and integrated GPU-memory qualification remain pending.
Independent bat 3D Documented independent grip or synchronized calibrated multiview; ambiguity/ray/cheirality/reprojection/length gates Disabled without independent geometry. Real calibrated-recording validation remains pending.
Measurements Continuous raw/fitted curves, event-aligned projected/3D flexion, ground geometry, axial twist/heading, rotation-log velocity and peak timing, independent bat speed/attack direction with gates Outputs remain experimental/reference-validation-pending. Physical timing/world/contact omissions produce nulls.
Feedback/history Template rule engine, source/context/repeated-trial/uncertainty gates, sourced tee-practice educational hypothesis and version-matched supplied-ID history No coach review, corrective benefit, persistent fault, ideal angle or overall score is claimed.
Training/evaluation Reviewed crop/heatmap and phase/boundary/presence datasets, athlete/session split checks, actual optimization, validation selection, held-out metrics and hash-bound qualification No pretrained baseball custom-head weights are fabricated. Suitable reviewed datasets and passed evaluation are required for activation.
Reliability/reference tooling Verified chunk recovery/export, forced termination/resume checks, grouped data, independent-reference and distribution-table evaluation tools Independent synchronized biomechanical references, preregistered requirements and coaching studies remain to be acquired/evaluated.

Executed engineering evidence

  • The earlier core build passed 78 engineering tests, with 1 skipped. The skipped test requires OpenSim in that environment and was executed separately in the anatomical environment. These checks cover source timing, transforms, null/failure behavior, reviewed outcomes, actual training steps, official MS-TCN++ forward/gradients, geometry ambiguity, triangulation, optimizer arithmetic, feedback gates, chunk equivalence, forced worker termination/recovery, notebook/Git setup and exports. The current combined suite count is recorded in the API section above.
  • The separate OpenSim 4.6/macOS Python 3.13 environment passed the two anatomical test functions: neutral 35-DOF topology/mapping, OpenSim versus independent primitive FK, weighted IK and sparse refinement. A 180° camera-axis-flip IK check also passed. The earlier five-frame weighted IK fixture's maximum marker residual was approximately 0.00005 m; primitive FK agreement was within floating-point roundoff. This is synthetic arithmetic, not anatomical accuracy.
  • All 33 selected direct SAM worker/installer version pins were found in official PyPI metadata. The complete Linux CUDA dependency combination remains a candidate until installed and executed in Colab.
  • The three selected ONNX artifacts previously passed local CPU smoke inference; the RTMW adapter matched pinned RTMLib on a blank-image fixture. That does not validate baseball poses.
  • Notebook schema/cell syntax and source checkout pinning are checked locally. The user-supplied venv repair remains; the GPU install now includes CUDA/cuDNN extras and installs ONNX locally to avoid inherited-package conflicts.

Runtime boundaries

The local core uses Python 3.10 / ONNX Runtime 1.23.2; local anatomy checks use a separate Python 3.13 / OpenSim 4.6 environment. Neither qualifies the selected Colab Python 3.11 / CUDA 12.8 / ONNX GPU 1.26 / SAM profile. RTMLib is deliberately installed with --no-deps against headless OpenCV; its GUI OpenCV distribution metadata mismatch remains separately recorded.

SAM source revision is pinned to b5c765a0d89d789985e186d396315e7590887b94. Its estimator/MHR/projection APIs were checked against primary source. Actual provider assets were not downloaded or GPU-executed here. MS-TCN++ uses valid revision aef4e46c31bc7b2462065354054f968f91e54be1; the current upstream tip contains a syntax error and is not imported.

The supplied archive includes an exported annotated batting clip, used for a local diagnostic rerun. No original user recording or independent paired biomechanics reference is available. Therefore clean-session GPU integration, real-recording accuracy, custom-weight generalization, expert agreement and exercise effectiveness remain unverified. The backend implementation and evaluation tools are supplied so these next tests can be performed explicitly.