#!/usr/bin/env bash
set -eu
# Run from a current-main checkout after vp i; place the scenario in scripts/scenarios.
fixture=$(realpath "${1:-psi-preload.cjs}")
export NODE_OPTIONS="--require=$fixture"
export T3_PROOF_PRESSURE=overload
export T3CODE_DEV_SEED=0
export T3_SCENARIO_INHERIT_ENV='T3_PROOF_PRESSURE,NODE_OPTIONS,T3CODE_DEV_SEED'
base=7a00a2bc735a2f00eeb5ba1e9f495edd92a72e86
head=a1e6323501d31e1c3fab02ef014e669ea47097f3
vp run scenarios:prove scripts/scenarios/host-pressure-titles.e2e.ts --base "$base" --head "$head"
cp scripts/.e2e/prove/proof.json web-proof.json
