# Provenance Where this repository's knowledge comes from, what the 2026-11-14 restart struck, and the licence checks behind what remains. The rules are [restart.md](restart.md); the family's are the charter's ("Licences and provenance") and `emulator-lineage/docs/sources.md`. ## The scrub of the inherited documents (restart rule 10) The documents and code inherited from `ad1108d` were written under the older rule ("GPL source: read, cite, never copy"). Every statement whose support was reading Stella's, Gopher2600's, tia-fpga's RTL or another copyleft or unlicensed implementation's source was struck or re-sourced on 2026-11-14. Detector recipes (how Stella, Gopher2600 and MAME were built and run as closed boxes) stay. Statements resting on MAME files were kept only after each file's first line was checked (below). | Where | Statement as inherited | Now | | --- | --- | --- | | start-here.md, "Sources" | "and Stella's source at the pin" listed as a source for the whole document | struck | | start-here.md, data bus | Stella's driven-pins option cited as `TIA.cxx` `peek` | the option kept as a user-visible setting; the source citation struck; floating-line chips re-sourced to Stella issue #173 (prose) | | start-here.md, paddles | "Stella models the RC curve (`tia/AnalogReadout.cxx`)" | struck; the board's RC model is re-sourced to the console schematic (timing.md "Inputs"); MAME's straight line kept (BSD-3 `tia.cpp`) | | start-here.md, audio | the mix from Stella `tia/Audio.cxx` `mixingTableEntry`, R_MAX 30, R 1 | struck; the mix is the schematic's resistor network (timing.md "Audio", already derived that way in milestone 3) | | timing.md, header | Stella's tree at `2c3d702` as a line-referenced source | struck | | timing.md, "two time axes" | Stella's `updateEmulation` and its per-register delay queue (`TIA.cxx:34-48`, `1459-1473`) | struck (whole paragraph) | | timing.md, WSYNC | Stella's `requestHalt` / `handleHalt` / `onHalt` with line numbers | struck; the resume point kept as OBSERVED from Stella's `-dbg.logtrace` runs | | timing.md, RSYNC | Stella's `applyRsync` sets the counter to 225 | struck; "keeps showing the old line's coordinates" kept as OBSERVED (lockstep runs); MAME's no-op kept (BSD-3 `tia.cpp:1317-1320`) | | timing.md, playfield | Stella delays PF writes 2 CLK (3 on "pesco"), `TIA.cxx:34-48` | struck | | timing.md, collisions | "as Stella has it (`TIA.cxx:1637-1688`); tia-fpga's RTL gates on HBLANK only" | struck; the die trace `vblank_collisions` is the only support, as it always was the decider | | timing.md, vertical | Stella's `FrameManager` state machine and jitter model | struck; the observed television roll (detector recipe) kept | | timing.md, audio | Stella's phase events at counts 38 and 150 of `Audio::tick`; its mixer formula `(R_MAX + R·vmax)/(R_MAX + R·v)`; "Stella's curve to within its constants"; Stella's lockup guard term | struck; the die-settled rules (phase B on steps 77 and 301, no guards, the schematic mix) stand on the die traces and the schematic alone | | timing.md, inputs | Stella `tia/LatchedInput.cxx`; `tia/AnalogReadout.cxx` (`updateCharge`, R0, C, R_DUMP) | struck; the latch re-sourced to the Programmer's Guide (VBLANK D6); the RC constants were already the schematic's | | timing.md, RIOT | "Stella implements both (`M6532.cxx:259-269`, `myWrappedThisCycle`)"; "Stella loads `mySubTimer = divider − 1` (`M6532.cxx:345-364`)" | struck; the first-decrement rule re-sourced to MAME's BSD-3 `mos6530.cpp:315-321` (DOC), Stella's closed-box lockstep (OBSERVED: the seeded fault fails it at instruction 1,329) and #606's console results (TEST ROM) | | timing.md, power-up | "Gopher2600: INTIM $00, T1024T, flag clear" | struck (read from its source); to be re-observed through HEADLESS `RIOT TIMER` before any use | | undocumented-behavior.md, bus | `tiapinsdriven` setting name | reworded as the user option | | undocumented-behavior.md, revisions | the table of Stella `dev.tia.type` effects (`TIA.cxx:1039-1100`) and Gopher2600 `hardware/tia/revision/bugs.go` names and effects | struck (whole table); milestone 7 derives revision fields from ale-79's #699 tables | | undocumented-behavior.md, RIOT | PA7 flag behaviour cited to Stella `M6532.cxx:117-139, 272-280` | re-sourced to the 6532 data sheet's interrupt flag register | | undocumented-behavior.md, C3 | Stella `applyRsync` sets hctr 225 | struck; the issue thread (#5) kept | | undocumented-behavior.md, C8 | Gopher2600's power-on RIOT values | struck; Stella's randomisation kept as OBSERVED | | undocumented-behavior.md, C11 | "`TIA.cxx` accepts 11 ... read the code" | struck | | undocumented-behavior.md, C16 | Stella "halt to `hctr = 0`" | re-sourced as OBSERVED (trace resumes at line cycle 0) | | undocumented-behavior.md, C17 | Stella's 2 CLK (3 on pesco) | replaced by Towers' side (DOC) | | undocumented-behavior.md, C19 | Stella's `AnalogReadout` | struck; its debugger's reading kept (OBSERVED); MAME's side kept (BSD-3) | | undocumented-behavior.md, C20 | Stella's `CartF8.cxx` `peek` order (the new bank's byte) | struck; the board's choice re-tagged HYPOTHESIS with the experiment (also in `cartridge/atari.py`) | | undocumented-behavior.md, C24 | Stella's source comment and tia-fpga's RTL as the two sides | struck; the die trace stands alone | | undocumented-behavior.md, C26 | "Stella: a guard term ..." | struck as an attribution; the guard kept as the hypothesis the die rejected | | undocumented-behavior.md, open item 6 | "Stella and Gopher2600 model a delay" | struck; HYPOTHESIS (instant settling) | | validation.md, Stella | "DirtyHairy's TIA core is cycle-based with a delay queue" | struck | | validation.md, HDL | MiSTer A2601 and tia-fpga's RTL as "readable second opinions" | struck; MiSTer pin removed | | validation.md, licences | "read, cite by file and line, never copy"; `DefProps.hxx` read as data | replaced by restart.md's rules | | validation.md, C24 note | "where tia-fpga's RTL and Stella disagree; Stella is right" | struck | | cartridge.md, identification | Stella DB row counts (3,636 of 3,661 rows without `Cart.Type`) | struck; replaced by what `-rominfo` prints (OBSERVED) | | cartridge.md, controllers | "inverted or swapped axes, per Stella's database"; Decathlon's explanation ("its detector prefers paddles ...") | struck; the `-rominfo` verdict kept (OBSERVED) | | cartridge.md, TV | 185 dumps `Display.Phosphor=YES` from Stella's DB | struck | | cartridge.md, judges | "Stella starts in the last bank" | struck; the power-on bank re-tagged HYPOTHESIS | | docs/README.md, finding 7 | Stella DB row counts | struck | | `src/a2600_python/riot.py` | Stella `M6532.cxx:345-364` beside MAME | struck; re-sourced as in timing.md | | `src/a2600_python/cartridge/atari.py` | Stella `CartF8.cxx` `peek` | struck; HYPOTHESIS (C20) | | `src/a2600_python/machine.py` | Stella `Switches.hxx` value for SWCHB | struck; MAME (BSD-3) and the Programmer's Guide remain | | `scripts/lockstep_stella.py` | `TIA::onHalt`, `applyRsync`, `myHctrDelta` with line numbers | struck; the behaviours kept as observed in the traces | | `scripts/die_carts.py` | Stella source comment and tia-fpga RTL in the `vblank_collisions` note | struck | | `scripts/count_bankswitch.py` | parses Stella's `src/emucore/DefProps.hxx` (with a field order from `Props.hxx`) | still present at the scrub commit; replaced in milestone 5 by `-rominfo` output only | | `scripts/pinned_repos.json` | MiSTer Atari2600 (GPL-3.0 VHDL) and Gopher2600-Dev-Docs (unlicensed) pins | removed; Stella and Gopher2600 notes now say "closed box only"; MAME 0.285 added sparse (BSD-3 `bus/vcs`, CC0 hash files) | What was **not** struck, and why: - tia-fpga's README (prose findings from the die netlist, checked by its author against Sim2600): facts, cited as such; its RTL is never opened. Its trace files are data and its generator and recorder are run. - Observations of Stella, Gopher2600 and MAME runs (picture differences, trace columns, `-rominfo` verdicts, power-on values read from runs): these are closed-box measurements (restart rule 5), tagged OBSERVED. - MAME `tia.cpp`, `a2600.cpp`, `mos6530.cpp` and `bus/vcs/*` citations: BSD-3 (below). - Stella issue threads and AtariAge/Stella-list posts: hardware results in prose (the middle rule); code fragments in them stay unread. ## Licence checks | File or source | First line / licence | Verdict | | --- | --- | --- | | MAME `src/mame/atari/tia.cpp`, `tia.h` | `// license:BSD-3-Clause` | readable with notice | | MAME `src/mame/atari/a2600.cpp` | `// license:BSD-3-Clause` | readable with notice | | MAME `src/devices/machine/mos6530.cpp` | `// license:BSD-3-Clause` | readable with notice | | MAME `src/devices/bus/vcs/vcs_slot.cpp`, `rom.cpp`, `dpc.cpp`, `scharger.cpp`, `harmony_melody.cpp`, `compumat.cpp` | `// license:BSD-3-Clause` | readable with notice; every other `bus/vcs` file is checked before it is opened (milestone 5 lists them) | | MAME `src/devices/sound/tiasound.cpp`, `tiaintf.cpp` | `// license:GPL-2.0+` | closed; never opened | | MAME `hash/a2600.xml`, `hash/a2600_cass.xml` | CC0-1.0 (MAME's software lists) | readable with attribution | | Stella, Gopher2600 | GPL-2.0+, GPL-3.0+ | closed box only | | tia-fpga | CERN-OHL-S-2.0 (patches MIT) | README prose and trace data used; RTL closed | | Sim2600 | CC0-1.0 / MIT (C1) | readable | | 6502.ts `aux/2600` | MIT | readable | ## Sources met in milestones 6 and 7 | Source | Terms | How it was used | | --- | --- | --- | | nocash 2k6specs (pinned) | documentation, no licence | facts: port pin-outs, the Driving controller's switch, the 3-button adapter (Booster Grip), the POT timing table, the colour tables | | Microchip 24AA256/24LC256 data sheet DS20001203W (pinned) | manufacturer's document | facts: the SaveKey's I2C protocol | | Go Fish! (NTSC) and Wall Jump Ninja dumps | the cartridges' own code (restart rule 4) | Go Fish!'s I2C routine disassembled from the dump (with 6502-python's disassembler) for the SaveKey's wiring; both run as judges | | danjovic's "SaveKey Plus" (hackaday.io) | page text, no licence | one fact in prose: the lines' 10 kΩ pull-ups; its circuit is a compatible board, not the SaveKey | | MAME 0.285 `src/mame/atari/tia.cpp`, `tia.h` | `// license:BSD-3-Clause` (first line checked before opening; added to the sparse pin) | the NTSC and PAL palette tables and conversions taken with notice (NOTICE, `palettes.py`) | | AtariAge forum search results naming the AtariVox documentation | forum text | not used: the programmer's guide itself was not found; a result pointing at Gopher2600's package documentation was not followed (closed box only) | | ale-79's #699 test ROMs' assembler sources (`*.asm` in the pinned zips) | posted without a licence | not opened (restart rule 1); the binaries are run and the result tables read | ## Work done with another implementation's source open None in this restart. The pre-restart history is archived and not read (restart rule 2). ## 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, even to build it. The pins of Stella (https://github.com/stella-emu/stella @ `2c3d7023e9136f75c789803b44f119d8749dc104`, GPL-2.0-or-later) and Gopher2600 (https://github.com/JetSetIlly/Gopher2600 @ `4bea39fa60470aa6a4d7e68c53a0bb556edbcdfb`, GPL-3.0-or-later) left `scripts/pinned_repos.json`. Their clones, and the Stella source copy that `reference/build-stella-sdl/stella/` was built in, were moved aside unopened, out of the repository, not deleted. The built Stella SDL binary (sha1 `60615fbc6c9c2edb00f114ccb24401f81e652136`) was put back at its path and runs as before (`-rominfo` checked); the libretro core and Gopher2600 were not built on this machine, and a fresh checkout uses shipped builds (docs/validation.md). 6502.ts's `aux/2600` test cartridges stay: its LICENSE is MIT (sources.md lists 6502.ts with Gopher2600 as GPL; reported for correction).