# Restart rules This repository is a restart. The earlier `lynx-python` took three behaviours from reading Gearlynx's source (GPL-3.0): the timer and audio slot model, the display refresh rule (both from milestone 1, `5d501c7`) and the UART's second-byte window. On 2026-11-14 the owner chose to archive that repository (`zzz-lynx-python`, private, archived) and restart from the last commit before those entered: milestone 0, the formats front door (`e22ea44`). Everything after that point is rebuilt under these rules. ## The rules 1. **No GPL, LGPL or unlicensed source is read.** Not to learn an algorithm, not to check a constant, not to settle a doubt. For this machine that covers Gearlynx, Handy and Mednafen/Beetle Lynx (check each file's licence before reading anything), Holani's source, MAME's Lynx driver, and the MiSTer Lynx core. Check /data/emu/emulator-lineage/docs/sources.md for anything else. 2. **The archived repository is not read**, in any form: not its code, not its tests, not its documents written after `e22ea44`, not its commit messages. 3. **Translating a program statement by statement is copying**, whatever the language. Code here is written from a written description of behaviour. 4. **Permitted sources:** the Epyx/Atari Lynx developer documentation (the "Handy specification"), the Lynx I and II schematics, logic-analyser captures recorded from real Lynx units (Gearlynx's capture files are recordings of hardware: data, usable), the Lynx Hardware Tests (drhelius, MIT: sources and expected results), community documents that report hardware findings, the BLL kit where its licence allows (check it), and code under a permissive licence with its notice kept. Felix is MIT: usable with its notice, but say so wherever it was used. 5. **An emulator may be run, never read.** Holani, MAME and Gearlynx may be built and driven as closed boxes through harnesses written here. Owner's rulings of 2026-11-13: a closed box may be a detector and a measuring instrument; a value got that way is tagged `OBSERVED` (emulator and revision named) and a document, a capture or a hardware test that disagrees overrules it. 6. **A difference from a closed box is written down, not fixed**, unless a document, a capture or a hardware test independently says the board is wrong; then cite that. 7. **Every rule in the code names its source** with an evidence tag (MEASURED, DIE, TEST ROM, DOC, OBSERVED, FITTED, HYPOTHESIS). A value chosen to pass named tests is `FITTED`, with the tests and what else was tried. 8. **The middle rule.** A fact is usable when someone established it on real hardware and says so in prose; cite them and note the history. Code fragments in any document stay unread. 9. **An author who objects to AI use of their work is left out**, even where the licence would allow it. 10. **The Phase 0 documents inherited from `e22ea44` were written under the older rule** ("GPL source: read, cite, never copy"). Before milestone 1 is rebuilt, every statement in them that rests on reading Gearlynx's, Handy's or another implementation's source is struck or re-sourced, and that is recorded in `docs/provenance.md`. The pins, the captures, the census and the facts from documents stay. ## The order of work 1. Scrub the inherited Phase 0 documents (rule 10). 2. Rebuild milestones 1 to 8 from `docs/handoff-brief.md`, one per commit, on the CPU core `w65c02-python`. 3. The charter's obligations: SPDX headers, NOTICE, lineage line, `docs/status.md`, evidence tags, modelling levels, domains and channels, romsets by environment variable. 4. Then the Rust transcription `lynx-rust`. If you meet a source whose licence or author's wishes you are unsure of, stop and report.