#!/usr/bin/env bash
set -u
S=/c/Users/decid/AppData/Local/Temp/claude/C--Users-decid-Documents-projects-spt-core/95a5ade8-823c-4bff-a8fe-e0a9e9db5054/scratchpad
SHA=a9e786b24fe4e541dcd394ef428f225d72f3024a
# Wait for the compile gate to print its own SUMMARY block before touching the shared rig+pool.
for i in $(seq 1 240); do
  grep -q '^=== SUMMARY ' "$S/head10-win.log" && break
  sleep 10
done
grep -q '^=== SUMMARY ' "$S/head10-win.log" || { echo "COMPILE_GATE_NEVER_SUMMARISED"; exit 93; }
echo "=== compile gate summarised, starting Windows unit set $(date -u +%T)"
bash "$S/member-gate-win.sh" "$SHA" gate-294-head10-full 'kind(lib) + kind(bin)'
echo "HEAD10_WIN_CHAIN_DONE $(date -u +%T)"
