# Provenance The provenance audit of 2026-11-13 (wave 1, Claude Opus 5.5), branch `pin-2-od2` at `af34ef5`. This board is a transcription of megadrive-python: it inherits every verdict in megadrive-python's `docs/provenance.md` for the code it transcribes, and this file covers only what is its own. The standard is the charter's "Licences and provenance". ## Inherited verdicts that land in this repository's files The transcription carries the same sources into the same places, so the reference's **rewrite** and **unclear** items exist here too and are fixed here when they are fixed there: - `src/render.rs`: Genesis Plus GX's plane-size tables (module doc and `PLANE_ROW_*`; **rewrite** in the reference), the interlace-mode-2 HScroll index after `render_bg_m5_im2` (**unclear**), the CRAM dot colour after BlastEm `write_cram` with `vdp.c` line numbers (**unclear**), `FETCH_AT` (**unclear**). - `src/vdp.rs`, `src/board.rs`, `src/system.rs`, `src/arbiter.rs`: the constants fitted on Nuked-MD, with the reference's split (pin level: relabel as closed-box measurement; internal nodes or rules read from the source: unclear; the refresh tie: rewrite), and Exodus (MIT) as the source of the VDP's port logic (notice owed). - `src/svp.rs`, `src/mappers.rs`: transcriptions (through the reference) of MAME's BSD-3-Clause `svp.cpp` and `bus/megadrive` cartridge files (**cite**). ## Its own additions | Part | Source | Licence | Verdict | | --- | --- | --- | --- | | The Rust structure of the transcription (ownership, traits, the trace format, `md-trace`, `md-run`) | own | -- | **clean** | | `src/play.rs`, `src/bin/md-play.rs`, `src/frontend.rs`: the SDL2 window | megadrive-python's `frontend.py`; the `sdl2` crate | MIT (crate), zlib (SDL2), linked | **clean** | | `scripts/lockstep.py`, `md_trace.py`, `seeded_faults.py`, `make_board_vectors.py`, `make_eeprom_vectors.py`, `fetch_megadrivepython.sh`, `cases.tsv` | own gate tooling | -- | **clean** | | `scripts/make_examples.py` and `tests/examples/*.bin`/`*.trace` | cartridges assembled word by word here; traces written by the reference | -- | **clean** | | `tests/*.rs` | own | -- | **clean** | | `README.md` "License" | says the cited emulators were "never read into this repository" | -- | **cite**: true of this transcription; add that the reference's own use is audited in its `docs/provenance.md` | | Crate dependencies (`Cargo.lock`) | flate2, miniz_oxide, zlib-rs, serde, serde_json, sha1_smol, sdl2 and their dependencies | MIT / Apache-2.0 / zlib (their own) | **clean** | | Cores: m68000-rust, z80-rust (pinned by commit) and, by path, the restarted ym2612-rust and sn76489-rust; ssp1601-rust by path (local only) | the family's cores; audited in their own repositories | per core | out of scope here | ## Fixes made in this audit (citation only) - `src/svp.rs`, `src/mappers.rs`: a line naming the MAME files' licence (BSD-3-Clause) and copyright holders, as in the reference. ## Git history No file was ever deleted from this repository's history and nothing third-party was committed. Earlier `Cargo.toml` revisions pinned the archived ym2612-rust and sn76489-rust crates by git commit: references only, no code of theirs is in this history. ## Not done here **There is no LICENSE file.** `Cargo.toml` says `license = "MIT"` and the README says MIT; the charter requires a LICENSE file. Left for after the audit's outcome, as instructed. The compiled board ships nowhere yet. ## Wave 2 (2026-11-19) Carried down from megadrive-python's wave 2 (its `docs/provenance.md`, "Wave 2", commits `5ad77f6`..`227de45`), which re-established the flagged items from closed-box runs read at the pins, documents and MAME's BSD-3 files: - `src/render.rs`: the plane addressing rewritten (`PLANE_ROW_BYTES` for the shifts), from CMD and the reference's pin-level measurement of all 16 sizes; same values. The BlastEm and Genesis Plus GX citations (CRAM dots, `render_map`, the IM2 HScroll index) replaced by the reference's pin-level results or marked HYPOTHESIS. - `src/board.rs`, `src/system.rs`, `src/vdp.rs`: the refresh tie (`RAM_REFRESH_TIE_MCLK`, `RAM_REFRESH_TIE_AFTER_SELF_RUNS`, `ram_refresh`'s `tie`) and the dot-clock edge tables removed (behaviour change on `nuked-md` only); the full-screen vertical scroll latch refitted on the picture (plane B $13F in H40, $102 in H32; plane A $104 in H32): behaviour change. "Die-derived" relabelled OBSERVED (Nuked-MD @ 594ca2a, closed box); `reg_addr` citations replaced by Kabuto. - `src/mappers.rs`: 777 Casino's protection values dropped, as in the reference. - `NOTICE`: MAME's BSD-3 holders and Exodus's MIT notice. Still no LICENSE file (wave 4). - `tests/examples/`: traces regenerated from the reference at `227de45`; `boards.txt` regenerated (777 Casino's row moved every later board's random stream).