# Build progress (so another agent can resume from the repository alone) Read docs/handoff-brief.md (tier, pins, rules) and docs/status.md (every rung, its count) first. ## How to work here - The CPU is `../w65c02-rust` at `99c3e19` (path dependency). Never modify it, nor lynx-python or w65c02-python. - The reference: `external/lynx-python` is a clone of `/data/emu/lynx-python` checked out at `75b9be7` (was `bc5f35e` until 2026-11-19); `external/venv` a PyPy 3.11 venv with it installed editable (which pulls w65c02-python `9ca4a2f` by its `git+file` pin). Set up (docs/status.md, "Setting up the reference"): git clone /data/emu/lynx-python external/lynx-python && git -C external/lynx-python checkout 75b9be7 pypy3.11 -m venv external/venv && external/venv/bin/pip install --upgrade pip external/venv/bin/pip install -e external/lynx-python - Login shell (`bash -lc`) for `NO_INTRO_DIR` and `MAME_ROMPATH`. At most 3 processes, `nice -n 19`, `PYPY_GC_NURSERY=1M` for the reference (lockstep.py sets both), every long run under `timeout`. - Reference traces are cached in `external/refcache` by case name, slices and extra arguments. When the reference pin moves, move that directory aside (never delete it) and let the gate regenerate it. - The gate: `scripts/ladder.sh`; faults `FAULTS=1 scripts/ladder.sh` or `python3 scripts/seeded_faults.py`. ## Done (2026-11-14) 1. `git init`, crate `lynx`, docs/handoff-brief.md. 2. Every module transcribed (see README); Rust-forced differences in each header. 3. The gate: `scripts/lynx_trace.py` (reference side), `src/bin/lynx-trace.rs` (this side), `scripts/lockstep.py`, `scripts/cases.tsv`, `scripts/inputs/`, save states (`src/state.rs`, `--save-at-half`), `scripts/seeded_faults.py`, `scripts/ladder.sh`. 4. The reference's unit tests transcribed where they test behaviour (`tests/`). 5. `lynx`, `lynx-cart`, `lynx-hwtests`, `lynx-play` (SDL2, `frontend` feature, judged headless with `--judge`). 6. LICENSE, NOTICE, SPDX headers, lineage line, docs/status.md, CI. 7. Measured (docs/status.md): lockstep 89/89, save-at-half 89/89, faults 41/41 (37 by the gate, 4 by tests), hardware suites 95/122 per row (= the reference), window judge passed, 14-23x real time. `scripts/ladder.sh` passed. ## Left See docs/status.md, "Open". Next steps that would add value: a case with a game's own DISPCTL flip (the one gate blind spot a case can close); a longer smoke sweep at a commit point; `lynx-rust-fast` when a target needs it. When lynx-python moves, re-pin it here (new clone checkout, refcache moved aside), merge its changes down module by module and re-run the ladder.