# 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` (die traces of DL-0311, DL-0921; board schematics) | CC-BY 4.0 | facts (tier 1 by origin); credit owed where its descriptions are used | | Capcom board schematics (89624B-3 etc.), GAL16V8 / EPL16P8 data sheets | manufacturer | facts | | PAL fuse maps shipped in the MAME ROM sets | Capcom's chips, read from hardware | facts about the board (ROM contents read from hardware) | | MAME 0.285 `cps1.cpp`, `cps1_v.cpp` and the other pinned files | BSD-3-Clause (header lines checked; the pins say "GPL-2.0+ / BSD-3-Clause per file", but every file pinned here is BSD) | code OK with notice; the mapper tables and `cps1_config_table` may be taken with MAME's notice | | jtcps / jtcores (jotego) HDL (cited e.g. `jtcps1_main.v l.125`) | GPL-3.0 | **opened**; closed box only from now on. jotego's board measurements stated in prose (Q1, Q2 bus timing) are facts by the middle rule if he says they were measured on a board | | FinalBurn Neo (cited e.g. `cps_run.cpp l.423`) | non-commercial | closed box only | | Eduardo Cruz `arcadehacker-cps1` (desuicide keys), `arcadehacker-kabuki` | no licence file | the 18-byte keys are data read from real chips: facts; the sketch code is not copied | | `mad`, `cpsb`, `ccps` | recorded in validation.md | check before taking anything | ## Scripts | File | Verdict | | --- | --- | | `decode_gal16v8.py`, `check_pal_mapper.py` | own code from the Lattice data sheet and Capcom's schematic: **clean** | | `mapper_table.py`, `decode_cpsb21_keys.py` | parse MAME's BSD-3-Clause source and the desuicide keys from the git-ignored checkout at run time; nothing copied into the repository: **clean** | | `census.py`, `mame_trace.py`, `fetch_references.py` | **clean** | | `tests/detectors/*` | our census over MAME's `-listxml`: **clean** | Verdicts: 7 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); jtcps stays, because its pin holds only jotego's documents and board captures (no HDL). - FinalBurn Neo, https://github.com/finalburnneo/FBNeo @ `c3e8c4df81d7f7375a1c990f06a2bcd5c0ea204c` (non-commercial). - ArcadeHacker_CPS1 @ `6c506ff339f6a3df2e9696afbf5ec2615eeb207d` and the Kabuki sketch (`ArcadeHacker_Kabuki.ino` @ `53ccf922`): unlicensed code. The Kabuki pin keeps its two PDF documents. `scripts/decode_cpsb21_keys.py` read the CPS-B-21 keys out of the CPS1 sketch at run time; it now stops with a message when the sketch is absent. Its earlier result is recorded in docs/cps-b.md; the keys themselves are hardware data (facts). Passages rewritten: docs/cps-a.md and memory-map.md lost FBNeo's file names and line numbers and jtcps1's HDL file and line (each now HYPOTHESIS where only the source said it; jotego's board measurement in prose stays a fact). Nothing was built from the moved trees.