From 38dfb059d721df0df67453f488a5177f2ab14403 Mon Sep 17 00:00:00 2001 From: Daniel Maddern Date: Mon, 17 Aug 2026 02:16:49 +0700 Subject: [PATCH] Guard overnight on failed canary --- scripts/run_guard3b_overnight_spark.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run_guard3b_overnight_spark.sh b/scripts/run_guard3b_overnight_spark.sh index 77c9ff0..883e073 100755 --- a/scripts/run_guard3b_overnight_spark.sh +++ b/scripts/run_guard3b_overnight_spark.sh @@ -50,6 +50,10 @@ train() { docker wait "$CANARY" > "$RUN_ROOT/canary_exit_code.txt" docker logs "$CANARY" > "$RUN_ROOT/canary_training.log" 2>&1 +if [[ "$(cat "$RUN_ROOT/canary_exit_code.txt")" != "0" ]]; then + printf '{"finished_at":"%s","status":"CANARY_FAILED"}\n' "$(date -Iseconds)" > "$RUN_ROOT/program_state.json" + exit 1 +fi cp "$PROJECT/artifex_overnight/guard3b_v03_canary/pilot_metrics.json" "$RUN_ROOT/canary_metrics.json" # Base and the initial Challenger use the identical fixed harness/version.