#!/usr/bin/env bash
set -euo pipefail
: "${PROOF_DATA:?Set PROOF_DATA to an empty evidence directory}"
export PI_CODING_AGENT_SESSION_DIR="$PROOF_DATA/pi-sessions"
for project in atlas beacon; do
  mkdir -p "$PROOF_DATA/history/$project"
  git init --quiet --initial-branch=main "$PROOF_DATA/history/$project"
  (cd "$PROOF_DATA/history/$project"
   pi --provider openai --model gpt-6-luna --no-tools --no-extensions --no-skills --no-mcp --no-context-files --thinking off -p "Reply with exactly: $project project history ready.")
done
# Run the scenario with PI_CODING_AGENT_SESSION_DIR inherited by the real server.
