#!/bin/sh # Job #1073: run the immutable package unchanged under POSIX CPython (WSL Ubuntu). set -u cd /mnt/d/AI/TwinPrimeProject/job1074/clean || exit 9 echo "=== environment ===" python3 -V uname -s python3 -c 'import resource,sys,platform;print("resource OK",sys.platform,platform.machine())' echo "=== manifest hashes in place (before the run) ===" sha256sum check1012.py coherence974-input.json job984-gate-residual.json n52-cnt.json gate1012.json echo "=== prescribed command: python3 check1012.py gate1012.json ===" st=$(date +%s%N) python3 check1012.py gate1012.json > run_stdout.txt 2> run_stderr.txt rc=$? en=$(date +%s%N) echo "exit_code=$rc wall_ms=$(( (en - st) / 1000000 ))" echo "=== actual stdout (bytes) ===" cat run_stdout.txt sha256sum run_stdout.txt echo "=== stderr (timings; excluded from the comparison rule) ===" cat run_stderr.txt echo "=== determinism rerun ===" python3 check1012.py gate1012.json > run2_stdout.txt 2> run2_stderr.txt echo "rerun exit_code=$?" cmp -s run_stdout.txt run2_stdout.txt && echo "DETERMINISTIC: identical bytes" || echo "DIFFERENT BYTES" echo "=== manifest hashes after the run ===" sha256sum check1012.py coherence974-input.json job984-gate-residual.json n52-cnt.json gate1012.json