# ym2413-python's Nuked-OPLL harness From the emulator family's ym2413-python repository: `validation/nuked_harness.c`, moved out on 2026-11-22 (history clean-up, wave G) as it stood at ym2413-python `887afa5` (old history; `cb645b7` after the rewrite, without it). ## What it measures The YM2413 and DS1001 melody and rhythm output words of a die-derived model, slot by slot, for ym2413-python's synthetic register streams. OBSERVED (Nuked-OPLL 1269cf5): a detector, never a judge. ## Who uses it ym2413-python, which finds this folder through `YM2413_GPL_TOOLS`. `validation/closed_box.py` (rung 6) compiles it into the git-ignored `validation/build/` against the Nuked-OPLL files `scripts/fetch_references.py` fetches. ## Contents - `nuked_harness.c`: Drives Nuked-OPLL as a closed box through the three calls its public header declares (reset a chip of a given type, write a port, advance one call). Commands arrive on standard input, one per line (a write of a byte to a port, or a number of clock calls); after each clock call the first two words of the model's output buffer go to standard output as two 32-bit integers. The model's source file is compiled and never opened. Upstream: Nuked-OPLL (Nuke.YKT), GPL-2.0-or-later (its LICENSE and the header's grant), `1269cf5`. ## Licence and notices Our code (alewman), first published under MIT in ym2413-python (`../../notices/MIT-emulator-family.txt`); it carries no SPDX line. Linked with Nuked-OPLL, the built harness is GPL-2.0-or-later. Upstream code is not committed here, except where a file above says it carries upstream lines; each tool fetches and builds its upstream at the pin from the consuming repository. This repository is GPL-3.0-or-later (`../../LICENSE`). ## Outputs Every value these tools give is a closed-box measurement: tag it OBSERVED with the upstream and its pin, and let any document or hardware measurement overrule it (`emu-tools/docs/wall.md`). The family behind the shim, `../nuked`, gives the contract's manifest and command line (`emu-tools/docs/contract.md`); the shim keeps the old formats. ## Now a shim (2026-11-23) `nuked_harness.c` is now a one-line shim that includes the Nuked harness family's source (`../nuked/src/opll_stream.c`; nuked-harness 0.1.0, `../nuked/README.md`), so this consumer's own compile command builds the same program: the stripped binaries are identical, and the consumer's closed-box run gave the same output before and after the regrouping. The family also fetches and builds the model at its pin (`../nuked/build.sh`) and runs it on the contract's command line (`../nuked/run.py`); how the consumer moves to it is in `../../docs/consumer-migration.md`.