# Build progress (restart, from 2026-11-14) The running log of the restart's rebuild, kept current after every commit so a new session can resume. Rules: [restart.md](restart.md). Scope, in order: 1. Scrub the inherited documents ([provenance.md](provenance.md)). 2. Fetch the references afresh; rebuild the closed-box detectors the milestones need. 3. Milestone 5: the bankswitching schemes. 4. Milestone 6: controllers, the window, palettes. 5. Milestone 7: PAL and SECAM rows, TIA revision fields from #699. 6. The 7800 sockets (a7800-python's handoff brief). 7. The charter's obligations (SPDX, NOTICE, lineage line, status.md, tags, modelling levels, domains, romsets by environment variable). 8. Seeded faults for every judge. ## Baseline at the restart (`318f648`, = `ad1108d` + restart.md) - Default suite: 46 passed, 7 skipped (references not fetched), CPython 3.14.4 and PyPy 3.11 (7.3.20). - Die traces at `ad1108d`: 39 (tia-fpga's 22, eleven cartridges in two wirings, and 17 recorded locally: the 16 cartridges of `scripts/die_carts.py` and Donkey Kong's power-on). The 17 local traces are gitignored and went with the archive; they must be re-recorded on Sim2600 to be counted again. ## Log - **Item 1, scrub**: documents and code comments scrubbed; `docs/provenance.md` records each change and the MAME licence checks; MiSTer and Gopher2600-Dev-Docs pins removed, MAME 0.285 sparse pin added; handoff brief milestones 5-7 restated under the restart rules. - **Item 2, references**: fetched afresh (all pins satisfied), Horton's 2012 mapper document pinned; Sim2600 rebuilt; the 17 local die traces re-recorded; 39 of 39 die traces match; Stella SDL build rebuilt (Gopher2600 and the libretro core not yet: not needed so far). - **Item 3, milestone 5**: every licensed scheme built (`cartridge/licensed.py`, `dpc.py`, `supercharger.py`, `detect.py`; FA joined `atari.py`); the connector gained a `write` hint (3F only) and a read snoop (FE); census rewritten without Stella's database; detector vs `-rominfo` 891/898 (licensed 712/715); per-scheme boots and frame compares in validation.md; 12/12 seeded faults. Sweep of the 52 milestone-5 licensed dumps (60 frames): 41 of 52 agree with Stella (30 as they stand, 11 with the die-settled departures); the 11 left are listed in validation.md. **Owed for milestone 5**: the Supercharger tape path (no BIOS here), multi-load, FE's reset hypothesis probe, Crane's patent pinned. - **Item 4, milestone 6**: Driving controller, Booster Grip, joysticks (`controllers.py`, nocash), SaveKey (`savekey.py`: Microchip's data sheet, the wiring from Go Fish!'s own code; Go Fish! reads a known block back), palettes with origins (`palettes.py`: MAME's BSD-3 tables, nocash), `a2600-play` (`play.py`, pygame-ce 2.5.8 in `.venv-pypy`, headless under SDL dummy drivers), the paddle trip point from nocash's table. RIOT gained `port_a_listener`. `scripts/frame_hashes.py`: ten games x 600 frames, identical to the baseline at `8dd24c7` (`tests/frame_hashes.tsv`). Default suite 82 on PyPy, 81 + 1 skip (no pygame) on CPython. Driving sense of rotation left HYPOTHESIS (Indy 500 experiment inconclusive). - **Item 5, milestone 7**: PAL and SECAM rows with their own `Timing` and evidence (SECAM's clock HYPOTHESIS; SECAM SWCHB D3 grounded), revision fields `merge_steps` and `strobe_drops` (`machine.TIARevision`) derived from the #699 tables, six console rows (the PAL 7800 one in `HOSTED_MACHINES`), `gates.py` (serial judge functions), `scripts/serial_consoles.py` (one console per run, every cell), `picture_compare.py --machine`. Frame hashes identical; die traces 39/39. PAL smoke against Stella: 3 of 5 dumps agree on every frame (Space Invaders (Europe) and 32 in 1 written down). Console judge results in validation.md "Milestone 7". - **Item 6, the 7800 sockets**: `docs/api.md` (the stated public surface; `tests/test_api.py` resolves every listed name and keeps the chips' import boundaries), `Board(machine, cartridge, *, tia=, riot=, cycles=)`, `System(..., board=)`, the CPU/TIA phase as `Machine.tia_clocks_cpu` and `PowerOn.half_step`, 7800 rows in `HOSTED_MACHINES` only, the gates in `gates.py` (die traces, timer ROMs, serial tables, frame hashes, lockstep) with `root=` and a factory; `scripts/die_trace.py`, `frame_hashes.py` and `serial_699.py` call them. Frame hashes before (`a32b516`) and after: identical (validation.md). - **Item 7, the charter's obligations**: SPDX headers on every tracked file (exceptions with reasons in status.md: LICENSE, NOTICE, two JSON pin lists, py.typed); NOTICE lists MAME's BSD-3 facts and the palette tables taken, the CC0 lists, Horton's documents and the other cited sources; the lineage line opens README; `docs/status.md` (rungs, modelling levels, one domain and its channels, capabilities, evidence tags, licences); evidence tags added through tia.py, audio.py, board.py, system.py, riot.py, television.py and the cartridge constants; machine paths removed (the Debian MAME hash fallback, `mame_trace.py`'s usage and binary, the sweep's docstring): romsets by `NO_INTRO_DIR`/`MAME_ROMPATH`, the hash list by `MAME_HASHPATH` or the pinned copy. - **Item 8, seeded faults and close-out**: 23 new one-line faults (every judge added since the restart, including the serial judge, the die and lockstep gates themselves and the frame hashes' audio), 35 of 35 caught; the milestone-7 per-console judge recorded (validation.md); status.md and README closed out with measured numbers (`9475aa1`). The restart's scope is done; the Rust transcription should pin `9475aa1`. ## Left, for later sessions - Settling experiments for the HYPOTHESIS details: the Driving controller's sense of rotation, the SECAM clock, the SaveKey's erased value and write time, objects the #699 tables do not move. - Milestone 5's owed items: the Supercharger tape path and multi-load (no BIOS here), FE's reset probe, Crane's patent pinned. - PAL detector differences written down: Space Invaders (Europe), 32 in 1. - Not built: save states (`state.py`), the debugger and JSONL trace of the original brief's tooling list; Kid Vid, MindLink, light gun, AtariVox speech. - Gopher2600 and Stella's libretro core not rebuilt since the restart. - The family's manifest for this project in emulator-lineage and the sources.md rows (proposed in the session report; not this repository's to edit).