"""Guarded, once-only U-Boot-proper write; invoke only under pane23 board lease.""" from pathlib import Path import subprocess,shlex,json,hashlib,datetime b=Path(__file__).parent;out=b/'splash-dma-board';pre=json.loads((out/'preflight.json').read_text());build=json.loads((b/'splash-dma-artifact-inspection.json').read_text());assert build['host_checks_passed'] and build['source_delta_only_dma_request'];artifact=Path(build['candidate_stage1'])/'fn_ug_u-boot.bin';payload=artifact.read_bytes();sha=hashlib.sha256(payload).hexdigest();assert 528