#!/bin/sh # Baseline on the 11-task subset (Kral decision 2026-10-03), detached. Replaces night_chain.sh. # macOS notification after 2 tasks (time estimate) and at the end. Log: runs/stage1/baseline.log, chain log below. cd "$(dirname "$0")/.." log() { echo "$(date '+%F %T') $*"; } log "start baseline, 11 tasks, thinking off, max_tokens 16384, loop guard 3" python3 train/baseline.py --label baseline --run-base 20400 > runs/stage1/baseline.log 2>&1 & BP=$! log "baseline PID $BP" NOTE=0 while kill -0 $BP 2>/dev/null; do N=$(python3 -c "import json;print(len(json.load(open('runs/stage1/baseline.json'))['tasks']))" 2>/dev/null || echo 0) if [ "$NOTE" = 0 ] && [ "$N" -ge 2 ]; then osascript -e 'display notification "Baseline: first 2 tasks done, ask for the time estimate" with title "stage1"' log "2 tasks done"; NOTE=1 fi sleep 60 done log "baseline ended: $(python3 -c "import json;print(len(json.load(open('runs/stage1/baseline.json'))['tasks']))") tasks" osascript -e 'display notification "Baseline (11 tasks) ended" with title "stage1"'