summaryrefslogtreecommitdiff
path: root/flossing_suite/watch_and_summarize.sh
diff options
context:
space:
mode:
authorYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
committerYurenHao0426 <blackhao0426@gmail.com>2026-06-29 12:15:51 -0500
commita6ec4288a2232988b130b2f00bb2565f81706966 (patch)
tree1bb86e7f0b899b823b9e7fdf383e832d30a181e0 /flossing_suite/watch_and_summarize.sh
Recursive reasoning dynamics: analysis pipeline, paper drafts, toy models
Failure=more-chaotic (task-general under validity labeling) reduces to convergence/completeness detection; mechanism (transient chaos vs multistability vs input-induced) under investigation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'flossing_suite/watch_and_summarize.sh')
-rwxr-xr-xflossing_suite/watch_and_summarize.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/flossing_suite/watch_and_summarize.sh b/flossing_suite/watch_and_summarize.sh
new file mode 100755
index 0000000..a75c250
--- /dev/null
+++ b/flossing_suite/watch_and_summarize.sh
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+ROOT="/home/yurenh2/rrm"
+PY="/home/yurenh2/miniconda3/envs/rrm/bin/python"
+cd "${ROOT}"
+
+if [[ "$#" -gt 0 ]]; then
+ pid_files=("$@")
+else
+ pid_files=(research/flossing/flossing_suite/results/trm_faithful/trm_seed123_*.pid)
+fi
+
+echo "watching ${#pid_files[@]} pid files"
+for pf in "${pid_files[@]}"; do
+ [[ -f "${pf}" ]] || continue
+ pid="$(cat "${pf}")"
+ echo "watch ${pf}: pid ${pid}"
+ while kill -0 "${pid}" 2>/dev/null; do
+ sleep 60
+ done
+ echo "done ${pf}: pid ${pid}"
+done
+
+"${PY}" research/flossing/flossing_suite/summarize_flossing.py
+bash research/flossing/flossing_suite/status.sh > research/flossing/flossing_suite/results/summary/final_status.txt
+echo "watch complete"