#!/usr/bin/env bash
set -euo pipefail
root=/tmp/issue-lead-33252-r2/evidence-capture
run="$root/seed-$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$run/projects/demo-pi-app" "$run/pi-sessions" "$run/pi-empty" "$run/claude-empty" "$run/codex-empty"
printf '%s\n' "$run" > "$root/seed-location.txt"
cd "$run/projects/demo-pi-app"
git init -q
git config user.name 'Evidence Fixture'
git config user.email 'fixture@example.invalid'
printf 'Synthetic Pi import fixture\n' > README.md
git add README.md
git commit -qm 'chore: seed synthetic import project'
for session in 1 2 3; do
  PI_CODING_AGENT_SESSION_DIR="$run/pi-sessions" pi -p 'Reply with the single word ok' > "$run/pi-$session.private.log" 2>&1
done
printf 'Created three synthetic Pi sessions in %s\n' "$run"
# Session jsonl and private logs are private scratch; never upload them.
