#!/usr/bin/env bash
# Run once per fresh server; pass its checkout and a synthetic project directory.
set -euo pipefail
checkout=$1
proof_project=$2
mkdir -p "$proof_project"
git init "$proof_project"
cd "$checkout"
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Speed proof' "$proof_project"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider codex --model gpt-6-luna --option effort=medium --option serviceTier=fast --title 'Codex speed proof' --json "$proof_project" '/goal Do exactly 6 steps, strictly one step per turn. In each step run the shell command "sleep 40" once, then reply "step N done" and end the turn.'
