# Provenance audit Audit of 2026-11-13 (provenance wave 1), against the family charter's "Licences and provenance" section and the restart rules of the rebuilt sound cores (ym2612-python `docs/restart.md`). The audit used this repository's own records; no GPL or LGPL source was opened. **There is no emulator code here.** What is audited is what a builder would reach for. ## Summary This repository is in good shape. The decoder's arithmetic, step table, index adjustments and reset state are sourced to manufacturer and licensee documents (OKI's 1987 and '94 data books, Dialogic's *ADPCM Algorithm* note of 1988); the attenuation multipliers are derived from the data sheet's own dB figures; where only emulators speak, the documents say so and mark it. Three short code fragments from jt6295 (GPL-3.0 Verilog) are quoted in the documents and should come out; FinalBurn Neo (non-commercial licence) was read and is described, which is acceptable for describing a detector but must never supply a default. Verdicts (rows below): clean 7, cite 3, rewrite 0, unclear 1. ## Per item | Item | Behaviour came from | Licence of source | Verdict | | --- | --- | --- | --- | | `docs/decoder.md`: formula, 49-step table, adjustments, reset state | OKI 1987 data book; Dialogic 00-1366-001 (1988); checked equal to floor(16 x 1.1^n) | manufacturer / licensee documents | **clean** | | `docs/decoder.md`: attenuation multipliers m/32 | the data sheet's dB figures, uniquely matched (checked here) | manufacturer | **clean** | | `docs/decoder.md`: attenuation on real boards | jotego's measurements, stated in prose in a comment of `jt6295_adpcm.v` (two CPS-1 boards, 192 kHz recordings) | GPL-3.0 file, prose measurement | **clean** under the middle rule (a hardware measurement stated in prose, cited to jotego); the code around it is not used | | `docs/decoder.md`, `docs/bus.md`, `docs/rom.md`: quoted fragments `!cnt[0] ? rom_data[7:4] : rom_data[3:0]`, `busy_in = up_start & ~up_stop`, `rom_data[1:0]` | jt6295 Verilog | GPL-3.0 | **cite**: delete the three fragments and state the behaviour in prose ("high nibble first", "stop wins in the same visit", "the low two address bits are dropped"); the facts may stay, marked emulator-tier where no document backs them | | Per-implementation comparison tables in `decoder.md`, `bus.md`, `rom.md` (MAME, FBNeo, libvgm, jt6295) | each implementation read | MAME 0.285 and libvgm BSD-3; jt6295 GPL-3.0; FBNeo non-commercial | **cite**: keep as detector descriptions; mark that a default may come only from a document, a hardware measurement, or the permissive emulators (MAME, libvgm), never from jt6295 or FBNeo alone (restart rule 10) | | `docs/handoff-brief.md` | the documents above | - | **cite**: add the run-not-read rule for jt6295 and FBNeo (the brief already says "read, cite, never copy", which the binding rules now tighten to "not read") | | `docs/census.md`, `scripts/mame_census.py`, `scripts/rom_census.py` | MAME `-listxml`; local sample ROMs read in place (hashes and phrase-table counts only) | own work | **clean**: nothing from a ROM is committed beyond hashes and counts | | `scripts/mame_oki_tap.lua`, `mame_oki_tap.py`, `docs/mame-oracle.md` | MAME 0.285 run headless | own work | **clean** | | `scripts/fetch_references.py` | pins; Artemio's recordings and test loop; `--sf2ud` opt-in because it holds Capcom ROMs | - | **clean**: nothing fetched is committed | | `docs/validation.md`, `docs/start-here.md`, `README.md` | source lists with licences and tiers | - | **clean** | | Artemio Urbina's CPS-1 recordings (jtcores issue #559) | board recordings | no licence stated | **unclear**: fine to use as measurements and cite; never redistribute (already the rule). Ask the author before any derived data is published | ## Git history Twelve commits, no remote, nothing deleted, nothing third-party ever committed. ## Changes made in this audit None other than this file. ## Wave 2 (2026-11-19): what was done Done in place under the wave-2 rewrite rules (no GPL, LGPL or non-commercial source opened; jt6295 and FinalBurn Neo are closed boxes from now on). | Item | Was | Now | Verdict | | --- | --- | --- | --- | | The three jt6295 Verilog fragments (`decoder.md` nibble order, `bus.md` play-then-stop and play-on-busy, `rom.md` address bits) and FBNeo's shift expression | quoted code | prose ("high nibble first", "stop wins in the same visit", "restarts whether or not the channel is busy", "masks only the address it finally reads"); jt6295 file line numbers dropped | **clean** | | jt6295 and FBNeo comparison columns and the `JT6295` / `FBNEO_STYLE` presets | read from source | marked as a record written under the old rule; the brief now says those presets are built only after a closed-box run re-establishes each value, and never as a default | **clean** (record); presets **unclear until closed-box runs** | | jotego's attenuation measurements (a comment in a GPL file) | second-hand tier 1 | provisional cross-check (owner's ruling of 2026-11-19); the multipliers rest on the data sheet's dB figures, to be checked against Artemio Urbina's recordings at rung 5 | **clean** | | Policy text in `handoff-brief.md`, `validation.md`, `fetch_references.py`, `README.md` | "read, cite, never copy" | "closed box only" | **clean** | | `census.md` pin-7 token count over a MAME tree of mixed licence | grep of driver sources | kept as a count, marked to be redone over BSD-3 files or from a MAME run before use | **unclear** (low stakes) | | Machine paths and the mirror's name (`rom_census.py`, `mame_oki_tap.py`, `mame-oracle.md`, `census.md`, `handoff-brief.md`) | committed paths | `MAME_ROMPATH` | **clean** | | Artemio Urbina's recordings | unclear | unchanged: measurements, never redistributed; ask before publishing derived data | **unclear** | No code exists here yet, so no gate changed. NOTICE: nothing third-party is carried in the repository (MAME and libvgm are run or cited, not copied), so none is needed yet. ## Closed-box sources removed (2026-11-24) Aubrey's rule of 2026-11-24: an MIT repository does not download or keep the source of anything the family's `sources.md` marks closed box only. `scripts/fetch_references.py` no longer clones jt6295 (https://github.com/jotego/jt6295 @ `7d76b0be8cd8f85f3ae741178c9830b20e2071a1`, GPL-3.0) or fetches FinalBurn Neo's `msm6295.cpp`/`.h` (commit `c3e8c4df`, non-commercial); the copies moved aside unopened, out of the repository (not deleted). OKI's data sheet, which came inside jt6295's `doc/`, is now one pinned file (`reference/docs/okim6295.pdf`, SHA-256 `8b469cb8...`, the same bytes). The 2026-11-19 notes on the jt6295 and FBNeo columns (bus.md, decoder.md) stand; their file names (`jt6295_adpcm.v` in validation.md) are dropped where they named a source file.