# The wall between the MIT and the GPL tools The family's emulators are MIT and are written from documents, hardware evidence and permissive code only (charter, "Licences and provenance"). Its closed-box referees are often GPL programs. Two repositories keep the two worlds apart while letting both be good. ## Who works where | Work | Repository | May read GPL source? | | --- | --- | --- | | Our own tools, the contract, readers, hardware tools | `emu-tools` (MIT) | no | | Tools that link, include, patch or declare the API of a copyleft program | `emu-tools-gpl` (GPL-3.0-or-later) | yes: that is the point | | Emulator cores and boards | their own MIT repositories | no | ## The rules 1. **Separate briefs.** An agent or session briefed for `emu-tools-gpl` reads GPL source; it does not, in the same brief or session, write code or documents for an MIT emulator repository or for `emu-tools`. An emulator agent never opens `emu-tools-gpl`'s code, patches or the upstream sources it pins. 2. **What crosses.** Only (a) the contract (`docs/contract.md`, written here under MIT) and each tool's README description of its command line and outputs, written without code fragments; and (b) the tools' outputs (traces, frames, audio, snapshots, manifests). 3. **One direction for code.** MIT code may be copied into `emu-tools-gpl` (MIT is compatible with GPL; the MIT notice is kept). Nothing is ever copied from `emu-tools-gpl` into an MIT repository. 4. **No internals across the wall.** A tool exports documented behaviour (pins, bus cycles, documented registers, pictures, sound), never a model's internal node names, state machine labels or source comments. An MIT project that needs an internal fact finds a document or a hardware measurement for it, or treats it as provisional. 5. **Outputs are evidence of a closed box.** Every value taken from a GPL tool is tagged `OBSERVED` with the manifest's emulator, commit and tool version, and is overruled by any document or hardware measurement that disagrees. 6. **Excluded everywhere.** Non-commercial code (Genesis Plus GX, PicoDrive) is never in either repository: run only as shipped. Authors who object to AI use (furrtek) are not used at all. GPL-2.0-only and AGPL code cannot join the GPL-3.0-or-later repository; if one is ever needed it gets its own small repository with its own licence.