#!/usr/bin/env bash
set -euo pipefail
# Run from the checkout under test after vp i.
# Start its isolated app first with T3CODE_DEV_SEED=0 and
# GOOGLE_GEMINI_BASE_URL set to an available Gemini API endpoint.
# Configure Antigravity: Gemini API key, runtime agy 1.5.13, Gemini 4 Neon.
: "${EVIDENCE_WORKSPACE:?Set EVIDENCE_WORKSPACE to a new synthetic git repository}"
: "${EVIDENCE_T3_HOME:?Set EVIDENCE_T3_HOME to this checkout isolated T3 home}"
git init --initial-branch=main "$EVIDENCE_WORKSPACE"
git -C "$EVIDENCE_WORKSPACE" -c user.name=Evidence -c user.email=evidence@example.invalid commit --allow-empty -m 'Initial state'
node apps/server/src/bin.ts project add "$EVIDENCE_WORKSPACE" --title 'Steer demo' --base-dir "$EVIDENCE_T3_HOME"
node apps/server/src/bin.ts thread start "$EVIDENCE_WORKSPACE" 'Reply ready. Do not use any tools.' --title 'Wake steering comparison' --provider antigravity --model gemini-4-neon --base-dir "$EVIDENCE_T3_HOME" --json
# Open returned thread by URL in the paired web client, dark theme, 1280x800.
# Hide thread details so the host name is absent from captures.
# Send this prompt as turn 2:
# Start `sleep 20 && echo bg2-done` with run_command as a daemon (IsDaemon true). Reply 'started' and end the turn. When woken by the daemon exiting, run `sleep 240` in the foreground. Do not wait for or poll the daemon in this turn.
# Wait for a separate 'Background activity updated' continuation and Running sleep.
# Start recording. Type the following message and Ctrl+Enter to queue it:
# Steer check: acknowledge this message now with STEER-ACCEPTED, then stop waiting.
# Click Send now. On base it returns to the queue; repeat to show the bounce.
# On head it becomes a Steer message and Gemini acknowledges STEER-ACCEPTED.
# Stop recording after the outcome, and stop the base thread using Stop.
