From 7d41cbe5a42b9a7f90d15ad3e80cdca6596548e0 Mon Sep 17 00:00:00 2001 From: BigSimmo <87357024+BigSimmo@users.noreply.github.com> Date: Tue, 14 Jul 2026 01:34:51 +0800 Subject: [PATCH] fix(ops): assert the live monitor on the server-rendered title The dashboard hydrates client-side (ssr:false), so "Clinical Guide" never appears in the served HTML and the first monitor run failed on a healthy site. Assert on the server-rendered Clinical KB instead, and print the first 300 bytes of the body on failure so a future mismatch is diagnosable from the run log alone. Co-Authored-By: Claude Fable 5 --- .github/workflows/live-domain-monitor.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/live-domain-monitor.yml b/.github/workflows/live-domain-monitor.yml index bb530ed48..e5d7c3f0c 100644 --- a/.github/workflows/live-domain-monitor.yml +++ b/.github/workflows/live-domain-monitor.yml @@ -35,8 +35,12 @@ jobs: run: | set -euo pipefail body="$(curl -sSL --fail --max-time 30 --retry 2 --retry-delay 10 --retry-all-errors "$LIVE_DOMAIN_URL/")" - echo "$body" | grep -q "Clinical Guide" || { - echo "::error::Root responded but does not render the Clinical Guide shell" + # The dashboard hydrates client-side (ssr:false), so assert on the + # server-rendered document title, not client-rendered brand text. + echo "$body" | grep -q "Clinical KB" || { + echo "::error::Root responded but does not serve the Clinical KB document" + echo "First 300 bytes of response for diagnosis:" + echo "$body" | head -c 300 exit 1 }