#!/usr/bin/env bash
set -eu
# Run from each evidence checkout after vp i.
# Start the app separately: T3CODE_DEV_SEED=0 T3CODE_ENVIRONMENT_LABEL="Evidence environment" vp run dev
# Enable the real Cursor driver (displayed as Grok Build), using the ambient CURSOR_API_KEY.
notes="$1"
mkdir -p "$notes"
for i in 1 2 3 4; do
  printf '# Note %s\nSynthetic scratch note for Stop reproduction.\n' "$i" > "$notes/note-$i.md"
done
git -C "$notes" init -q
git -C "$notes" add .
git -C "$notes" -c user.name=Evidence -c user.email=evidence@example.com commit -qm 'Scratch notes'
node apps/server/src/bin.ts project add --base-dir .t3 --title 'Stop evidence' "$notes"
node apps/server/src/bin.ts thread start --base-dir .t3 --provider cursor --model grok-4.7 --title 'Stop behind steer' --json "$notes" 'Use your native Task tool to start exactly 4 native subagents concurrently. Each subagent must run the shell command sleep 900 in the foreground and wait for it to finish, then report done. Do not use T3 delegation or background shells. Start all four now, then wait for all four native subagents to finish. This is an intentional Stop responsiveness experiment; do not shorten the sleeps.'
