$code=@'
from pathlib import Path
import os,sys,json,hashlib,subprocess,datetime,shutil
S=Path(r'verification\_control\run_math2025\targeted_recovery\recovery-0034\staging')
W=Path(r'verification\_control\run_math2025\targeted_recovery\recovery-0034\staging\verification\0438\recovery_weighted_check')
def now(): return datetime.datetime.now(datetime.timezone.utc).isoformat()
def d(path):
 b=path.read_bytes()
 try: label=path.relative_to(S).as_posix()
 except ValueError: label=str(path)
 return {'path':label,'bytes':len(b),'sha256':hashlib.sha256(b).hexdigest()}
def save(name,b):
 with (W/name).open('xb') as h: h.write(b)
 return d(W/name)
names=['cp1_exact_check.stdout.json','cp1_exact_check.stderr.txt','cp1_execution_receipt.json']
assert not any((W/n).exists() for n in names)
free={x:shutil.disk_usage(x).free for x in ['C:/','D:/']}
assert min(free.values())>100*1024**3+1024**2
script=W/'cp1_exact_check.py'; source=S/'papers/0438/0438.pdf'
before={'script':d(script),'source_pdf':d(source),'interpreter':d(Path(sys.executable))}
assert before['source_pdf']['sha256']=='ca44d0a439d1d8bf9948a08dde82b835a7125b3a008b748cdf13b219cf701e42'
args=[sys.executable,'-B','-X','utf8',str(script)]
env=os.environ.copy()
for k in ['TEMP','TMP','TMPDIR']: env[k]=str(W/'temp')
started=now()
proc=subprocess.Popen(args,cwd=str(W),env=env,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
out,err=proc.communicate()
finished=now()
outputs={'stdout':save(names[0],out),'stderr':save(names[1],err)}
after={'script':d(script),'source_pdf':d(source),'interpreter':d(Path(sys.executable))}
receipt={'paper_id':'M25-0438','batch_token':'1070b9fe-f587-46f8-b0bf-f599bae603c6','recovery_token':'c1be3c77-5483-4f57-b140-e22048f4bc49','performing_agent':'/root/input_integrity','performing_role':'native scientific auxiliary, initial continuation, independently authored bounded calculation','runtime_self_description':'GPT-6 Astra Pro; self-description only, no UI/account/backend equivalence claim','command_argv':args,'cwd':str(W),'started_at_utc':started,'completed_at_utc':finished,'actual_child_pid':proc.pid,'actual_exit_code':proc.returncode,'python_version':sys.version,'before':before,'after':after,'unchanged':before==after,'outputs':outputs,'disk_free_before':free,'dependency_capture_scope':'Exact interpreter executable, independently authored script, and frozen source PDF; uses Python standard library; no assertion of exhaustive interpreter module dependency inventory.','author_code_executed':False,'scientific_decision':'pending','human_reviews':[],'independent_acceptance':False}
r=save(names[2],(json.dumps(receipt,ensure_ascii=False,indent=2)+'\n').encode('utf-8'))
print(out.decode('utf-8'))
print(json.dumps({'receipt':r,'child_pid':proc.pid,'exit_code':proc.returncode,'unchanged':before==after}))
if proc.returncode: sys.exit(proc.returncode)

'@
$code | & 'C:\ProgramData\anaconda3\python.exe' -B -X utf8 -