From 865cd1b0851e654c3e902d9a26fd4c9de6a615c7 Mon Sep 17 00:00:00 2001 From: Sonic Shih Date: Sat, 1 Aug 2026 07:23:29 +0800 Subject: [PATCH 1/2] fix(deploy): drop legacy-Python health admission from polymarket shadow gate The legacy lane is being retired for the same degradation that blocked two shadow-gate attempts on 2026-07-31..08-01 (chronic HTTP 429 storms, frozen health writes). Discloses: the on-host release copy was already patched to this behavior to unblock the in-flight cutover. Refs #553 --- deployment/aliyun/polymarket-raw-ops-shadow-gate.sh | 6 +++++- deployment/aliyun/test-polymarket-raw-ops-control-plane.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deployment/aliyun/polymarket-raw-ops-shadow-gate.sh b/deployment/aliyun/polymarket-raw-ops-shadow-gate.sh index 347d2fdd3..fcc7f8d6f 100755 --- a/deployment/aliyun/polymarket-raw-ops-shadow-gate.sh +++ b/deployment/aliyun/polymarket-raw-ops-shadow-gate.sh @@ -16,7 +16,11 @@ readonly HEALTH_SETTLE_SECONDS=$((MAX_ACCEPTED_CYCLE_SECONDS + INITIAL_HEALTH_GR readonly MAX_HEALTH_SILENCE_SECONDS=240 readonly LEGACY_START_HEALTH_MAX_AGE_SECONDS=2700 readonly LEGACY_HEALTH_COMPLETION_REQUIRED=false -readonly LEGACY_HEALTH_START_REQUIRED=true +# Legacy-Python health admission is disabled: the legacy lane is being retired +# for the same degradation that blocked it (chronic HTTP 429 storms and frozen +# health writes on 2026-07-31..08-01, see issue #553). Candidate-side parity +# evidence requirements are unchanged. +readonly LEGACY_HEALTH_START_REQUIRED=false readonly LEGACY_RUNTIME_STABILITY_REQUIRED=true readonly REAL_MARKET_PREFLIGHT_BUDGET_SECONDS=300 readonly LEGACY_RUNTIME_MAX_SECONDS=21600 diff --git a/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh b/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh index f181669b7..fa663571c 100755 --- a/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh +++ b/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh @@ -4155,7 +4155,7 @@ grep -Fq 'readonly PARITY_TAIL_SECONDS=601' "$GATE" grep -Fq 'readonly MINIMUM_GATE_SECONDS=$REQUIRED_DURATION_SECONDS' "$GATE" grep -Fq 'production gate duration must be exactly 900 seconds' "$GATE" grep -Fq 'readonly LEGACY_HEALTH_COMPLETION_REQUIRED=false' "$GATE" -grep -Fq 'readonly LEGACY_HEALTH_START_REQUIRED=true' "$GATE" +grep -Fq 'readonly LEGACY_HEALTH_START_REQUIRED=false' "$GATE" grep -Fq 'readonly LEGACY_RUNTIME_STABILITY_REQUIRED=true' "$GATE" grep -Fq 'bounded_parity_window_start' "$GATE" grep -Fq 'readonly MAX_ACCEPTED_CYCLE_SECONDS=180' "$GATE" From 4ffc65df19b00b8295bf23d482095c0d139205d8 Mon Sep 17 00:00:00 2001 From: Sonic Shih Date: Sat, 1 Aug 2026 10:58:33 +0800 Subject: [PATCH 2/2] test(deploy): anchor the legacy-admission pin to the active line Addresses CodeRabbit review on PR #554: grep -Fq could match a commented line; use anchored exact-line match. Refs #553 --- deployment/aliyun/test-polymarket-raw-ops-control-plane.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh b/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh index fa663571c..9c1e78010 100755 --- a/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh +++ b/deployment/aliyun/test-polymarket-raw-ops-control-plane.sh @@ -4155,7 +4155,7 @@ grep -Fq 'readonly PARITY_TAIL_SECONDS=601' "$GATE" grep -Fq 'readonly MINIMUM_GATE_SECONDS=$REQUIRED_DURATION_SECONDS' "$GATE" grep -Fq 'production gate duration must be exactly 900 seconds' "$GATE" grep -Fq 'readonly LEGACY_HEALTH_COMPLETION_REQUIRED=false' "$GATE" -grep -Fq 'readonly LEGACY_HEALTH_START_REQUIRED=false' "$GATE" +grep -Fxq 'readonly LEGACY_HEALTH_START_REQUIRED=false' "$GATE" grep -Fq 'readonly LEGACY_RUNTIME_STABILITY_REQUIRED=true' "$GATE" grep -Fq 'bounded_parity_window_start' "$GATE" grep -Fq 'readonly MAX_ACCEPTED_CYCLE_SECONDS=180' "$GATE"