From 04bd2292c5492bc1c80e8fb93600c2dead7ffaa7 Mon Sep 17 00:00:00 2001 From: Giovanni Giovanni Date: Mon, 24 Aug 2026 15:33:24 -0700 Subject: [PATCH] DLC-CHECKPOINT: give the checkpoint job the same deploy path as the outcomes job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy-roundtrip.sh now updates afi-checkpoint-reassess to the freshly built reactor image and asserts the update took effect, exactly like afi-capture-outcomes — a service deploy can never silently leave the hourly checkpoint job on an old image. Co-Authored-By: Claude Fable 5 --- deploy/signal-runtime/deploy-roundtrip.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/deploy/signal-runtime/deploy-roundtrip.sh b/deploy/signal-runtime/deploy-roundtrip.sh index 07ecd4c..2b3e29d 100755 --- a/deploy/signal-runtime/deploy-roundtrip.sh +++ b/deploy/signal-runtime/deploy-roundtrip.sh @@ -310,6 +310,23 @@ else echo "WARNING: Cloud Run Job afi-capture-outcomes not found — outcome capture NOT deployed by this run." fi +# DLC-GOV DLC-CHECKPOINT: the checkpoint reader job rides the SAME reactor +# image, same rule as the outcomes job — update and assert so a service +# deploy never silently leaves the hourly checkpoint on an old image. +if gcloud run jobs describe afi-checkpoint-reassess --region "$REGION" --project "$PROJECT" >/dev/null 2>&1; then + gcloud run jobs update afi-checkpoint-reassess --image "$RX_IMG" --region "$REGION" --project "$PROJECT" + CKPT_IMG="$(gcloud run jobs describe afi-checkpoint-reassess --region "$REGION" --project "$PROJECT" \ + --format='value(spec.template.spec.template.spec.containers[0].image)')" + if [ "$CKPT_IMG" != "$RX_IMG" ]; then + echo "FATAL: afi-checkpoint-reassess job is on '$CKPT_IMG' but this run built '$RX_IMG'." + echo " The job update did not take effect — checkpoints would run OLD law." + exit 1 + fi + echo " Checkpoint job: afi-checkpoint-reassess updated to the same image (verified)" +else + echo "WARNING: Cloud Run Job afi-checkpoint-reassess not found — checkpoint reader NOT deployed by this run." +fi + echo "==> [10/10] Deployed." echo " Reactor revision: $RX_REVISION" echo " Reactor image: $RX_IMG (verified serving)"