# Provenance audit, November 2026 The record of the family-wide audit toward the goal Aubrey set on 2026-11-14: **our own MIT-licensable everything.** Wave 1 (audits, no code changes) ran on 2026-11-14 over about 130 repositories; each audited repository now holds `docs/provenance.md` with a verdict for every piece (clean, cite, rewrite, unclear) and its evidence. This file is the summary and the plan; the evidence is in those files. Sources met are being merged into [sources.md](sources.md). Decisions marked **(Aubrey)** are his. ## The common cause Most of the family was built under a written working rule, "GPL source: read, cite by file and line, never copy". Sessions read GPL emulators to learn behaviour and wrote their own code from what they learned. The charter (2026-11-14) is stricter: GPL source is not opened while writing the code it informs; only closed-box runs and facts. Under that rule, behaviour learned by reading GPL code needs re-establishing from documents, hardware, permissive sources or closed-box runs. Straight statement-by-statement transcription was found in only a few places, listed first below. ## Findings by severity ### 1. Transcriptions of GPL/LGPL code in current code (rewrite or relicence) | Repository (visibility) | What | Evidence | | --- | --- | --- | | snes-python (local) | The S-DSP is a transcription of blargg's snes_spc 0.9.0 `SPC_DSP.cpp` (LGPL-2.1), per a brief that said so; SMP timers from bsnes; S-CPU, PPU and chip boards written with bsnes v115 and Mesen2 open as "the worked model" | `dsp/chip.py` header ("in snes_spc 0.9.0's operation order"), commit 47554d3 "per the brief" | | gba-python (private) | Written with NanoBoyAdvance 1.8.3 (GPL-3) open: DMA, scheduler, IRQ, timers, prefetch, PPU, APU and more "follow" NBA | `dma.py` header ("the machinery is NanoBoyAdvance's") | | pcengine-python (PUBLIC; Rust tiers public; play-pce live) | The VDC line machine is Mednafen's `huc6270/vdc.cpp` restated; parts of `vdc/chip.py`; pcenginecd's SCSI state machine follows Mesen2 | `vdc/sequencer.py` header | | sh2-python (PUBLIC; pinned by sega32x) | DIVU partial result and divide edge cases transcribed from Mednafen; a purge-read behaviour | `divu.py` comments | | m68000-python (PUBLIC, PyPI 0.1.0; Rust tiers; play-md live) | Divide timing follows Jorge Cwik's algorithm, labelled GPL-2.0+ in our own docs; a WinUAE-derived referee harness; WinUAE quotes in docs | `docs/timing.md` lines 120-121 | | megadrive-python (private) | Plane-size tables from Genesis Plus GX (non-commercial); 15 colour levels from BlastEm (GPL-3) | `render.py` lines 117-124; `scripts/compare_frames.py` line 39 | ### 2. Behaviour learned by reading GPL code (re-establish, then restate) - **huc6280-python (PUBLIC):** the default interrupt behaviour (Mesen2), two optional modes (srg320 VHDL, Mednafen); the decimal ADC/SBC is *unclear* (rewritten by someone who had seen the transcription; results bit-identical; redo from result tables alone). - **megadrive-python:** rules from Nuked-MD's internal signals (13 unclear), two constants reproducing its evaluation order; relabel pin-fitted constants as closed-box measurements. - **a2600-python (public Rust tiers, play-2600 live):** mapper and controller details from Stella and Gopher2600 (MAME BSD-3 covers most). - **lynx-python:** three Gearlynx values; **segacd-python:** Genesis Plus GX and BlastEm rules; **sega32x-python:** seven emulator-tier quirks; **famicom-python:** eight mapper facts from Mesen2, one FCEUX table. - **ay8910-python, pokey-python:** four facts each read from a model's source (GPL Verilog; unlicensed VHDL); behaviour already pinned by closed-box runs. - **65816, w65c02, arm7tdmi, jrisc:** docs quoting GPL code; the 65816 decimal adder from bsnes (same algorithm in ares, ISC). ### 3. Planned work whose documents would lead to copying (rewrite the docs before building) ym2151-python (144 line tags into Nuked-OPM), ym2610-python (94 into YM2608-LLE; its 2026-11-12 decision "transcribed from the die-derived model" must be retaken), s-dsp-python (brief says transcribe snes_spc), snes coprocessors (re-cite bsnes to ares), tms9918 (slot tables equal openMSX's; unclear). ### 4. Permissive sources without their notices (cite) Game Boy APU (SameBoy Expat), SSP1601 (MAME BSD-3), many boards (MAME BSD-3), galemu's star palette. Notices added in wave 1 where trivial; NOTICE files owed for binaries. ## Live sites (distribution) | Site | Problem | Fix | | --- | --- | --- | | play-md | serves m68000-rust-fast (Cwik divide timing); MAME BSD-3 and Exodus MIT code without notices | rewrite the divide timing, redeploy; serve a notices file | | play-pce | serves pcengine-rust-fast (Mednafen VDC line machine); no third-party notices | rewrite, redeploy; notices file | | play-2600 | Stella-sourced details; no third-party notices (MIT, zlib, Apache-2.0 crates) | re-source, redeploy; notices file | | play-nes | before 2026-11-13 served the withdrawn ym2413-rust under an MIT label; current build clean | record it; notices file | | galaxian.supertux.com (z80-wasm) | serves ZEXALL (GPL-2.0) without licence or source link | add the licence and source link, or stop serving it | | play-gb | Expat notice in source but not served; quoted text truncated | serve the full notice | No live site serves console firmware, ROMs or artwork. ## Public histories still carrying problem material | Repository | What | Reach | | --- | --- | --- | | z80-python | FUSE GPL-2 test data (with its COPYING) in 11 commits; Aubrey's full name in 33 commits, 4 messages, and in the PyPI 0.4.0 sdist | main, v0.4.0 tags; the sdist cannot be changed, only yanked or superseded | | huc6280-python | Mesen2-shaped decimal code in tags v0.1.0, v0.2.0; Mednafen transcription in 4 commits; GPL quotes | public tags and archives | | m68000-python | Cwik divide timing since 66d373f, tag v0.1.0, PyPI 0.1.0 | PyPI wheel and sdist | | gameboy-python, gameboy-rust | the Gambatte-derived code before the 2026-11-12 clean-up | public history | | a2600-python lineage, famicom-python | Stella-derived milestones (via the public Rust tiers); the furrtek MMC3C pin; a GPL-3 patch | public history | | megadrive-python (private) | the old in-board FM and PSG (Nuked lineage, 81 table matches) | private: rewrite before any publication | Other: Aubrey's full name also appears in commits of sm83, i8080, m6800, huc6280 and the m68000 v0.1.0 tag. ## Decisions (Aubrey) 1. **snes-python, gba-python** (and the pcengine VDC): clean rewrite, or relicence as GPL-3? 2. **Public histories** (**ruled 2026-11-19: rewrite them.** See "Public history rewrites" below for the procedure and who does which.) 3. **Middle rule edge** (**ruled 2026-11-19**: "verified on hardware" must be accurate. An emulator's comment claiming verification is not a hardware fact; with no Sega CD or 32X hardware, nothing there is MEASURED unless a cited hardware source says so; Mega Drive measurements from Aubrey's own probe cart are hardware evidence, MEASURED.) 4. **YM2610 decision 1** retaken; **run-time extraction** of hardware-read table values from a GPL file (YM2151): allowed or not? 5. **Closed-box confirmation** of a fact first read in GPL source (m68000 divide-by-zero flags): enough to keep it? 6. **65816 decimal adder**: re-cite to ares, or rewrite from the datasheet and test cases? 7. **Furrtek-hosted MMC3C schematic** credited to Sean Gonsalves: excluded? 8. **Jaguar netlists** (Atari design source, unlicensed): simulate only, or read? 9. **Nintendo logo** in test ROMs (arm7tdmi, gba): remove? 10. **Namco ROM links** in the galaga READMEs: remove? 11. **SPDX header for files with BSD code** (**ruled 2026-11-19: `MIT AND BSD-3-Clause`** on the SPDX line, and a second line naming the source and its notice; a file that only records facts read in a BSD file stays `MIT`. methodology.md, "Licence files and headers".) 12. **GPL tools inside MIT repos** (m6800 harnesses, Mednafen/NBA drivers): label as GPL tools, or move out? ## Wave 2: fixes that need no decision (proposed) 1. Every "read and cite" note in handoffs, pin lists and READMEs becomes "closed box only". 2. Notices: MAME BSD-3, ares ISC, SameBoy Expat, Exodus MIT added beside what was taken; a NOTICE file per repository and a served notices file per site. 3. Re-establish read-from-source facts by closed-box runs or documents where a permissive or hardware route exists (AY, POKEY, huc6280 interrupt modes, megadrive internal-signal rules, a2600 via MAME BSD-3), by fresh agents that never see the GPL source or the tainted code. 4. Redact GPL code fragments and quoted comments from docs and tests (keep the account). 5. Rewrite the m68000 divide timing and the sh2 Mednafen pieces from permissive sources and test cases, then redeploy play-md. 6. Rewrite the planned chips' documents (YM2151, YM2610, S-DSP) before any build. 7. Fix stale pins (famicom-libretro, sms-python main, segacd/sega32x on old megadrive) and the committed machine paths. 8. galaxian.supertux.com: add ZEXALL's licence and source link. Waves 3 and 4 (publication readiness of the restarted sound cores; LICENSE files and SPDX headers) follow as planned. ## Progress (2026-11-14, the sound-core restart session) - **Wave 3 in part (the restarted sound cores):** ym2413-python, ym2612-python, sn76489-python and their Rust transcriptions (ym2413-rust, ym2612-rust, sn76489-rust, each proven equal to its Python pin) have PRIVATE remotes, CI green. ym2413-python and ym2413-rust passed a history audit (restart-only history, one author, no secrets, no model source tracked) and are PUBLIC. Adopted by megadrive-python/-rust/-rust-fast, sms-python (new-psg), famicom-rust and famicom-rust-fast (VRC7 back on, pushed); play-md serves the new FM and PSG. Details: /data/emu/sound-cores-restart-HANDOFF.md. - **Wave 2 item 3 started** for ay8910-python (the four rewrite items) and famicom-python (the Mesen2 facts and PROTECTION_208), by fresh agents that see neither the GPL source nor the flagged code. famicom-python's push waits on ay8910-python being re-derived and public. Decision 7 (the furrtek-hosted MMC3C schematic) is left for Aubrey. - **2026-11-14/19 (same session):** ay8910-python's four items re-derived closed-box (engine unchanged), history reset to one commit `e244a09` by Aubrey and made PUBLIC; famicom-python's Mesen2 facts and PROTECTION_208 re-established (closed-box Mesen2 runs, the wiki, game code). **Decision 7 (Aubrey, 2026-11-19): yes, rewrite.** The MMC3 A12 filter now rests on blargg's MMC3 judges (fails at 1-2 M2 falls, passes 3-16; three kept at the lower bound); the furrtek-hosted pin dropped (famicom-python `9827f83`). famicom-python's provenance.md now has no rewrite rows. - **Wave 4, SPDX headers (2026-11-19):** `MIT` headers added to every code, test, script and CI file in ym2413-python/-rust, ym2612-python/-rust, sn76489-python/-rust, ay8910-python, famicom-python, famicom-rust and famicom-rust-fast (local commits, tests and rung 1 pass). The Rust repositories now read zero. Six files are left without a header on purpose, because they build against or link GPL models: GPL tools owed a move out (see "Rulings and pushes"): the three `validation/nuked_harness.c`, ay8910-python's `validation/ay_tb.v` and `validation/ssg_ref.c`, and famicom-python's `scripts/mesen_run.py` (MesenCore's C API through ctypes). ym2612's ymfm defaults are restated facts, not copied code, so those files stay `MIT`. ## Progress (2026-11-19, the charter session) - Aubrey delegated the rewrite agents to this session ("If we have to go back down to rung 0, we will archive and start the rewrite with as much as we can bring over"). Launched, each under the shared rewrite rules (in place where the taint is localised, restart where forbidden source was the working model): m68000 family (divide timing, WinUAE referee and quotes; then Rust tiers), sh2-python (Mednafen divider pieces), megadrive-python and its Rust tiers (11 rewrite, 13 unclear, 25 cite), snes-python with s-dsp-python (restart expected), gba-python with arm7tdmi-python (restart expected), and the planned chips' Phase 0 documents (ym2151 and ym2610 restarts; spc700, upd7725, hg51b, gsu, tms9918, msm6295, dsp16 in place). The PC Engine, Atari and sound-core work stay with their sessions. Live-site notices are deferred (Aubrey, 2026-11-19). ## Public history rewrites (Aubrey, 2026-11-19: "rewrite the public histories too") **Procedure** (every session follows it): 1. Never rewrite in a working checkout, and never while an agent is working in that repository: `git filter-repo` resets a working tree. Wait for in-flight work to land. 2. Back up first: a `git clone --mirror` to `/data/backup/history-before-rewrite/.git` (never read for MIT work; it is the record of what was removed). 3. Rewrite in a fresh mirror clone. **Code-tainted repositories** (GPL-derived code in past commits) are reset to a single commit of the current clean tree: Aubrey's precedent with ay8910-python (`e244a09`). **File- or name-only problems** (a GPL data file, the owner's full name in authors, messages or a removed document) use `git filter-repo` path removal and a mailmap/message rewrite, keeping the history. 4. Verify: the new tip's tree hash equals the old clean tip's (`git rev-parse ^{tree}`), so every downstream proof (lockstep, gates) still holds by construction; nothing named in the audit survives anywhere in the new history (`git log --all -p | grep` for the removed paths and the name). 5. Recreate the tags that matter on the new commits; repin dependants (their gates re-run; with identical trees they pass trivially); re-sync local checkouts afterwards, carrying over unpushed local branches. 6. Force-push and PyPI yanks/releases are Aubrey's commands to run (exact commands left). **Who does which:** - The charter session: the z80 family (z80-python: remove the FUSE GPL test data and `docs/handoff-polish.md`, rewrite the owner's full name in authors and messages; z80-rust, z80-rust-fast, z80-python-fast: author names; PyPI 0.4.0 yank and a 0.4.1), the Game Boy family (gameboy-python, gameboy-rust, gameboy-rust-fast: single-commit reset, the pre-clean-up Gambatte-derived code), m68000-python and its Rust tiers and sh2-python (single-commit resets after their wave-2 rewrites land; m68000's PyPI 0.1.0 yanked and re-released), and the owner's name in sm83-python, i8080-python, m6800-python. - The sessions that own them, after their rewrites land: huc6280-python and the PC Engine repositories (old decimal code in tags v0.1.0/v0.2.0, GPL quotes in docs), the a2600 Rust tiers (Stella-derived milestones), famicom-python (the furrtek MMC3C pin, the Mesen2 patch, the old ym2413 pins). ## Rulings and pushes (2026-11-19, later) - **Owner's ruling:** where a GPL source is in the way, the answer is to rebuild or fix, never to release a project under the GPL. ym2610-python decision 1 confirmed (self-contained; the die model only as a closed box). - **Owner's ruling:** a closed-box run is an acceptable basis for behaviour no permitted document or corpus defines (m68000-python's divide-by-zero flags, OBSERVED from WinUAE). - **Harnesses that link a GPL emulator's C API** (ctypes declarations from its headers) are GPL tools, kept outside the MIT repository and run as separate programs (charter session's call, the owner deferred): hg51b-python's Mesen2 harness moved to the local `hg51b-mesen-harness` (52fe0e1); m68000-python's WinUAE referee likewise. **Owed by the owning sessions:** snes-python's `scripts/mesen_run.py` and famicom-python's MesenCore harness get the same treatment. - **History pushes done** (run by the charter session on Aubrey's instruction): z80-python, z80-rust, z80-rust-fast, z80-python-fast, gameboy-python, gameboy-rust, gameboy-rust-fast force-pushed; gameboy-python `sgb-icd` deleted on GitHub (kept locally); the z80 repins pushed; local folders re-synced. Still owed: z80-python v0.4.1 tag, PyPI upload and the 0.4.0 yank (Aubrey); GitHub Support purge of PR refs; the megadrive repin patches (after the megadrive agent); emu-galaga, galaga-remix, z80-wasm and colecovision-python repins are committed locally, not pushed (their mains carry other unpushed work). ## Wave 2 results (2026-11-19, the charter session) Done (local commits; details in each repo's docs/provenance.md): m68000 family, sh2-python, arm7tdmi-python, sega32x-python (pushed), megadrive-python + Rust tiers (megadrive-rust-fast pushed), Phase 0 docs (ym2151, ym2610 restarted; spc700, upd7725, hg51b, gsu, tms9918, msm6295, dsp16 in place). Restarted: snes-python (from bfa810b), segacd-python (from 0dd43b1; rebuild unfinished: mcd-verificator 13/18 vs the old board's 17/18). gba-python was restarted by another session. Running: m68000 microcode-read pieces (MAME's header-less files are GPL), megadrive-rust-fast `serial_line` (Nuked-MD-derived, -fast only) and the Nuked-MD harness taps. **For the sound-core session (ym2612-python):** megadrive-python's re-run of `run_fm_busy.py` shows the referee's BUSY clearing on a fixed FM phase 1,386-1,428 MCLK after a write, where the restarted ym2612-python clears it at a flat 1,344-1,351 at every phase; Aubrey's probe cart's YMBY test on hardware reads 12-13 steps, matching the referee (MEASURED). Likely a ym2612-python BUSY-timing issue. ## History clean-up inventory (2026-11-20) Aubrey's rulings of 2026-11-20: clean up **every** history that carries problem material, public or private (all repositories go public eventually); a GPL question is answered by archiving and rebuilding, never by relicensing; no retags, version bumps or PyPI releases until the updates settle (an orphaned tag is recorded, not replaced); GPL tools stay listed for the later move into emu-tools / emu-tools-gpl. One session (the history session) leads this work. **Method** (every count re-run on 2026-11-20; raw outputs under `/data/backup/history-rewrite-2026-11-20/inventory/`): every git repository under `/data/emu` except zzz-* archives, third-party clones (igir, retool, retroscraper, mempalace, mini-swe-agent) and study forks (breaknes-study, nuked-md-study); worktrees counted with their repository. For each: visibility (`gh repo list`), branches, tags, releases; the owner's surname in author, committer and tagger fields and in messages (the handle `alewman` is not the surname); the surname in any blob of any commit (`git log --all -G`); GPL licence text in any blob; deleted paths; every binary blob ever committed, with a check for the Game Boy and GBA boot logos; furrtek mentions; cross-repository pins; and each repository's `docs/provenance.md` History section. Problem material per the criteria of this audit: transcribed GPL/LGPL code, GPL tools inside MIT trees, console makers' firmware or artwork, material by authors who object to AI use, and the owner's full name. **Counts.** 112 family repositories scanned (plus 14 worktrees and extra checkouts of them, and 4 repositories outside the family). 7 done (2026-11-19), 3 prepared (m68000, awaiting push), 16 need a single-commit reset, 19 need `git filter-repo` (names, files); the other 67 carry nothing to act on. No repository's history holds a console BIOS or a commercial ROM; the only boot-logo blobs are arm7tdmi-python's test ROM and play-gb's bundled homebrew (below). ### Done: rewritten and force-pushed 2026-11-19 (verified on GitHub 2026-11-20) z80-python, z80-rust, z80-rust-fast, z80-python-fast, gameboy-python, gameboy-rust, gameboy-rust-fast: every ref on GitHub except `refs/pull/*` reaches no commit naming the owner's surname and no FUSE test data or `handoff-polish.md`. Left over: the PR refs (18 on z80-python, 2 on z80-rust, 1 on z80-rust-fast; GitHub Support purge, Aubrey); locally, the pre-rewrite history survives in gameboy-python's local branches `sgb-hle` and `sgb-icd` (not on GitHub), the detached worktrees `z80-python-fast-gate` and `z80-rust-fast-wt`, and the separate old clone `z80-python-ei-fix` (with its worktree `z80-python-timing`): to be moved aside into the backups, never pushed. ### Prepared 2026-11-20, awaiting Aubrey's force-push m68000-python, m68000-rust, m68000-rust-fast (all PUBLIC; PyPI m68000-python 0.1.0; tags `v0.1.0` on python and rust-fast; a GitHub release on python): single-commit resets of the current heads, trees verified identical. Commands, verification and dependants' repins: `/data/backup/history-rewrite-2026-11-20/PUSH-COMMANDS.md`. ### Single-commit reset (code-tainted histories) | Repository (visibility) | What the history carries | Orphaned tags, releases | Dependants to repin | | --- | --- | --- | --- | | sh2-python (PUBLIC) | Mednafen-derived DIVU paths, purge read, WDT value from `deaabee`; Mednafen/srg320 fragments in docs; surname in 24 commits | none; branches `sdram-bsc`, `table-at-class` on GitHub | sega32x-python (`52a86bb`) | | huc6280-python (PUBLIC) | Mesen2-shaped and Mednafen-transcribed decimal ADC/SBC (`929c9f7`..`9ea9415`); GPL quotes; surname in 28 commits and a tagger | `v0.1.0`..`v0.4.0` | pcengine-python (`6ce348e`), huc6280-rust's reference fetch | | huc6280-rust, huc6280-rust-fast (PUBLIC) | transcriptions of the reference's pre-rewrite code | none | pcengine-rust (`e1d24a3`), pcengine-rust-fast (`73f0829`) | | pcengine-python (PUBLIC) | the VDC line machine restated from Mednafen; quoted fragments; surname in 36 commits | `v0.1.0`, `v0.2.0` | pcenginecd-python, supergrafx-python (`03ac699`) | | pcengine-rust, pcengine-rust-fast (PUBLIC) | the same, transcribed | none | pcenginecd-rust, supergrafx-rust, play-pce (`8f672f0`) | | supergrafx-python, supergrafx-rust (PUBLIC) | window origin and mix rules written with GPL sources open, withdrawn unread 2026-11-19 | `v0.1.0`, `v0.1.1` (python) | none | | pcenginecd-python, pcenginecd-rust (PUBLIC) | SCSI state machine following Mesen2; MiSTer fragments and a machine path since `e093a2b` | `v0.1.0`, `v0.2.0` (python) | play-pce (`9a2f106`) | | megadrive-python (PRIVATE) | the old in-board YM2612 and PSG (Nuked lineage, `8e0d5a0`..`0c9adb4`, `3ed55da`); Genesis Plus GX plane tables, BlastEm levels, Nuked-MD evaluation-order constants; the Nuked-MD harness from `b95f0d5`; a `.mailmap` holding the surname; surname in 13 commits | `megadrive-rust-pin-1`, `-pin-2`, `od2-z80-7435`; 58 local branches, 6 on GitHub | sega32x-python, segacd-python, megadrive-rust's reference | | megadrive-rust, megadrive-rust-fast (PRIVATE) | the same items transcribed; `serial_line` (Nuked-MD-derived) in -fast until `f8cbbdd` | none | play-md | | arm7tdmi-python (PRIVATE) | code written following NanoBoyAdvance (GPL-3) and mGBA; the Nintendo logo in `tests/hw/thumb_undefined/thumb_undefined.gba` (`4d8d2ab`); surname in 14 commits | none | gba-python (`69aceb2`) | | hg51b-python (local, no remote) | the Mesen2 ctypes harness, moved out to hg51b-mesen-harness, still in local history | none | none | ### `git filter-repo` (file- or name-only) | Repository (visibility) | What to remove | Notes | | --- | --- | --- | | famicom-python (PUBLIC) | `scripts/mesen2-detector-fixes.patch` (GPL-3 context lines, since `e636819`, still in the tree); the furrtek-schematic A12 rule and pin text (`037726a`..`9827f83`); `.mailmap` (holds the surname); surname in 11 commits | tag `famicom-rust-pin-1` re-pointed by filter-repo (same name: not a new tag); `scripts/mesen_run.py` is a GPL tool still in the tree | | 6502-python (PUBLIC) | surname in 150 commits, including a workplace address, and in tagger of `pre-polish-baseline` | pinned by 65816, a2600, a5200, a7800, famicom, huc6280, w65c02, pokey (Python) and 6502-rust's reference fetch: repins with identical trees | | sm83-python (PUBLIC) | surname in 10 commits; the name in `docs/provenance.md` (fix in a normal commit first, so the tip tree stays as committed) | gameboy-python, sm83-rust (`95f2b8b`) | | i8080-python (PUBLIC) | surname in 15 commits and in `docs/provenance.md`; a ROM-mirror machine path in `ba0b21a`, `54eadf0` | | | m6800-python (PUBLIC) | surname in 13 commits, 2 taggers and `docs/provenance.md`; machine paths in 6 commits | tags `v0.1.0`, `v0.2.0` and a GitHub release; the sim68xx/n6800 crosscheck harnesses are GPL tools still in the tree | | gb-apu-python (PUBLIC) | surname in 6 commits | gameboy-python (`f0a7f48`), gb-apu-rust's reference | | sega32x-python (PRIVATE) | surname in 20 commits | | | snes-python, segacd-python, gba-python (local); spc700-python, s-dsp-python (local) | surname in 12, 4, 3, 4, 1 commits | snes-python's `scripts/mesen_run.py` and gba-python's `scripts/nba_driver/` are GPL tools in the tree | | emu-galaga, galaga-remix, z80-wasm, play-md (PRIVATE) | surname in 5, 51, 16, 10 commits | sites and games stay private but are cleaned the same | | emulator-lineage (PRIVATE), boardroom, z80-survey (local) | surname in 7, 1, 3 commits | | ### GPL tools still inside MIT trees (listed for the emu-tools-gpl move, not moved now) ym2413-python, ym2612-python, sn76489-python `validation/nuked_harness.c`; ay8910-python `validation/ay_tb.v`, `validation/ssg_ref.c`; famicom-python `scripts/mesen_run.py`, `scripts/mesen2-detector-fixes.patch`; snes-python `scripts/mesen_run.py`; gba-python `scripts/nba_driver/`; arm7tdmi-python `referees/nba/`; huc6280-python `tools/mednafen-trace.patch`; pcengine-python `scripts/psg_referees/` (Mednafen PSG); m6800-python `scripts/crosscheck/` (sim68xx, n6800). When each moves, its paths leave that repository's history too (filter-repo), so a repository holding one is best reset or filtered once, at the move. ### Nothing to act on in history 6502-rust, 65816-python, a2600-python (restarted at M4; the Stella-derived build is in the archived zzz repository), a2600-rust, a2600-rust-fast, a5200-python, a5200-rust, a7800-python, a7800-rust, ay8910-python (reset `e244a09`), bigtop-2600, colecovision-python, cp1610-python, cps1/2/3-python, dsp16-python, emu-tools, emu-tools-gpl (GPL by design), famicom-libretro, famicom-mapper-study, famicom-rust, famicom-rust-fast (pins of the withdrawn ym2413-rust only, no code), galemu (its early Z80 history never held FUSE data or ZEX binaries; the MAME palette notice is now kept), gb-apu-rust, gb-apu-rust-fast, genesis-probe-brief, gsu-python, hg51b-mesen-harness, i8086-python, intellivision-python, jaguar-python, jrisc-python, lynx-python (restarted), lynx-rust, m6809-python, m68000-winuae-referee and megadrive-nuked-md-harness (GPL tools, correctly separate), mb88xx-python, mcs48-python, md-probe-cart, msm6295-python, neogeo-python, play-2600, play-gb, play-nes, play-pce, pokey-python (restarted), pokey-rust, sm83-rust, sms-python (furrtek's DBIOS appears only as dropped URL rows), sn76489-python, sn76489-rust, ssp1601-python, ssp1601-rust, tms34010-python, tms9918-python, upd7725-python, vectrex-python, w65c02-python, w65c02-rust, ym2151-python and ym2610-python (restarted; retained commits hold no Nuked or LLE line tags), ym2413-python, ym2413-rust, ym2612-python, ym2612-rust. ### Out of scope, recorded - Not emulator family: afk-developer (PRIVATE, surname in 14 commits), epimneme (PUBLIC, 84), plex-reaper (PUBLIC, 7), rom-farmer (PUBLIC, rewritten 2026-09; one file still names the owner). Aubrey's ruling of 2026-11-21: these public repositories outside the emulator family are out of scope for the history clean-up; leave them alone. - zzz-* archives (GitHub: private and archived) hold the withdrawn code by design: never made public. - Found on the way: play-gb bundles Tobu Tobu Girl Deluxe, whose header carries the Nintendo logo every Game Boy cartridge needs (decision 9 covers it); neogeo-python's local, git-ignored `reference/` holds a checkout of furrtek's SiliconRE (move it out of the tree); megadrive-python `main` and sms-python `main` still pin the withdrawn Nuked-lineage sound cores (their `pin-2-od2` and `new-psg` branches do not); a segacd state saved at frame 450 and loaded in a fresh process runs ahead of the straight run (with either m68000 pin), reported for the segacd work. ### Waves (proposed; each rewrite follows "Public history rewrites" above) - **A (done 2026-11-20):** this inventory; the m68000 resets prepared; megadrive-python `pin-2-od2` merged with main (`4f9727d`) and repinned to the reset m68000 (`fcef88d`, branch `repin-m68000-reset`); sega32x-python and segacd-python repinned onto it (branches `repin-megadrive-reset`). All wait for Aubrey's m68000 force-push. - **B, the Mega Drive line (after A is pushed):** megadrive-python reset of `pin-2-od2` (with main fast-forwarded to it first); megadrive-rust and megadrive-rust-fast moved to the reset m68000 Rust tiers (a timing change from their pre-wave-2 pins: lockstep gates against megadrive-python), then reset; play-md repinned and rebuilt (deploy: Aubrey); sh2-python reset; sega32x-python (names) and segacd-python repinned to the reset commits. - **C, the PC Engine family (10 public repositories):** huc6280-python, -rust, -rust-fast, pcengine-python, -rust, -rust-fast, supergrafx-python, -rust, pcenginecd-python, -rust, reset in pin order, each Rust fast tier on its parent's reset (gameboy-rust-fast's shape); play-pce repinned. Orphans tags on four repositories. - **D, public name and file clean-ups:** 6502-python (then its eight dependants' pins, same trees), sm83-python, i8080-python, m6800-python, gb-apu-python, famicom-python, by filter-repo with a mailmap and path removal; a normal commit first takes the name out of each tip's `docs/provenance.md`, so the tip tree stays as committed. - **E, private and local:** arm7tdmi-python reset (gba-python repinned), hg51b-python, and the name-only private ones (snes, segacd, gba, spc700, s-dsp, emu-galaga, galaga-remix, z80-wasm, play-md, emulator-lineage, boardroom, z80-survey). - **F, local tidying:** the old-history local branches, worktrees and clone listed under "Done", moved into the backups. - **G, with the tool move (ruling 4):** each GPL tool listed above leaves its repository and that repository's history together. ### Progress - **2026-11-21, wave A pushed** (Aubrey): m68000-python `4454d54`, m68000-rust `8a5bbb7`, m68000-rust-fast `c896088`; old branches, the `v0.1.0` tags and the GitHub release deleted; megadrive-python `main` and `pin-2-od2` at `fcef88d` (pin-2-od2 is the main line); sega32x-python `7620f68`; segacd-python `affd58d` (local). Rulings of the same day: orphaned tags and releases that are not useful are deleted; Aubrey yanks m68000-python 0.1.0 himself; a GPL tool in a repository due for a reset leaves it, and its history, at the reset and is parked under `/data/backup/gpl-tools-parked/` until the emu-tools refactor; the repositories outside the family wait for a later wave and his confirmation; he files the GitHub Support PR-ref purge (draft: `/data/backup/history-rewrite-2026-11-20/github-support-pr-refs-request.md`). - **2026-11-21, wave B prepared** (not pushed): megadrive-rust and megadrive-rust-fast repinned to the reset m68000 Rust tiers, lockstep 80 of 80 against megadrive-python `fcef88d` and 80 of 80 against upstream, every trace byte-identical to the 2026-11-19 run (the rewritten divide clocks give the same counts); single-commit resets of megadrive-python (`6303613`; the three sound referees parked as GPL tools, `.mailmap` dropped), sh2-python (`15c60ab`), megadrive-rust (`ecd3e71`), megadrive-rust-fast (`0bb966d`, on megadrive-rust's reset); sega32x-python, segacd-python and play-md repins on branches; play-md rebuilt and checked, not deployed. Commands: `/data/backup/history-rewrite-2026-11-21/PUSH-COMMANDS-waveB.md`. - **2026-11-21, wave B pushed** (Aubrey): megadrive-python, megadrive-rust and megadrive-rust-fast `main` and `pin-2-od2` at `6303613`, `ecd3e71`, `0bb966d`; sh2-python `15c60ab`; sega32x-python `635921d`; play-md `main` and `pin-2-od2` at `c7720cc`, deployed on board `0bb966d`. m68000-python 0.1.0 yanked on PyPI (Aubrey); the GitHub Support request waits. - **2026-11-21, wave C prepared** (not pushed): single-commit resets of the ten PC Engine repositories as one chain (each downstream pin moved to its upstream's reset, the same code), the GPL tools of huc6280-python (Mednafen trace patch, srg320 testbenches, Mesen2 driver) and pcengine-python (Mednafen PSG referee, Mesen2 driver) parked under `/data/backup/gpl-tools-parked/`, found through `HUC6280_GPL_TOOLS` and `PCE_GPL_TOOLS`; huc6280-rust-fast's `not-kept/quiet-window` carried onto the new history; ten orphaned tags listed for deletion; play-pce repinned, rebuilt and checked, not deployed. Commands: `/data/backup/history-rewrite-2026-11-21/waveC/PUSH-COMMANDS-waveC.md`. - **2026-11-21, wave C: reported pushed, not seen on GitHub.** The coordinator's brief for wave D said wave C was pushed and deployed, but at 16:50 that day GitHub still showed the pre-rewrite heads (huc6280-python `main` f395585 with tags v0.1.0..v0.4.0, pcengine-rust `main` 8f672f0; `git ls-remote` and the GitHub API agree), and the local checkouts were not re-synced. Recorded as not pushed until GitHub shows `5cff9e8` and the rest. - **2026-11-21, wave D prepared** (not pushed): `git filter-repo` of 6502-python, sm83-python, i8080-python, m6800-python, gb-apu-python and famicom-python with a mailmap (the owner's name, his workplace address and a machine-local identity mapped to `alewman `, the z80 precedent), message and text rules, and path removal; history kept. First, normal commits: the name described instead of quoted in docs/provenance.md (sm83, i8080, m6800); the m6800 rung 5 harnesses (`sim68xx_harness.c`, linked with sim68xx; `n6800_harness.py`, subclassing n6800) and famicom's Mesen2 ctypes drivers (`mesen_run.py`, and `mesen_audio.py`, which declares more of the same API: a provisional call) with the Mesen2 patch parked under `/data/backup/gpl-tools-parked/` and found through `M6800_GPL_TOOLS` and `FAMICOM_GPL_TOOLS` (the MIT drivers that run them as closed boxes stay); famicom's `.mailmap` out; the furrtek pin and the A12 rule quoted from the wiki's line citing that schematic replaced in every commit; ROM-mirror paths (i8080, m6800, famicom) and a home directory (m6800) replaced by `$MAME_ROMPATH`, `$NO_INTRO_DIR`, `~/mame-master`. Tip trees equal the prepared tips, or differ by exactly the removed paths (m6800, famicom); 0 hits for the surname in all refs, blobs and messages; fsck clean. Tags `v0.1.0`, `v0.2.0` (m6800) and `famicom-rust-pin-1` re-pointed, none orphaned; m6800-python is not on PyPI. Repinned with normal commits (same trees; quick suites pass): famicom-python, 65816-python, a2600-python, a5200-python, a7800-python (with a2600-python, else pip meets two URLs for the core), pokey-python, w65c02-python, gameboy-python, gba-python, 6502-rust, sm83-rust, gb-apu-rust and -fast, famicom-rust and -fast; huc6280-python, supergrafx-rust and pcenginecd-rust on wave C's resets (so wave C goes first). **Not repinned (second-order):** pins of unrewritten commits whose own pyproject names an old hash, which install only while GitHub still serves the old commits: pcengine-python -> huc6280-python `5cff9e8` (and the boards and Rust reference fetches over it), lynx-python -> w65c02-python `9ca4a2f`, the Rust tiers' reference venvs (a2600-rust and -fast `28fb095`, a5200-rust `cf82d44`, a7800-rust `d6b220d` with its ladder's `741419a` check, lynx-rust, w65c02-rust `e49aceb`, huc6280-rust and -fast, pcengine-rust and -fast), and famicom-rust's reference at the re-pointed tag (its pyproject names 6502-python `9dc34bd`). Commands: `/data/backup/history-rewrite-2026-11-21/waveD/PUSH-COMMANDS-waveD.md`. - **2026-11-21, wave F done** (local tidying): the pre-rewrite local copies listed under "Done" moved out of `/data/emu` into `/data/backup/local-tidy-2026-11-21/`. gameboy-python's branches `sgb-hle` and `sgb-icd` (older states of work `master` already holds) and the detached worktrees `z80-python-fast-gate` and `z80-rust-fast-wt` are kept as verified bundles, and their worktrees and branches removed. The old clone `z80-python-ei-fix` with its worktree `z80-python-timing` was moved whole (worktree link repaired). Also moved: the `mdrf-bisect` clone (a copy of megadrive-rust-fast's pre-rewrite backup, used for the STOP bisect). The merged gba-python worktrees (`rung-2`..`rung-4`) were removed; their branches stay. - **2026-11-21, wave C pushed** (Aubrey, checked on GitHub): the ten PC Engine `main`s at their resets (huc6280-python `5cff9e8` ... pcenginecd-rust `d5ef3f0`), huc6280-rust-fast's `not-kept/quiet-window` at `3b80181`, the ten orphaned tags deleted, local checkouts re-synced; play-pce `main` at `a68b43f`, rebuilt and deployed. Wave D's push file is next. - **2026-11-22, wave D pushed** (Aubrey, checked on GitHub): the six repositories' branches and tags equal the rewrite's bare repositories (6502-python `828b619`, sm83-python `4660c3d`, i8080-python `944cbd7`, m6800-python `436fe63`, gb-apu-python `f573f32`, famicom-python `07f4022`; m6800 `v0.1.0`/`v0.2.0` and `famicom-rust-pin-1` re-pointed; 6502-python's `pre-polish-baseline` stays local). The fifteen dependants' repins are on GitHub, level with their local main lines, `repin-waveD` merged and deleted. Local checkouts re-synced: 6502-python `dma-stall` keeps its provenance commit (`81e0eb6`), m6800-python keeps its two uncommitted files, `fcpy-vrc7` at `47d33c1` keeps its konami.py change. Next: the per-family repin chains, then waves E and G. - **2026-11-22, wave D2 prepared** (second-order repins; not pushed): every pin chain that ran through a commit whose own pyproject names a pre-rewrite hash now resolves to commits on a GitHub branch, by one ordinary commit per repository on its local `main` (each exactly one over GitHub's `main`), the code unchanged. Found by walking each checkout's pins (pyproject, Cargo.toml, fetch and ladder scripts, CI) transitively against the GitHub branches, with the wave C/D backups as the set of removed commits. Python boards: pcengine-python `2a3768f` (huc6280-python `5cff9e8` -> `03d1247`), supergrafx-python `76cd38f` and pcenginecd-python `b36b056` (pcengine-python -> `2a3768f`), lynx-python `af8b8ba` (w65c02-python `9ca4a2f` -> `af0ad6b`: `src/` identical by an AST comparison, comments and SPDX lines only), a5200-python `d41b233` and a7800-python `f70eeb2` (pokey-python `6ed1ffa` -> `ea20096`: documents and its acid extra's repin only); their `git+file:///data/emu/...` pins (a5200's 6502-python and pokey-python, a7800's a2600-python and pokey-python, lynx's core) became GitHub URLs (private repositories need git credentials for pip). Rust reference fetches: huc6280-rust `6a0a646` and -fast `c3b77b5` (`03d1247`), pcengine-rust `daec4fc` and -fast `14251c2` (`2a3768f`, core `03d1247`), w65c02-rust `9023b24` (`e49aceb` -> `af0ad6b`), lynx-rust `45df2d0` (lynx-python `75b9be7` -> `af8b8ba`; its setup recipe no longer clones from /data/emu), a2600-rust `c40bcf6` and -fast `1f8cdcd` (a2600-python `28fb095` -> `4ad24f2`, 6502-python `741419a` -> `828b619`), a5200-rust `548b54f` (`cf82d44` -> `d41b233`; its ladder's /data/emu path replaced), a7800-rust `5dd9d6a` (`d6b220d` -> `f70eeb2`, the ladder's pin checks and CI moved to a2600-rust `c40bcf6` and 6502-rust `1a7e134`, refcache PIN carried over after a full live run), gameboy-rust `4ce29a7` and -fast `6a0bc5a` (setup recipe: sm83-python `95f2b8b` -> `1f312fa`, gb-apu-python `f0a7f48` -> `d4393c6`, same trees). Tests: the five boards' quick suites pass in fresh PyPy venvs; every Rust reference refetched or reinstalled, and a lockstep run live against it without the cache (huc6280 rung 1 5/5 each; pcengine covell 1/1 each; lynx 37/37 plus the ladder; w65c02 ladder; a2600 9/9 each; a5200 13/13 plus `ladder.sh --quick`; a7800 51/51 plus the ladder; gameboy 4/4). Needed no change: supergrafx-rust and pcenginecd-rust (their fetches install nothing: PYTHONPATH over four checkouts, all on GitHub branches), pokey-rust (its reference runs from `src/` with no dependency; `6ed1ffa` is on main), play-pce, play-nes. **Left open:** famicom-rust and -fast, whose reference tag `famicom-rust-pin-1` (`47d33c1`) pins 6502-python `9dc34bd` (rewritten as `e73f471`) and the archived ym2413-python `13df60c`, never on GitHub and of the Nuked-derived core whose licence decision is open; famicom-libretro (local) through famicom-rust-fast `e718930` to a removed ym2413-rust `bdf6365`; 65816-python and gba-python (local, their `repin-waveD` branches unmerged); colecovision-python (local, `git+file` pins). Commands: `/data/backup/history-rewrite-2026-11-21/waveD/PUSH-COMMANDS-waveD2.md`. - **2026-11-22, wave D2 pushed** (Aubrey, checked on GitHub): all 18 repositories' `main` level with the local repins. Open: famicom-rust(-fast)'s reference tag (archived ym2413-python), famicom-libretro, colecovision-python's `git+file` pins, 65816/gba `repin-waveD` merges. Next: wave E (private/local), wave G (tool move). - **2026-11-22, wave E prepared** (not pushed): single-commit resets of arm7tdmi-python (`referees/nba/` parked; the logo ROM was already out of the tree, the build now takes the logo from a player-supplied cartridge) and hg51b-python (the Mesen2 harness); filter-repo by address-only mailmap of snes-python (with `scripts/mesen_run.py`, now `SNES_GPL_TOOLS`), gba-python (with `scripts/nba_driver/`, now `GBA_GPL_TOOLS`), segacd, spc700, s-dsp, boardroom, z80-survey, emu-galaga, galaga-remix, z80-wasm, play-md and sega32x-python (wave B had not cleaned it). 0 surname hits, removed paths absent, fsck clean, trees identical apart from the removed paths. No tags. GPL tools parked under `/data/backup/gpl-tools-parked/` (arm7tdmi-python, snes-python, gba-python). Found: the reset arm7tdmi-python (its 2026-11-19 code rewrite) re-takes the IRQ at the vector, so gba-python's `repin-waveE` is held until a core fix lands; Timer count-up 712/936 (was 847) to look into. emulator-lineage's own rewrite is section 5 of `/data/backup/history-rewrite-2026-11-22/waveE/PUSH-COMMANDS-waveE.md`, run by the main session last. - **2026-11-22, wave E pushed** (Aubrey, checked on GitHub): the six GitHub repositories equal the rewrite's bare repositories; the eight local-only checkouts re-synced onto their rewrites; emulator-lineage rewritten and pushed too (section 5; local `main` keeps its unpushed commits). 0 surname hits in every branch of all fifteen. Afterwards arm7tdmi-python `3382b32` fixes the reset core's interrupt entry (masks refreshed, test added; 504 passed) and gba-python `289b977` pins it (text judge 80/137, Timer count-up 712/936 open). Both local, for Aubrey to push. Next: wave G (tool move). - **2026-11-22, wave G prepared** (not pushed): every GPL/LGPL tool left in an MIT tree taken out by a normal commit (scripts pointed at `_GPL_TOOLS`), then filtered out of all history: ym2413-python `1693569`, ym2612-python `3cf4afd`, sn76489-python `beb859b`, ay8910-python `a3bb485`, sh2-python `88713ee` (jgenesis harness), a5200-python `69b9c3b` (atari800 driver), and locally ym2610-python `850db22`, ym2151-python `77cf6ce`, 65816-python `9f6663c`, s-dsp-python `341884c`, snes-python `a049322` (the last five found beyond the inventory, with sh2 and a5200). 0 surname hits, the paths in no commit, fsck clean, quick suites pass; no tags. Dependants repinned (famicom-python, sega32x-python, megadrive-rust and -fast, ym2413/ym2612/sn76489-rust, a5200-rust; sms-, colecovision- and gsu-python on `repin-waveG`). emu-tools-gpl `f2b22d0` gathers all parked and moved tools (none kept out for licence; sim68xx and YM2608-LLE provisional); emu-tools `7a021cd` inventory. Open: sh2-python's local `table-at-class` holds the old history (bundle offered, section 6) and GitHub's sh2 PR refs #1, #2 join the Support purge request; megadrive-python's 57 local branches and the `megadrive-python-pin` worktree carry pre-reset history (a wave F-style tidy owed); sh2-python's tip has a romset-mirror path in 4 files. Commands: `/data/backup/history-rewrite-2026-11-22/waveG/PUSH-COMMANDS-waveG.md`. - **2026-11-22, wave G pushed** (Aubrey, checked on GitHub): the six GitHub repositories at their rewrites, the five local-only checkouts re-synced, the dependants' repins pushed (megadrive-rust and -fast `main` = `pin-2-od2`), sms-, colecovision- and gsu-python on `repin-waveG` (local), sh2-python's `table-at-class` bundled into `/data/backup/local-tidy-2026-11-21/` and deleted. The waves A-G are done. Left: the megadrive-python local tidy (57 branches, the `megadrive-python-pin` worktree), the machine-path sweep, the Nuked-core decision (famicom-rust's reference tag), the GitHub Support PR-ref request. - **2026-11-23, megadrive-python local tidy:** the 57 local branches on the pre-reset history bundled (`old-branches.bundle`, verified, 57 heads) into `/data/backup/local-tidy-2026-11-21/megadrive-python-2026-11-23/` and deleted; the stale worktrees `megadrive-python-pin` (an m68000 pin edit from 2026-10-07) and `megadrive-rust-fast/external/mdpy-sound` (staged sound edits from 2026-11-13) moved there whole, their uncommitted changes also saved as patches; reflogs expired and pruned. The checkout keeps `main` and `pin-2-od2` (both on the reset history): 0 surname hits in any object, fsck clean. The stage B bare mirrors remain the full backup. - **2026-11-23, machine-path sweep** (normal commits, not pushed): 48 family repositories' current trees moved off machine paths and the ROM mirror's name onto `NO_INTRO_DIR`, `MAME_ROMPATH`, sibling checkouts and named variables (one commit each; 21 with a remote, push list `/data/backup/machine-paths-2026-11-23/PUSH-COMMANDS.md`; the rest local-only). The mirror name is in no in-scope tree. Left: dated records, `~/.local/opt` defaults behind a variable, side worktrees' other branches, rick-roll-32x (another user's checkout). New variables the scripts now ask for are listed in the sweep's report. - **2026-11-23, the NES line off the archived ym2413:** famicom-rust `69172d5` and -fast `886f96b` take their reference at famicom-python `e3e1474` by commit (was the tag `famicom-rust-pin-1`, whose pyproject pinned the archived ym2413-python `13df60c`); full ladders identical (-fast LADDER GREEN, 214 s), remade reference traces byte-equal to the old caches. famicom-libretro `79a5ea6` repins famicom-rust-fast `aaa1542` (was `e718930`, which pulled the removed ym2413-rust `bdf6365`). play-nes reaches no ym2413 (VRC7 FM off). Nothing in the family's main lines reaches a Nuked-derived core now; the vrc7off side worktrees and famicom-rust's git-ignored `external/fcpy-vrc7` still name the old tag.