# Build progress What was done, in order, with what each step measured. The current numbers are in [status.md](status.md). ## Session 1 (2026-11-19) 1. `git init`, [handoff-brief.md](handoff-brief.md) first; the reference cloned to `external/a7800-python` and checked out at `d6b220d` (its source equals the working checkout's `a0456d8` but for docs/status.md). 2. Every module of the reference's `src/a7800_python/` transcribed: `machine`, `maria` (the DMA generators as a resumable state machine, `Engine`), `board` (the board is 6502-rust's `Bus`; MARIA's DMA reads through `Port`), `system`, `cartridge/` (the connector, the description, the schemes with banksets and the POKEY socket, the A78 header, the payload table with its confirmed rows and the CC0 list byte for byte, the one loader, the BIOS's own test), `controllers` (ProLine, light gun, paddles, trak-ball), `sound`, `television`, `mode2600` (through a2600-rust's sockets), `romsets`, `frontend` (the palettes, the composite option and the key handling). Added: `state` (save states), the binaries `a7800-trace`, `a7800-gates`, `a7800-play`, `a7800-speed`. First build clean; the first traced runs (Asteroids 30 frames from the NTSC BIOS; Commando 200 frames with POKEY, audio and input; Pitfall II in 2600 mode from the PAL BIOS and directly) were identical to the reference's at the first try. 3. The gate: `scripts/a7800_trace.py` (the reference side, run on a7800-python's own venv from the pinned clone), `scripts/lockstep.py`, `scripts/cases.tsv` (50 cases), `scripts/inputs.py` (the C23 probe built with cc65 from the reference's `probes/dliprobe.s`, its A78 header checked equal to the reference's `a78.build`; the Bankset Test Suite's `.a78` programs extracted from the reference's fetched zip), `scripts/ladder.sh`, `scripts/seeded_faults.py`, `scripts/palettes_ref.py`. 4. The reference's unit tests transcribed under `tests/` (board, MARIA DMA, controllers and the sound tap, schemes, formats, television, BIOS modes, 2600 mode, the boundary test), and a save-state test. 5. Runs: the lockstep 50 of 50 at the first full run (every case identical at the first try, nothing in the board changed for it); save at half 36 of 36; a2600-rust's gates through the 7800's TIA: die 39/39, timers 14/14 on both rows, smoke 93/93, #699 19,455/19,455 cells, `--bios` digests 12/12 equal to the reference's; palettes and composite byte-identical to the reference's; the window judge PASS after its checks were transcribed from `m8_frontend.py` exactly (a first, paraphrased composite check failed on a correct render). 6. Seeded faults, first run 18 of 24. Three misses were the gate's aim (ignore-lock on a 2600-mode case, end-test-zero on titles without C5's terminator, the C23 probe through the NTSC BIOS, which refuses it as unsigned: the probe cases now start directly, as the reference's `dli_probe.py` does). Port 2's two-button line was unexercised: a case pressing port 2 was added (`twobutton/one-on-one-port2`) and catches it. Left: the Kangaroo bit (no case draws in Kangaroo mode) and the data bus at the hand-off (an equivalent mutant on the 2600 cases). The lockstep's reference cache is now keyed by the case's ROM and arguments too, so a changed case cannot reuse a stale trace. 7. The ladder end to end (`scripts/ladder.sh --faults`): see [status.md](status.md). Results of each run are recorded in [status.md](status.md).