diff --git a/.omo/plans/release-readiness.md b/.omo/plans/release-readiness.md new file mode 100644 index 0000000..39b9922 --- /dev/null +++ b/.omo/plans/release-readiness.md @@ -0,0 +1,190 @@ +# release-readiness - Work Plan + +## TL;DR (For humans) + +**Who this is for and what changes for them:** A person with a Windows PC, a webcam, and DanceEvolution Arcade (via spice2x) who wants to play without a real Kinect. Today they'd have to clone a repo, set up Python, build two programs, and hand-edit tuning constants; after this, they download one zip, run a short one-time "stand here and stretch your arm" calibration, and play. + +**What you'll get:** A downloadable Windows bundle (the tracker app + the Kinect shim + the AI models + runtime, all included), a one-time guided calibration so the on-screen hand-cursor works on *their* camera (not just the author's), a plain setup guide, a clear license + credits for the bundled AI models, and an honest list of limits (one player only, needs decent lighting, DanceEvolution-focused). + +**Why this approach:** The one thing that is secretly tuned to the author's exact webcam is the menu-cursor sensitivity; a short guided calibration that measures the player's own arm reach replaces those magic numbers, so it works for strangers. Everything else is packaging and documentation so no build or Python is needed. + +**What it will NOT do:** It will not add a continuous-integration pipeline, will not add real two-player play (it will measure and document what two people do to the tracking, and give you a build to test in-game), will not change the project's personal-use license, and will not use the USB-device install path. + +**Effort:** Large +**Risk:** High - the camera-agnostic calibration must actually converge for arbitrary webcams/mounts, and the AI-model + runtime downloads come from a mirror that already disappeared once. +**Decisions to sanity-check:** the single shared calibration-file location both programs read; shipping the prebuilt `.onnx` instead of a user-side Python conversion; keeping the clean-room personal-use license while redistributing Apache/MIT third-party binaries (credits file added). + +Your next move: approve, or let the high-accuracy plan review run. Full execution detail follows below. + +--- + +> TL;DR (machine): Large / High. Ship a self-contained Windows player bundle: camera-agnostic cursor calibration (config/env gains + guided in-tracker calibration wired through core/calibration), pinned+vendored models/ORT, a rebuilt bundle around the native tracker, first-run hardening, a 2-player tracking experiment + testable build, refreshed user docs, and license/attribution. No CI, no real 2P feature, no license swap. + +## Scope +### Affected user and ideal state +**Affected user:** (U1, primary) a semi-technical DanceEvolution player on Windows with a webcam + spice2x who wants to play without a real Kinect v1 - today they must clone the repo, install a Python venv + MediaPipe `.task`, run `setup_models.sh`/`fetch_ort.sh`, cross-build the tracker + shim, and hand-edit `kArmGainX/Y` in C++; after, they download one zip, calibrate once, and play. (U2) owner of another Kinect-v1 Windows app (the shim is generic NUI). (U3) a developer extending it (clean-room code + `docs/game-internals.md`). + +| Row | Statement | Reason | +| --- | --- | --- | +| IS-1 | A primary user installs from one Windows bundle + a one-page guide and plays; no build, no Python | the value is "plug a webcam in and play" | +| IS-2 | The in-game skeleton + menu cursor work on an arbitrary webcam/FOV/mount via a one-time guided calibration, with a clear "re-run if the cursor is off" path | the cursor gains are the only author-camera-specific thing; the #1 blocker for strangers | +| IS-3 | Models (MediaPipe/BlazePose) + onnxruntime are in the bundle (or a one-command no-Python fetch) from a stable, pinned source | current fetch needs a Python venv + tf2onnx + a `.task`, and ORT comes from a mirror that already vanished once | +| IS-4 | Docs match the verified working state and cover the native-tracker play path end to end | tracker README says "in progress", `setup-windows.md` says "[~] not executed", `calibration.md` says "not wired" | +| IS-5 | The release carries a clear personal-use LICENSE + third-party attribution for the bundled binaries | current LICENSE trails off at "A formal open-source license..."; no model/ORT credits | +| IS-6 | Camera/lighting/framing requirements + limitations (single-player) are documented, and the user has a build to test 2 players in-game | sets expectations; the user asked to know what 2 people do to the tracking | +| GAP-1 | arm gains (3.2/2.6) + mirror/L-R swap hardcoded in `sensor.cpp`; no config; `core/calibration` unwired | author-FOV-specific -> wrong cursor coverage on other cameras | +| GAP-2 | models + ORT gitignored; obtained via Python/tf2onnx + a recovery mirror | a player cannot get them without a dev toolchain | +| GAP-3 | `packaging/build_bundle.sh` windows branch ships the OLD Python `tracker/`, not `kinect-tracker.exe`/models/ORT | predates the native tracker - latent release bug | +| GAP-4 | no first-run self-check; stranger-machine failures (wrong camera, no 4:3, missing MS Kinect 1.8 runtime, SHM/model/bitness) are silent | unframed first run looks broken | +| GAP-5 | LICENSE unfinished; no `ThirdPartyNotices` | redistribution of Apache/MIT binaries uncredited | +| GAP-6 | no documented requirements/limitations; 2P behavior uncharacterized | single-machine testing; user wants the 2P tracking answer | + +### Must have +- Config/env-driven cursor gains (default byte-identical to today's 3.2/2.6) + a guided in-tracker calibration that writes a shared config, wired through `core/calibration`. +- One canonical calibration-file path the tracker writes and the shim reads. +- Pinned, prebuilt `.onnx` models + pinned ORT, vendored or fetched from a stable source with checksums; no Python needed to obtain them. +- `packaging/build_bundle.sh` windows branch rebuilt around `kinect-tracker.exe` + both `Kinect10.dll` + models + ORT + a `RUN.txt`. +- Tracker preflight self-check + clear status/log errors for the stranger-machine failure modes. +- A 2-player tracking experiment report + a minimal 2-skeleton build the user can test in-game. +- User docs (setup-windows, calibration, READMEs) refreshed to the working state + requirements + limitations. +- Finished personal-use LICENSE + `ThirdPartyNotices` (ORT MIT, MediaPipe/BlazePose Apache-2.0). + +### Must NOT have (guardrails, anti-slop, scope boundaries) +- NO change to shim behavior when no config/env is present (byte-identical 3.2/2.6, mirror on, L/R swap on). +- NO gain applied to hip/center-of-mass (the validity box + `vFloorClipPlane` auto-centering must stay intact). +- NO per-frame auto-derived gain (non-deterministic, foreshortens). +- NO CI / GitHub Actions (the user removed them). +- NO real two-player feature beyond a minimal, clearly-labelled experimental 2-skeleton path. +- NO first-party OSS-license swap (keep clean-room personal-use). +- NO usbip/attach device path work; NO modifying any game file. + +## Verification strategy +> All EXECUTOR verification is agent-executed. Exactly ONE surface is deferred to the user by necessity: the in-game cursor FEEL and the 2P behavior INSIDE DanceEvolution, because DEA (an 8.2GB spice2x + DirectX build needing a real camera) cannot run in the build environment. That is an explicit USER COMPLETION GATE (IS-2 / IS-6 in-game sign-off), NOT an agent-skippable step - the goal is not complete until the user confirms in-game. Everything the host CAN prove is proven by the agent, INCLUDING the full calibration->config->shim-gain->published-skeleton MECHANISM end to end (not merely gain arithmetic) and the native-tracker 2-person tracking experiment. +- Test decision: tests-after. GoogleTest (`build/linux/libnui_core_tests`, CTest) for core/calibration math AND an end-to-end host integration test of the gain chain (todo 1); a committed harness driving the native `PoseEstimator` over a fixed 2-person sequence (todo 5); shell/dry-run assertions for packaging + fetch; doc link/stale-string greps for docs. +- Evidence: `.omo/evidence/task--release-readiness.` (standalone plan, not ulw-loop). +- DEFERRED USER GATE (record as its own checklist item at handoff): after the agent todos pass, the user (a) runs the guided calibration on their webcam, (b) confirms the menu cursor covers the screen + recalibration works in DEA, (c) reports the 2-skeleton probe's in-game effect. IS-2/IS-6 completion requires this sign-off. + +## Execution strategy +### Parallel execution waves +> Two todos share a wave unless one reads what the other produces or both write the same file. +- Wave 1 (parallel, no cross-writes): 1 (shim+core+tracker tuning), 2 (models/ORT under `tracker-native/` + a new vendoring dir), 5 (2P experiment: a separate shim 2-skeleton branch + a report), 7 (LICENSE + `ThirdPartyNotices`). +- Wave 2: 3 (bundle) - needs 1's config layout + 2's pinned artifacts. +- Wave 3 (parallel): 4 (tracker preflight) - needs 3's bundle layout to know what to check; 6 (docs) - needs 1 + 3; 8 (limitations) - needs 1 + 4 + 5. + +### Dependency matrix +| Todo | Writes (files, shared state) | Depends on (reason) | Blocks | +| --- | --- | --- | --- | +| 1 | `fallback/windows-nui/src/sensor.cpp`, `core/calibration/*`, `tracker-native/src/win_main.cpp` (+ calib UI), tests | - | 3, 6 | +| 2 | `tracker-native/scripts/*`, a vendored `third_party/models` pin + checksums, `.gitignore` | - | 3 | +| 3 | `packaging/build_bundle.sh`, `packaging/README.md`, bundle `RUN.txt` | 1 (config layout), 2 (pinned artifacts) | 4, 6 | +| 4 | `tracker-native/src/win_main.cpp` (preflight), `tracker-native/src/win_camera.cpp` | 3 (bundle layout) | 8 | +| 5 | `fallback/windows-nui/src/sensor.cpp` (guarded 2P branch), a `docs/` experiment note | - | 8 | +| 6 | `docs/setup-windows.md`, `docs/calibration.md`, `README.md`, `tracker-native/README.md` | 1, 3 | - | +| 7 | `LICENSE`, `ThirdPartyNotices.txt` | - | 3 | +| 8 | `docs/limitations.md` (or a README section) | 1, 4, 5 | - | + +> NOTE on 1 vs 5: both touch `sensor.cpp`. They do NOT share a wave safely unless the 2P branch (5) and the gain/config block (1) are in disjoint regions; to keep Wave 1 parallel, todo 5 confines its edit to a new, compile-time-guarded `BuildSecondSkeleton` path and must rebase onto 1's `sensor.cpp` if 1 lands first. If that risks a conflict, the executor serializes 5 after 1 (same wave, ordered) - recorded here so the executor does not merge-clobber. + +## Todos +> Implementation + Test = ONE todo. Never separate. + +- [ ] 1. Camera-agnostic cursor tuning: config/env gains + guided calibration wired through core/calibration + What to do / Must NOT do: (a) In `fallback/windows-nui/src/sensor.cpp` replace the hardcoded `kArmGainX=3.2f/kArmGainY=2.6f` (and expose the mirror/L-R-swap flags) with values resolved at `VirtualKinectSensor::Initialize` using the existing `GetEnvironmentVariableW` pattern; precedence env (`KINECT_SHIM_ARM_GAIN_X`/`_Y`) > config file > built-in default. Defaults MUST stay 3.2/2.6 so no-config behavior is byte-identical. Do NOT apply gain to the hip/center-of-mass. (b) Extend `core/calibration` (`CalibrationConfig`, `save_config`/`load_config`) with `arm_gain_x`/`arm_gain_y`; add a derivation that, from a raised/extended-arm observation (reuse `RaiseRightArmObservation`), computes `gain = target_reach / measured_reach` per axis in POST-L/R-swap, POST-mirror skeleton space, clamped to [1.0, 6.0], averaged over a multi-frame hold; target reach from the real-Kinect reference (x ~0.86, y ~0.5 above shoulder, see `docs/game-internals.md` §3). (c) Add a "Calibrate cursor" action to the native tracker Win32 GUI (`win_main.cpp`) that runs the hold, calls the core derivation, and writes the shared config. (d) Canonical config path BOTH read: `%LOCALAPPDATA%\VirtualKinect\calibration.cfg`, overridable via `KINECT_SHIM_CONFIG`; the shim reads the same path. Must NOT use per-frame auto-derive. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: - | Blocks: 3, 6 + References (executor has NO interview context - be exhaustive): `fallback/windows-nui/src/sensor.cpp:751-774` (kSwap, kArmGainX/Y, amp_arm inside BuildSkeletonFrame), `sensor.cpp:227` (MappingName reads KINECT_SHIM_SHM via GetEnvironmentVariableW), `fallback/windows-nui/src/shim_log.h` (KINECT_SHIM_LOG same pattern), `core/calibration/calibration.h` + `calibration.cpp:38-56,79-133` (TposeObservation, RaiseRightArmObservation, calibrate_tpose player_scale, save/load_config), `core/calibration/calibration.cpp` key/value text format, `tracker-native/src/win_main.cpp:73-79,472,575` (ExeDir, Save/LoadLastSelection pattern for file IO + GUI wiring), `docs/game-internals.md` §3 (real-Kinect reach numbers), `docs/calibration.md` ("not wired" caveat to remove), `tests/test_calibration.cpp`. + Acceptance criteria (agent-executable): core tests green incl. new gain-derivation cases; a shim-side gain/config-resolution unit (extract `resolve_arm_gains()` so it is testable off-Windows) returns env>file>default correctly and defaults to exactly 3.2/2.6; shim cross-builds via `fallback/windows-nui/build.sh`; tracker cross-builds via `tracker-native/build_win.sh`. + QA scenarios (exact tool + invocation; faults injected, never real waits): (1) unit happy - GoogleTest: extended-arm observation (measured reach 0.5, target 0.86) -> assert derived `arm_gain_x == clamp(1.72)`; `resolve_arm_gains` with env `KINECT_SHIM_ARM_GAIN_X=5.0` -> 5.0, unset+no file -> 3.2. (2) unit failure - `load_config` on a malformed/empty file -> `resolve_arm_gains` falls back to 3.2/2.6, no crash. (3) END-TO-END MECHANISM (proves IS-2 on the host, no game): a GoogleTest running the FULL chain - derive gains from a synthetic extended-arm observation -> `save_config` to a temp path -> `resolve_arm_gains(load_config(path))` -> apply the shim's `amp_arm` to a synthetic post-swap skeleton -> assert the resulting HAND_R excursion-from-shoulder equals the target reach within tol AND hip/center-of-mass is byte-unchanged (share `resolve_arm_gains`/`amp_arm` as linkable units so this builds off-Windows). Run `cmake --build build/linux --target libnui_core_tests && ./build/linux/libnui_core_tests`. Evidence `.omo/evidence/task-1-release-readiness.txt`. In-game cursor FEEL is the deferred USER GATE. + Commit: Y | feat(tuning): config/env-driven cursor gains + guided calibration via core/calibration + Recommended task executor category: unspecified-high + +- [ ] 2. Models + onnxruntime: pin exact versions, ship prebuilt .onnx, remove the Python/mirror dependency + What to do / Must NOT do: Pin the exact model set (`pose_detector`, `pose_landmarks_detector` .tflite/.onnx) + the exact ORT version; store the prebuilt `.onnx` (no user-side tf2onnx) and the ORT redistributable at a stable location - vendor into the repo under a size-appropriate path OR a release asset with a pinned URL + SHA256 manifest + a no-Python `fetch` script that verifies checksums. Replace `setup_models.sh`'s Python/tf2onnx path for end users (keep a dev note for regenerating). Fix `fetch_ort.sh` to not depend on the vanished official repo / single mirror: pin a SHA256 and document the exact source. Confirm redistribution rights (MediaPipe/BlazePose Apache-2.0, ORT MIT) - record in the manifest; the actual NOTICE text is todo 7. Must NOT commit multi-hundred-MB blobs if a pinned+checksummed release asset is cleaner; Must NOT leave any step requiring a Python venv for a *player*. + Closes: GAP-2 + Parallelization: Wave 1 | Blocked by: - | Blocks: 3 + References: `tracker-native/scripts/setup_models.sh` (tf2onnx + .task), `tracker-native/scripts/fetch_ort.sh` (recovery-mirror header, ORT 1.20.1), `tracker-native/.gitignore` (`models/ *.onnx *.tflite`), `.gitignore` (`*.task`, `tracker/models/`), `tracker-native/build_win.sh` (expects `models/pose_landmarks_detector.onnx` + `third_party/onnxruntime-win-x64/lib/onnxruntime.dll`), `tracker-native/models/` current contents. + Acceptance criteria: a fresh checkout + the new no-Python fetch (or vendored files) yields `models/pose_landmarks_detector.onnx` + `onnxruntime.dll` with SHA256 matching the manifest; `tracker-native/build_win.sh` finds them and links; no Python invoked in the player path. + QA scenarios: happy - run the new fetch script into a temp dir, assert the two artifacts exist and `sha256sum -c manifest` passes. failure - corrupt one byte of a downloaded artifact (inject) -> the script's checksum verify FAILS loudly and non-zero. Evidence `.omo/evidence/task-2-release-readiness.txt`. + Commit: Y | build(models): pin + checksum prebuilt models and ORT, drop the Python/tf2onnx player dependency + Recommended task executor category: unspecified-high + +- [ ] 3. Windows prebuilt bundle rebuilt around the native tracker + What to do / Must NOT do: Rewrite the `windows)` branch of `packaging/build_bundle.sh` to assemble a player bundle: `kinect-tracker.exe` (from `tracker-native/build/dist/`), both `Kinect10.dll` (x86 + x64), the pinned models + `onnxruntime.dll` (from todo 2), the calibration-file layout note (todo 1), and a `RUN.txt` one-pager (install MS Kinect 1.8 runtime, drop `Kinect10.dll` into the DEA contents folder matching bitness, run `kinect-tracker.exe`, calibrate, launch DEA). Remove the obsolete Python-`tracker/` copy loop from the windows branch. Must NOT bundle MS/DEA assets. Must NOT require the user to build anything. + Closes: GAP-3 + Parallelization: Wave 2 | Blocked by: 1, 2 | Blocks: 4, 6 + References: `packaging/build_bundle.sh` (windows branch lines ~89-94 shim copy; the Python `tracker/` loop to delete; linux branch RUN.txt pattern), `packaging/README.md`, `tracker-native/build_win.sh` output `build/dist/kinect-tracker.exe` + `onnxruntime.dll`, `fallback/windows-nui/build/Kinect10-x86.dll`/`-x64.dll`, `docs/setup-windows.md` (what to tell the player). + Acceptance criteria: `packaging/build_bundle.sh windows /tmp/out` (with artifacts present) produces `/tmp/out` containing `kinect-tracker.exe`, `shim/x86/Kinect10.dll`, `shim/x64/Kinect10.dll`, `models/*.onnx`, `onnxruntime.dll`, `RUN.txt`, `LICENSE`, `ThirdPartyNotices.txt`; it `die`s with a clear message if any artifact is missing; no `tracker/*.py` in the output. + QA scenarios: happy - stage fake artifacts of the right names, run the script, assert the manifest of `/tmp/out` matches the expected tree and contains no `.py`. failure - remove `kinect-tracker.exe` before running -> script exits non-zero with "missing artifact". Evidence `.omo/evidence/task-3-release-readiness.txt`. + Commit: Y | build(packaging): rebuild the Windows bundle around the native tracker + shim + models + ORT + Recommended task executor category: unspecified-high + +- [ ] 4. First-run robustness: tracker preflight self-check + clear errors + What to do / Must NOT do: Add a preflight in the native tracker (before/at capture start) that detects and surfaces, via the status line + `kinect_tracker.log`: no camera / selected camera gone, no 4:3 mode available, model/ORT file missing next to the exe, SHM create/open failure, and a note on DLL bitness-vs-DEA. Each failure gives a specific actionable message (not a generic crash). Camera+resolution persistence is ALREADY implemented (`win_main.cpp:73-79`) - VERIFY it still works, do not rebuild it. Must NOT add telemetry; Must NOT block the happy path. + Closes: GAP-4 + Parallelization: Wave 3 | Blocked by: 3 | Blocks: 8 + References: `tracker-native/src/win_main.cpp` (WorkerLoop open/model-load/publish, SetStatus, Save/LoadLastSelection:73-79,472,575), `tracker-native/src/win_camera.cpp` (open, enumerate_resolutions, 4:3 filter in PopulateResolutions), `tracker-native/src/shm_publisher.cpp` (init failure), `tracker-native/src/trace_log.cpp`. + Acceptance criteria: tracker cross-builds; each failure path returns a distinct, asserted status string; the persistence round-trip is covered by a quick check. + QA scenarios: happy - point the model path at a missing file (temp rename), launch the worker, assert the status line reads the specific "model not found" message (drive via a headless test entry or a status-string unit over the preflight function). failure - request a resolution the fake camera lacks -> asserted "no 4:3 mode" message, no crash. Evidence `.omo/evidence/task-4-release-readiness.txt`. + Commit: Y | feat(tracker): first-run preflight self-check with actionable errors + Recommended task executor category: unspecified-low + +- [ ] 5. Two-player tracking experiment + minimal testable 2-skeleton build + What to do / Must NOT do: (a) Characterize what two people do to the SHIPPING tracker by running the NATIVE `PoseEstimator` (ONNX BlazePose, `tracker-native/src/pose_estimator.cpp`) - NOT the Python `mp.solutions.pose` proxy - over a reproducible, committed 2-person image sequence via a small Linux harness (extend `skel_render_probe.cpp` or add `two_person_probe`), recording per frame which person is selected and any loss/reacquisition/switch as relative prominence changes. Commit the harness + the fixed input so it is reproducible; the Python result (`/tmp/twop_seq.py`) is a prior hint, not the evidence. (b) Ship a MINIMAL, clearly-experimental 2-skeleton path so the USER can test in-game what DEA does with two skeletons: the simplest honest option is a compile-time/env-guarded shim branch that publishes a SECOND `SkeletonData[1]` derived from the one tracked skeleton (e.g. a horizontally-offset copy with a distinct `dwTrackingID`), OFF by default - this lets the user see whether DEA lights up `CUR2` without a real multi-person tracker. Document that this is a probe, not real 2P. Must NOT claim real 2-player support; Must NOT enable the 2-skeleton branch by default; Must NOT regress the single-player validity box (keep hip/CoM of skeleton 0 unchanged). + Closes: GAP-6 (2P portion) + Parallelization: Wave 1 (rebase onto todo 1 if it lands first; see NOTE above) | Blocked by: - | Blocks: 8 + References: `tracker-native/src/pose_estimator.cpp` (native `PoseEstimator::acquire`/`run`, ROI tracking loop - the shipping selector), `tracker-native/src/skel_render_probe.cpp` + `tracker-native/build.sh` (existing Linux pose harness to extend), `fallback/windows-nui/src/sensor.cpp` BuildSkeletonFrame (fills only `SkeletonData[0]`; 6 NUI slots; `src.has_player`), `docs/game-internals.md` §4 (2P facts, CUR1/CUR2, SetTrackedSkeletons), `core/contract/contract.h` (single SkeletonFrame), prior Python hint `/tmp/twop_seq.py`. + Acceptance criteria: (i) a committed native-`PoseEstimator` 2-person harness + fixed input runs on Linux and its recorded output states, per frame, which person is tracked + any loss/switch - that output IS the IS-6 experiment evidence; (ii) a written experiment note summarizing it; (iii) the shim's guarded 2-skeleton branch cross-builds, default-off verified (no `SkeletonData[1]` unless env/flag set), single-player path byte-unchanged when off. + QA scenarios: (1) EXPERIMENT (GAP-6) - build + run the native-`PoseEstimator` harness over the committed 2-person sequence; assert it emits exactly one tracked skeleton per frame and logs the selection + any switch/reacquisition; save the transcript as the finding. (2) probe happy - flag OFF -> built frame slot 1 `NOT_TRACKED`; ON -> slot 1 `TRACKED` with a distinct id + offset X (unit over BuildSkeletonFrame or mock-nui-host). (3) probe failure - enabling the branch does NOT change slot 0 hip/Position (validity box intact). Evidence `.omo/evidence/task-5-release-readiness.txt`. In-game CUR2 behavior is the deferred USER GATE. + Commit: Y | feat(shim): experimental default-off 2-skeleton probe + 2-player tracking writeup + Recommended task executor category: deep-low + +- [ ] 6. User documentation pass (setup, calibration, READMEs) + What to do / Must NOT do: Rewrite `docs/setup-windows.md` for the native-tracker play path (get the bundle, install MS Kinect 1.8 runtime, place `Kinect10.dll` by bitness, run the tracker, calibrate, launch DEA) - remove the "[~] not executed" caveats for the now-verified steps, keep honesty only where still true. Update `docs/calibration.md` to document the new guided cursor calibration and remove "not yet wired into runtime". Refresh `README.md` status + `tracker-native/README.md` ("in progress" -> working; drop the stale "Next:" list). Add a camera/lighting/framing requirements section. Must NOT invent steps not backed by the code; Must NOT pin prose with tests (doc QA is link/stale-string checks + read-review). + Closes: GAP-4 (docs portion of IS-4) + Parallelization: Wave 3 | Blocked by: 1, 3 | Blocks: - + References: `docs/setup-windows.md`, `docs/calibration.md`, `README.md`, `tracker-native/README.md`, `docs/native-tracker.md` (already refreshed), `docs/game-internals.md`, the bundle `RUN.txt` (todo 3). + Acceptance criteria: no remaining "in progress"/"not yet wired"/"[~] not executed" strings for steps that now work; every internal doc link resolves; the setup guide references only real artifacts/paths. + QA scenarios: happy - `grep -rnE 'not yet wired|in progress|\[~\]' docs README.md tracker-native/README.md` returns only still-true instances (assert the calibration/tracker ones are gone); a link-check over `docs/*.md` finds no broken relative links. failure - n/a (doc pass) - instead a read-review checklist recorded. Evidence `.omo/evidence/task-6-release-readiness.txt`. + Commit: Y | docs: rewrite setup/calibration/READMEs for the shipping native-tracker path + Recommended task executor category: writing + +- [ ] 7. Licensing + third-party attribution + What to do / Must NOT do: Finish `LICENSE`'s trailing sentence KEEPING the clean-room personal-use stance (user decision) - make the grant/limits explicit and complete, no OSS swap. Add `ThirdPartyNotices.txt` crediting the bundled binaries: onnxruntime (MIT, full text), MediaPipe/BlazePose models (Apache-2.0 + model-card attribution), and note MS Kinect SDK headers are interface-only (not bundled) and DEA/spice2x are user-supplied. Wire both files into the bundle (todo 3 copies them). Must NOT relicense first-party code; Must NOT bundle any MS/DEA asset. + Closes: GAP-5 + Parallelization: Wave 1 | Blocked by: - | Blocks: 3 + References: `LICENSE` (clean-room notice, trailing "A formal open-source license..."), the README "Clean-room notice" section, model source (MediaPipe Apache-2.0), ORT (MIT), `packaging/build_bundle.sh` (copies LICENSE already). + Acceptance criteria: `LICENSE` has no trailing/unfinished sentence and states the personal-use terms completely; `ThirdPartyNotices.txt` exists with the MIT + Apache-2.0 texts and model attribution; both are listed in the bundle assembly. + QA scenarios: happy - assert `LICENSE` does not end mid-sentence (no trailing "A formal open-source license") and `ThirdPartyNotices.txt` contains "MIT" + "Apache License, Version 2.0"; `grep` the bundle script copies both. failure - n/a (text) - read-review recorded. Evidence `.omo/evidence/task-7-release-readiness.txt`. + Commit: Y | docs(license): finish the personal-use LICENSE + add ThirdPartyNotices for bundled models/ORT + Recommended task executor category: writing + +- [ ] 8. Documented limitations & requirements + What to do / Must NOT do: Add a concise limitations/requirements section (new `docs/limitations.md` linked from README, or a README block) stating: single-player only (with the 2P experiment result from todo 5), menu cursor is "good enough" not pixel-perfect and needs the one-time calibration, requires decent lighting + full-body 4:3 framing, Windows/DEA-focused (shim is generic NUI but only DEA is proven), personal-use/test-signing note. Must NOT overstate support; mirror the Must-NOT list. + Closes: GAP-6 + Parallelization: Wave 3 | Blocked by: 1, 4, 5 | Blocks: - + References: todo 5 experiment note, `docs/game-internals.md` §4, `docs/calibration.md`, `README.md`, the Must-NOT list above. + Acceptance criteria: the section exists, is linked from README, and each limitation maps to a real code/behavior fact (no invented limits or capabilities). + QA scenarios: happy - assert the file/section exists and contains "single-player", "calibration", "lighting", "DanceEvolution"; README links to it (grep). failure - n/a (doc) - read-review recorded. Evidence `.omo/evidence/task-8-release-readiness.txt`. + Commit: Y | docs: add requirements + limitations (single-player, calibration, lighting, scope) + Recommended task executor category: writing + +## Final verification wave +> Runs in parallel after ALL todos. ALL must APPROVE. Surface results and wait for the user's explicit okay before declaring complete. +- [ ] F1. Plan compliance audit - every todo's acceptance + QA met with evidence; Must-NOT guardrails (default byte-identical gains, no CI, no license swap, no game-file edits, 2P off by default) all held. Recommended task executor category: unspecified-high +- [ ] F2. Code quality review - gate-reviewer over the full diff (shim config/gain, core/calibration wiring, tracker preflight/calib UI, packaging). Recommended task executor category: unspecified-high +- [ ] F3. Real manual QA - run every executor-runnable scenario once more (core tests, both cross-builds, `build_bundle.sh windows` dry-run into a temp dir, fetch-checksum, doc greps) and capture artifacts; confirm the assembled bundle tree. Recommended task executor category: unspecified-high +- [ ] F4. Ideal-state fidelity - check IS-1..IS-6 1:1 against delivered behavior; any shortfall becomes new numbered implementation rows. Note IS-2/IS-6 in-game acceptance is the user's deferred playtest. Recommended task executor category: unspecified-high + +## Commit strategy +One atomic commit per todo (change + its evidence), each building + core-tests-green on its own; Conventional Commits matching repo history (`git log --oneline -20`); never commit built binaries (shim DLL, tracker exe) - only source, scripts, configs, docs, and (if chosen for todo 2) pinned+checksummed model/ORT acquisition artifacts. Footer on the final commit: `Plan: .omo/plans/release-readiness.md`. + +## Success criteria +> One row per IS row. +| IS | Delivering todo(s) | Proving QA scenario | Evidence | +| --- | --- | --- | --- | +| IS-1 | 3 | bundle assembly produces the full player tree, no `.py`, no build needed | `.omo/evidence/task-3-release-readiness.txt` | +| IS-2 | 1 | end-to-end host mechanism test (calibration->config->shim-gain->published HAND excursion = target reach; hip unchanged) + resolution unit tests; in-game cursor FEEL = explicit deferred USER GATE | `.omo/evidence/task-1-release-readiness.txt` + user in-game sign-off | +| IS-3 | 2 | no-Python fetch yields checksum-matching models + ORT | `.omo/evidence/task-2-release-readiness.txt` | +| IS-4 | 6 (+1,4) | stale-string + link checks pass; setup guide references real paths | `.omo/evidence/task-6-release-readiness.txt` | +| IS-5 | 7 | LICENSE complete + ThirdPartyNotices has MIT + Apache-2.0 | `.omo/evidence/task-7-release-readiness.txt` | +| IS-6 | 5, 8 | native-PoseEstimator 2-person experiment transcript (selection/loss/switch) + 2-skeleton probe off-by-default unit + limitations section; in-game 2P effect = deferred USER GATE | `.omo/evidence/task-5-release-readiness.txt`, `.omo/evidence/task-8-release-readiness.txt` + user in-game sign-off |