#!/usr/bin/env bash
set -euo pipefail
# Run from each evidence checkout. Arguments: isolated home, workspace, session, server origin, Metro origin.
proof_home=$1
proof_workspace=$2
proof_session=$3
proof_origin=$4
proof_metro=$5
cp "$(dirname "$0")/question-transcript.ndjson" apps/server/src/orchestration-v2/testkit/fixtures/acp_elicitation/registry_transcript.ndjson
node apps/server/src/bin.ts project add "$proof_workspace" --title 'Release demo' --base-dir "$proof_home"
node apps/server/src/bin.ts thread start "$proof_workspace" 'Present two rollout questions.' --title 'Release decisions' --provider devReplay --model question --json --base-dir "$proof_home"
vp run mobile:install android --session "$proof_session" --metro "$proof_metro"
.agents/skills/test-t3-mobile/scripts/pair-client.sh "${proof_origin##*:}" "$proof_home" "$proof_origin" agent-device --session "$proof_session"
# In the app: open Release decisions; select the first option in each question; Submit answers.
# Repeat with a queued follow-up and the custom-answer keyboard, and with gesture navigation/tablet.
