#!/usr/bin/env bash
# Run from either checkout, with its own T3CODE_DEV_SEED=0 dev server running.
# Argument 1 is an empty synthetic Git repository; argument 2 is that server's T3 home.
set -euo pipefail
node apps/server/src/bin.ts project add "$1" --title 'Speed change proof' --base-dir "$2"
node apps/server/src/bin.ts thread start "$1" '/goal Do exactly 6 steps, strictly one step per turn. In each step run the shell command "sleep 40" once, then reply "step N done" and end the turn.' --title 'Codex speed proof' --provider codex --model gpt-6-luna --option serviceTier=default --base-dir "$2" --json
# Open the returned thread in the real web app at 1280x800, light theme.
# Hide the Thread details panel. Open the Luna model picker, select Fast, close it.
# During native goal turn 2, type: Continue the goal, one step per turn.
# Click Steer message. Observe native goal continuations through at least turn 4.
# On base, Fast was selected late in turn 1; the steer arrived in turn 2.
# On head, Fast was selected and the steer sent during turn 2.
# Inspect native protocol: base has only turn/steer; head must first send
# thread/settings/update serviceTier=priority, acknowledged by thread/settings/updated.
