# Build progress The working log of the transcription (newest last). Measured results live in [status.md](status.md); the brief is [handoff-brief.md](handoff-brief.md). ## 2026-11-14, session 1 (Transcription role) Done: 1. Repository, crate `a5200`, handoff brief; reference cloned to `external/a5200-python` at `844355d` (not committed); its interpreter is `/data/emu/a5200-python/.venv-pypy`. 2. Every module of `src/a5200_python/` transcribed (`7f5c7ed`); Pac-Man 120 frames identical on the first build; Acid5200 natively 46/48 with the reference's frame counts and messages. 3. Unit tests (30), the `a5200-play` window, `scripts/seeded_faults.py`, `scripts/ladder.sh`, CI (`2863b32`). 4. The gate's tables run (`d4f4091`): 116 of 116 identical, plain and with the round trip; audio 29 of 29; seeded faults 24 of 31 (see status.md). 5. Found in the reference: a save while a trak-ball rolls does not continue identically (`scripts/trak_state_repro.py`, `scripts/cases-upstream.tsv`); reported, not fixed here. How to resume: - `bash -lc 'scripts/ladder.sh'` (the whole gate; `--quick` for `cases.tsv` alone). The reference traces are cached in `external/refcache` (keyed by case name, slices and extra arguments); when the reference pin moves, move that folder aside (never delete it) and rerun. - `bash -lc 'python3 scripts/seeded_faults.py'` (worktree at `external/faults-tree`; needs the plain, `--save-at-half` and `--extra=--audio` reference traces of `cases.tsv` in the cache). Traps met: - `cargo fmt` rewrote the sources after the fault table was written; the fault script's old-text strings must match the formatted source (each is checked to occur exactly once, else the fault is reported SKIPPED). - `cargo clippy` from the PATH picks up an old nightly here; use the rustup stable toolchain (`~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin`), as CI's is newer. - The AudioTap is host state, not board state: across `--save-at` the trace moves it to the fresh console (the reference's state does not hold it either). Left: see status.md, "What is left". ## 2026-11-14 to 2026-11-19, session 2 (Transcription role): repin to cf82d44 Done: 1. a5200-python `cf82d44` (the trak-ball save-state fix and three more of its class, version 4) transcribed into `state.rs` and `controllers.rs`; its new test_state.py tests into `tests/state_anywhere.rs`; every module header and script names `cf82d44` (`805231d`). 2. `external/refcache` moved aside to `external/refcache-844355d` and regenerated. 3. Mid-frame saves in the gate: `a5200-trace --save-mid`, `lockstep.py --save-mid-half`, `scripts/busy_case.py` + `scripts/midframe_cases.py` -> `cases-midframe.tsv`; the trak-ball case moved into `cases.tsv`. Ladder and seeded faults: status.md. How to resume: as above; `scripts/ladder.sh` now also writes `external/busy` (on the reference's interpreter) before rung 3. Rerun `scripts/midframe_cases.py` if the case inputs change. Traps met: - A save point named by a condition must be checked after a step, never at the slice's start (the Python test checks after `board.step()`); a cycle point is checked before stepping too, so `cycle-0` is the frame boundary after the inputs were applied. - The audio faults need the Acid5200 table: only `acid/full-suite` and `acid/gtia_consol` catch the speaker weight.