dispatch-turn.sh (headless turn launcher with TURN_MODEL routing), queue-after.sh (serial gate chain + quota-wall guard), pmo-heartbeat.sh (PMO wake loop), quota-probe-then-chain.sh (post-wall relaunch).
51 lines
2.3 KiB
Bash
Executable File
51 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# founder-tooling-and-yolo.sh — FOUNDER-RUN: sudo bash ~/.coordinate/scripts/founder-tooling-and-yolo.sh
|
|
# 1) publish /home/_crossfeed/tooling (3 group-shared git repos) from PMO draft
|
|
# 2) fix org-wide --yolo regression: install canonical wrapper into the four
|
|
# TSG verticals + restart their screens (8 agents currently non-yolo)
|
|
# 3) deprecate /tmp/tsg-stack-relaunch.sh (v1, source of both regressions)
|
|
# 4) restart RCEO-PMO with canonical wrapper (PMO still non-yolo), then
|
|
# doorbell the PMO to finish live-repo verification + publish STATUS
|
|
set -uo pipefail
|
|
DRAFT=/home/reachableceo/.coordinate/tooling-draft
|
|
TOOLING=/home/_crossfeed/tooling
|
|
FOUNDER=reachableceo
|
|
|
|
[ "$(id -un)" = root ] || { echo "run as: sudo bash $0" >&2; exit 1; }
|
|
|
|
echo "== 1/4 publish tooling repos =="
|
|
mkdir -p "$TOOLING"
|
|
cp -a "$DRAFT"/. "$TOOLING"/
|
|
chown -R $FOUNDER:users "$TOOLING"
|
|
chmod 2775 "$TOOLING"
|
|
find "$TOOLING" -type d -exec chmod g+s {} +
|
|
find "$TOOLING" -type f -exec chmod g+rw {} +
|
|
chmod -R o-rwx "$TOOLING"
|
|
ls -la "$TOOLING"
|
|
|
|
echo "== 2/4 TSG stacks: canonical wrapper (--yolo) + restart =="
|
|
bash "$TOOLING/agent-stack/tsg-stack-relaunch-v2.sh"
|
|
|
|
echo "== 3/4 deprecate /tmp v1 relaunch =="
|
|
for f in /tmp/tsg-stack-relaunch.sh; do
|
|
[ -f "$f" ] && mv "$f" "$f.deprecated-20260828" && echo "moved: $f -> $f.deprecated-20260828"
|
|
done
|
|
|
|
echo "== 4/4 RCEO-PMO restart with canonical wrapper + doorbell =="
|
|
runuser -u $FOUNDER -- env HOME=/home/reachableceo TERM=xterm-256color \
|
|
screen -S RCEO-PMO -X quit 2>/dev/null || true
|
|
runuser -u $FOUNDER -- env HOME=/home/reachableceo TERM=xterm-256color \
|
|
screen -dmS RCEO-PMO /home/reachableceo/.coordinate/scripts/pmo-loop.sh pmo
|
|
echo "waiting 20s for PMO crush to settle..."
|
|
sleep 20
|
|
runuser -u $FOUNDER -- env HOME=/home/reachableceo TERM=xterm-256color \
|
|
screen -S RCEO-PMO -X stuff $'Tooling live + yolo fix applied. Next turn: verify /home/_crossfeed/tooling, log + publish STATUS.\r' \
|
|
&& echo "doorbelled RCEO-PMO" || echo "doorbell failed - ping PMO manually"
|
|
|
|
echo "== VERIFY =="
|
|
for u in TSGBOD TSGCCO TSGCTO TSGCOO $FOUNDER; do
|
|
echo " $u sockets: $(ls /run/screen/S-$u 2>/dev/null | tr '\n' ' ')"
|
|
done
|
|
echo "yolo agents: $(pgrep -af 'crush --yolo' | wc -l) / expected 10"
|
|
echo "Attach: RCEO-PMO | RCEO-work; TSGxx-PMO | TSGxx-work aliases."
|