# Recipe — verify the repaired `return1555.json` (job #2969) Everything here is offline except the file and record fetches, needs only Python 3 and `curl`, and takes ~1.3 s of wall time (measured twice, identical bytes both times). ## Inputs and their content addresses | input | address | sha256 | |---|---|---| | corrected `return1555.json` (this revision) | `/files/0134e08ecec49c5271e0e841220e9a13644c671e4f15e162375e017400e11cde` | `0134e08ecec49c5271e0e841220e9a13644c671e4f15e162375e017400e11cde` | | served original (kept on the record) | `/files/2c6bdd3ff9e0630317da0de77053dfc867c2774c6448197b2fe21774f778f49d` | `2c6bdd3ff9e0630317da0de77053dfc867c2774c6448197b2fe21774f778f49d` | | the consumer, #1564's served `coverage-map.py` | `/files/a6f02a3d940b9171dd67c7ef1e927206fff42d1dfa222716c3a2b81b79a53d68` | `a6f02a3d940b9171dd67c7ef1e927206fff42d1dfa222716c3a2b81b79a53d68` | | sibling record `raw/return656.json` (#1564 file) | `/files/046d0986c3c5be7e3dbf1937b34a694e6672b34dd0fc885b56faa9bf31d97dd1` | `046d0986c3c5be7e3dbf1937b34a694e6672b34dd0fc885b56faa9bf31d97dd1` | | sibling record `raw/route150.json` (#1564 file) | `/files/168a9eb425bd283e78a6494e669a351cd633c8b2e14b65f91dae2045707a8af2` | `168a9eb425bd283e78a6494e669a351cd633c8b2e14b65f91dae2045707a8af2` | | sibling record `raw/return622.json` | `GET /return/622` (public) | fetched, wrapped as below | | sibling record `raw/return644.json` | `GET /return/644` (public) | fetched, wrapped as below | The two records that #1564 kept only as intermediates are re-fetched because they are not among its declared files; `coverage-map.py` reads each as `json.load(fp)["body"]`, so the wrapper key matters and nothing else about it does. ## Run ```sh mkdir -p fresh/raw && cd fresh curl -s -o coverage-map.py '/files/a6f02a3d940b9171dd67c7ef1e927206fff42d1dfa222716c3a2b81b79a53d68' sha256sum coverage-map.py # a6f02a3d940b9171dd67c7ef1e927206fff42d1dfa222716c3a2b81b79a53d68 # the file under test: the corrected bytes curl -s -o raw/return1555.json '/files/0134e08ecec49c5271e0e841220e9a13644c671e4f15e162375e017400e11cde' sha256sum raw/return1555.json # 0134e08ecec49c5271e0e841220e9a13644c671e4f15e162375e017400e11cde # the four sibling records curl -s -o raw/return656.json '/files/046d0986c3c5be7e3dbf1937b34a694e6672b34dd0fc885b56faa9bf31d97dd1' curl -s -o raw/route150.json '/files/168a9eb425bd283e78a6494e669a351cd633c8b2e14b65f91dae2045707a8af2' curl -s -H 'Accept: application/json' '/return/622' | \ python -c "import json,sys;json.dump({'path':'/return/622','http':200,'fetched_at':'','body':json.load(sys.stdin)},open('raw/return622.json','w'))" curl -s -H 'Accept: application/json' '/return/644' | \ python -c "import json,sys;json.dump({'path':'/return/644','http':200,'fetched_at':'','body':json.load(sys.stdin)},open('raw/return644.json','w'))" python coverage-map.py >/dev/null sha256sum coverage-map.json # 4455d850cd1a58712207d3681fa1c997ebe6ca450399322edd1bcd80724ba913 ``` **Expected result:** `coverage-map.py` exits 0 and writes `coverage-map.json` with sha256 `4455d850cd1a58712207d3681fa1c997ebe6ca450399322edd1bcd80724ba913` — the same bytes return #1564 served as its own `coverage-map.json`. Its stdout is the per-record table and the six claim verdicts; the hash above is over the file it writes. ## A/B: the repair changes no consumer output Repeat the run with `raw/return1555.json` replaced by the served original (`2c6bdd3f…`). The `coverage-map.json` sha256 is the same, `4455d850…`: the one repaired substring is inert to every consumer. The two scratch trees and both logs are in `work/j2969/fresh-A-corrected/`, `work/j2969/fresh-B-served/`, `work/j2969/fresh-A-corrected.log`, `work/j2969/fresh-B-served.log`. ## The change itself ```sh diff -u a/return1555.json b/return1555.json ``` is carried in the return's `patch` field: one line, removing the 46-character prefix from the quoted note. `work/j2969/fix-return1555.py` applies it as a byte substitution (not a JSON round-trip, which would rewrite key order and spacing) and prints the same structural check the return cites; run it as `python fix-return1555.py `.