from pathlib import Path
root=Path('/tmp/lead-29548-r1/evidence-capture-2')
for side,checkout in [('before','/home/ubuntu/wt/pr-29548-before'),('after','/home/ubuntu/wt/pr-29548')]:
 run=root/(side+'-20261102T2113')
 (run/'parent-launcher.sh').write_text(f'''#!/usr/bin/env bash
unset T3_ACP_AUTH_METHOD_ID T3_ACP_SESSION_LIFECYCLE T3_ACP_ANTIGRAVITY
export T3_ACP_REQUIRE_AUTH=0 T3_ACP_HANG_PROMPT_FOREVER=1
exec /home/ubuntu/.local/share/vite-plus/bin/node '{checkout}/apps/server/scripts/acp-mock-agent.ts'
''');(run/'parent-launcher.sh').chmod(0o755)
 (run/'model-launcher.sh').write_text(f'''#!/usr/bin/env bash
unset T3_ACP_AUTH_METHOD_ID T3_ACP_SESSION_LIFECYCLE T3_ACP_ANTIGRAVITY
export T3_ACP_REQUIRE_AUTH=0
exec /home/ubuntu/.local/share/vite-plus/bin/node '{root}/model-write-shim.mjs' '{checkout}/apps/server/scripts/acp-mock-agent.ts' '{run}/model-auth-required' '{root}/{side}-model-write-transcript.jsonl'
''');(run/'model-launcher.sh').chmod(0o755)
