#!/usr/bin/env bash set -euo pipefail # Wait for the currently active full controller matrix, then run the direct SaC # comparison without contending for the dedicated retrieval GPU. : "${BASELINE_MASTER_PID:?Set to the detached full-eval master PID}" : "${SERVER_RUN_DIR:?Set to artifacts/servers/}" ROOT="${ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}" POLL_SECONDS="${POLL_SECONDS:-60}" RUN_GROUP="${RUN_GROUP:-sac_variants_2000_$(date -u +%Y%m%d_%H%M%S)}" cd "$ROOT" while kill -0 "$BASELINE_MASTER_PID" 2>/dev/null; do sleep "$POLL_SECONDS" done export EXPERIMENT="configs/experiments/sac_variants_2000.yaml" export RUN_GROUP exec bash scripts/run_eval_2000.sh