#!/usr/bin/env bash
set -euo pipefail
# Run from each checkout. Arguments: isolated data directory, synthetic git project.
proof_data=$1
proof_project=$2
node apps/server/src/bin.ts project add --base-dir "$proof_data" --title 'Tide pool recovery' "$proof_project"
node apps/server/src/bin.ts thread start --base-dir "$proof_data" --provider codex --model gpt-6.1-sol --title 'Tide pool retry proof' --json "$proof_project" 'ZEBRA: Do not use any tools or run any commands. Reply directly with a 300-word essay about tide pools.'
# Open the returned thread in the paired web client. Record recovery, then reload.
# Start each server with T3CODE_DEV_SEED=0 and CODEX_HOME pointing to a scratch
# home whose openai_base_url points at proxy.py. Copy only your own Codex auth.
# Run proxy.py with PROOF_UPSTREAM set to the real upstream origin (without /v1).
# Restart the proxy for each side to re-arm its single cut after 20 answer deltas.
