# Provenance of ay8910-rust ## What it is transcribed from ay8910-python at `a3bb48511db96356581b010e87a6476eaa03e9bc` (2026-11-22, its `main`), MIT, by alewman, and nothing else: | This crate | From ay8910-python at the pin | | --- | --- | | `src/chip.rs` | `src/ay8910_python/chip.py`, method for method, its docstrings as doc comments | | `src/variants.rs` | `src/ay8910_python/variants.py`; the four computed DAC tables written out as the numbers it computes (`repr`), each with its formula, and checked bit for bit against the formula in `tests/variants.rs` | | `src/conformance.rs`, `src/bin/ay8910-conformance.rs` | `src/ay8910_python/conformance.py` (the JSON reader is this crate's own: the Python uses its standard library) | | `tests/chip.rs`, `tests/variants.rs`, `tests/conformance.rs` | `tests/test_chip.py`, `test_variants.py`, `test_conformance.py` | | `tests/conformance/*.json`, `*.trace` | `examples/conformance/`, copied unchanged (made by ay8910-python's `scripts/make_examples.py`) | | `scripts/seeded_faults.py`, the first 61 faults | `scripts/mutation.py`'s list, each rule broken the same way in the Rust text | | `scripts/export_streams.py` | replays `scripts/streams.py` the way `scripts/referee.py`'s `core()` and `load()` apply streams to the core; it imports `streams.py` from the pinned clone, it does not copy it | Read for the transcription: ay8910-python's source, tests, scripts (`streams.py`, `referee.py`'s core side, `mutation.py`, `make_examples.py`'s head) and docs (README, `contract.md`, `claims.md`, `validation.md`, `conformance.md`, `provenance.md`). For the shape of the repository (scripts, rungs, CI): the family's MIT Rust sound ports ym2413-rust and sn76489-rust, and famicom-rust's fetch script. For the board's calls: famicom-python's `cartridge/sunsoft.py` (mapper 69), MIT. ## What was not read or run - No other emulator's or model's source: not MAME's `ay8910.cpp` (its facts reach this crate only through ay8910-python's prose and citations), not lvd's AY-3-8910 Verilog, not YM2203-LLE, nothing of Nuked, not emu-tools-gpl's tool bodies, nothing of the family's archived Nuked-derived cores or any `zzz-*` archive. - No closed-box referee was run. ay8910-python's `reference/` directory (its fetched judges and documents) is not in the pinned clone and was not opened. This crate is judged against ay8910-python's own outputs only. ## Data carried with its notice - `DAC_YM_MEASURED` is ayumi's `YM_dac_table` (Peter Sovietov, MIT), as in ay8910-python; its MIT notice travels with it in `src/variants.rs`. - `DAC_AY_MEASURED` is Matthew Westcott's 2001 voltages (public domain), normalised, cited. ## Local inputs that are never committed - `external/` (git-ignored): the pinned clone, its PyPy venv, and every generated script and trace. - ay8910-python's board streams (`validation/streams/*.stream`) are the bus writes of *Gimmick!* and of rainwarrior's 5B test programs, recorded from famicom-python. Being derived from ROMs they are local only there, and rung 3 reads them from a checkout beside this repository (or `AY8910_BOARD_STREAMS`) without copying them in. ## Licence MIT, like ay8910-python. Every file carries `SPDX-License-Identifier: MIT` (the vendored JSON and trace files, which cannot hold a comment, are covered by `LICENSE` and this page). ## Audit of 2026-11-25 (the pass families.md names as owed) By the method of emulator-lineage `docs/provenance-audit-2026-11.md`, judged from this repository's code, docs and history (no GPL source opened; ay8910-python's re-audit of the same day covers the reference). | Piece | Where it came from | Licence | Verdict | | --- | --- | --- | --- | | `src/chip.rs`, `src/variants.rs`, `src/conformance.rs`, the binary | ay8910-python `a3bb485`, transcribed (table above) | MIT | **clean** | | `DAC_YM_MEASURED` in `src/variants.rs` | ayumi's `YM_dac_table`, through the reference | MIT (Peter Sovietov) | **cite**: notice beside the table, a second header line naming it (added 2026-11-25), NOTICE.md (added 2026-11-25) | | `DAC_AY_MEASURED`, `WESTCOTT_VOLTS` | Matthew Westcott's voltages, through the reference | public domain | **clean** (credited in NOTICE.md) | | Prose citing MAME's `ay8910.cpp` (register widths, the noise register, the read after an address byte), and one seeded fault named after MAME's envelope | the reference's citations of its hardware statements; MAME not read for this crate | BSD-3-Clause (both files' `license:` lines, per the reference's audit) | **clean**: facts, credited in NOTICE.md | | Prose naming lvd's model and the YM2203 die model as closed boxes (`src/chip.rs`, `src/variants.rs`, README) | the reference's closed-box results, named as such | the models are GPL; nothing of them here | **clean** | | `tests/conformance/*.json`, `*.trace` | ay8910-python's examples, copied unchanged | MIT | **clean** | | tests, scripts, examples, CI | own, or transcribed from the reference's | MIT | **clean** | **Sources against sources.md:** ay8910-python (family, MIT); ayumi, MAME `ay8910.cpp`/`.h` and Westcott's voltages through it (rows added to sources.md on 2026-11-25); the two GPL die models named only as the reference's closed boxes (rows present: closed box only); no source is fetched by this crate except ay8910-python itself (`scripts/fetch_ay8910python.sh`). **History:** five commits (`6566e86` .. `9b670a7`, 2026-11-23). No third-party file, GPL licence text or file-and-line citation of GPL code was ever added or deleted; `external/` (the pinned clone and its venv) and `trash/` are git-ignored and never committed. **Licence files and headers:** LICENSE (MIT) present; every code, test, script and CI file carries `SPDX-License-Identifier: MIT` (0 missing, checked 2026-11-25); NOTICE.md added. **Counts:** clean 6, cite 1, rewrite 0, unclear 0. Nothing for Aubrey to decide here.