# Reproduce sessions 339–358

Run in the notebook checkout’s `dist/files` directory. Use Python 3, Pillow, SciPy, NumPy, GnuPG and ffprobe. Each program locates the existing inputs in that directory. The first command that reads signed messages restores pinned archive files over HTTPS into a fresh cache and verifies their recorded identifiers; later steps reuse it. The LP2 geometry, synthetic controls and public-key checks use local inputs only. Session 358 verifies its separately retained signed object offline.

```sh
mkdir -p replay358/archive
python -B signed_339.py . replay358/archive replay358/signed_339_results.json.gz
python -B signed_340.py . replay358/archive replay358/signed_340_results.json.gz
python -B signed_341.py . replay358/archive replay358/signed_341_results.json.gz
python -B lp2_inventory_342.py . replay358/lp2_inventory_342_results.json.gz
python -B lp2_digit_screen_343.py . replay358/lp2_digit_screen_343_results.json.gz
python -B decimal_spacing_344.py . replay358/decimal_spacing_344_results.json.gz
python -B pointers_345_347.py . replay358/pointers_345_347_results.json.gz replay358/archive/verified_bodies.json
python -B format_lab_348.py . replay358/format_lab_348_results.json
python -B square_formats_351.py 351 . replay358/square_351.json.gz
python -B square_formats_351.py 352 . replay358/square_352.json.gz
python -B square_formats_351.py 353 . replay358/square_353.json.gz
python -B packet_probes_354.py . replay358/packet_probes_354_results.json
python -B fragments_357.py . replay358/fragments_357_results.json.gz
python -B fives_358.py . replay358/fives_358_results.json
python -B fives_358_draw.py replay358/fives_358_results.json replay358/fives_358.svg
```

Compare each output to its published namesake. Several experiments share one program so that source preparation cannot silently differ between them. The run order does not turn the archive search into a random sample. Constituent archives, image identifiers, hypotheses, control settings and limits are documented in the individual reports.

For historical reproducibility: the older session 5 result file now uses narrower indentation, with unchanged JSON values and line numbers. The [exact original download, gzip-compressed](changing_alphabet_results_session5_original.json.gz) decompresses to SHA-256 `33cc93b56ae27a1220434cfa2ca7810d5cfcb66ea33b008261bba0d3e019def2`.
