From 863b953f78c8c5186d9a3597587fdc38462b1f76 Mon Sep 17 00:00:00 2001 From: autocommit Date: Fri, 17 Apr 2026 18:57:14 -0700 Subject: [PATCH] =?UTF-8?q?fix(autoplay):=20=F0=9F=90=9B=20Fix=20race=20co?= =?UTF-8?q?nditions=20in=20remote=20batch=20processing=20by=20ensuring=20b?= =?UTF-8?q?atch=20artifacts=20are=20written=20to=20/tmp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- tools/autoplay-batch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/autoplay-batch.sh b/tools/autoplay-batch.sh index f48379ae..3635f66b 100755 --- a/tools/autoplay-batch.sh +++ b/tools/autoplay-batch.sh @@ -200,12 +200,13 @@ _run_remote() { echo "[seed $seed] Running via SSH on $AUTOPLAY_HOST..." - # REMOTE_HOME is resolved once upfront by the main loop and exported. + # Write remote batch artifacts OUTSIDE the dev tree to /tmp so they cannot + # trigger auto-commit divergence on the remote host's working copy. # Derive a unique remote dir from RESULTS_DIR's basename to avoid per-clan # path collisions when multiple batches run in parallel with the same STAMP. local results_basename results_basename="$(basename "$RESULTS_DIR")" - local remote_game_dir="$REMOTE_HOME/Code/@projects/@magic-civilization/.local/batches/${results_basename}/game_${STAMP}_seed${seed}" + local remote_game_dir="/tmp/@magic-civilization/builds/.local/batches/${results_basename}/game_${STAMP}_seed${seed}" local remote_runner="$REMOTE_HOME/bin/run_ap3.sh" ssh "$AUTOPLAY_HOST" "