From f45e8f2717e998e63ac2fc4dc1d671c85b1f07bd Mon Sep 17 00:00:00 2001 From: Davide Cappellini Date: Sat, 22 Aug 2026 14:40:57 +0200 Subject: [PATCH] fix(SAC_LSTM_Bot): startup sweep of stale .part checkpoint corpses (#57) --- SAC_LSTM_Bot/sac_train.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SAC_LSTM_Bot/sac_train.sh b/SAC_LSTM_Bot/sac_train.sh index cfd52f5..704b672 100755 --- a/SAC_LSTM_Bot/sac_train.sh +++ b/SAC_LSTM_Bot/sac_train.sh @@ -52,6 +52,9 @@ echo "Weights: $SACLSTM_WEIGHTS_PATH" # ── compile bot + java runner ───────────────────────────────────────────────── (cd "$SCRIPT_DIR" && nimble build -d:release) || { echo ">>> bot build failed"; exit 1; } mkdir -p "$WEIGHTS_DIR" "$CLASSES_DIR" +# Startup sweep: atomic saves leave sac_latest.zip.tmp.*.part corpses behind if +# a run is SIGKILLed (libzip modify-path, see notebook forensics) — clear them. +rm -f "$WEIGHTS_DIR"/sac_latest.zip.tmp.*.part "$WEIGHTS_DIR"/sac_latest.zip.tmp javac -cp "$JAR" -d "$CLASSES_DIR" "$RUNNER_DIR/RunTraining.java" || { echo ">>> javac failed"; exit 1; } # ── weighted opponent pick over "Name:w,Name:w" ───────────────────────────────