$root = "C:\Users\Administrator\.gemini\antigravity\scratch\ClassNotify\tools\stability" $code = Get-Content (Join-Path $root "Run-Orchestrator.ps1") -Raw # Extract Test-NodeEndToEndHealth definition $fnStart = $code.IndexOf("function Test-NodeEndToEndHealth {") $fnEnd = $code.IndexOf("`$sessionSw = [System.Diagnostics.Stopwatch]::StartNew()") $fnBody = $code.Substring($fnStart, $fnEnd - $fnStart) Invoke-Expression $fnBody $res = Test-NodeEndToEndHealth $d = $res.Detail Write-Host "" Write-Host ("{0,-20} {1}" -f "Service Process", $(if ($d.ServiceProcess) { "PASS" } else { "FAIL" })) Write-Host ("{0,-20} {1}" -f "Client Process", $(if ($d.ClientProcess) { "PASS" } else { "FAIL" })) Write-Host ("{0,-20} {1}" -f "IPC Ping/Pong", $(if ($d.IpcPingPong) { "PASS" } else { "FAIL" })) Write-Host ("{0,-20} {1}" -f "TTS Check", $(if ($d.TtsCheck) { "PASS" } else { "FAIL" })) Write-Host ("{0,-20} {1}" -f "SignalR :443", $(if ($d.SignalRPort443) { "PASS" } else { "FAIL" })) Write-Host ("{0,-20} {1}" -f "Cloud Heartbeat", $(if ($d.CloudHeartbeat) { "PASS" } else { "FAIL" })) $chaosRules = @(netsh advfirewall firewall show rule name=all | Select-String "ClassNotify-Chaos-").Count Write-Host ("{0,-20} {1}" -f "Firewall Rules", $chaosRules) Write-Host "" Write-Host ("PRE-SOAK HEALTH: {0}" -f $(if ($res.Healthy) { "PASS" } else { "FAIL" }))