shinka-backup / scripts /ev2_agentic /fork_frontier_cs_baseline.sh
JustinTX's picture
Add files using upload-large-folder tool
3f6526a verified
#!/bin/bash
# Fork the vanilla baseline at generation 5 for controlled eval agent comparison.
#
# Usage:
# bash scripts/ev2_agentic/fork_frontier_cs_baseline.sh
#
# This creates a forked experiment directory that shares the first 5 generations
# with the vanilla baseline, so any difference in later generations is attributable
# to the eval agent.
set -euo pipefail
# ============================================================================
# Configuration
# ============================================================================
SOURCE="results/frontier_cs_algorithmic/vanilla_g50_20260327_055051"
FORK_AT=5
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
DESTINATION="results/frontier_cs_algorithmic/agent_fork_g${FORK_AT}_${TIMESTAMP}"
# ============================================================================
# Fork
# ============================================================================
echo "Forking baseline at generation ${FORK_AT}..."
echo " Source: ${SOURCE}"
echo " Destination: ${DESTINATION}"
echo ""
.venv/bin/python tasks/frontier_cs_entry/fork_experiment.py \
"${SOURCE}" \
"${DESTINATION}" \
--fork-at "${FORK_AT}"
echo ""
echo "Fork complete. Use run_frontier_cs_agentic.sh to continue with eval agent."
echo "Set FORKED_DIR=${DESTINATION} in that script."