# Provenance (licence audit, 2026-11-13) This repository is at Phase 0: documents, pinned references, fetch and census scripts, and a MAME trace runner. **There is no emulator code yet**, so there is nothing to rewrite. This file records which sources the documents were learned from, their licences, and what the board may take from each when it is written, under the family charter's "Licences and provenance" (nothing copied or transcribed from GPL, LGPL, non-commercial or unlicensed code; facts are not code; permissive sources used with their notice). **How this audit was done.** From the repository's own records: `docs/`, `scripts/`, commit messages, `scripts/pinned_repos.json` and `scripts/pinned_files.json`. The only reference files opened were the licence header lines of the pinned MAME files (every one is `license:BSD-3-Clause`). No GPL or non-commercial source was opened for this audit. No code blocks quoting C, C++ or HDL from any source were found in `docs/` (only our own MAME debugger commands and module sketches). **The practice the documents were written under.** The Phase 0 rules of 2026-11-11 allowed GPL and non-commercial emulators to be "read and cite only; never copy". The charter now says a GPL project's source is not opened while writing the code it would inform. So: a fact these documents cite to a GPL or non-commercial **source file** (by file and line) is emulator-tier and was read from that code; the board may not be written from such a passage. It may be written from the passages that rest on hardware, manufacturer documents, MAME (BSD-3-Clause, with notice) or other permissive sources, and from closed-box runs of any emulator. Each document's tables name their source per row, so the split is mechanical when the board starts. ## Sources and what the board may take | Source | Licence as recorded | Use | | --- | --- | --- | | Loïc Petit `cps2-reverse` (A/B/E-board schematics, die traces of DL-0311, DL-0921, DL-1727/1827/1927/2027) | CC-BY 4.0 | facts; credit owed | | MAME 0.285 `cps2.cpp`, `cps1_v.cpp`, `cps2crypt.cpp`, `qsound*.cpp`, `dsp16`, `eepromser`, m68000 files | BSD-3-Clause per file (header lines checked) | code OK with notice: the CPS-2 cipher (`cps2crypt`) may be taken with MAME's notice | | jtcores (jtcps2, jtcps15) | GPL-3.0 | closed box only (opened during Phase 0: see above) | | FinalBurn Neo | non-commercial | closed box only | | `arcadehacker-cps2`, ArcadeHacker silicon blog | none stated | facts (keys and measurements read from hardware), never copy code | | `mad` | Unlicense | code OK | | `cps2-utils` (MBDesu) | MIT | code OK with notice | | Game keys (`*.key`), program ROMs | Capcom data; never committed (`.gitignore` excludes `*.key`, `*.zip`, `*.bin`, `*.nv`) | read from the user's sets | ## Scripts `phoenix_pair.py` (compares a Phoenix image with MAME's decryption dumps), `census.py`, `mame_trace.py`, `fetch_references.py`: **clean**. `census-table.tsv` is git-ignored. Verdicts: 4 clean, 0 cite, 0 unclear, 0 rewrite. Local repository, no remote; no history findings. ## 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, nor non-commercial or unlicensed code. Removed and moved aside unopened, out of the repository (not deleted): jtcores (https://github.com/jotego/jtcores @ `ea0ef4e973a0010cc697090196251c4962846814`, GPL-3.0 HDL), FinalBurn Neo (https://github.com/finalburnneo/FBNeo @ `c3e8c4df81d7f7375a1c990f06a2bcd5c0ea204c`, non-commercial), the ArcadeHacker CPS2 sketch (`ArcadeHacker_CPS2.ino` @ `0820276c`, unlicensed; the pin keeps Capcom's security programming guide, a PDF), and MAME's `m68000gen.py` and `m68000.lst` (no licence header: GPL-2.0+ by MAME's COPYING). Nothing built from them. Passages rewritten: encryption.md (jtcps2's HDL and bench file names; MAME's generator file and internal space names, the routing now HYPOTHESIS), memory-map.md (the `[jt]` tag now marks source-read statements HYPOTHESIS; `jtcps2_raster.v` and the bench README path dropped), mame-oracle.md (FBNeo file names), qsound.md (jtcps15's HDL file name), handoff-brief.md (a note on the C table: jtcps2's side is HYPOTHESIS).