--- /dev/null
+# Scenarios the gate runs after the unit suites. TAB-separated:
+# name <TAB> driver class <TAB> args <TAB> -D options <TAB> timeout seconds
+#
+# One line per bug report, using the reporter's pose and motion. A scenario
+# must FAIL on the build that shipped the bug and PASS after the fix.
+#
+# P4 SURVIVAL (bugreport-20261108-034809, "application stopped responding"):
+# an OutOfMemoryError inside a pass killed the awt-shell-loop thread and froze
+# the app. Covered at unit level, where the failure is deterministic:
+# AwtShellTest.aFailingFrameNeverKillsTheShellLoop
+# AwtShellTest.aFailingFrameKeepsInputAlive
+#
+# flight-fast-111926: bugreport-20261107-111926 — "flew really fast, almost
+# all of the world disappeared". Idle, 2.5 cells/s flight, teleport, idle.
+# P1 presence (loaded world is drawn) and P2 continuity (never becomes absent).
+flight-fast-111926 FlightProbe 40 2.5 -Daukio.fo4.spawnAt=-13444.78,-13267.60,44169.66,14.90,-0.47,0 300
+#
+# id-space-valve-042802: bugreport-20261108-042802 — the append-only triangle
+# id space grew to 35M for ~8M live triangles and every tri-indexed store is
+# sized by it (heap 20.2/20.5 GB). A 3M budget forces the reset valve early;
+# P1 must survive it and the world must come back (P2 after the grace).
+id-space-valve-042802 FlightProbe 120 3.0 -Daukio.fo4.meshIdBudget=3000000 -Daukio.fo4.spawnAt=-13444.78,-13267.60,44169.66,14.90,-0.47,0 400
--- /dev/null
+#!/usr/bin/env bash
+# THE GATE. Nothing is reported fixed until this prints GATE PASS.
+#
+# ./verify.sh unit suites + every scenario in verification/scenarios.tsv
+# ./verify.sh --quick unit suites only (no game data, ~1.5 min)
+# ./verify.sh --list show the registered scenarios
+#
+# Rules this script exists to enforce (AGENTS.org, "Streaming coverage"):
+# - a scenario drives the PRODUCTION code over time; a screenshot cannot
+# distinguish "did not load" from "loaded and hidden"
+# - every bug report becomes a scenario here, with the reporter's pose
+# - a subsystem fix that breaks another subsystem's scenario fails the gate
+#
+# Exit code 0 = everything passed.
+set -uo pipefail
+
+HERE="$(cd "$(dirname "$0")" && pwd)"
+ENGINE="$HERE/../aukio-3d-2"
+FO4="$HERE/../aukio-environment-fo4-2"
+SCENARIOS="$HERE/verification/scenarios.tsv"
+CLASSES="$HOME/.hermes/cache/scratch/verify-gate/classes"
+LOGS="$HOME/.hermes/cache/scratch/verify-gate/logs"
+JAVA_HOME_21="${JAVA_HOME_21:-/usr/lib/jvm/java-21-openjdk-amd64}"
+JAVA_BIN="${JAVA_BIN:-/usr/lib/jvm/java-25-openjdk-amd64/bin/java}"
+
+mkdir -p "$CLASSES" "$LOGS"
+
+MODE="${1:-all}"
+if [ "$MODE" = "--list" ]; then
+ cat "$SCENARIOS"
+ exit 0
+fi
+
+fail=0
+declare -a ROWS
+
+step() { # name, command-string
+ local name="$1"; shift
+ local log="$LOGS/$(echo "$name" | tr ' /' '__').log"
+ local start; start=$(date +%s)
+ if "$@" > "$log" 2>&1; then
+ local took=$(( $(date +%s) - start ))
+ ROWS+=("$(printf '%-34s PASS %4ds' "$name" "$took")")
+ printf '%-34s PASS %4ds\n' "$name" "$took"
+ return 0
+ fi
+ local took=$(( $(date +%s) - start ))
+ ROWS+=("$(printf '%-34s FAIL %4ds %s' "$name" "$took" "$log")")
+ printf '%-34s FAIL %4ds %s\n' "$name" "$took" "$log"
+ tail -20 "$log" | sed 's/^/ /'
+ fail=1
+ return 1
+}
+
+echo "== unit suites =="
+step "engine tests (aukio-3d-2)" \
+ bash -c "cd '$ENGINE' && mvn -o -q test"
+step "engine install" \
+ bash -c "cd '$ENGINE' && mvn -o -q -DskipTests install"
+step "fo4 tests (fo4-2)" \
+ bash -c "cd '$FO4' && mvn -o -q test"
+
+if [ "$MODE" = "--quick" ]; then
+ [ "$fail" -eq 0 ] && echo && echo "GATE PASS (quick: unit suites only)"
+ exit "$fail"
+fi
+
+echo
+echo "== scenarios (verification/scenarios.tsv) =="
+CP="$FO4/target/classes:$(cat "$FO4/target/cp.txt" 2>/dev/null):$CLASSES"
+step "compile scenario drivers" \
+ bash -c "'$JAVA_HOME_21/bin/javac' -cp '$CP' -d '$CLASSES' '$FO4'/verification/*.java"
+
+while IFS=$'\t' read -r name class args opts timeout; do
+ case "$name" in ''|'#'*) continue ;; esac
+ step "scenario $name" \
+ bash -c "cd '$FO4' && timeout ${timeout:-300} '$JAVA_BIN' -Xmx20g -cp '$CP' $opts $class $args"
+done < "$SCENARIOS"
+
+echo
+if [ "$fail" -eq 0 ]; then
+ echo "GATE PASS"
+else
+ echo "GATE FAIL — logs in $LOGS"
+fi
+exit "$fail"