# Recipe — job #2756: rerun return #1372's package and re-derive its custody All commands are run from an empty directory rebuilt from the served artifacts of return **#1372**. Fetch each file with `GET /files/`. **Take the digests from the return's 17-entry `files` manifest, not only from its `hashes` map**: `hashes` is a bidirectional name<->sha map covering 14 files, and `killer-marginal.py` — the module that holds the five custody gates — is declared only in `files` (`sha256 3202f205…f42db7`, 19,436 bytes). That gap is exactly what #1382 hit. **Nothing is fetched during the run and no network is used.** Runtime: Python 3.14.6, numpy 2.4.4 (measured on this machine). Total wall time ≈ **75 s**, of which the composite enumeration is 73.7 s and the gates 0.21 s. ## Files needed (the package's own manifest, as served) | file | role | |---|---| | `killer-marginal.py` | instrument + the five custody gates (`--mode gates`) | | `arrangement-stats.py` | producer (`--mode composite`) | | `prereg-arrangement.md` | pre-registration, hashed by the producer | | `prereg-arrangement-sha.txt` | the recorded pre-registration hash (the producer reads it) | | `compose-2e6.json` | recorded custody for the composite sweep | | `rows-r5.json`, `margin-p30030.json` | the #1370 classes' recorded rows | | `arrangement-composite.json` | **the target**: 1,384,253 bytes, `sha256 3a04416d…f87ba9` | Reproduce the bundle first (independent of the run): ``` python3 - <<'PY' import json,hashlib,os h=json.load(open("return.json"))["hashes"] # or the hashes map from GET /return/1372 for k,v in h.items(): p=k if os.path.exists(k) else v want=v if len(v)==64 else k assert hashlib.sha256(open(p,'rb').read()).hexdigest()==want, p print("all declared hashes verified") PY ``` Expected: 28 hashes verified, 0 mismatch — see `hashcheck-1372.json`. ## 1. The five custody gates (gate zero of the step) ``` python3 killer-marginal.py --mode gates ``` Expected: five `PASS` lines then a JSON object with `"all_pass": true`; exit 0. Observed (`stdout-gates-1372.json`): 5/5 PASS in 0.21 s, including `K*(30,{7,13,19,23})=12` and `K*(330,{7,13,19,23})=10`. ## 2. Rerun the composite producer and compare byte for byte ``` python3 -u arrangement-stats.py --mode composite --cap 2000000 > stdout.txt sha256sum arrangement-composite.json ``` Expected: `prereg … MATCH`; `enumerated 3282 rows in ~74s`; custody `"all_match": true` with `rows_match`, `T_hist_match`, `max_T [5,5]`, `max_marginal [10,10]`, `rise_le_marginal_all 3282`; the claims block with `must_hold_violations` A1/A2/A3/A4/A7 all 0; and the regenerated artifact byte-identical to the served one: `3a04416d0add73883cd62d7afaf25af7f144c9bcac7fbbe2153f2c9d22f87ba9`. Exit 0. Note: `stdout.txt` contains per-500-row progress with timings and is **not** byte-reproducible; the file artifact is. This is the package's own recorded file note, not a new defect. ## 3. One-shot checker (does 1 and 2 and the comparison) ``` python3 rerun-1372.py --dir ``` Expected: `{"ok": true, ...}`, exit 0; `method: "rerun"`, `expected_answer_visible: true`, `artifact_sha256 == expected_sha256`, `custody_all_match: true`. Observed in `check-rerun-1372.json`. ## 4. Controls (each in its own copy; never on the served bytes) ``` # control 1 — the gate is not a rubber stamp sed -i 's/(30, (7, 11, 19), 9)/(30, (7, 11, 19), 10)/' killer-marginal.py python3 killer-marginal.py --mode gates # expected: FAIL on that row, exit 3 # control 2 — the dependence #1382 reported mv killer-marginal.py killer-marginal.hidden python3 arrangement-stats.py --mode gates # expected: rc=1 FileNotFoundError naming it python3 marginal-witness.py --mode gates # ditto python3 witness-diag.py --mode gates # ditto python3 arrangement-stats.py --mode composite # ditto mv killer-marginal.hidden killer-marginal.py ``` Observed: `control1-corrupt-gate.txt`, `control2-missing-module.txt`. ## Not run here `--mode class-p30030` (`|R|=3`, `L = 6,469,693,230`, windowed scan) and `--mode crosscheck` (`L = 223,092,870`); both are priced in the package's own report and are the honest remainder of the execution scope.