main
John Lauer Record temperature shutdown replay and screen an offset passive cooling alternative c7a3cd8
"""Publish reviewed software replay and separate passive-envelope research."""
from pathlib import Path
import json,subprocess,hashlib
R=Path(__file__).resolve().parents[1];repo='adom/adom-custom-electronic-load';base='6d899788682379e0168e97645c4777c6ba4f48aa'
files=['docs/build-clips.md','docs/status.md','docs/completion-plan.md','docs/cooling-evidence-request.md','docs/passive-sink-screen.md','videos/inventory.json','videos/build-storyboard.json','videos/four-minute-edit-plan.json','videos/storyboard-readiness.json','demos/temperature-safety/index.html','demos/temperature-safety/trace.c','demos/temperature-safety/trace.json','demos/temperature-safety/README.md','tools/record_temperature_safety.mjs','tools/screen_board32_passive_offset.py','tools/publish_temperature_replay.py','checkpoints/board32-temperature-bound/passive-body-audit.json','checkpoints/board32-temperature-bound/passive-offset-screen.json','videos/temperature-safety/narrated-replay.mp4','videos/temperature-safety/poster.jpg','videos/temperature-safety/contact.png','videos/temperature-safety/capture.json','videos/temperature-safety/narration.txt','videos/temperature-safety/rejected-first.json']
head=json.loads(subprocess.check_output(['adom-wiki','repo','log',repo,'--limit','1','--json']))['data']['log'][0]['hash'];assert head==base,('Concurrent source changed',head)
out=R/'checkpoints/board32-temperature-bound';(out/'replay-publication.json').write_text(json.dumps({'base':base,'files':{f:hashlib.sha256((R/f).read_bytes()).hexdigest() for f in files},'scope':'Synthetic policy replay and independent geometric research; no physical or thermal acceptance'},indent=2)+'\n');files.append('checkpoints/board32-temperature-bound/replay-publication.json')
r=subprocess.run(['adom-wiki','repo','push',repo,'--files',*files,'-m','Record temperature shutdown replay and screen an offset passive cooling alternative','--json'],cwd=R,capture_output=True,text=True);(out/'replay-source-push.json').write_text(r.stdout or r.stderr);print(r.stdout or r.stderr);r.check_returncode()