"""Adds 'm1_label_independence' and the runtime weight-hash check of the label-free M2 runs to records/R5/TESTPASS2/checks.json. usage: tp2_checks_extra.py TESTPASS2_DIR """ import json import os import sys TP = sys.argv[1] p = os.path.join(TP, "checks.json") C = json.load(open(p, encoding="utf-8")) C["m1_label_independence"] = { "verdict": "M1's batching, order, padding and token cap use no label information; no validation measurement is needed", "run_checked": ("the 24 Nov M1 kohtd_test predictions (DATA/outputs/r5/preds/paddleocr_vl_1_6/leader/kohtd_test.tsv, pred sha256 " "a768ec03fa68e8ac..., scored 2026-11-24T14:06:48Z) were made by CODE/scripts/r5_vlma/eval_vlm_test.py (meta.json test_pass: " "script eval_vlm_test.py, batch 16, updated 12:08:43Z, gate sha256 caad5dc0...); that file (sha256 425bffba...) was last " "modified 2026-11-23T21:32:32Z, and vlm_common.py (sha256 1730edbc...) 2026-11-21T08:44:56Z, both before the pass, so the " "code read is the code that ran"), "evidence": [ "order: eval_vlm_test.py line 198 reads the manifest in file order; kohtd_test.tsv is sorted by id string (18,615 unique ids of " "the form