Command: powershell -NoProfile -Command "$root='C:\Users\ash\Documents\Codex\2026-08-26\LaptopBridge-DEV';$data=Join-Path $root 'bridge-data';$old=[int](Get-Content -Raw (Join-Path $data 'ha3-child.pid'));$p=Get-CimInstance Win32_Process -Filter ('ProcessId='+$old) -ErrorAction Stop;if(([string]$p.CommandLine) -notlike '*dev_bridge_launcher.py*'){throw 'HA3_CHILD_IDENTITY_GUARD_FAILED'};Stop-Process -Id $old -Force -ErrorAction Stop;Start-Sleep -Seconds 10;$new=[int](Get-Content -Raw (Join-Path $data 'ha3-child.pid'));$status=Get-Content -Raw (Join-Path $data 'ha3-status.json')|ConvertFrom-Json;$hb=Get-Content -Raw (Join-Path $data 'ha3-drive-worker-heartbeat.json')|ConvertFrom-Json;$h7='FAIL';$h5='FAIL';try{$h7=(Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8767/health' -TimeoutSec 2).Content.Trim()}catch{};try{$h5=(Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8765/health' -TimeoutSec 2).Content.Trim()}catch{};[pscustomobject]@{old_child=$old;new_child=$new;pid_changed=($new -ne $old);dev_health=$h7;prod_health=$h5;supervisor_healthy=$status.healthy;restarts=$status.restarts;heartbeat_pid=$hb.pid;heartbeat_matches_new=([int]$hb.pid -eq $new)}|ConvertTo-Json -Compress"
Directory: projects
Status: SUCCESS
Exit code: 0
Cancel Job Rerun Command Refresh
{"old_child":18236,"new_child":18236,"pid_changed":false,"dev_health":"FAIL","prod_health":"OK","supervisor_healthy":true,"restarts":1,"heartbeat_pid":18236,"heartbeat_matches_new":true}