# Status Every rung, its command, its count, and the commit and date it was measured (charter methodology, "Documents"). Detail: [validation.md](validation.md), [worklog.md](worklog.md); what each part rests on: [claims.md](claims.md). Tier: `x-python`, the 32X board. **Pins** (2026-11-25): megadrive-python `efd80fc` (main: save states v2, the drawing switch), sh2-python `8824075` (complete save states, DMA address errors; was `884aa30` until 2026-11-25, below); under them m68000-python `4454d54`, z80-python `b59c80b`, ym2612-python `3cf4afd`, sn76489-python `beb859b`. PyPy 3.11.15. Romsets and boot ROMs only through `NO_INTRO_DIR` and `SEGA32X_BIOS_DIR`. ## Repin to sh2-python 8824075 (2026-11-25, branch `repin-sh2-8824075`) sh2-python `884aa30..8824075`: complete save states (`ChipState.internal`: the cache's storage, the SDRAM banks and refresh, the read-then-clear flags, the timers' catch-up clocks, the NMI edge; R1) and DMA address errors (vector 10, HM table 4.6; R2), both asked for by sh2-rust, which transcribes `8824075`. `scripts/gate.sh` on board code `74d6007` both sides: before `.venv-after` (`884aa30`), after a fresh PyPy 3.11.15 venv `.venv-sh2-8824075` (the same six pins but sh2-python), run side by side at load 10-20; outputs in the session's scratch folder (not committed): | Rung | Before (884aa30) | After (8824075) | | --- | --- | --- | | pytest / `-m slow` / ruff | 108 / 1 passed / clean | 108 / 1 passed / clean | | testpico cold 110 + reset + warm 260 | 6 PNGs | byte-identical, log identical but for times | | Mars Check Program, automatic, 760 frames | 118 files (51/161 reached, ERROR COUNT 0) | byte-identical, the same counts | | PWM demo, 480 frames, FM off | 352,520 samples, 12 PNGs | WAV and PNGs byte-identical | | NFL Quarterback Club, 900 frames | 54 PNGs | byte-identical | | MAME lockstep, Castlevania, passive 32X | report | identical | | VDPFIFOTesting `genesis`, with / without | 122 read, 0 fail that pass on hardware | the same | | mini sweep with / without the 32X | 115 rows, 0 moved | 115 rows, 0 moved; no row moved from before | **The Mars Check Program, whole** (the gate's 760 frames reach only test 51 of its 161; the whole program takes about 7,000 frames, two hours): rerun on `8824075` (board src of `74d6007`), 7,100 frames, 4,600 s: counter and ERROR COUNT kept on every change (154/161 with ERROR COUNT 0 at frame 5,178), the VDP-mode pictures (tests 157-161) from frame 5,300, and "すべて正常に終了しました" ("all finished normally") by frame 7,000: **161 of 161 pass**, as at milestone 3 (3ad5c20, 2026-10-29) and Session 16 (2026-11-07). The README's and claims.md's "161/161" is this whole run; the gate's "51" is how far 760 frames get. No program in the gate makes a DMA address error, and nothing the board saves or compares reads the new state fields, so byte-identical is what was expected. **Save states:** the format number stays 2 (a state pickles the chips whole, so the new fields are simply in it), but a state records the cores' revisions and refuses another's: states made on `884aa30` do not load on `8824075`. **/TIME through the 32X** (2026-11-25, branch `time-lanes`, `be9011c`): the 32X passed $A130xx to the cartridge through the byte interface, so a board that decodes /TIME itself (megadrive-python's `mappers.Board`) lost its writes and its reads' high byte behind a passive 32X. Found by sega32x-rust's ADEN = 0 rung (9 of megadrive-rust's 87 cases); repro in tests/test_slot.py. The gate's 32X runs on it: testpico, Mars Check (760), the PWM demo (WAV too) and NFL byte-identical with the "After" column; pytest 110 (two new), ruff clean; the passive half too (Castlevania lockstep report, VDPFIFOTesting both ways, the mini sweep 115 rows with and without, 0 moved). Merged to main locally 2026-11-26 (fast-forward to this). ## The gate (`scripts/gate.sh`), before and after the megadrive-python efd80fc repin Before: megadrive-python `3e2325f`, sh2-python `94c58d8`. After: `efd80fc`, `884aa30`. Board code `3836fbb` both sides; outputs in `reference/repin/gate-{before,after}` (not committed). | Rung | Before | After | | --- | --- | --- | | pytest / `-m slow` / ruff | 102 / 1 / clean | 102 / 1 / clean (103 with `test_drawing_switch.py`, a52af1e) | | testpico cold 110 + reset + warm 260 | 52/57 MD+32X, 6 PNGs | 6 PNGs byte-identical to before | | Mars Check Program, automatic, 760 frames | test 51 of 161 reached, ERROR COUNT 0, 118 PNGs | byte-identical, the same counts | | Mars Check Auto Demo, 760 frames (extra) | 345 PNGs | byte-identical, same SH-2 counts | | PWM demo, 480 frames, FM off | 352,520 samples | WAV byte-identical, 12 PNGs identical | | NFL Quarterback Club, 900 frames, Start 300 + 600 | 54 PNGs, 32X mode 2 | byte-identical, same counts | | MAME lockstep, Castlevania, passive 32X | 0 unexplained | report identical | | VDPFIFOTesting `genesis`, with / without the 32X | 121/1/122 both | 121/1/122 both (test 16 FIFO Wait States, intermittent on hardware; megadrive-python's own result, see worklog Session 18) | | mini sweep with / without the 32X | 115 rows, 0 moved | 115 rows, 0 moved; no row moved from before | Re-run 2026-11-25 at ddff432 (run_32x.py's lockup path, triage_sweep.py; outputs in reference/gate/beta-triage-ddff432): pytest 104 / 1 slow (103 + `test_run_script.py`), ruff clean; testpico, Mars Check (test 51 of 161 reached, ERROR COUNT 0), PWM WAV and NFL Quarterback Club byte-identical with the "After" column; MAME lockstep report identical; VDPFIFOTesting 121/1/122 both ways; mini sweep 115 rows, 0 moved. ## Milestone 6 (games) `scripts/sweep.sh` (1,200 frames; Start at first picture + 550 and + 850) and `scripts/triage_sweep.py` (a board frame "agrees" within 5 % of a detector's closest frame within 300; since ddff432 a blank frame matches only a blank frame, and a run stopped by `Lockup` is its own status); causes in `tests/sweep_triage.txt`. Board on the pins above. | Wave | List | Runs | Triage (2026-11-25, triage_sweep.py ddff432) | | --- | --- | --- | --- | | Smoke | `tests/smoke_sweep.txt` (27) | 27 of 27 to frame 1,200, no exception or lockup | agree 24, look 3, all 3 triaged: 0 untriaged (no verdict moved with the blank-frame rule) | | Releases | `tests/release_sweep.txt` (33) | 33 of 33 to frame 1,200, no exception or lockup | agree 22, look 11, all 11 triaged: 0 untriaged (the Gnu Sierra sample moved from agree to look with the blank-frame rule) | | Betas, prototypes, demos | `tests/beta_sweep.txt` (149), 600 frames, one press | 148 to frame 600; Star Wars Arcade (USA) (Beta 3) a lockup in frame 1 (a broken dump; the script's crash on it fixed in 129d693) | agree 108, look 40, lockup 1, all 41 triaged: 0 untriaged (7 moved from agree to look with the blank-frame rule) | **The FTOA finding** (worklog Session 19): 19 titles (the Gnu Sierra sample; Golf Magazine (Japan, USA) betas 2-10; Motocross Championship betas 1-7; Doom betas 2 and 4) stall on the board and not on the detectors because they run an SH-2 at interrupt mask 0 while FTOA is low, and the board wires FTOA to /IRL0 as the 32XDK wiki (from the schematic) and testpico say the console does. The betas of the same games that write the FRT first (Sega's Technical Bulletin #10, 1994-09-23) all agree. The board is left as the documents describe it; that these programs stall on a production 32X is a hypothesis an SR-0 test on a console would settle. Decision B6 (Aubrey, 2026-11-25; emulator-lineage docs/proposals/2026-11-decisions.md): the 19 are marked "expected: dev-unit HYPOTHESIS" in tests/sweep_triage.txt. The cause: they run at interrupt mask 0 with FTOA low on the /IRL0 tie. Kept: the tie (32XDK wiki, testpico) and sh2-python's FTOA reset level of 0, DOC for the chip (HM 11.2.2, table A.1) and a HYPOTHESIS for the 32X's early units (sh2-python branch handler-subset c4679e1, unmerged). What would settle it: an SR-0 test on a production 32X or a development unit. Ruled out: a per-machine switch. Old-pin smoke run (5e3c3b3, 2026-11-07, reference/m6/run2): the same three "look" titles. Two causes needed work (worklog Session 18): Ecco the Dolphin's demo stops at the boot ROM's security check (a non-retail initial program), and Tempo's first press lands before the intro enables the pad because the board's intro runs about 21 frames slower than BlastEm's. Neither is a board change. The detectors are closed boxes: "agree" is not "matches the console". ## Domains and channels (2026-11-25, branch `domains`) [domains.md](domains.md) names the board's domains (the Mega Drive side, the SH-2 pair, the 32X VDP, the PWM), the channels between them, their sync points, the memory map's kinds and writers, and the order of record (families.md, "Where to go next", item 3). Eight direct pokes became named calls on `SH2Side` and `Sega32X` with no behaviour change; `tests/test_domains.py` checks the boundary. `scripts/gate.sh` on 7315093 (before, a detached worktree) and ae2aadf (after), pins as above, `.venv-after`, run side by side under a load of 80-100: | Rung | Before (7315093) | After (ae2aadf) | | --- | --- | --- | | pytest / `-m slow` / ruff | 103 / 1 skipped / clean | 107 (4 in `test_domains.py`) / 1 skipped / clean | | testpico cold 110 + reset + warm 260 | 6 PNGs | byte-identical, log identical but for times | | Mars Check Program, automatic, 760 frames | 118 files | byte-identical, the same counts | | PWM demo, 480 frames, FM off | 352,520 samples, 12 PNGs | WAV and PNGs byte-identical | | NFL Quarterback Club, 900 frames | 54 PNGs, 32X mode 2 | byte-identical, the same counts | | MAME lockstep, Castlevania, passive 32X | report | identical | | VDPFIFOTesting `genesis`, with / without | 122 read, 0 fail that pass on hardware | the same | | mini sweep with / without the 32X | 115 rows, 0 moved | 115 rows, 0 moved; no row moved from before |