#!/usr/bin/env bash set -euo pipefail root="$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)" canary="$root/deploy/run-production-canary.sh" supervisor="$root/deploy/update-supervisor.sh" grep -Fq 'up -d --no-build --no-deps research-runtime-candidate core-runtime-candidate' "$canary" grep -Fq 'up -d --no-build --no-deps cognitive-worker-candidate' "$canary" grep -Fq 'up -d --no-build --no-deps creator-web-candidate' "$canary" grep -Fq 'compose up -d --no-build --no-deps supervisor' "$supervisor" grep -Fq 'stable_ids_before=$(stable_ids)' "$canary" grep -Fq 'assert_stable_ids_unchanged' "$canary" grep -Fq 'before=$(stable_ids)' "$supervisor" grep -Fq 'after=$(stable_ids)' "$supervisor" grep -Fq 'stable container IDs changed' "$supervisor" grep -Fq 'HEALTH_ATTEMPTS="${HEALTH_ATTEMPTS:-360}"' "$canary" grep -Fq 'seq 1 "$HEALTH_ATTEMPTS"' "$canary" echo 'stable release-set guard: PASS'