# Provenance ## Licence provenance (audit 2026-11-13) Audit of where each piece of Galemu's code came from and whether the MIT licence holds, against the family charter ("Licences and provenance"). Method: the repository's own comments, docs and git history; the SPDX lines of the MAME files the docs name; and `provenance_check.py` (pcengine-python) run against a scratch copy of the BSD-3-Clause MAME files named below (galaxian.cpp, galaxian_v.cpp, galaxian_a.cpp and the Namco Galaga files): no hits. No GPL or LGPL source was opened. **MAME's Galaxian files are BSD-3-Clause, not GPL.** `galaxian.cpp` (Aaron Giles, Couriersud, Stephane Humbert, Robbbert), `galaxian_v.cpp` (Aaron Giles, Couriersud, Robbbert) and `galaxian_a.cpp` (Couriersud) each start `// license:BSD-3-Clause`. Taking from them is allowed; BSD-3 asks that the copyright notice, the conditions and the disclaimer travel with source that carries what was taken. `docs/README.md` ("Sourcing and confidence") says MAME's source is GPL-licensed; for these files that is wrong. | Code | Behaviour came from | Source licence | Verdict | | --- | --- | --- | --- | | `roms.py`, `docs/rom-manifest.md` | sizes, CRC32 and SHA-1 computed locally from the parent set, matched to MAME's set | facts | clean | | `board.py`, `devices.py` (address decode, input ports, DIP defaults, vblank NMI) | MAME `galaxian.cpp` memory map and input-port definition ("Derived from MAME's verified parent `galaxian` input-port definition") | BSD-3-Clause | cite | | `video.py` palette | colour-PROM decode with weights 0x21/0x47/0x97 and 0x55/0xAA: the resistor-network weights MAME's `galaxian_v.cpp` computes | BSD-3-Clause | cite | | `video.py` star palette, starfield, bullets | `build_star_palette` follows `galaxian_v.cpp`'s star palette expression for expression (`RGB_MAXIMUM * 130 / 150`, `/100`, `/60`, the `minval + (255 - minval) * ...` middle level); the 17-bit star LFSR and the shell/missile rendering rules are described in the same file | BSD-3-Clause | cite | | `synth.py` | the discrete sound board's component values and signal graph as described in MAME's `galaxian_a.cpp` discrete netlist (the `RCDISC5` stage names, the LFSR reset note) and the schematic values it records | BSD-3-Clause (values are facts) | cite | | `render.py`, `display.py`, `recording.py`, `trace.py`, `__main__.py` | own work (pygame frontend, FFmpeg recording, trace format) | MIT | clean | | `docs/*.md` | paraphrase of MAME's Galaxian files and schematics | BSD-3-Clause | cite (fix the GPL statement) | | CPU | `z80-python==0.3.0` from PyPI | MIT | clean (audited in z80-python) | Owed for the cite items: add an SPDX header to every source file (none has one yet); beside `decode_palette_entry` and `build_star_palette` in `video.py`, in `synth.py`, and in `board.py`/`devices.py`, name the MAME file and keep its notice ("Portions derived from MAME `src/mame/galaxian/galaxian_v.cpp`, Copyright Aaron Giles, Couriersud, Robbbert, BSD-3-Clause", with the licence text in a `LICENSES/BSD-3-Clause-MAME.txt` or similar); correct `docs/README.md` to say the MAME Galaxian files are BSD-3-Clause. Verdicts: clean 3, cite 5, rewrite 0, unclear 0. ### History This repository is public, so its history is distributed too. Its early commits held an in-tree Z80 core (`src/z80/*`, `src/z80/zex.py`, per-opcode tests, `docs/z80-*.md`), removed when the core became z80-python; that history inherits z80-python's verdicts. The ZEXDOC and ZEXALL binaries (GPL-2.0, Frank Cringle) were loaded from a path and never committed. No ROM, PROM, graphics or recording was ever committed (checked over every path in the history). The star-palette transcription has been public without the BSD-3 notice; adding the notice now satisfies the licence going forward. ### Sources | Source | Licence or terms | Family use | | --- | --- | --- | | MAME `galaxian.cpp`, `galaxian_v.cpp`, `galaxian_a.cpp` | BSD-3-Clause (per-file SPDX) | code OK (with notice) | | MAME 0.28x binary | GPL-2.0-or-later as a whole | closed box only | | Galaxian schematics (as recorded in MAME's comments) | facts | facts only | | ZEXDOC / ZEXALL | GPL-2.0-or-later | run as a program; never committed | | Namco Galaxian ROMs | Namco copyright | never shipped; player supplies |