#!/usr/bin/env python3 # SPDX-License-Identifier: MIT """The lockstep gate: every scenario on sh2-python and on this crate, traces compared. lockstep.py SCENARIO_DIR [--jobs N] [--rust BIN] [--label NAME] [--explain] The reference's traces (``scripts/reference_trace.py`` on its PyPy) are cached under ``external/reference-cache//``, keyed by each scenario's SHA-256, so a Rust change re-runs only the Rust side (the methodology's ``--reference-cache``); when the reference changes, the pin in the path changes with it and nothing old is reused or deleted. The Rust traces (``target/release/sh2-trace``, or ``--rust``) go to ``external/ours/